1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
4 * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
8 #include "stm32mp157c-ed1.dts"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
13 model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
14 compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
17 stdout-path = "serial0:115200n8";
23 ethernet0 = ðernet0;
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>;
102 phy-dsi-supply = <®18>;
109 remote-endpoint = <<dc_ep0_out>;
116 remote-endpoint = <&dsi_panel_in>;
122 compatible = "raydium,rm68200";
124 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
125 backlight = <&panel_backlight>;
126 power-supply = <&v3v3>;
130 dsi_panel_in: endpoint {
131 remote-endpoint = <&dsi_out>;
139 pinctrl-0 = <ðernet0_rgmii_pins_a>;
140 pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>;
141 pinctrl-names = "default", "sleep";
142 phy-mode = "rgmii-id";
144 phy-handle = <&phy0>;
147 #address-cells = <1>;
149 compatible = "snps,dwmac-mdio";
150 phy0: ethernet-phy@0 {
157 pinctrl-names = "default", "sleep";
158 pinctrl-0 = <&fmc_pins_a>;
159 pinctrl-1 = <&fmc_sleep_pins_a>;
161 #address-cells = <1>;
167 #address-cells = <1>;
173 pinctrl-names = "default", "sleep";
174 pinctrl-0 = <&i2c2_pins_a>;
175 pinctrl-1 = <&i2c2_sleep_pins_a>;
176 i2c-scl-rising-time-ns = <185>;
177 i2c-scl-falling-time-ns = <20>;
181 compatible = "ovti,ov5640";
183 clocks = <&clk_ext_camera>;
184 clock-names = "xclk";
185 DOVDD-supply = <&v2v8>;
186 powerdown-gpios = <&stmfx_pinctrl 18 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL)>;
187 reset-gpios = <&stmfx_pinctrl 19 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
193 remote-endpoint = <&dcmi_0>;
195 data-shift = <2>; /* lines 9:2 are used */
204 compatible = "st,stmfx-0300";
206 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
207 interrupt-parent = <&gpioi>;
208 vdd-supply = <&v3v3>;
210 stmfx_pinctrl: pinctrl {
211 compatible = "st,stmfx-0300-pinctrl";
214 interrupt-controller;
215 #interrupt-cells = <2>;
216 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
218 joystick_pins: joystick-pins {
219 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
227 pinctrl-names = "default", "sleep";
228 pinctrl-0 = <&i2c5_pins_a>;
229 pinctrl-1 = <&i2c5_sleep_pins_a>;
230 i2c-scl-rising-time-ns = <185>;
231 i2c-scl-falling-time-ns = <20>;
239 ltdc_ep0_out: endpoint@0 {
241 remote-endpoint = <&dsi_in>;
247 pinctrl-names = "default", "sleep";
248 pinctrl-0 = <&m_can1_pins_a>;
249 pinctrl-1 = <&m_can1_sleep_pins_a>;
254 pinctrl-names = "default", "sleep";
255 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
256 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
257 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
258 #address-cells = <1>;
262 flash0: mx66l51235l@0 {
263 compatible = "jedec,spi-nor";
265 spi-rx-bus-width = <4>;
266 spi-max-frequency = <108000000>;
267 #address-cells = <1>;
271 flash1: mx66l51235l@1 {
272 compatible = "jedec,spi-nor";
274 spi-rx-bus-width = <4>;
275 spi-max-frequency = <108000000>;
276 #address-cells = <1>;
282 pinctrl-names = "default", "opendrain", "sleep";
283 pinctrl-0 = <&sdmmc3_b4_pins_a>;
284 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
285 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
289 vmmc-supply = <&v3v3>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&spi1_pins_a>;
300 /* spare dmas for other usage (un-delete to enable pwm capture) */
301 /delete-property/dmas;
302 /delete-property/dma-names;
305 pinctrl-0 = <&pwm2_pins_a>;
306 pinctrl-1 = <&pwm2_sleep_pins_a>;
307 pinctrl-names = "default", "sleep";
316 /delete-property/dmas;
317 /delete-property/dma-names;
320 pinctrl-0 = <&pwm8_pins_a>;
321 pinctrl-1 = <&pwm8_sleep_pins_a>;
322 pinctrl-names = "default", "sleep";
331 /delete-property/dmas;
332 /delete-property/dma-names;
335 pinctrl-0 = <&pwm12_pins_a>;
336 pinctrl-1 = <&pwm12_sleep_pins_a>;
337 pinctrl-names = "default", "sleep";
346 pinctrl-names = "default", "sleep", "idle";
347 pinctrl-0 = <&usart3_pins_b>;
348 pinctrl-1 = <&usart3_sleep_pins_b>;
349 pinctrl-2 = <&usart3_idle_pins_b>;
351 * HW flow control USART3_RTS is optional, and isn't default wired to
352 * the connector. SB23 needs to be soldered in order to use it, and R77
353 * (ETH_CLK) should be removed.
360 phys = <&usbphyc_port0>;
365 pinctrl-0 = <&usbotg_hs_pins_a>;
366 pinctrl-names = "default";
367 phys = <&usbphyc_port1 0>;
368 phy-names = "usb2-phy";