[PATCH] arm64: dts: Introduce more nodes to EN7581 SoC evaluation board
Rob Herring
robh at kernel.org
Mon Feb 3 10:41:52 PST 2025
On Sat, Feb 1, 2025 at 8:40 AM Lorenzo Bianconi <lorenzo at kernel.org> wrote:
>
> Add the following nodes to EN7581 SoC and EN7581 evaluation board:
> - clock controller
> - rng controller
> - pinctrl
> - i2c controllers
> - spi nand controller
>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> ---
> arch/arm64/boot/dts/airoha/en7581-evb.dts | 8 +++
> arch/arm64/boot/dts/airoha/en7581.dtsi | 90 +++++++++++++++++++++++++++++++
> 2 files changed, 98 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/airoha/en7581-evb.dts b/arch/arm64/boot/dts/airoha/en7581-evb.dts
> index cf58e43dd5b21dbf4f64e305a4b4a2daee100858..1126da4b795f5d5df9725ec4d75cd9353b011710 100644
> --- a/arch/arm64/boot/dts/airoha/en7581-evb.dts
> +++ b/arch/arm64/boot/dts/airoha/en7581-evb.dts
> @@ -24,3 +24,11 @@ memory at 80000000 {
> reg = <0x0 0x80000000 0x2 0x00000000>;
> };
> };
> +
> +&i2c0 {
> + status = "okay";
> +};
> +
> +&snfi {
> + status = "okay";
> +};
> diff --git a/arch/arm64/boot/dts/airoha/en7581.dtsi b/arch/arm64/boot/dts/airoha/en7581.dtsi
> index 55eb1762fb11364877695960f5a2d3e42caf8611..b1cf650efd78c6c20d19e7f18c204cf5862215c0 100644
> --- a/arch/arm64/boot/dts/airoha/en7581.dtsi
> +++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
> @@ -2,6 +2,7 @@
>
> #include <dt-bindings/interrupt-controller/irq.h>
> #include <dt-bindings/interrupt-controller/arm-gic.h>
> +#include <dt-bindings/clock/en7523-clk.h>
>
> / {
> interrupt-parent = <&gic>;
> @@ -150,5 +151,94 @@ uart1: serial at 1fbf0000 {
> interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
> clock-frequency = <1843200>;
> };
> +
> + scuclk: clock-controller at 1fa20000 {
> + compatible = "airoha,en7581-scu";
> + reg = <0x0 0x1fb00000 0x0 0x970>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + };
> +
> + rng at 1faa1000 {
> + compatible = "airoha,en7581-trng";
> + reg = <0x0 0x1faa1000 0x0 0xc04>;
> + interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + system-controller at 1fbf0200 {
> + compatible = "syscon", "simple-mfd";
> + reg = <0x0 0x1fbf0200 0x0 0xc0>;
> +
> + en7581_pinctrl: pinctrl {
> + compatible = "airoha,en7581-pinctrl";
> +
> + interrupt-parent = <&gic>;
> + interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
> +
> + gpio-controller;
> + #gpio-cells = <2>;
> +
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> + };
> +
> + i2cclock: i2cclock at 0 {
clock-20000000 for node name.
A unit-address without 'reg' is not valid. Test this with W=1.
Rob
More information about the linux-arm-kernel
mailing list