Debian Codegraph @

arch/arm/boot/dts/st/stm32429i-eval.dts

raw
1 /*
2 * Copyright 2015 - Maxime Coquelin <[email protected]>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 *
24 * Or, alternatively,
25 *
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
46 */
47
48 /dts-v1/;
49 #include "stm32f429.dtsi"
50 #include "stm32f429-pinctrl.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/input/input.h>
53 #include <dt-bindings/leds/common.h>
54 #include <dt-bindings/media/video-interfaces.h>
55
56 / {
57 model = "STMicroelectronics STM32429i-EVAL board";
58 compatible = "st,stm32429i-eval", "st,stm32f429";
59
60 chosen {
61 bootargs = "root=/dev/ram";
62 stdout-path = "serial0:115200n8";
63 };
64
65 memory@0 {
66 device_type = "memory";
67 reg = <0x00000000 0x2000000>;
68 };
69
70 aliases {
71 serial0 = &usart1;
72 };
73
74 clocks {
75 clk_ext_camera: clk-ext-camera {
76 #clock-cells = <0>;
77 compatible = "fixed-clock";
78 clock-frequency = <24000000>;
79 };
80 };
81
82 soc {
83 dma-ranges = <0xc0000000 0x0 0x10000000>;
84 };
85
86 leds {
87 compatible = "gpio-leds";
88 led_green: led-green {
89 function = LED_FUNCTION_HEARTBEAT;
90 color = <LED_COLOR_ID_GREEN>;
91 gpios = <&gpiog 6 1>;
92 linux,default-trigger = "heartbeat";
93 };
94 led-orange {
95 color = <LED_COLOR_ID_ORANGE>;
96 gpios = <&gpiog 7 1>;
97 };
98 led-red {
99 color = <LED_COLOR_ID_RED>;
100 gpios = <&gpiog 10 1>;
101 };
102 led-blue {
103 color = <LED_COLOR_ID_BLUE>;
104 gpios = <&gpiog 12 1>;
105 };
106 };
107
108 gpio-keys {
109 compatible = "gpio-keys";
110 autorepeat;
111 button-0 {
112 label = "Wake up";
113 linux,code = <KEY_WAKEUP>;
114 gpios = <&gpioa 0 0>;
115 };
116 button-1 {
117 label = "Tamper";
118 linux,code = <KEY_RESTART>;
119 gpios = <&gpioc 13 0>;
120 };
121 };
122
123 mmc_vcard: mmc_vcard {
124 compatible = "regulator-fixed";
125 regulator-name = "mmc_vcard";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 };
129
130 options {
131 u-boot {
132 compatible = "u-boot,config";
133 boot-led = <&led_green>;
134 };
135 };
136
137 panel_rgb: panel-rgb {
138 compatible = "ampire,am-480272h3tmqw-t01h";
139 power-supply = <&vdd_panel>;
140 status = "okay";
141 port {
142 panel_in_rgb: endpoint {
143 remote-endpoint = <&ltdc_out_rgb>;
144 };
145 };
146 };
147
148 vdda: regulator-vdda {
149 compatible = "regulator-fixed";
150 regulator-name = "vdda";
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
153 };
154
155 vref: regulator-vref {
156 compatible = "regulator-fixed";
157 regulator-name = "vref";
158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
160 };
161
162 usbotg_hs_phy: usbphy {
163 #phy-cells = <0>;
164 compatible = "usb-nop-xceiv";
165 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
166 clock-names = "main_clk";
167 };
168
169 vdd_panel: vdd-panel {
170 compatible = "regulator-fixed";
171 regulator-name = "vdd_panel";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
174 };
175 };
176
177 &adc {
178 pinctrl-names = "default";
179 pinctrl-0 = <&adc3_in8_pin>;
180 vdda-supply = <&vdda>;
181 vref-supply = <&vref>;
182 status = "okay";
183 adc3: adc@200 {
184 st,adc-channels = <8>;
185 status = "okay";
186 };
187 };
188
189 &clk_hse {
190 clock-frequency = <25000000>;
191 };
192
193 &crc {
194 status = "okay";
195 };
196
197 &dcmi {
198 status = "okay";
199
200 port {
201 dcmi_0: endpoint {
202 remote-endpoint = <&ov2640_0>;
203 bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
204 bus-width = <8>;
205 hsync-active = <0>;
206 vsync-active = <0>;
207 pclk-sample = <1>;
208 };
209 };
210 };
211
212 &i2c1 {
213 pinctrl-0 = <&i2c1_pins>;
214 pinctrl-names = "default";
215 status = "okay";
216
217 ov2640: camera@30 {
218 compatible = "ovti,ov2640";
219 reg = <0x30>;
220 resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
221 pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
222 clocks = <&clk_ext_camera>;
223 clock-names = "xvclk";
224 status = "okay";
225
226 port {
227 ov2640_0: endpoint {
228 remote-endpoint = <&dcmi_0>;
229 };
230 };
231 };
232
233 stmpe1600: stmpe1600@42 {
234 compatible = "st,stmpe1600";
235 reg = <0x42>;
236 interrupts = <8 3>;
237 interrupt-parent = <&gpioi>;
238 wakeup-source;
239
240 stmpegpio: stmpe_gpio {
241 compatible = "st,stmpe-gpio";
242 gpio-controller;
243 #gpio-cells = <2>;
244 };
245 };
246 };
247
248 &iwdg {
249 status = "okay";
250 timeout-sec = <32>;
251 };
252
253 &ltdc {
254 status = "okay";
255 pinctrl-0 = <&ltdc_pins_a>;
256 pinctrl-names = "default";
257
258 port {
259 ltdc_out_rgb: endpoint {
260 remote-endpoint = <&panel_in_rgb>;
261 };
262 };
263 };
264
265 &mac {
266 status = "okay";
267 pinctrl-0 = <&ethernet_mii>;
268 pinctrl-names = "default";
269 phy-mode = "mii";
270 phy-handle = <&phy1>;
271 mdio0 {
272 #address-cells = <1>;
273 #size-cells = <0>;
274 compatible = "snps,dwmac-mdio";
275 phy1: ethernet-phy@1 {
276 reg = <1>;
277 };
278 };
279 };
280
281 &rtc {
282 status = "okay";
283 };
284
285 &sdio {
286 status = "okay";
287 vmmc-supply = <&mmc_vcard>;
288 cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
289 pinctrl-names = "default", "opendrain";
290 pinctrl-0 = <&sdio_pins>;
291 pinctrl-1 = <&sdio_pins_od>;
292 bus-width = <4>;
293 max-frequency = <12500000>;
294 };
295
296 &timers1 {
297 status = "okay";
298
299 pwm {
300 pinctrl-0 = <&pwm1_pins>;
301 pinctrl-names = "default";
302 status = "okay";
303 };
304
305 timer@0 {
306 status = "okay";
307 };
308 };
309
310 &timers3 {
311 status = "okay";
312
313 pwm {
314 pinctrl-0 = <&pwm3_pins>;
315 pinctrl-names = "default";
316 status = "okay";
317 };
318
319 timer@2 {
320 status = "okay";
321 };
322 };
323
324 &timers5 {
325 /* Override timer5 to act as clockevent */
326 compatible = "st,stm32-timer";
327 interrupts = <50>;
328 status = "okay";
329 /delete-property/#address-cells;
330 /delete-property/#size-cells;
331 /delete-property/clock-names;
332 /delete-node/pwm;
333 /delete-node/timer@4;
334 };
335
336 &usart1 {
337 pinctrl-0 = <&usart1_pins_a>;
338 pinctrl-names = "default";
339 status = "okay";
340 };
341
342 &usbotg_hs {
343 dr_mode = "host";
344 phys = <&usbotg_hs_phy>;
345 phy-names = "usb2-phy";
346 pinctrl-0 = <&usbotg_hs_pins_a>;
347 pinctrl-names = "default";
348 status = "okay";
349 };