• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
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/input/input.h>
52#include <dt-bindings/gpio/gpio.h>
53
54/ {
55	model = "STMicroelectronics STM32429i-EVAL board";
56	compatible = "st,stm32429i-eval", "st,stm32f429";
57
58	chosen {
59		bootargs = "root=/dev/ram";
60		stdout-path = "serial0:115200n8";
61	};
62
63	memory@00000000 {
64		device_type = "memory";
65		reg = <0x00000000 0x2000000>;
66	};
67
68	aliases {
69		serial0 = &usart1;
70	};
71
72	clocks {
73		clk_ext_camera: clk-ext-camera {
74			#clock-cells = <0>;
75			compatible = "fixed-clock";
76			clock-frequency = <24000000>;
77		};
78	};
79
80	soc {
81		dma-ranges = <0xc0000000 0x0 0x10000000>;
82	};
83
84	vdda: regulator-vdda {
85		compatible = "regulator-fixed";
86		regulator-name = "vdda";
87		regulator-min-microvolt = <3300000>;
88		regulator-max-microvolt = <3300000>;
89	};
90
91	vref: regulator-vref {
92		compatible = "regulator-fixed";
93		regulator-name = "vref";
94		regulator-min-microvolt = <3300000>;
95		regulator-max-microvolt = <3300000>;
96	};
97
98	vdd_panel: vdd-panel {
99		compatible = "regulator-fixed";
100		regulator-name = "vdd_panel";
101		regulator-min-microvolt = <3300000>;
102		regulator-max-microvolt = <3300000>;
103	};
104
105	leds {
106		compatible = "gpio-leds";
107		led-green {
108			gpios = <&gpiog 6 1>;
109			linux,default-trigger = "heartbeat";
110		};
111		led-orange {
112			gpios = <&gpiog 7 1>;
113		};
114		led-red {
115			gpios = <&gpiog 10 1>;
116		};
117		led-blue {
118			gpios = <&gpiog 12 1>;
119		};
120	};
121
122	gpio-keys {
123		compatible = "gpio-keys";
124		autorepeat;
125		button-0 {
126			label = "Wake up";
127			linux,code = <KEY_WAKEUP>;
128			gpios = <&gpioa 0 0>;
129		};
130		button-1 {
131			label = "Tamper";
132			linux,code = <KEY_RESTART>;
133			gpios = <&gpioc 13 0>;
134		};
135	};
136
137	usbotg_hs_phy: usbphy {
138		#phy-cells = <0>;
139		compatible = "usb-nop-xceiv";
140		clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
141		clock-names = "main_clk";
142	};
143
144	panel_rgb: panel-rgb {
145		compatible = "ampire,am-480272h3tmqw-t01h";
146		power-supply = <&vdd_panel>;
147		status = "okay";
148		port {
149			panel_in_rgb: endpoint {
150				remote-endpoint = <&ltdc_out_rgb>;
151			};
152		};
153	};
154
155	mmc_vcard: mmc_vcard {
156		compatible = "regulator-fixed";
157		regulator-name = "mmc_vcard";
158		regulator-min-microvolt = <3300000>;
159		regulator-max-microvolt = <3300000>;
160	};
161};
162
163&adc {
164	pinctrl-names = "default";
165	pinctrl-0 = <&adc3_in8_pin>;
166	vdda-supply = <&vdda>;
167	vref-supply = <&vref>;
168	status = "okay";
169	adc3: adc@200 {
170		st,adc-channels = <8>;
171		status = "okay";
172	};
173};
174
175&clk_hse {
176	clock-frequency = <25000000>;
177};
178
179&crc {
180	status = "okay";
181};
182
183&dcmi {
184	status = "okay";
185
186	port {
187		dcmi_0: endpoint {
188			remote-endpoint = <&ov2640_0>;
189			bus-width = <8>;
190			hsync-active = <0>;
191			vsync-active = <0>;
192			pclk-sample = <1>;
193		};
194	};
195};
196
197&i2c1 {
198	pinctrl-0 = <&i2c1_pins>;
199	pinctrl-names = "default";
200	status = "okay";
201
202	ov2640: camera@30 {
203		compatible = "ovti,ov2640";
204		reg = <0x30>;
205		resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
206		pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
207		clocks = <&clk_ext_camera>;
208		clock-names = "xvclk";
209		status = "okay";
210
211		port {
212			ov2640_0: endpoint {
213				remote-endpoint = <&dcmi_0>;
214			};
215		};
216	};
217
218	stmpe1600: stmpe1600@42 {
219		compatible = "st,stmpe1600";
220		reg = <0x42>;
221		interrupts = <8 3>;
222		interrupt-parent = <&gpioi>;
223		interrupt-controller;
224		wakeup-source;
225
226		stmpegpio: stmpe_gpio {
227			compatible = "st,stmpe-gpio";
228			gpio-controller;
229			#gpio-cells = <2>;
230		};
231	};
232};
233
234&iwdg {
235	status = "okay";
236	timeout-sec = <32>;
237};
238
239&ltdc {
240	status = "okay";
241	pinctrl-0 = <&ltdc_pins_a>;
242	pinctrl-names = "default";
243
244	port {
245		ltdc_out_rgb: endpoint {
246			remote-endpoint = <&panel_in_rgb>;
247		};
248	};
249};
250
251&mac {
252	status = "okay";
253	pinctrl-0	= <&ethernet_mii>;
254	pinctrl-names	= "default";
255	phy-mode	= "mii";
256	phy-handle	= <&phy1>;
257	mdio0 {
258		#address-cells = <1>;
259		#size-cells = <0>;
260		compatible = "snps,dwmac-mdio";
261		phy1: ethernet-phy@1 {
262			reg = <1>;
263		};
264	};
265};
266
267&rtc {
268	status = "okay";
269};
270
271&sdio {
272	status = "okay";
273	vmmc-supply = <&mmc_vcard>;
274	cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
275	pinctrl-names = "default", "opendrain";
276	pinctrl-0 = <&sdio_pins>;
277	pinctrl-1 = <&sdio_pins_od>;
278	bus-width = <4>;
279	max-frequency = <12500000>;
280};
281
282&timers1 {
283	status = "okay";
284
285	pwm {
286		pinctrl-0 = <&pwm1_pins>;
287		pinctrl-names = "default";
288		status = "okay";
289	};
290
291	timer@0 {
292		status = "okay";
293	};
294};
295
296&timers3 {
297	status = "okay";
298
299	pwm {
300		pinctrl-0 = <&pwm3_pins>;
301		pinctrl-names = "default";
302		status = "okay";
303	};
304
305	timer@2 {
306		status = "okay";
307	};
308};
309
310&usart1 {
311	pinctrl-0 = <&usart1_pins_a>;
312	pinctrl-names = "default";
313	status = "okay";
314};
315
316&usbotg_hs {
317	dr_mode = "host";
318	phys = <&usbotg_hs_phy>;
319	phy-names = "usb2-phy";
320	pinctrl-0 = <&usbotg_hs_pins_a>;
321	pinctrl-names = "default";
322	status = "okay";
323};
324