]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
riscv: dts: thead: Add TH1520 pin control nodes
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>
Mon, 14 Oct 2024 17:54:18 +0000 (10:54 -0700)
committerDrew Fustini <dfustini@tenstorrent.com>
Tue, 15 Oct 2024 17:01:17 +0000 (10:01 -0700)
Add nodes for pin controllers on the T-Head TH1520 RISC-V SoC.

Add the missing aonsys_clk for the always-on pin controller as there is
not yet an aon subsys clock controller driver.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
[dfustini: modify description as there is now an ap_subsys clk driver]
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
arch/riscv/boot/dts/thead/th1520.dtsi

index 6992060e6a54d2c3391de9d523e6eba1457d2965..93c17f52fbe9fa5e1828e113dec1698189f18730 100644 (file)
                #clock-cells = <0>;
        };
 
+       aonsys_clk: clock-73728000 {
+               compatible = "fixed-clock";
+               clock-frequency = <73728000>;
+               clock-output-names = "aonsys_clk";
+               #clock-cells = <0>;
+       };
+
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&plic>;
                        };
                };
 
+               padctrl1_apsys: pinctrl@ffe7f3c000 {
+                       compatible = "thead,th1520-pinctrl";
+                       reg = <0xff 0xe7f3c000 0x0 0x1000>;
+                       clocks = <&clk CLK_PADCTRL1>;
+                       thead,pad-group = <2>;
+               };
+
                gpio0: gpio@ffec005000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xec005000 0x0 0x1000>;
                        };
                };
 
+               padctrl0_apsys: pinctrl@ffec007000 {
+                       compatible = "thead,th1520-pinctrl";
+                       reg = <0xff 0xec007000 0x0 0x1000>;
+                       clocks = <&clk CLK_PADCTRL0>;
+                       thead,pad-group = <3>;
+               };
+
                uart2: serial@ffec010000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0xff 0xec010000 0x0 0x4000>;
                        };
                };
 
+               padctrl_aosys: pinctrl@fffff4a000 {
+                       compatible = "thead,th1520-pinctrl";
+                       reg = <0xff 0xfff4a000 0x0 0x2000>;
+                       clocks = <&aonsys_clk>;
+                       thead,pad-group = <1>;
+               };
+
                ao_gpio1: gpio@fffff52000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xfff52000 0x0 0x1000>;