pinctrl: abx500: force-convert to generic config bindings
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Sep 2014 10:19:40 +0000 (12:19 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Oct 2014 07:08:26 +0000 (09:08 +0200)
This converts the ABx500 pin controller and all associated device
trees to use the standard, generic config bindings for pin controllers.
There are no such device trees deployed in the wild so this is
safe to do to set a good example.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-href-ab8500.dtsi
arch/arm/boot/dts/ste-href-ab8505.dtsi
drivers/pinctrl/nomadik/pinctrl-abx500.c

index 8be3c471d097b79a4d580c64526bdc796f87f3e4..9b69bce9297d9dd075164896c875af37b9ab70e4 100644 (file)
@@ -51,7 +51,7 @@
                                                                groups = "gpio2_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO2_T9";
+                                                               pins = "GPIO2_T9";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
@@ -64,7 +64,7 @@
                                                                groups = "gpio4_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO4_W2";
+                                                               pins = "GPIO4_W2";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
@@ -77,7 +77,7 @@
                                                                groups = "gpio10_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO10_U17";
+                                                               pins = "GPIO10_U17";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
@@ -90,7 +90,7 @@
                                                                groups = "gpio11_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO11_AA18";
+                                                               pins = "GPIO11_AA18";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio12_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO12_U16";
+                                                               pins = "GPIO12_U16";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio13_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO13_W17";
+                                                               pins = "GPIO13_W17";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio16_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO16_F15";
+                                                               pins = "GPIO16_F15";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio24_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO24_T14";
+                                                               pins = "GPIO24_T14";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio25_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO25_R16";
+                                                               pins = "GPIO25_R16";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio36_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO36_A17";
+                                                               pins = "GPIO36_A17";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio37_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO37_E15";
+                                                               pins = "GPIO37_E15";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio38_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO38_C17";
+                                                               pins = "GPIO38_C17";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio39_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO39_E16";
+                                                               pins = "GPIO39_E16";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio42_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO42_U2";
+                                                               pins = "GPIO42_U2";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio26_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO26_M16";
+                                                               pins = "GPIO26_M16";
                                                                output-low;
                                                        };
                                                };
                                                                groups = "gpio35_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO35_W15";
+                                                               pins = "GPIO35_W15";
                                                                output-low;
                                                        };
                                                };
                                                                groups = "ycbcr0123_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO6_Y18",
+                                                               pins = "GPIO6_Y18",
                                                                         "GPIO7_AA20",
                                                                         "GPIO8_W18",
                                                                         "GPIO9_AA19";
                                                                groups = "pwmout1_d_1", "pwmout2_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO14_F14",
+                                                               pins = "GPIO14_F14",
                                                                         "GPIO15_B17";
                                                                input-enable;
                                                                bias-pull-down;
                                                                groups = "adi1_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO17_P5",
+                                                               pins = "GPIO17_P5",
                                                                         "GPIO18_R5",
                                                                         "GPIO19_U5",
                                                                         "GPIO20_T5";
                                                                groups = "usbuicc_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO21_H19",
+                                                               pins = "GPIO21_H19",
                                                                         "GPIO22_G20",
                                                                         "GPIO23_G19";
                                                                input-enable;
                                                                         "dmic56_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO27_J6",
+                                                               pins = "GPIO27_J6",
                                                                         "GPIO28_K6",
                                                                         "GPIO29_G6",
                                                                         "GPIO30_H6",
                                                                groups = "extcpena_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO34_R17";
+                                                               pins = "GPIO34_R17";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "modsclsda_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO40_T19",
+                                                               pins = "GPIO40_T19",
                                                                        "GPIO41_U19";
                                                                input-enable;
                                                                bias-pull-down;
                                                                groups = "sysclkreq2_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO1_T10";
+                                                               pins = "GPIO1_T10";
                                                                input-enable;
                                                                bias-disable;
                                                        };
                                                                groups = "gpio1_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO1_T10";
+                                                               pins = "GPIO1_T10";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "sysclkreq4_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO3_U9";
+                                                               pins = "GPIO3_U9";
                                                                input-enable;
                                                                bias-disable;
                                                        };
                                                                groups = "gpio3_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO3_U9";
+                                                               pins = "GPIO3_U9";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
index 112053c7aa51007faa8d915c05376ffb3002e794..ccf37a9df050607cd87b2cca0bd85088d8fcd668 100644 (file)
@@ -39,7 +39,7 @@
                                                                groups = "gpio2_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO2_R5";
+                                                               pins = "GPIO2_R5";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
@@ -52,7 +52,7 @@
                                                                groups = "gpio10_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO10_B16";
+                                                               pins = "GPIO10_B16";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
@@ -65,7 +65,7 @@
                                                                groups = "gpio11_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO11_B17";
+                                                               pins = "GPIO11_B17";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
@@ -78,7 +78,7 @@
                                                                groups = "gpio13_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO13_D17";
+                                                               pins = "GPIO13_D17";
                                                                input-enable;
                                                                bias-disable;
                                                        };
@@ -91,7 +91,7 @@
                                                                groups = "gpio34_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO34_H14";
+                                                               pins = "GPIO34_H14";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "gpio50_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO50_L4";
+                                                               pins = "GPIO50_L4";
                                                                input-enable;
                                                                bias-disable;
                                                        };
                                                                groups = "pwmout1_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO14_C16";
+                                                               pins = "GPIO14_C16";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "adi2_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO17_P2",
+                                                               pins = "GPIO17_P2",
                                                                         "GPIO18_N3",
                                                                         "GPIO19_T1",
                                                                         "GPIO20_P3";
                                                                groups = "modsclsda_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO40_J15",
+                                                               pins = "GPIO40_J15",
                                                                        "GPIO41_J14";
                                                                input-enable;
                                                                bias-pull-down;
                                                                groups = "resethw_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO52_D16";
+                                                               pins = "GPIO52_D16";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "service_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO53_D15";
+                                                               pins = "GPIO53_D15";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "sysclkreq2_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO1_N4";
+                                                               pins = "GPIO1_N4";
                                                                input-enable;
                                                                bias-disable;
                                                        };
                                                                groups = "gpio1_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO1_N4";
+                                                               pins = "GPIO1_N4";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
                                                                groups = "sysclkreq4_d_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO3_P5";
+                                                               pins = "GPIO3_P5";
                                                                input-enable;
                                                                bias-disable;
                                                        };
                                                                groups = "gpio3_a_1";
                                                        };
                                                        default_cfg {
-                                                               ste,pins = "GPIO3_P5";
+                                                               pins = "GPIO3_P5";
                                                                input-enable;
                                                                bias-pull-down;
                                                        };
index d0c0454dce0d268d16d190f9bb0d07f46850301b..7130cd668c96a4c9c08cdee9e794565ee9c53a17 100644 (file)
@@ -931,7 +931,7 @@ static int abx500_dt_subnode_to_map(struct pinctrl_dev *pctldev,
                const char *gpio_name;
                const char *pin;
 
-               ret = of_property_count_strings(np, "ste,pins");
+               ret = of_property_count_strings(np, "pins");
                if (ret < 0)
                        goto exit;
 
@@ -941,7 +941,7 @@ static int abx500_dt_subnode_to_map(struct pinctrl_dev *pctldev,
                if (ret < 0)
                        goto exit;
 
-               of_property_for_each_string(np, "ste,pins", prop, pin) {
+               of_property_for_each_string(np, "pins", prop, pin) {
                        gpio_name = abx500_find_pin_name(pctldev, pin);
 
                        ret = abx500_dt_add_map_configs(map, reserved_maps,