aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-05-24 05:44:57 -0400
committerJason Cooper <jason@lakedaemon.net>2013-05-27 11:34:41 -0400
commita24ac20db33d21ccadfd17ddfd3c19f7d8e7df98 (patch)
treef700f83440b13a5fcc700d6f2b979100321a0aea /arch/arm
parenta4936cfa5dcd4ef9b40857ac415bb83865dc4225 (diff)
arm: kirkwood: openblocks-a6: group pinmux configurations
Instead of having one separate pinmux configuration for each LED, for each GPIO of the GPIO header, for each DIP switch, this patch groups them together in configurations that make sense together: LEDs on one side, GPIOs of the GPIO header on another side, and DIP switches on yet another side. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Atsushi Yamagata <yamagata@plathome.co.jp> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/kirkwood-openblocks_a6.dts82
1 files changed, 9 insertions, 73 deletions
diff --git a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
index a05b38297c51..56e3161c568e 100644
--- a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
+++ b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
@@ -83,12 +83,7 @@
83 }; 83 };
84 84
85 pinctrl: pinctrl@10000 { 85 pinctrl: pinctrl@10000 {
86 pinctrl-0 = <&pmx_dip_sw0 &pmx_dip_sw1 86 pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>;
87 &pmx_dip_sw2 &pmx_dip_sw3
88 &pmx_gpio_0 &pmx_gpio_1
89 &pmx_gpio_2 &pmx_gpio_3
90 &pmx_gpio_4 &pmx_gpio_5
91 &pmx_gpio_6 &pmx_gpio_7>;
92 pinctrl-names = "default"; 87 pinctrl-names = "default";
93 88
94 pmx_uart0: pmx-uart0 { 89 pmx_uart0: pmx-uart0 {
@@ -108,63 +103,14 @@
108 marvell,function = "sysrst"; 103 marvell,function = "sysrst";
109 }; 104 };
110 105
111 pmx_dip_sw0: pmx-dip-sw0 { 106 pmx_dip_switches: pmx-dip-switches {
112 marvell,pins = "mpp20"; 107 marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23";
113 marvell,function = "gpio"; 108 marvell,function = "gpio";
114 }; 109 };
115 110
116 pmx_dip_sw1: pmx-dip-sw1 { 111 pmx_gpio_header: pmx-gpio-header {
117 marvell,pins = "mpp21"; 112 marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27",
118 marvell,function = "gpio"; 113 "mpp28", "mpp29", "mpp30", "mpp31";
119 };
120
121 pmx_dip_sw2: pmx-dip-sw2 {
122 marvell,pins = "mpp22";
123 marvell,function = "gpio";
124 };
125
126 pmx_dip_sw3: pmx-dip-sw3 {
127 marvell,pins = "mpp23";
128 marvell,function = "gpio";
129 };
130
131 pmx_gpio_0: pmx-gpio-0 {
132 marvell,pins = "mpp24";
133 marvell,function = "gpio";
134 };
135
136 pmx_gpio_1: pmx-gpio-1 {
137 marvell,pins = "mpp25";
138 marvell,function = "gpio";
139 };
140
141 pmx_gpio_2: pmx-gpio-2 {
142 marvell,pins = "mpp26";
143 marvell,function = "gpio";
144 };
145
146 pmx_gpio_3: pmx-gpio-3 {
147 marvell,pins = "mpp27";
148 marvell,function = "gpio";
149 };
150
151 pmx_gpio_4: pmx-gpio-4 {
152 marvell,pins = "mpp28";
153 marvell,function = "gpio";
154 };
155
156 pmx_gpio_5: pmx-gpio-5 {
157 marvell,pins = "mpp29";
158 marvell,function = "gpio";
159 };
160
161 pmx_gpio_6: pmx-gpio-6 {
162 marvell,pins = "mpp30";
163 marvell,function = "gpio";
164 };
165
166 pmx_gpio_7: pmx-gpio-7 {
167 marvell,pins = "mpp31";
168 marvell,function = "gpio"; 114 marvell,function = "gpio";
169 }; 115 };
170 116
@@ -178,18 +124,8 @@
178 marvell,function = "gpio"; 124 marvell,function = "gpio";
179 }; 125 };
180 126
181 pmx_led_red: pmx-led-red { 127 pmx_leds: pmx-leds {
182 marvell,pins = "mpp41"; 128 marvell,pins = "mpp41", "mpp42", "mpp43";
183 marvell,function = "gpio";
184 };
185
186 pmx_led_green: pmx-led-green {
187 marvell,pins = "mpp42";
188 marvell,function = "gpio";
189 };
190
191 pmx_led_yellow: pmx-led-yellow {
192 marvell,pins = "mpp43";
193 marvell,function = "gpio"; 129 marvell,function = "gpio";
194 }; 130 };
195 }; 131 };
@@ -197,7 +133,7 @@
197 133
198 gpio-leds { 134 gpio-leds {
199 compatible = "gpio-leds"; 135 compatible = "gpio-leds";
200 pinctrl-0 = <&pmx_led_red &pmx_led_green &pmx_led_yellow>; 136 pinctrl-0 = <&pmx_leds>;
201 pinctrl-names = "default"; 137 pinctrl-names = "default";
202 138
203 led-red { 139 led-red {