]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
arm: kirkwood: sheevaplug: move pinmux configs to the right devices
authorSimon Baatz <gmbnomis@gmail.com>
Tue, 4 Jun 2013 21:32:32 +0000 (23:32 +0200)
committerJason Cooper <jason@lakedaemon.net>
Wed, 5 Jun 2013 15:01:54 +0000 (15:01 +0000)
When the pinmux mechanism was added in Kirkwood, the device driver
core was not yet providing the possibility of attaching pinmux
configurations to all devices, drivers had to do it explicitly, and
not all drivers were doing this.

Now that the driver core does that in a generic way, it makes sense to
attach the pinmux configuration to their corresponding devices.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi
arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts
arch/arm/boot/dts/kirkwood-sheevaplug.dts

index 9d5947599694f61fd151010877399d2c4de88d02..f7143f128504cbca0a2bbf3d290bb294a3a90209 100644 (file)
                        };
                };
                serial@12000 {
+                       pinctrl-0 = <&pmx_uart0>;
+                       pinctrl-names = "default";
                        status = "okay";
                };
 
                nand@3000000 {
+                       pinctrl-0 = <&pmx_nand>;
+                       pinctrl-names = "default";
                        status = "okay";
 
                        partition@0 {
@@ -71,6 +75,8 @@
                compatible = "simple-bus";
                #address-cells = <1>;
                #size-cells = <0>;
+               pinctrl-0 = <&pmx_usb_power_enable>;
+               pinctrl-names = "default";
 
                usb_power: regulator@1 {
                        compatible = "regulator-fixed";
                        gpio = <&gpio0 29 0>;
                };
        };
-
-       gpio-leds {
-               compatible = "gpio-leds";
-
-               health {
-                       label = "sheevaplug:blue:health";
-                       gpios = <&gpio1 17 1>;
-                       linux,default-trigger = "default-on";
-               };
-       };
 };
index 1c6946a62aa9f334094c8420f7a4dda95b6acafc..f620ce48de97ac1d60ddc2445cd0ae70e785d4c9 100644 (file)
        compatible = "globalscale,sheevaplug-esata-rev13", "globalscale,sheevaplug-esata", "globalscale,sheevaplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
 
        ocp@f1000000 {
-               pinctrl: pinctrl@10000 {
-
-                       pinctrl-0 = < &pmx_nand &pmx_uart0
-                                     &pmx_usb_power_enable
-                                     &pmx_led_blue>;
-                       pinctrl-names = "default";
-
-               };
-
                sata@80000 {
                        status = "okay";
                        nr-ports = <2>;
                        wp-gpios = <&gpio1 15 0>;
                };
        };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+               pinctrl-0 = <&pmx_led_blue>;
+               pinctrl-names = "default";
+
+               health {
+                       label = "sheevaplug:blue:health";
+                       gpios = <&gpio1 17 1>;
+                       linux,default-trigger = "default-on";
+               };
+       };
 };
index f7684066f0ce37e54fbdd8afa17944279986b75c..bf1dff251432767701b322cd85c4ca9e44cfea5b 100644 (file)
        compatible = "globalscale,sheevaplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
 
        ocp@f1000000 {
-               pinctrl: pinctrl@10000 {
-
-                       pinctrl-0 = < &pmx_nand &pmx_uart0
-                                     &pmx_usb_power_enable
-                                     &pmx_led_red
-                                     &pmx_led_blue>;
-                       pinctrl-names = "default";
-
-               };
-
                mvsdio@90000 {
                        pinctrl-0 = <&pmx_sdio>;
                        pinctrl-names = "default";
 
        gpio-leds {
                compatible = "gpio-leds";
+               pinctrl-0 = <&pmx_led_blue &pmx_led_red>;
+               pinctrl-names = "default";
+
+               health {
+                       label = "sheevaplug:blue:health";
+                       gpios = <&gpio1 17 1>;
+                       linux,default-trigger = "default-on";
+               };
 
                misc {
                        label = "sheevaplug:red:misc";