]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: mvebu: armada-xp: Use pinctrl node alias
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Fri, 19 Sep 2014 19:20:09 +0000 (21:20 +0200)
committerJason Cooper <jason@lakedaemon.net>
Sun, 2 Nov 2014 18:57:16 +0000 (18:57 +0000)
Armada XP pinctrl node gained an alias, make use of it.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-By: Benoit Masson <yahoo@perenite.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-xp-axpwifiap.dts
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
arch/arm/boot/dts/armada-xp-mv78230.dtsi
arch/arm/boot/dts/armada-xp-mv78260.dtsi
arch/arm/boot/dts/armada-xp-mv78460.dtsi
arch/arm/boot/dts/armada-xp-netgear-rn2120.dts
arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts

index 5460161482834db3fdd464c4c75c93b3f38bbea8..cdab007fbaf417410a26d30260646a865107e6b9 100644 (file)
                };
 
                internal-regs {
-                       pinctrl: pin-ctrl@18000 {
-                               pinctrl-0 = <&pmx_phy_int>;
-                               pinctrl-names = "default";
-
-                               pmx_ge0: pmx-ge0 {
-                                       marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
-                                                      "mpp4", "mpp5", "mpp6", "mpp7",
-                                                      "mpp8", "mpp9", "mpp10", "mpp11";
-                                       marvell,function = "ge0";
-                               };
-
-                               pmx_ge1: pmx-ge1 {
-                                       marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15",
-                                                      "mpp16", "mpp17", "mpp18", "mpp19",
-                                                      "mpp20", "mpp21", "mpp22", "mpp23";
-                                       marvell,function = "ge1";
-                               };
-
-                               pmx_keys: pmx-keys {
-                                       marvell,pins = "mpp33";
-                                       marvell,function = "gpio";
-                               };
-
-                               pmx_spi: pmx-spi {
-                                       marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
-                                       marvell,function = "spi";
-                               };
-
-                               pmx_phy_int: pmx-phy-int {
-                                       marvell,pins = "mpp32";
-                                       marvell,function = "gpio";
-                               };
-                       };
-
                        serial@12000 {
                                status = "okay";
                        };
                };
        };
 };
+
+&pinctrl {
+       pinctrl-0 = <&pmx_phy_int>;
+       pinctrl-names = "default";
+
+       pmx_ge0: pmx-ge0 {
+               marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
+                              "mpp4", "mpp5", "mpp6", "mpp7",
+                              "mpp8", "mpp9", "mpp10", "mpp11";
+               marvell,function = "ge0";
+       };
+
+       pmx_ge1: pmx-ge1 {
+               marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15",
+                              "mpp16", "mpp17", "mpp18", "mpp19",
+                              "mpp20", "mpp21", "mpp22", "mpp23";
+               marvell,function = "ge1";
+       };
+
+       pmx_keys: pmx-keys {
+               marvell,pins = "mpp33";
+               marvell,function = "gpio";
+       };
+
+       pmx_spi: pmx-spi {
+               marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
+               marvell,function = "spi";
+       };
+
+       pmx_phy_int: pmx-phy-int {
+               marvell,pins = "mpp32";
+               marvell,function = "gpio";
+       };
+};
index baa43a00429941623a4ff8c0f69b9cfead4ca694..492cd8e3f4246cf0a4590757099787c201d840a0 100644 (file)
                };
 
                internal-regs {
-                       pinctrl: pin-ctrl@18000 {
-                               poweroff_pin: poweroff-pin {
-                                       marvell,pins = "mpp24";
-                                       marvell,function = "gpio";
-                               };
-
-                               power_button_pin: power-button-pin {
-                                       marvell,pins = "mpp44";
-                                       marvell,function = "gpio";
-                               };
-
-                               reset_button_pin: reset-button-pin {
-                                       marvell,pins = "mpp45";
-                                       marvell,function = "gpio";
-                               };
-                               select_button_pin: select-button-pin {
-                                       marvell,pins = "mpp41";
-                                       marvell,function = "gpio";
-                               };
-
-                               scroll_button_pin: scroll-button-pin {
-                                       marvell,pins = "mpp42";
-                                       marvell,function = "gpio";
-                               };
-
-                               hdd_led_pin: hdd-led-pin {
-                                       marvell,pins = "mpp26";
-                                       marvell,function = "gpio";
-                               };
-                       };
-
                        serial@12000 {
                                status = "okay";
                        };
                gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
        };
 };
+
+&pinctrl {
+       poweroff_pin: poweroff-pin {
+               marvell,pins = "mpp24";
+               marvell,function = "gpio";
+       };
+
+       power_button_pin: power-button-pin {
+               marvell,pins = "mpp44";
+               marvell,function = "gpio";
+       };
+
+       reset_button_pin: reset-button-pin {
+               marvell,pins = "mpp45";
+               marvell,function = "gpio";
+       };
+       select_button_pin: select-button-pin {
+               marvell,pins = "mpp41";
+               marvell,function = "gpio";
+       };
+
+       scroll_button_pin: scroll-button-pin {
+               marvell,pins = "mpp42";
+               marvell,function = "gpio";
+       };
+
+       hdd_led_pin: hdd-led-pin {
+               marvell,pins = "mpp26";
+               marvell,function = "gpio";
+       };
+};
index e24ef072b8cba4fed5f05390d90f36e36a81d980..281ccd24295caa3d7b7f595a1d3c32c117a63d17 100644 (file)
                };
 
                internal-regs {
-                       pinctrl: pin-ctrl@18000 {
-                               compatible = "marvell,mv78230-pinctrl";
-                       };
-
                        gpio0: gpio@18100 {
                                compatible = "marvell,orion-gpio";
                                reg = <0x18100 0x40>;
                };
        };
 };
+
+&pinctrl {
+       compatible = "marvell,mv78230-pinctrl";
+};
index 53dfb157b91a3b53778c2176a8f356ead3269acc..d7a8d0b0f385e090210c9171cf609baec68cb0c0 100644 (file)
                };
 
                internal-regs {
-                       pinctrl: pin-ctrl@18000 {
-                               compatible = "marvell,mv78260-pinctrl";
-                       };
-
                        gpio0: gpio@18100 {
                                compatible = "marvell,orion-gpio";
                                reg = <0x18100 0x40>;
                };
        };
 };
+
+&pinctrl {
+       compatible = "marvell,mv78260-pinctrl";
+};
index 8b4ab0a5d6202b287166c431628d51649b41b0e8..9c40c130d11ad3589442d518632b3c22be1255cd 100644 (file)
                };
 
                internal-regs {
-                       pinctrl: pin-ctrl@18000 {
-                               compatible = "marvell,mv78460-pinctrl";
-                       };
-
                        gpio0: gpio@18100 {
                                compatible = "marvell,orion-gpio";
                                reg = <0x18100 0x40>;
                };
        };
 };
+
+&pinctrl {
+       compatible = "marvell,mv78460-pinctrl";
+};
index e7949f482529dfff0374afcaf17b8073c8b5c558..d81430aa4ab32701fcdeb6982312c5ad65d91d8f 100644 (file)
                };
 
                internal-regs {
-                       pinctrl: pin-ctrl@18000 {
-                               poweroff: poweroff {
-                                       marvell,pins = "mpp42";
-                                       marvell,function = "gpio";
-                               };
-
-                               power_button_pin: power-button-pin {
-                                       marvell,pins = "mpp27";
-                                       marvell,function = "gpio";
-                               };
-
-                               reset_button_pin: reset-button-pin {
-                                       marvell,pins = "mpp41";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata1_led_pin: sata1-led-pin {
-                                       marvell,pins = "mpp31";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata2_led_pin: sata2-led-pin {
-                                       marvell,pins = "mpp40";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata3_led_pin: sata3-led-pin {
-                                       marvell,pins = "mpp44";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata4_led_pin: sata4-led-pin {
-                                       marvell,pins = "mpp47";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata1_power_pin: sata1-power-pin {
-                                       marvell,pins = "mpp24";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata2_power_pin: sata2-power-pin {
-                                       marvell,pins = "mpp25";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata3_power_pin: sata3-power-pin {
-                                       marvell,pins = "mpp26";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata4_power_pin: sata4-power-pin {
-                                       marvell,pins = "mpp28";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata1_pres_pin: sata1-pres-pin {
-                                       marvell,pins = "mpp32";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata2_pres_pin: sata2-pres-pin {
-                                       marvell,pins = "mpp33";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata3_pres_pin: sata3-pres-pin {
-                                       marvell,pins = "mpp34";
-                                       marvell,function = "gpio";
-                               };
-
-                               sata4_pres_pin: sata4-pres-pin {
-                                       marvell,pins = "mpp35";
-                                       marvell,function = "gpio";
-                               };
-
-                               err_led_pin: err-led-pin {
-                                       marvell,pins = "mpp45";
-                                       marvell,function = "gpio";
-                               };
-                       };
-
                        /* Two rear eSATA ports */
                        sata@a0000 {
                                nr-ports = <2>;
                gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
        };
 };
+
+&pinctrl {
+       poweroff: poweroff {
+               marvell,pins = "mpp42";
+               marvell,function = "gpio";
+       };
+
+       power_button_pin: power-button-pin {
+               marvell,pins = "mpp27";
+               marvell,function = "gpio";
+       };
+
+       reset_button_pin: reset-button-pin {
+               marvell,pins = "mpp41";
+               marvell,function = "gpio";
+       };
+
+       sata1_led_pin: sata1-led-pin {
+               marvell,pins = "mpp31";
+               marvell,function = "gpio";
+       };
+
+       sata2_led_pin: sata2-led-pin {
+               marvell,pins = "mpp40";
+               marvell,function = "gpio";
+       };
+
+       sata3_led_pin: sata3-led-pin {
+               marvell,pins = "mpp44";
+               marvell,function = "gpio";
+       };
+
+       sata4_led_pin: sata4-led-pin {
+               marvell,pins = "mpp47";
+               marvell,function = "gpio";
+       };
+
+       sata1_power_pin: sata1-power-pin {
+               marvell,pins = "mpp24";
+               marvell,function = "gpio";
+       };
+
+       sata2_power_pin: sata2-power-pin {
+               marvell,pins = "mpp25";
+               marvell,function = "gpio";
+       };
+
+       sata3_power_pin: sata3-power-pin {
+               marvell,pins = "mpp26";
+               marvell,function = "gpio";
+       };
+
+       sata4_power_pin: sata4-power-pin {
+               marvell,pins = "mpp28";
+               marvell,function = "gpio";
+       };
+
+       sata1_pres_pin: sata1-pres-pin {
+               marvell,pins = "mpp32";
+               marvell,function = "gpio";
+       };
+
+       sata2_pres_pin: sata2-pres-pin {
+               marvell,pins = "mpp33";
+               marvell,function = "gpio";
+       };
+
+       sata3_pres_pin: sata3-pres-pin {
+               marvell,pins = "mpp34";
+               marvell,function = "gpio";
+       };
+
+       sata4_pres_pin: sata4-pres-pin {
+               marvell,pins = "mpp35";
+               marvell,function = "gpio";
+       };
+
+       err_led_pin: err-led-pin {
+               marvell,pins = "mpp45";
+               marvell,function = "gpio";
+       };
+};
index 394f085751be9ada275e1cb50b657e057e0ce183..6f6b0916df4874c8d626e3ac46a810e936878960 100644 (file)
                        serial@12100 {
                                status = "okay";
                        };
-                       pinctrl: pin-ctrl@18000 {
-                               led_pins: led-pins-0 {
-                                       marvell,pins = "mpp49", "mpp51", "mpp53";
-                                       marvell,function = "gpio";
-                               };
-                       };
+
                        leds {
                                compatible = "gpio-leds";
                                pinctrl-names = "default";
                };
        };
 };
+
+&pinctrl {
+       led_pins: led-pins-0 {
+               marvell,pins = "mpp49", "mpp51", "mpp53";
+               marvell,function = "gpio";
+       };
+};