]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: sync am33xx gpio nodes with Linux 5.9-rc7
authorDario Binacchi <dariobin@libero.it>
Sat, 13 Feb 2021 11:00:45 +0000 (12:00 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 16 Feb 2021 05:00:11 +0000 (10:30 +0530)
Move gpio controller nodes from am33xx.dtsi to am33xx-l4.dtsi. Now both
files are more similar to those found in Linux 5.9-rc7. To be fully
operational as before it was also necessary to fix the am33xx-clock.dtsi
file. It too is now almost the same as the Linux kernel.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
arch/arm/dts/am33xx-clocks.dtsi
arch/arm/dts/am33xx-l4.dtsi
arch/arm/dts/am33xx.dtsi

index 87c4410ee237736d03c9c6c37a60c05993951579..5640ce40c4a9559c12bc7b5098b692ce4aac1180 100644 (file)
 
                l4_wkup_clkctrl: l4-wkup-clkctrl@0 {
                        compatible = "ti,clkctrl";
-                       reg = <0x4 0x10>, <0xb4 0x24>;
+                       reg = <0x0 0x10>, <0xb4 0x24>;
                        #clock-cells = <2>;
                };
 
index 257991e2ad3442b4b994ae5bccea2af1fb01eb7c..e678673317af6151d6c7a69963f7a2c0cee9806c 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0x0 0x7000 0x1000>;
+
+                       gpio0: gpio@0 {
+                               compatible = "ti,omap4-gpio";
+                               gpio-ranges =   <&am33xx_pinmux  0  82 8>,
+                                               <&am33xx_pinmux  8  52 4>,
+                                               <&am33xx_pinmux 12  94 4>,
+                                               <&am33xx_pinmux 16  71 2>,
+                                               <&am33xx_pinmux 18 135 1>,
+                                               <&am33xx_pinmux 19 108 2>,
+                                               <&am33xx_pinmux 21  73 1>,
+                                               <&am33xx_pinmux 22   8 2>,
+                                               <&am33xx_pinmux 26  10 2>,
+                                               <&am33xx_pinmux 28  74 1>,
+                                               <&am33xx_pinmux 29  81 1>,
+                                               <&am33xx_pinmux 30  28 2>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                               reg = <0x0 0x1000>;
+                               interrupts = <96>;
+                       };
                };
 
                target-module@9000 {                    /* 0x44e09000, ap 16 04.0 */
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0x0 0x4c000 0x1000>;
+
+                       gpio1: gpio@0 {
+                               compatible = "ti,omap4-gpio";
+                               gpio-ranges =   <&am33xx_pinmux  0  0  8>,
+                                               <&am33xx_pinmux  8 90  4>,
+                                               <&am33xx_pinmux 12 12 16>,
+                                               <&am33xx_pinmux 28 30  4>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                               reg = <0x0 0x1000>;
+                               interrupts = <98>;
+                       };
                };
 
                target-module@50000 {                   /* 0x48050000, ap 34 2c.0 */
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0x0 0xac000 0x1000>;
+
+                       gpio2: gpio@0 {
+                               compatible = "ti,omap4-gpio";
+                               gpio-ranges =   <&am33xx_pinmux  0 34 18>,
+                                               <&am33xx_pinmux 18 77  4>,
+                                               <&am33xx_pinmux 22 56 10>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                               reg = <0x0 0x1000>;
+                               interrupts = <32>;
+                       };
                };
 
                target-module@ae000 {                   /* 0x481ae000, ap 56 3a.0 */
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0x0 0xae000 0x1000>;
+
+                       gpio3: gpio@0 {
+                               compatible = "ti,omap4-gpio";
+                               gpio-ranges =   <&am33xx_pinmux  0  66 5>,
+                                               <&am33xx_pinmux  5  98 2>,
+                                               <&am33xx_pinmux  7  75 2>,
+                                               <&am33xx_pinmux 13 141 1>,
+                                               <&am33xx_pinmux 14 100 8>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                               reg = <0x0 0x1000>;
+                               interrupts = <62>;
+                       };
                };
 
                target-module@b0000 {                   /* 0x481b0000, ap 58 50.0 */
index 3e5ed00aae44a4a89a9f2dd6d91b1035dd55348d..ce07cec846202371b346894456e9ceeeb7972c07 100644 (file)
                        };
                };
 
-               gpio0: gpio@44e07000 {
-                       compatible = "ti,omap4-gpio";
-                       ti,hwmods = "gpio1";
-                       gpio-controller;
-                       #gpio-cells = <2>;
-                       interrupt-controller;
-                       #interrupt-cells = <2>;
-                       reg = <0x44e07000 0x1000>;
-                       interrupts = <96>;
-               };
-
-               gpio1: gpio@4804c000 {
-                       compatible = "ti,omap4-gpio";
-                       ti,hwmods = "gpio2";
-                       gpio-controller;
-                       #gpio-cells = <2>;
-                       interrupt-controller;
-                       #interrupt-cells = <2>;
-                       reg = <0x4804c000 0x1000>;
-                       interrupts = <98>;
-               };
-
-               gpio2: gpio@481ac000 {
-                       compatible = "ti,omap4-gpio";
-                       ti,hwmods = "gpio3";
-                       gpio-controller;
-                       #gpio-cells = <2>;
-                       interrupt-controller;
-                       #interrupt-cells = <2>;
-                       reg = <0x481ac000 0x1000>;
-                       interrupts = <32>;
-               };
-
-               gpio3: gpio@481ae000 {
-                       compatible = "ti,omap4-gpio";
-                       ti,hwmods = "gpio4";
-                       gpio-controller;
-                       #gpio-cells = <2>;
-                       interrupt-controller;
-                       #interrupt-cells = <2>;
-                       reg = <0x481ae000 0x1000>;
-                       interrupts = <62>;
-               };
-
                i2c0: i2c@44e0b000 {
                        compatible = "ti,omap4-i2c";
                        #address-cells = <1>;