]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: thead: Adjust TH1520 GPIO labels
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>
Mon, 14 Oct 2024 17:54:20 +0000 (10:54 -0700)
committerDrew Fustini <dfustini@tenstorrent.com>
Tue, 15 Oct 2024 17:01:17 +0000 (10:01 -0700)
Adjust labels for the TH1520 GPIO controllers such that GPIOs can be
referenced by the names used by the documentation. Eg.

GPIO0_X  -> <&gpio0 X Y>
GPIO1_X  -> <&gpio1 X Y>
GPIO2_X  -> <&gpio2 X Y>
GPIO3_X  -> <&gpio3 X Y>
GPIO4_X  -> <&gpio4 X Y>
AOGPIO_X -> <&aogpio X Y>

Remove labels for the parent GPIO devices that shouldn't need to be
referenced.

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>
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
arch/riscv/boot/dts/thead/th1520.dtsi

index 497d961456f3a1d497af7b337aa63cc2dcdbb2ca..1a4154a6ff3bf74c1cab7a047b335828ac2a32ec 100644 (file)
@@ -17,6 +17,8 @@
                gpio1 = &gpio1;
                gpio2 = &gpio2;
                gpio3 = &gpio3;
+               gpio4 = &gpio4;
+               gpio5 = &aogpio;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
index 7738d2895c5accc25028b61135949b5f98471fef..58ad381fc1c3660de79de0cef6e8d93b31aaa711 100644 (file)
@@ -14,6 +14,8 @@
                gpio1 = &gpio1;
                gpio2 = &gpio2;
                gpio3 = &gpio3;
+               gpio4 = &gpio4;
+               gpio5 = &aogpio;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
index 9c6cbb4fc3d7e7e00ec3cd031cb1cb6cc1f5c600..31725c3a13d719245c5850275af21af18413c910 100644 (file)
                        status = "disabled";
                };
 
-               gpio2: gpio@ffe7f34000 {
+               gpio@ffe7f34000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xe7f34000 0x0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        clocks = <&clk CLK_GPIO2>;
 
-                       portc: gpio-controller@0 {
+                       gpio2: gpio-controller@0 {
                                compatible = "snps,dw-apb-gpio-port";
                                gpio-controller;
                                #gpio-cells = <2>;
                        };
                };
 
-               gpio3: gpio@ffe7f38000 {
+               gpio@ffe7f38000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xe7f38000 0x0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        clocks = <&clk CLK_GPIO3>;
 
-                       portd: gpio-controller@0 {
+                       gpio3: gpio-controller@0 {
                                compatible = "snps,dw-apb-gpio-port";
                                gpio-controller;
                                #gpio-cells = <2>;
                        thead,pad-group = <2>;
                };
 
-               gpio0: gpio@ffec005000 {
+               gpio@ffec005000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xec005000 0x0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        clocks = <&clk CLK_GPIO0>;
 
-                       porta: gpio-controller@0 {
+                       gpio0: gpio-controller@0 {
                                compatible = "snps,dw-apb-gpio-port";
                                gpio-controller;
                                #gpio-cells = <2>;
                        };
                };
 
-               gpio1: gpio@ffec006000 {
+               gpio@ffec006000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xec006000 0x0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        clocks = <&clk CLK_GPIO1>;
 
-                       portb: gpio-controller@0 {
+                       gpio1: gpio-controller@0 {
                                compatible = "snps,dw-apb-gpio-port";
                                gpio-controller;
                                #gpio-cells = <2>;
                        status = "disabled";
                };
 
-               ao_gpio0: gpio@fffff41000 {
+               gpio@fffff41000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xfff41000 0x0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
 
-                       porte: gpio-controller@0 {
+                       aogpio: gpio-controller@0 {
                                compatible = "snps,dw-apb-gpio-port";
                                gpio-controller;
                                #gpio-cells = <2>;
                        thead,pad-group = <1>;
                };
 
-               ao_gpio1: gpio@fffff52000 {
+               gpio@fffff52000 {
                        compatible = "snps,dw-apb-gpio";
                        reg = <0xff 0xfff52000 0x0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
 
-                       portf: gpio-controller@0 {
+                       gpio4: gpio-controller@0 {
                                compatible = "snps,dw-apb-gpio-port";
                                gpio-controller;
                                #gpio-cells = <2>;