Commit | Line | Data |
---|---|---|
414b4153 GGM |
1 | /* |
2 | * Copyright 2012 Armadeus Systems - <support@armadeus.com> | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | */ | |
11 | ||
12 | /* APF28Dev is a docking board for the APF28 SOM */ | |
bc3875f1 | 13 | #include "imx28-apf28.dts" |
414b4153 GGM |
14 | |
15 | / { | |
16 | model = "Armadeus Systems APF28Dev docking/development board"; | |
17 | compatible = "armadeus,imx28-apf28dev", "armadeus,imx28-apf28", "fsl,imx28"; | |
18 | ||
19 | apb@80000000 { | |
20 | apbh@80000000 { | |
21 | ssp0: ssp@80010000 { | |
22 | compatible = "fsl,imx28-mmc"; | |
23 | pinctrl-names = "default"; | |
24 | pinctrl-0 = <&mmc0_4bit_pins_a | |
25 | &mmc0_cd_cfg &mmc0_sck_cfg>; | |
26 | bus-width = <4>; | |
27 | status = "okay"; | |
28 | }; | |
24acd6bf | 29 | |
ac8e44ce GGM |
30 | ssp2: ssp@80014000 { |
31 | compatible = "fsl,imx28-spi"; | |
32 | pinctrl-names = "default"; | |
33 | pinctrl-0 = <&spi2_pins_a>; | |
34 | status = "okay"; | |
35 | }; | |
36 | ||
24acd6bf GGM |
37 | pinctrl@80018000 { |
38 | pinctrl-names = "default"; | |
39 | pinctrl-0 = <&hog_pins_apf28dev>; | |
40 | ||
41 | hog_pins_apf28dev: hog@0 { | |
42 | reg = <0>; | |
43 | fsl,pinmux-ids = < | |
bc3875f1 LW |
44 | MX28_PAD_LCD_D16__GPIO_1_16 |
45 | MX28_PAD_LCD_D17__GPIO_1_17 | |
46 | MX28_PAD_LCD_D18__GPIO_1_18 | |
47 | MX28_PAD_LCD_D19__GPIO_1_19 | |
48 | MX28_PAD_LCD_D20__GPIO_1_20 | |
49 | MX28_PAD_LCD_D21__GPIO_1_21 | |
50 | MX28_PAD_LCD_D22__GPIO_1_22 | |
625df5bd | 51 | MX28_PAD_GPMI_CE1N__GPIO_0_17 |
24acd6bf | 52 | >; |
4191c340 LW |
53 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
54 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
55 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
24acd6bf | 56 | }; |
a4dabca8 GGM |
57 | |
58 | lcdif_pins_apf28dev: lcdif-apf28dev@0 { | |
59 | reg = <0>; | |
60 | fsl,pinmux-ids = < | |
bc3875f1 LW |
61 | MX28_PAD_LCD_RD_E__LCD_VSYNC |
62 | MX28_PAD_LCD_WR_RWN__LCD_HSYNC | |
63 | MX28_PAD_LCD_RS__LCD_DOTCLK | |
64 | MX28_PAD_LCD_CS__LCD_ENABLE | |
a4dabca8 | 65 | >; |
4191c340 LW |
66 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
67 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
68 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
a4dabca8 | 69 | }; |
2ba4d1ca GGM |
70 | |
71 | usb0_otg_apf28dev: otg-apf28dev@0 { | |
72 | reg = <0>; | |
73 | fsl,pinmux-ids = < | |
74 | MX28_PAD_LCD_D23__GPIO_1_23 | |
75 | >; | |
76 | fsl,drive-strength = <MXS_DRIVE_4mA>; | |
77 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
78 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
79 | }; | |
a4dabca8 GGM |
80 | }; |
81 | ||
82 | lcdif@80030000 { | |
83 | pinctrl-names = "default"; | |
84 | pinctrl-0 = <&lcdif_16bit_pins_a | |
85 | &lcdif_pins_apf28dev>; | |
ee99b463 | 86 | display = <&display0>; |
a4dabca8 | 87 | status = "okay"; |
0d9f8217 | 88 | |
ee99b463 | 89 | display0: display0 { |
0d9f8217 SG |
90 | bits-per-pixel = <16>; |
91 | bus-width = <16>; | |
92 | ||
93 | display-timings { | |
94 | native-mode = <&timing0>; | |
95 | timing0: timing0 { | |
96 | clock-frequency = <33000033>; | |
97 | hactive = <800>; | |
98 | vactive = <480>; | |
99 | hback-porch = <96>; | |
100 | hfront-porch = <96>; | |
101 | vback-porch = <20>; | |
102 | vfront-porch = <21>; | |
103 | hsync-len = <64>; | |
104 | vsync-len = <4>; | |
105 | hsync-active = <1>; | |
106 | vsync-active = <1>; | |
107 | de-active = <1>; | |
108 | pixelclk-active = <0>; | |
109 | }; | |
110 | }; | |
111 | }; | |
24acd6bf | 112 | }; |
d5ee087a GGM |
113 | |
114 | can0: can@80032000 { | |
115 | pinctrl-names = "default"; | |
116 | pinctrl-0 = <&can0_pins_a>; | |
117 | xceiver-supply = <®_can0_vcc>; | |
118 | status = "okay"; | |
119 | }; | |
414b4153 GGM |
120 | }; |
121 | ||
122 | apbx@80040000 { | |
123 | lradc@80050000 { | |
25a7376a | 124 | fsl,lradc-touchscreen-wires = <4>; |
414b4153 GGM |
125 | status = "okay"; |
126 | }; | |
127 | ||
ac8e44ce GGM |
128 | i2c0: i2c@80058000 { |
129 | pinctrl-names = "default"; | |
130 | pinctrl-0 = <&i2c0_pins_a>; | |
131 | status = "okay"; | |
132 | }; | |
133 | ||
414b4153 GGM |
134 | pwm: pwm@80064000 { |
135 | pinctrl-names = "default"; | |
136 | pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>; | |
137 | status = "okay"; | |
138 | }; | |
139 | ||
f1646e88 GGM |
140 | auart0: serial@8006a000 { |
141 | pinctrl-names = "default"; | |
142 | pinctrl-0 = <&auart0_pins_a>; | |
143 | fsl,uart-has-rtscts; | |
144 | status = "okay"; | |
145 | }; | |
146 | ||
414b4153 GGM |
147 | usbphy0: usbphy@8007c000 { |
148 | status = "okay"; | |
149 | }; | |
150 | ||
151 | usbphy1: usbphy@8007e000 { | |
152 | status = "okay"; | |
153 | }; | |
154 | }; | |
155 | }; | |
156 | ||
157 | ahb@80080000 { | |
158 | usb0: usb@80080000 { | |
2ba4d1ca | 159 | pinctrl-names = "default"; |
94d5f33c GGM |
160 | pinctrl-0 = <&usb0_otg_apf28dev |
161 | &usb0_id_pins_b>; | |
414b4153 GGM |
162 | vbus-supply = <®_usb0_vbus>; |
163 | status = "okay"; | |
164 | }; | |
165 | ||
166 | usb1: usb@80090000 { | |
167 | status = "okay"; | |
168 | }; | |
169 | ||
170 | mac1: ethernet@800f4000 { | |
171 | phy-mode = "rmii"; | |
172 | pinctrl-names = "default"; | |
173 | pinctrl-0 = <&mac1_pins_a>; | |
9648bb48 | 174 | phy-reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; |
414b4153 GGM |
175 | status = "okay"; |
176 | }; | |
177 | }; | |
178 | ||
179 | regulators { | |
180 | compatible = "simple-bus"; | |
352d318c SG |
181 | #address-cells = <1>; |
182 | #size-cells = <0>; | |
414b4153 | 183 | |
352d318c | 184 | reg_usb0_vbus: regulator@0 { |
414b4153 | 185 | compatible = "regulator-fixed"; |
352d318c | 186 | reg = <0>; |
414b4153 GGM |
187 | regulator-name = "usb0_vbus"; |
188 | regulator-min-microvolt = <5000000>; | |
189 | regulator-max-microvolt = <5000000>; | |
190 | gpio = <&gpio1 23 1>; | |
2ba4d1ca | 191 | enable-active-high; |
414b4153 | 192 | }; |
d5ee087a GGM |
193 | |
194 | reg_can0_vcc: regulator@1 { | |
195 | compatible = "regulator-fixed"; | |
196 | reg = <1>; | |
197 | regulator-name = "can0_vcc"; | |
198 | regulator-min-microvolt = <5000000>; | |
199 | regulator-max-microvolt = <5000000>; | |
200 | }; | |
414b4153 GGM |
201 | }; |
202 | ||
203 | leds { | |
204 | compatible = "gpio-leds"; | |
205 | ||
206 | user { | |
207 | label = "Heartbeat"; | |
208 | gpios = <&gpio0 21 0>; | |
209 | linux,default-trigger = "heartbeat"; | |
210 | }; | |
211 | }; | |
a4dabca8 GGM |
212 | |
213 | backlight { | |
214 | compatible = "pwm-backlight"; | |
215 | ||
216 | pwms = <&pwm 3 191000>; | |
217 | brightness-levels = <0 4 8 16 32 64 128 255>; | |
218 | default-brightness-level = <6>; | |
219 | }; | |
625df5bd SS |
220 | |
221 | gpio-keys { | |
222 | compatible = "gpio-keys"; | |
223 | ||
224 | user-button { | |
225 | label = "User button"; | |
816bd401 | 226 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
625df5bd | 227 | linux,code = <0x100>; |
26cefdd1 | 228 | wakeup-source; |
625df5bd SS |
229 | }; |
230 | }; | |
414b4153 | 231 | }; |