1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
8 #include "stm32mp157c-ed1.dts"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/media/video-interfaces.h>
14 model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
15 compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
19 ethernet0 = ðernet0;
23 stdout-path = "serial0:115200n8";
27 clk_ext_camera: clk-ext-camera {
29 compatible = "fixed-clock";
30 clock-frequency = <24000000>;
35 compatible = "gpio-keys";
36 pinctrl-0 = <&joystick_pins>;
37 pinctrl-names = "default";
40 linux,code = <KEY_ENTER>;
41 interrupt-parent = <&stmfx_pinctrl>;
42 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
46 linux,code = <KEY_DOWN>;
47 interrupt-parent = <&stmfx_pinctrl>;
48 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
52 linux,code = <KEY_LEFT>;
53 interrupt-parent = <&stmfx_pinctrl>;
54 interrupts = <2 IRQ_TYPE_EDGE_RISING>;
58 linux,code = <KEY_RIGHT>;
59 interrupt-parent = <&stmfx_pinctrl>;
60 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
64 linux,code = <KEY_UP>;
65 interrupt-parent = <&stmfx_pinctrl>;
66 interrupts = <4 IRQ_TYPE_EDGE_RISING>;
70 panel_backlight: panel-backlight {
71 compatible = "gpio-backlight";
72 gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&cec_pins_a>;
86 pinctrl-names = "default", "sleep";
87 pinctrl-0 = <&dcmi_pins_a>;
88 pinctrl-1 = <&dcmi_sleep_pins_a>;
92 remote-endpoint = <&ov5640_0>;
93 bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
103 #address-cells = <1>;
108 compatible = "raydium,rm68200";
110 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
111 backlight = <&panel_backlight>;
112 power-supply = <&v3v3>;
116 dsi_panel_in: endpoint {
117 remote-endpoint = <&dsi_out>;
124 remote-endpoint = <<dc_ep0_out>;
128 remote-endpoint = <&dsi_panel_in>;
133 pinctrl-0 = <ðernet0_rgmii_pins_a>;
134 pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>;
135 pinctrl-names = "default", "sleep";
136 phy-mode = "rgmii-id";
138 phy-handle = <&phy0>;
141 #address-cells = <1>;
143 compatible = "snps,dwmac-mdio";
144 phy0: ethernet-phy@0 {
151 pinctrl-names = "default", "sleep";
152 pinctrl-0 = <&fmc_pins_a>;
153 pinctrl-1 = <&fmc_sleep_pins_a>;
156 nand-controller@4,0 {
162 #address-cells = <1>;
169 pinctrl-names = "default", "sleep";
170 pinctrl-0 = <&i2c2_pins_a>;
171 pinctrl-1 = <&i2c2_sleep_pins_a>;
172 i2c-scl-rising-time-ns = <185>;
173 i2c-scl-falling-time-ns = <20>;
177 compatible = "ovti,ov5640";
179 clocks = <&clk_ext_camera>;
180 clock-names = "xclk";
181 AVDD-supply = <&v2v8>;
182 DOVDD-supply = <&v2v8>;
183 DVDD-supply = <&v2v8>;
184 powerdown-gpios = <&stmfx_pinctrl 18 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL)>;
185 reset-gpios = <&stmfx_pinctrl 19 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
191 remote-endpoint = <&dcmi_0>;
193 data-shift = <2>; /* lines 9:2 are used */
202 compatible = "st,stmfx-0300";
204 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
205 interrupt-parent = <&gpioi>;
206 vdd-supply = <&v3v3>;
208 stmfx_pinctrl: pinctrl {
209 compatible = "st,stmfx-0300-pinctrl";
212 interrupt-controller;
213 #interrupt-cells = <2>;
214 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
216 joystick_pins: joystick-pins {
217 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
225 pinctrl-names = "default", "sleep";
226 pinctrl-0 = <&i2c5_pins_a>;
227 pinctrl-1 = <&i2c5_sleep_pins_a>;
228 i2c-scl-rising-time-ns = <185>;
229 i2c-scl-falling-time-ns = <20>;
237 ltdc_ep0_out: endpoint {
238 remote-endpoint = <&dsi_in>;
244 pinctrl-names = "default", "sleep";
245 pinctrl-0 = <&m_can1_pins_a>;
246 pinctrl-1 = <&m_can1_sleep_pins_a>;
251 pinctrl-names = "default", "sleep";
252 pinctrl-0 = <&qspi_clk_pins_a
257 pinctrl-1 = <&qspi_clk_sleep_pins_a
258 &qspi_bk1_sleep_pins_a
259 &qspi_cs1_sleep_pins_a
260 &qspi_bk2_sleep_pins_a
261 &qspi_cs2_sleep_pins_a>;
262 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
263 #address-cells = <1>;
268 compatible = "jedec,spi-nor";
270 spi-rx-bus-width = <4>;
271 spi-max-frequency = <108000000>;
272 #address-cells = <1>;
277 compatible = "jedec,spi-nor";
279 spi-rx-bus-width = <4>;
280 spi-max-frequency = <108000000>;
281 #address-cells = <1>;
287 pinctrl-names = "default", "opendrain", "sleep";
288 pinctrl-0 = <&sdmmc3_b4_pins_a>;
289 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
290 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
294 vmmc-supply = <&v3v3>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&spi1_pins_a>;
305 /* spare dmas for other usage (un-delete to enable pwm capture) */
306 /delete-property/dmas;
307 /delete-property/dma-names;
310 pinctrl-0 = <&pwm2_pins_a>;
311 pinctrl-1 = <&pwm2_sleep_pins_a>;
312 pinctrl-names = "default", "sleep";
321 /delete-property/dmas;
322 /delete-property/dma-names;
325 pinctrl-0 = <&pwm8_pins_a>;
326 pinctrl-1 = <&pwm8_sleep_pins_a>;
327 pinctrl-names = "default", "sleep";
336 /delete-property/dmas;
337 /delete-property/dma-names;
340 pinctrl-0 = <&pwm12_pins_a>;
341 pinctrl-1 = <&pwm12_sleep_pins_a>;
342 pinctrl-names = "default", "sleep";
351 pinctrl-names = "default", "sleep", "idle";
352 pinctrl-0 = <&usart3_pins_b>;
353 pinctrl-1 = <&usart3_sleep_pins_b>;
354 pinctrl-2 = <&usart3_idle_pins_b>;
356 * HW flow control USART3_RTS is optional, and isn't default wired to
357 * the connector. SB23 needs to be soldered in order to use it, and R77
358 * (ETH_CLK) should be removed.
365 phys = <&usbphyc_port0>;
367 #address-cells = <1>;
371 compatible = "usb424,2514";
373 vdd-supply = <&v3v3>;
378 pinctrl-0 = <&usbotg_hs_pins_a>;
379 pinctrl-names = "default";
380 phys = <&usbphyc_port1 0>;
381 phy-names = "usb2-phy";
390 st,tune-hs-dc-level = <2>;
391 st,enable-fs-rftime-tuning;
392 st,enable-hs-rftime-reduction;
393 st,trim-hs-current = <15>;
394 st,trim-hs-impedance = <1>;
395 st,tune-squelch-level = <3>;
396 st,tune-hs-rx-offset = <2>;
400 compatible = "usb-a-connector";
401 vbus-supply = <&vbus_sw>;
406 st,tune-hs-dc-level = <2>;
407 st,enable-fs-rftime-tuning;
408 st,enable-hs-rftime-reduction;
409 st,trim-hs-current = <15>;
410 st,trim-hs-impedance = <1>;
411 st,tune-squelch-level = <3>;
412 st,tune-hs-rx-offset = <2>;