Define gpio@1100 with label gpio_pic as a GPIO controller and
interrupt controller directly in mpc5121.dtsi so all MPC5121 boards
inherit the correct controller capabilities.

Remove the redundant local controller property declaration block from
ac14xx.dts.

Assisted-by: Antigravity:gemini-3.5-flash
Signed-off-by: Dmitry Torokhov <[email protected]>
---
 arch/powerpc/boot/dts/ac14xx.dts   | 13 -------------
 arch/powerpc/boot/dts/mpc5121.dtsi |  6 +++++-
 2 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/arch/powerpc/boot/dts/ac14xx.dts b/arch/powerpc/boot/dts/ac14xx.dts
index 5d8877e1f4ad..05fcf08df1ca 100644
--- a/arch/powerpc/boot/dts/ac14xx.dts
+++ b/arch/powerpc/boot/dts/ac14xx.dts
@@ -148,19 +148,6 @@ clock@f00 {
                        compatible = "fsl,mpc5121rev2-clock", 
"fsl,mpc5121-clock";
                };
 
-               /*
-                * GPIO PIC:
-                * interrupts cell = <pin nr, sense>
-                * sense == 8: Level, low assertion
-                * sense == 2: Edge, high-to-low change
-                */
-               gpio_pic: gpio@1100 {
-                       gpio-controller;
-                       #gpio-cells = <2>;
-                       interrupt-controller;
-                       #interrupt-cells = <2>;
-               };
-
                sdhc@1500 {
                        cd-gpios = <&gpio_pic 23 0>;    /* card detect */
                        wp-gpios = <&gpio_pic 24 0>;    /* write protect */
diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi 
b/arch/powerpc/boot/dts/mpc5121.dtsi
index a278fb7b9e71..9c5dacb94b92 100644
--- a/arch/powerpc/boot/dts/mpc5121.dtsi
+++ b/arch/powerpc/boot/dts/mpc5121.dtsi
@@ -146,10 +146,14 @@ pmc@1000 {
                        interrupts = <83 0x8>;
                };
 
-               gpio@1100 {
+               gpio_pic: gpio@1100 {
                        compatible = "fsl,mpc5121-gpio";
                        reg = <0x1100 0x100>;
                        interrupts = <78 0x8>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
                };
 
                can@1300 {

-- 
2.55.0.229.g6434b31f56-goog


Reply via email to