]>
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 | |
24acd6bf | 51 | >; |
4191c340 LW |
52 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
53 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
54 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
24acd6bf | 55 | }; |
a4dabca8 GGM |
56 | |
57 | lcdif_pins_apf28dev: lcdif-apf28dev@0 { | |
58 | reg = <0>; | |
59 | fsl,pinmux-ids = < | |
bc3875f1 LW |
60 | MX28_PAD_LCD_RD_E__LCD_VSYNC |
61 | MX28_PAD_LCD_WR_RWN__LCD_HSYNC | |
62 | MX28_PAD_LCD_RS__LCD_DOTCLK | |
63 | MX28_PAD_LCD_CS__LCD_ENABLE | |
a4dabca8 | 64 | >; |
4191c340 LW |
65 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
66 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
67 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
a4dabca8 | 68 | }; |
2ba4d1ca GGM |
69 | |
70 | usb0_otg_apf28dev: otg-apf28dev@0 { | |
71 | reg = <0>; | |
72 | fsl,pinmux-ids = < | |
73 | MX28_PAD_LCD_D23__GPIO_1_23 | |
74 | >; | |
75 | fsl,drive-strength = <MXS_DRIVE_4mA>; | |
76 | fsl,voltage = <MXS_VOLTAGE_HIGH>; | |
77 | fsl,pull-up = <MXS_PULL_DISABLE>; | |
78 | }; | |
a4dabca8 GGM |
79 | }; |
80 | ||
81 | lcdif@80030000 { | |
82 | pinctrl-names = "default"; | |
83 | pinctrl-0 = <&lcdif_16bit_pins_a | |
84 | &lcdif_pins_apf28dev>; | |
0d9f8217 | 85 | display = <&display>; |
a4dabca8 | 86 | status = "okay"; |
0d9f8217 SG |
87 | |
88 | display: display { | |
89 | bits-per-pixel = <16>; | |
90 | bus-width = <16>; | |
91 | ||
92 | display-timings { | |
93 | native-mode = <&timing0>; | |
94 | timing0: timing0 { | |
95 | clock-frequency = <33000033>; | |
96 | hactive = <800>; | |
97 | vactive = <480>; | |
98 | hback-porch = <96>; | |
99 | hfront-porch = <96>; | |
100 | vback-porch = <20>; | |
101 | vfront-porch = <21>; | |
102 | hsync-len = <64>; | |
103 | vsync-len = <4>; | |
104 | hsync-active = <1>; | |
105 | vsync-active = <1>; | |
106 | de-active = <1>; | |
107 | pixelclk-active = <0>; | |
108 | }; | |
109 | }; | |
110 | }; | |
24acd6bf | 111 | }; |
414b4153 GGM |
112 | }; |
113 | ||
114 | apbx@80040000 { | |
115 | lradc@80050000 { | |
25a7376a | 116 | fsl,lradc-touchscreen-wires = <4>; |
414b4153 GGM |
117 | status = "okay"; |
118 | }; | |
119 | ||
ac8e44ce GGM |
120 | i2c0: i2c@80058000 { |
121 | pinctrl-names = "default"; | |
122 | pinctrl-0 = <&i2c0_pins_a>; | |
123 | status = "okay"; | |
124 | }; | |
125 | ||
414b4153 GGM |
126 | pwm: pwm@80064000 { |
127 | pinctrl-names = "default"; | |
128 | pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>; | |
129 | status = "okay"; | |
130 | }; | |
131 | ||
132 | usbphy0: usbphy@8007c000 { | |
133 | status = "okay"; | |
134 | }; | |
135 | ||
136 | usbphy1: usbphy@8007e000 { | |
137 | status = "okay"; | |
138 | }; | |
139 | }; | |
140 | }; | |
141 | ||
142 | ahb@80080000 { | |
143 | usb0: usb@80080000 { | |
2ba4d1ca GGM |
144 | pinctrl-names = "default"; |
145 | pinctrl-0 = <&usb0_otg_apf28dev>; | |
414b4153 GGM |
146 | vbus-supply = <®_usb0_vbus>; |
147 | status = "okay"; | |
148 | }; | |
149 | ||
150 | usb1: usb@80090000 { | |
151 | status = "okay"; | |
152 | }; | |
153 | ||
154 | mac1: ethernet@800f4000 { | |
155 | phy-mode = "rmii"; | |
156 | pinctrl-names = "default"; | |
157 | pinctrl-0 = <&mac1_pins_a>; | |
158 | phy-reset-gpios = <&gpio0 23 0>; | |
159 | status = "okay"; | |
160 | }; | |
161 | }; | |
162 | ||
163 | regulators { | |
164 | compatible = "simple-bus"; | |
352d318c SG |
165 | #address-cells = <1>; |
166 | #size-cells = <0>; | |
414b4153 | 167 | |
352d318c | 168 | reg_usb0_vbus: regulator@0 { |
414b4153 | 169 | compatible = "regulator-fixed"; |
352d318c | 170 | reg = <0>; |
414b4153 GGM |
171 | regulator-name = "usb0_vbus"; |
172 | regulator-min-microvolt = <5000000>; | |
173 | regulator-max-microvolt = <5000000>; | |
174 | gpio = <&gpio1 23 1>; | |
2ba4d1ca | 175 | enable-active-high; |
414b4153 GGM |
176 | }; |
177 | }; | |
178 | ||
179 | leds { | |
180 | compatible = "gpio-leds"; | |
181 | ||
182 | user { | |
183 | label = "Heartbeat"; | |
184 | gpios = <&gpio0 21 0>; | |
185 | linux,default-trigger = "heartbeat"; | |
186 | }; | |
187 | }; | |
a4dabca8 GGM |
188 | |
189 | backlight { | |
190 | compatible = "pwm-backlight"; | |
191 | ||
192 | pwms = <&pwm 3 191000>; | |
193 | brightness-levels = <0 4 8 16 32 64 128 255>; | |
194 | default-brightness-level = <6>; | |
195 | }; | |
414b4153 | 196 | }; |