Loading...
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@0 {
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 = <<dc_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-type = <5>;
190 bus-width = <8>;
191 hsync-active = <0>;
192 vsync-active = <0>;
193 pclk-sample = <1>;
194 };
195 };
196};
197
198&i2c1 {
199 pinctrl-0 = <&i2c1_pins>;
200 pinctrl-names = "default";
201 status = "okay";
202
203 ov2640: camera@30 {
204 compatible = "ovti,ov2640";
205 reg = <0x30>;
206 resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
207 pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
208 clocks = <&clk_ext_camera>;
209 clock-names = "xvclk";
210 status = "okay";
211
212 port {
213 ov2640_0: endpoint {
214 remote-endpoint = <&dcmi_0>;
215 };
216 };
217 };
218
219 stmpe1600: stmpe1600@42 {
220 compatible = "st,stmpe1600";
221 reg = <0x42>;
222 interrupts = <8 3>;
223 interrupt-parent = <&gpioi>;
224 interrupt-controller;
225 wakeup-source;
226
227 stmpegpio: stmpe_gpio {
228 compatible = "st,stmpe-gpio";
229 gpio-controller;
230 #gpio-cells = <2>;
231 };
232 };
233};
234
235&iwdg {
236 status = "okay";
237 timeout-sec = <32>;
238};
239
240<dc {
241 status = "okay";
242 pinctrl-0 = <<dc_pins_a>;
243 pinctrl-names = "default";
244
245 port {
246 ltdc_out_rgb: endpoint {
247 remote-endpoint = <&panel_in_rgb>;
248 };
249 };
250};
251
252&mac {
253 status = "okay";
254 pinctrl-0 = <ðernet_mii>;
255 pinctrl-names = "default";
256 phy-mode = "mii";
257 phy-handle = <&phy1>;
258 mdio0 {
259 #address-cells = <1>;
260 #size-cells = <0>;
261 compatible = "snps,dwmac-mdio";
262 phy1: ethernet-phy@1 {
263 reg = <1>;
264 };
265 };
266};
267
268&rtc {
269 status = "okay";
270};
271
272&sdio {
273 status = "okay";
274 vmmc-supply = <&mmc_vcard>;
275 cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
276 pinctrl-names = "default", "opendrain";
277 pinctrl-0 = <&sdio_pins>;
278 pinctrl-1 = <&sdio_pins_od>;
279 bus-width = <4>;
280 max-frequency = <12500000>;
281};
282
283&timers1 {
284 status = "okay";
285
286 pwm {
287 pinctrl-0 = <&pwm1_pins>;
288 pinctrl-names = "default";
289 status = "okay";
290 };
291
292 timer@0 {
293 status = "okay";
294 };
295};
296
297&timers3 {
298 status = "okay";
299
300 pwm {
301 pinctrl-0 = <&pwm3_pins>;
302 pinctrl-names = "default";
303 status = "okay";
304 };
305
306 timer@2 {
307 status = "okay";
308 };
309};
310
311&timers5 {
312 /* Override timer5 to act as clockevent */
313 compatible = "st,stm32-timer";
314 interrupts = <50>;
315 status = "okay";
316 /delete-property/#address-cells;
317 /delete-property/#size-cells;
318 /delete-property/clock-names;
319 /delete-node/pwm;
320 /delete-node/timer@4;
321};
322
323&usart1 {
324 pinctrl-0 = <&usart1_pins_a>;
325 pinctrl-names = "default";
326 status = "okay";
327};
328
329&usbotg_hs {
330 dr_mode = "host";
331 phys = <&usbotg_hs_phy>;
332 phy-names = "usb2-phy";
333 pinctrl-0 = <&usbotg_hs_pins_a>;
334 pinctrl-names = "default";
335 status = "okay";
336};
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 {
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 leds {
99 compatible = "gpio-leds";
100 green {
101 gpios = <&gpiog 6 1>;
102 linux,default-trigger = "heartbeat";
103 };
104 orange {
105 gpios = <&gpiog 7 1>;
106 };
107 red {
108 gpios = <&gpiog 10 1>;
109 };
110 blue {
111 gpios = <&gpiog 12 1>;
112 };
113 };
114
115 gpio_keys {
116 compatible = "gpio-keys";
117 #address-cells = <1>;
118 #size-cells = <0>;
119 autorepeat;
120 button@0 {
121 label = "Wake up";
122 linux,code = <KEY_WAKEUP>;
123 gpios = <&gpioa 0 0>;
124 };
125 button@1 {
126 label = "Tamper";
127 linux,code = <KEY_RESTART>;
128 gpios = <&gpioc 13 0>;
129 };
130 };
131
132 usbotg_hs_phy: usbphy {
133 #phy-cells = <0>;
134 compatible = "usb-nop-xceiv";
135 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
136 clock-names = "main_clk";
137 };
138
139 panel_rgb: panel-rgb {
140 compatible = "ampire,am-480272h3tmqw-t01h";
141 status = "okay";
142 port {
143 panel_in_rgb: endpoint {
144 remote-endpoint = <<dc_out_rgb>;
145 };
146 };
147 };
148
149 mmc_vcard: mmc_vcard {
150 compatible = "regulator-fixed";
151 regulator-name = "mmc_vcard";
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
154 };
155};
156
157&adc {
158 pinctrl-names = "default";
159 pinctrl-0 = <&adc3_in8_pin>;
160 vdda-supply = <&vdda>;
161 vref-supply = <&vref>;
162 status = "okay";
163 adc3: adc@200 {
164 st,adc-channels = <8>;
165 status = "okay";
166 };
167};
168
169&clk_hse {
170 clock-frequency = <25000000>;
171};
172
173&crc {
174 status = "okay";
175};
176
177&dcmi {
178 status = "okay";
179
180 port {
181 dcmi_0: endpoint {
182 remote-endpoint = <&ov2640_0>;
183 bus-width = <8>;
184 hsync-active = <0>;
185 vsync-active = <0>;
186 pclk-sample = <1>;
187 };
188 };
189};
190
191&i2c1 {
192 pinctrl-0 = <&i2c1_pins>;
193 pinctrl-names = "default";
194 status = "okay";
195
196 ov2640: camera@30 {
197 compatible = "ovti,ov2640";
198 reg = <0x30>;
199 resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
200 pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
201 clocks = <&clk_ext_camera>;
202 clock-names = "xvclk";
203 status = "okay";
204
205 port {
206 ov2640_0: endpoint {
207 remote-endpoint = <&dcmi_0>;
208 };
209 };
210 };
211
212 stmpe1600: stmpe1600@42 {
213 compatible = "st,stmpe1600";
214 reg = <0x42>;
215 interrupts = <8 3>;
216 interrupt-parent = <&gpioi>;
217 interrupt-controller;
218 wakeup-source;
219
220 stmpegpio: stmpe_gpio {
221 compatible = "st,stmpe-gpio";
222 gpio-controller;
223 #gpio-cells = <2>;
224 };
225 };
226};
227
228&iwdg {
229 status = "okay";
230 timeout-sec = <32>;
231};
232
233<dc {
234 status = "okay";
235 pinctrl-0 = <<dc_pins>;
236 pinctrl-names = "default";
237 dma-ranges;
238
239 port {
240 ltdc_out_rgb: endpoint {
241 remote-endpoint = <&panel_in_rgb>;
242 };
243 };
244};
245
246&mac {
247 status = "okay";
248 pinctrl-0 = <ðernet_mii>;
249 pinctrl-names = "default";
250 phy-mode = "mii";
251 phy-handle = <&phy1>;
252 mdio0 {
253 #address-cells = <1>;
254 #size-cells = <0>;
255 compatible = "snps,dwmac-mdio";
256 phy1: ethernet-phy@1 {
257 reg = <1>;
258 };
259 };
260};
261
262&rtc {
263 status = "okay";
264};
265
266&sdio {
267 status = "okay";
268 vmmc-supply = <&mmc_vcard>;
269 cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
270 pinctrl-names = "default", "opendrain";
271 pinctrl-0 = <&sdio_pins>;
272 pinctrl-1 = <&sdio_pins_od>;
273 bus-width = <4>;
274 max-frequency = <12500000>;
275};
276
277&timers1 {
278 status = "okay";
279
280 pwm {
281 pinctrl-0 = <&pwm1_pins>;
282 pinctrl-names = "default";
283 status = "okay";
284 };
285
286 timer@0 {
287 status = "okay";
288 };
289};
290
291&timers3 {
292 status = "okay";
293
294 pwm {
295 pinctrl-0 = <&pwm3_pins>;
296 pinctrl-names = "default";
297 status = "okay";
298 };
299
300 timer@2 {
301 status = "okay";
302 };
303};
304
305&usart1 {
306 pinctrl-0 = <&usart1_pins_a>;
307 pinctrl-names = "default";
308 status = "okay";
309};
310
311&usbotg_hs {
312 dr_mode = "host";
313 phys = <&usbotg_hs_phy>;
314 phy-names = "usb2-phy";
315 pinctrl-0 = <&usbotg_hs_pins_a>;
316 pinctrl-names = "default";
317 status = "okay";
318};