diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2013-07-01 09:23:26 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-08-16 04:26:37 -0400 |
commit | dac63a5f1a818581222aa92afe53f49c1f31b637 (patch) | |
tree | dfd0b32912c6f4a71b058ee4f802999b1af65cfd | |
parent | 4940631643df0e3c04d8e5ec3c7f39e0287b18d6 (diff) |
ARM: mxs: dt: cfa10049: make hogpins grabbed by respective drivers
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/imx28-cfa10049.dts | 73 |
1 files changed, 63 insertions, 10 deletions
diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts index 04b2f769ffbd..06e4cfaf7dd2 100644 --- a/arch/arm/boot/dts/imx28-cfa10049.dts +++ b/arch/arm/boot/dts/imx28-cfa10049.dts | |||
@@ -22,32 +22,62 @@ | |||
22 | apb@80000000 { | 22 | apb@80000000 { |
23 | apbh@80000000 { | 23 | apbh@80000000 { |
24 | pinctrl@80018000 { | 24 | pinctrl@80018000 { |
25 | pinctrl-names = "default", "default"; | 25 | usb_pins_cfa10049: usb-10049@0 { |
26 | pinctrl-1 = <&hog_pins_cfa10049 | ||
27 | &hog_pins_cfa10049_pullup>; | ||
28 | |||
29 | hog_pins_cfa10049: hog-10049@0 { | ||
30 | reg = <0>; | 26 | reg = <0>; |
31 | fsl,pinmux-ids = < | 27 | fsl,pinmux-ids = < |
32 | 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */ | 28 | 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */ |
29 | >; | ||
30 | fsl,drive-strength = <0>; | ||
31 | fsl,voltage = <1>; | ||
32 | fsl,pull-up = <0>; | ||
33 | }; | ||
34 | |||
35 | i2cmux_pins_cfa10049: i2cmux-10049@0 { | ||
36 | reg = <0>; | ||
37 | fsl,pinmux-ids = < | ||
33 | 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */ | 38 | 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */ |
34 | 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */ | 39 | 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */ |
40 | >; | ||
41 | fsl,drive-strength = <0>; | ||
42 | fsl,voltage = <1>; | ||
43 | fsl,pull-up = <0>; | ||
44 | }; | ||
45 | |||
46 | mac0_pins_cfa10049: mac0-10049@0 { | ||
47 | reg = <0>; | ||
48 | fsl,pinmux-ids = < | ||
35 | 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */ | 49 | 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */ |
36 | 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */ | ||
37 | >; | 50 | >; |
38 | fsl,drive-strength = <0>; | 51 | fsl,drive-strength = <0>; |
39 | fsl,voltage = <1>; | 52 | fsl,voltage = <1>; |
40 | fsl,pull-up = <0>; | 53 | fsl,pull-up = <0>; |
41 | }; | 54 | }; |
42 | 55 | ||
43 | hog_pins_cfa10049_pullup: hog-10049-pullup@0 { | 56 | pca_pins_cfa10049: pca-10049@0 { |
44 | reg = <0>; | 57 | reg = <0>; |
45 | fsl,pinmux-ids = < | 58 | fsl,pinmux-ids = < |
46 | 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */ | 59 | 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */ |
60 | >; | ||
61 | fsl,drive-strength = <0>; | ||
62 | fsl,voltage = <1>; | ||
63 | fsl,pull-up = <1>; | ||
64 | }; | ||
65 | |||
66 | rotary_pins_cfa10049: rotary-10049@0 { | ||
67 | reg = <0>; | ||
68 | fsl,pinmux-ids = < | ||
47 | 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */ | 69 | 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */ |
48 | 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */ | 70 | 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */ |
71 | >; | ||
72 | fsl,drive-strength = <0>; | ||
73 | fsl,voltage = <1>; | ||
74 | fsl,pull-up = <1>; | ||
75 | }; | ||
76 | |||
77 | rotary_btn_pins_cfa10049: rotary-btn-10049@0 { | ||
78 | reg = <0>; | ||
79 | fsl,pinmux-ids = < | ||
49 | 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */ | 80 | 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */ |
50 | 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */ | ||
51 | >; | 81 | >; |
52 | fsl,drive-strength = <0>; | 82 | fsl,drive-strength = <0>; |
53 | fsl,voltage = <1>; | 83 | fsl,voltage = <1>; |
@@ -60,6 +90,7 @@ | |||
60 | 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */ | 90 | 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */ |
61 | 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */ | 91 | 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */ |
62 | 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */ | 92 | 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */ |
93 | 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */ | ||
63 | >; | 94 | >; |
64 | fsl,drive-strength = <1>; | 95 | fsl,drive-strength = <1>; |
65 | fsl,voltage = <1>; | 96 | fsl,voltage = <1>; |
@@ -120,6 +151,16 @@ | |||
120 | fsl,pull-up = <0>; | 151 | fsl,pull-up = <0>; |
121 | }; | 152 | }; |
122 | 153 | ||
154 | lcdif_pins_cfa10049_pullup: lcdif-10049-pullup@0 { | ||
155 | reg = <0>; | ||
156 | fsl,pinmux-ids = < | ||
157 | 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */ | ||
158 | >; | ||
159 | fsl,drive-strength = <0>; | ||
160 | fsl,voltage = <1>; | ||
161 | fsl,pull-up = <1>; | ||
162 | }; | ||
163 | |||
123 | w1_gpio_pins: w1-gpio@0 { | 164 | w1_gpio_pins: w1-gpio@0 { |
124 | reg = <0>; | 165 | reg = <0>; |
125 | fsl,pinmux-ids = < | 166 | fsl,pinmux-ids = < |
@@ -134,7 +175,8 @@ | |||
134 | lcdif@80030000 { | 175 | lcdif@80030000 { |
135 | pinctrl-names = "default"; | 176 | pinctrl-names = "default"; |
136 | pinctrl-0 = <&lcdif_18bit_pins_cfa10049 | 177 | pinctrl-0 = <&lcdif_18bit_pins_cfa10049 |
137 | &lcdif_pins_cfa10049>; | 178 | &lcdif_pins_cfa10049 |
179 | &lcdif_pins_cfa10049_pullup>; | ||
138 | display = <&display>; | 180 | display = <&display>; |
139 | status = "okay"; | 181 | status = "okay"; |
140 | 182 | ||
@@ -181,6 +223,8 @@ | |||
181 | compatible = "i2c-mux-gpio"; | 223 | compatible = "i2c-mux-gpio"; |
182 | #address-cells = <1>; | 224 | #address-cells = <1>; |
183 | #size-cells = <0>; | 225 | #size-cells = <0>; |
226 | pinctrl-names = "default"; | ||
227 | pinctrl-0 = <&i2cmux_pins_cfa10049>; | ||
184 | mux-gpios = <&gpio1 22 0 &gpio1 23 0>; | 228 | mux-gpios = <&gpio1 22 0 &gpio1 23 0>; |
185 | i2c-parent = <&i2c1>; | 229 | i2c-parent = <&i2c1>; |
186 | 230 | ||
@@ -203,6 +247,8 @@ | |||
203 | 247 | ||
204 | pca9555: pca9555@20 { | 248 | pca9555: pca9555@20 { |
205 | compatible = "nxp,pca9555"; | 249 | compatible = "nxp,pca9555"; |
250 | pinctrl-names = "default"; | ||
251 | pinctrl-0 = <&pca_pins_cfa10049>; | ||
206 | interrupt-parent = <&gpio2>; | 252 | interrupt-parent = <&gpio2>; |
207 | interrupts = <19 0x2>; | 253 | interrupts = <19 0x2>; |
208 | gpio-controller; | 254 | gpio-controller; |
@@ -239,6 +285,8 @@ | |||
239 | 285 | ||
240 | reg_usb1_vbus: usb1_vbus { | 286 | reg_usb1_vbus: usb1_vbus { |
241 | compatible = "regulator-fixed"; | 287 | compatible = "regulator-fixed"; |
288 | pinctrl-names = "default"; | ||
289 | pinctrl-0 = <&usb_pins_cfa10049>; | ||
242 | regulator-name = "usb1_vbus"; | 290 | regulator-name = "usb1_vbus"; |
243 | regulator-min-microvolt = <5000000>; | 291 | regulator-min-microvolt = <5000000>; |
244 | regulator-max-microvolt = <5000000>; | 292 | regulator-max-microvolt = <5000000>; |
@@ -250,7 +298,8 @@ | |||
250 | mac0: ethernet@800f0000 { | 298 | mac0: ethernet@800f0000 { |
251 | phy-mode = "rmii"; | 299 | phy-mode = "rmii"; |
252 | pinctrl-names = "default"; | 300 | pinctrl-names = "default"; |
253 | pinctrl-0 = <&mac0_pins_a>; | 301 | pinctrl-0 = <&mac0_pins_a |
302 | &mac0_pins_cfa10049>; | ||
254 | phy-reset-gpios = <&gpio2 21 0>; | 303 | phy-reset-gpios = <&gpio2 21 0>; |
255 | phy-reset-duration = <100>; | 304 | phy-reset-duration = <100>; |
256 | status = "okay"; | 305 | status = "okay"; |
@@ -320,6 +369,8 @@ | |||
320 | 369 | ||
321 | gpio_keys { | 370 | gpio_keys { |
322 | compatible = "gpio-keys"; | 371 | compatible = "gpio-keys"; |
372 | pinctrl-names = "default"; | ||
373 | pinctrl-0 = <&rotary_btn_pins_cfa10049>; | ||
323 | #address-cells = <1>; | 374 | #address-cells = <1>; |
324 | #size-cells = <0>; | 375 | #size-cells = <0>; |
325 | 376 | ||
@@ -333,6 +384,8 @@ | |||
333 | 384 | ||
334 | rotary { | 385 | rotary { |
335 | compatible = "rotary-encoder"; | 386 | compatible = "rotary-encoder"; |
387 | pinctrl-names = "default"; | ||
388 | pinctrl-0 = <&rotary_pins_cfa10049>; | ||
336 | gpios = <&gpio3 24 1>, <&gpio3 25 1>; | 389 | gpios = <&gpio3 24 1>, <&gpio3 25 1>; |
337 | linux,axis = <1>; /* REL_Y */ | 390 | linux,axis = <1>; /* REL_Y */ |
338 | rotary-encoder,relative-axis; | 391 | rotary-encoder,relative-axis; |