diff options
Diffstat (limited to 'arch/arm/boot/dts/imx28-cfa10049.dts')
-rw-r--r-- | arch/arm/boot/dts/imx28-cfa10049.dts | 214 |
1 files changed, 183 insertions, 31 deletions
diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts index bdc80a4453dd..a0d3e9f1738e 100644 --- a/arch/arm/boot/dts/imx28-cfa10049.dts +++ b/arch/arm/boot/dts/imx28-cfa10049.dts | |||
@@ -23,69 +23,120 @@ | |||
23 | apbh@80000000 { | 23 | apbh@80000000 { |
24 | pinctrl@80018000 { | 24 | pinctrl@80018000 { |
25 | pinctrl-names = "default", "default"; | 25 | pinctrl-names = "default", "default"; |
26 | pinctrl-1 = <&hog_pins_cfa10049>; | 26 | pinctrl-1 = <&hog_pins_cfa10049 |
27 | &hog_pins_cfa10049_pullup>; | ||
27 | 28 | ||
28 | hog_pins_cfa10049: hog-10049@0 { | 29 | hog_pins_cfa10049: hog-10049@0 { |
29 | reg = <0>; | 30 | reg = <0>; |
30 | fsl,pinmux-ids = < | 31 | fsl,pinmux-ids = < |
31 | 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */ | 32 | 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */ |
33 | 0x1153 /* MX28_PAD_LCD_D22__GPIO_1_21 */ | ||
32 | 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */ | 34 | 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */ |
33 | 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */ | 35 | 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */ |
34 | 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */ | 36 | 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */ |
37 | 0x3173 /* MX28_PAD_LCD_RESET__GPIO_3_23 */ | ||
35 | >; | 38 | >; |
36 | fsl,drive-strength = <0>; | 39 | fsl,drive-strength = <0>; |
37 | fsl,voltage = <1>; | 40 | fsl,voltage = <1>; |
38 | fsl,pull-up = <0>; | 41 | fsl,pull-up = <0>; |
39 | }; | 42 | }; |
40 | 43 | ||
41 | spi3_pins_cfa10049: spi3-cfa10049@0 { | 44 | hog_pins_cfa10049_pullup: hog-10049-pullup@0 { |
42 | reg = <0>; | 45 | reg = <0>; |
43 | fsl,pinmux-ids = < | 46 | fsl,pinmux-ids = < |
44 | 0x0181 /* MX28_PAD_GPMI_RDN__SSP3_SCK */ | 47 | 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */ |
45 | 0x01c1 /* MX28_PAD_GPMI_RESETN__SSP3_CMD */ | 48 | 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */ |
46 | 0x0111 /* MX28_PAD_GPMI_CE1N__SSP3_D3 */ | 49 | 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */ |
47 | 0x01a2 /* MX28_PAD_GPMI_ALE__SSP3_D4 */ | 50 | 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */ |
48 | 0x01b2 /* MX28_PAD_GPMI_CLE__SSP3_D5 */ | 51 | 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */ |
49 | >; | 52 | >; |
50 | fsl,drive-strength = <1>; | 53 | fsl,drive-strength = <0>; |
51 | fsl,voltage = <1>; | 54 | fsl,voltage = <1>; |
52 | fsl,pull-up = <1>; | 55 | fsl,pull-up = <1>; |
53 | }; | 56 | }; |
54 | }; | ||
55 | 57 | ||
56 | ssp3: ssp@80016000 { | 58 | spi2_pins_cfa10049: spi2-cfa10049@0 { |
57 | compatible = "fsl,imx28-spi"; | 59 | reg = <0>; |
58 | pinctrl-names = "default"; | 60 | fsl,pinmux-ids = < |
59 | pinctrl-0 = <&spi3_pins_cfa10049>; | 61 | 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */ |
60 | status = "okay"; | 62 | 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */ |
63 | 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */ | ||
64 | >; | ||
65 | fsl,drive-strength = <1>; | ||
66 | fsl,voltage = <1>; | ||
67 | fsl,pull-up = <1>; | ||
68 | }; | ||
61 | 69 | ||
62 | gpio5: gpio5@0 { | 70 | spi3_pins_cfa10049: spi3-cfa10049@0 { |
63 | compatible = "fairchild,74hc595"; | ||
64 | gpio-controller; | ||
65 | #gpio-cells = <2>; | ||
66 | reg = <0>; | 71 | reg = <0>; |
67 | registers-number = <2>; | 72 | fsl,pinmux-ids = < |
68 | spi-max-frequency = <100000>; | 73 | 0x0183 /* MX28_PAD_GPMI_RDN__GPIO_0_24 */ |
74 | 0x01c3 /* MX28_PAD_GPMI_RESETN__GPIO_0_28 */ | ||
75 | 0x0113 /* MX28_PAD_GPMI_CE1N__GPIO_0_17 */ | ||
76 | 0x01a3 /* MX28_PAD_GPMI_ALE__GPIO_0_26 */ | ||
77 | 0x01b3 /* MX28_PAD_GPMI_CLE__GPIO_0_27 */ | ||
78 | >; | ||
79 | fsl,drive-strength = <1>; | ||
80 | fsl,voltage = <1>; | ||
81 | fsl,pull-up = <1>; | ||
69 | }; | 82 | }; |
70 | 83 | ||
71 | gpio6: gpio6@1 { | 84 | lcdif_18bit_pins_cfa10049: lcdif-18bit@0 { |
72 | compatible = "fairchild,74hc595"; | 85 | reg = <0>; |
73 | gpio-controller; | 86 | fsl,pinmux-ids = < |
74 | #gpio-cells = <2>; | 87 | 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */ |
75 | reg = <1>; | 88 | 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */ |
76 | registers-number = <4>; | 89 | 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */ |
77 | spi-max-frequency = <100000>; | 90 | 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */ |
91 | 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */ | ||
92 | 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */ | ||
93 | 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */ | ||
94 | 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */ | ||
95 | 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */ | ||
96 | 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */ | ||
97 | 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */ | ||
98 | 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */ | ||
99 | 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */ | ||
100 | 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */ | ||
101 | 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */ | ||
102 | 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */ | ||
103 | 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */ | ||
104 | 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */ | ||
105 | >; | ||
106 | fsl,drive-strength = <0>; | ||
107 | fsl,voltage = <1>; | ||
108 | fsl,pull-up = <0>; | ||
78 | }; | 109 | }; |
79 | 110 | ||
80 | dac0: dh2228@2 { | 111 | lcdif_pins_cfa10049: lcdif-evk@0 { |
81 | compatible = "rohm,dh2228fv"; | 112 | reg = <0>; |
82 | reg = <2>; | 113 | fsl,pinmux-ids = < |
83 | spi-max-frequency = <100000>; | 114 | 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */ |
115 | 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */ | ||
116 | 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */ | ||
117 | 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */ | ||
118 | >; | ||
119 | fsl,drive-strength = <0>; | ||
120 | fsl,voltage = <1>; | ||
121 | fsl,pull-up = <0>; | ||
84 | }; | 122 | }; |
85 | }; | 123 | }; |
124 | |||
125 | lcdif@80030000 { | ||
126 | pinctrl-names = "default"; | ||
127 | pinctrl-0 = <&lcdif_18bit_pins_cfa10049 | ||
128 | &lcdif_pins_cfa10049>; | ||
129 | status = "okay"; | ||
130 | }; | ||
86 | }; | 131 | }; |
87 | 132 | ||
88 | apbx@80040000 { | 133 | apbx@80040000 { |
134 | pwm: pwm@80064000 { | ||
135 | pinctrl-names = "default", "default"; | ||
136 | pinctrl-1 = <&pwm3_pins_b>; | ||
137 | status = "okay"; | ||
138 | }; | ||
139 | |||
89 | i2c1: i2c@8005a000 { | 140 | i2c1: i2c@8005a000 { |
90 | pinctrl-names = "default"; | 141 | pinctrl-names = "default"; |
91 | pinctrl-0 = <&i2c1_pins_a>; | 142 | pinctrl-0 = <&i2c1_pins_a>; |
@@ -113,6 +164,19 @@ | |||
113 | 164 | ||
114 | i2c@3 { | 165 | i2c@3 { |
115 | reg = <3>; | 166 | reg = <3>; |
167 | #address-cells = <1>; | ||
168 | #size-cells = <0>; | ||
169 | |||
170 | pca9555: pca9555@20 { | ||
171 | compatible = "nxp,pca9555"; | ||
172 | interrupt-parent = <&gpio2>; | ||
173 | interrupts = <19 0x2>; | ||
174 | gpio-controller; | ||
175 | #gpio-cells = <2>; | ||
176 | interrupt-controller; | ||
177 | #interrupt-cells = <2>; | ||
178 | reg = <0x20>; | ||
179 | }; | ||
116 | }; | 180 | }; |
117 | }; | 181 | }; |
118 | 182 | ||
@@ -153,4 +217,92 @@ | |||
153 | status = "okay"; | 217 | status = "okay"; |
154 | }; | 218 | }; |
155 | }; | 219 | }; |
220 | |||
221 | spi2 { | ||
222 | compatible = "spi-gpio"; | ||
223 | pinctrl-names = "default"; | ||
224 | pinctrl-0 = <&spi2_pins_cfa10049>; | ||
225 | status = "okay"; | ||
226 | gpio-sck = <&gpio2 16 0>; | ||
227 | gpio-mosi = <&gpio2 17 0>; | ||
228 | gpio-miso = <&gpio2 18 0>; | ||
229 | cs-gpios = <&gpio3 23 0>; | ||
230 | num-chipselects = <1>; | ||
231 | #address-cells = <1>; | ||
232 | #size-cells = <0>; | ||
233 | |||
234 | hx8357: hx8357@0 { | ||
235 | compatible = "himax,hx8357b", "himax,hx8357"; | ||
236 | reg = <0>; | ||
237 | spi-max-frequency = <100000>; | ||
238 | spi-cpol; | ||
239 | spi-cpha; | ||
240 | gpios-reset = <&gpio3 30 0>; | ||
241 | im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>; | ||
242 | }; | ||
243 | }; | ||
244 | |||
245 | spi3 { | ||
246 | compatible = "spi-gpio"; | ||
247 | pinctrl-names = "default"; | ||
248 | pinctrl-0 = <&spi3_pins_cfa10049>; | ||
249 | status = "okay"; | ||
250 | gpio-sck = <&gpio0 24 0>; | ||
251 | gpio-mosi = <&gpio0 28 0>; | ||
252 | cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>; | ||
253 | num-chipselects = <3>; | ||
254 | #address-cells = <1>; | ||
255 | #size-cells = <0>; | ||
256 | |||
257 | gpio5: gpio5@0 { | ||
258 | compatible = "fairchild,74hc595"; | ||
259 | gpio-controller; | ||
260 | #gpio-cells = <2>; | ||
261 | reg = <0>; | ||
262 | registers-number = <2>; | ||
263 | spi-max-frequency = <100000>; | ||
264 | }; | ||
265 | |||
266 | gpio6: gpio6@1 { | ||
267 | compatible = "fairchild,74hc595"; | ||
268 | gpio-controller; | ||
269 | #gpio-cells = <2>; | ||
270 | reg = <1>; | ||
271 | registers-number = <4>; | ||
272 | spi-max-frequency = <100000>; | ||
273 | }; | ||
274 | |||
275 | dac0: dh2228@2 { | ||
276 | compatible = "rohm,dh2228fv"; | ||
277 | reg = <2>; | ||
278 | spi-max-frequency = <100000>; | ||
279 | }; | ||
280 | }; | ||
281 | |||
282 | gpio_keys { | ||
283 | compatible = "gpio-keys"; | ||
284 | #address-cells = <1>; | ||
285 | #size-cells = <0>; | ||
286 | |||
287 | rotary_button { | ||
288 | label = "rotary_button"; | ||
289 | gpios = <&gpio3 26 1>; | ||
290 | debounce-interval = <10>; | ||
291 | linux,code = <28>; | ||
292 | }; | ||
293 | }; | ||
294 | |||
295 | rotary { | ||
296 | compatible = "rotary-encoder"; | ||
297 | gpios = <&gpio3 24 1>, <&gpio3 25 1>; | ||
298 | linux,axis = <1>; /* REL_Y */ | ||
299 | rotary-encoder,relative-axis; | ||
300 | }; | ||
301 | |||
302 | backlight { | ||
303 | compatible = "pwm-backlight"; | ||
304 | pwms = <&pwm 3 5000000>; | ||
305 | brightness-levels = <0 4 8 16 32 64 128 255>; | ||
306 | default-brightness-level = <6>; | ||
307 | }; | ||
156 | }; | 308 | }; |