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";
22 ethernet0 = ðernet0;
26 clk_ext_camera: clk-ext-camera {
28 compatible = "fixed-clock";
29 clock-frequency = <24000000>;
34 compatible = "gpio-keys";
35 pinctrl-0 = <&joystick_pins>;
36 pinctrl-names = "default";
39 linux,code = <KEY_ENTER>;
40 interrupt-parent = <&stmfx_pinctrl>;
41 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
45 linux,code = <KEY_DOWN>;
46 interrupt-parent = <&stmfx_pinctrl>;
47 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
51 linux,code = <KEY_LEFT>;
52 interrupt-parent = <&stmfx_pinctrl>;
53 interrupts = <2 IRQ_TYPE_EDGE_RISING>;
57 linux,code = <KEY_RIGHT>;
58 interrupt-parent = <&stmfx_pinctrl>;
59 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
63 linux,code = <KEY_UP>;
64 interrupt-parent = <&stmfx_pinctrl>;
65 interrupts = <4 IRQ_TYPE_EDGE_RISING>;
69 panel_backlight: panel-backlight {
70 compatible = "gpio-backlight";
71 gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&cec_pins_a>;
85 pinctrl-names = "default", "sleep";
86 pinctrl-0 = <&dcmi_pins_a>;
87 pinctrl-1 = <&dcmi_sleep_pins_a>;
91 remote-endpoint = <&ov5640_0>;
101 phy-dsi-supply = <®18>;
108 remote-endpoint = <<dc_ep0_out>;
115 remote-endpoint = <&dsi_panel_in>;
121 compatible = "raydium,rm68200";
123 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
124 backlight = <&panel_backlight>;
125 power-supply = <&v3v3>;
129 dsi_panel_in: endpoint {
130 remote-endpoint = <&dsi_out>;
138 pinctrl-0 = <ðernet0_rgmii_pins_a>;
139 pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>;
140 pinctrl-names = "default", "sleep";
141 phy-mode = "rgmii-id";
143 phy-handle = <&phy0>;
146 #address-cells = <1>;
148 compatible = "snps,dwmac-mdio";
149 phy0: ethernet-phy@0 {
156 pinctrl-names = "default", "sleep";
157 pinctrl-0 = <&fmc_pins_a>;
158 pinctrl-1 = <&fmc_sleep_pins_a>;
161 nand-controller@4,0 {
167 #address-cells = <1>;
174 pinctrl-names = "default", "sleep";
175 pinctrl-0 = <&i2c2_pins_a>;
176 pinctrl-1 = <&i2c2_sleep_pins_a>;
177 i2c-scl-rising-time-ns = <185>;
178 i2c-scl-falling-time-ns = <20>;
182 compatible = "ovti,ov5640";
184 clocks = <&clk_ext_camera>;
185 clock-names = "xclk";
186 DOVDD-supply = <&v2v8>;
187 powerdown-gpios = <&stmfx_pinctrl 18 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL)>;
188 reset-gpios = <&stmfx_pinctrl 19 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
194 remote-endpoint = <&dcmi_0>;
196 data-shift = <2>; /* lines 9:2 are used */
205 compatible = "st,stmfx-0300";
207 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
208 interrupt-parent = <&gpioi>;
209 vdd-supply = <&v3v3>;
211 stmfx_pinctrl: pinctrl {
212 compatible = "st,stmfx-0300-pinctrl";
215 interrupt-controller;
216 #interrupt-cells = <2>;
217 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
219 joystick_pins: joystick-pins {
220 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
228 pinctrl-names = "default", "sleep";
229 pinctrl-0 = <&i2c5_pins_a>;
230 pinctrl-1 = <&i2c5_sleep_pins_a>;
231 i2c-scl-rising-time-ns = <185>;
232 i2c-scl-falling-time-ns = <20>;
240 ltdc_ep0_out: endpoint@0 {
242 remote-endpoint = <&dsi_in>;
248 pinctrl-names = "default", "sleep";
249 pinctrl-0 = <&m_can1_pins_a>;
250 pinctrl-1 = <&m_can1_sleep_pins_a>;
255 pinctrl-names = "default", "sleep";
256 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
257 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
258 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
259 #address-cells = <1>;
263 flash0: mx66l51235l@0 {
264 compatible = "jedec,spi-nor";
266 spi-rx-bus-width = <4>;
267 spi-max-frequency = <108000000>;
268 #address-cells = <1>;
272 flash1: mx66l51235l@1 {
273 compatible = "jedec,spi-nor";
275 spi-rx-bus-width = <4>;
276 spi-max-frequency = <108000000>;
277 #address-cells = <1>;
283 pinctrl-names = "default", "opendrain", "sleep";
284 pinctrl-0 = <&sdmmc3_b4_pins_a>;
285 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
286 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
290 vmmc-supply = <&v3v3>;
295 pinctrl-names = "default";
296 pinctrl-0 = <&spi1_pins_a>;
301 /* spare dmas for other usage (un-delete to enable pwm capture) */
302 /delete-property/dmas;
303 /delete-property/dma-names;
306 pinctrl-0 = <&pwm2_pins_a>;
307 pinctrl-1 = <&pwm2_sleep_pins_a>;
308 pinctrl-names = "default", "sleep";
317 /delete-property/dmas;
318 /delete-property/dma-names;
321 pinctrl-0 = <&pwm8_pins_a>;
322 pinctrl-1 = <&pwm8_sleep_pins_a>;
323 pinctrl-names = "default", "sleep";
332 /delete-property/dmas;
333 /delete-property/dma-names;
336 pinctrl-0 = <&pwm12_pins_a>;
337 pinctrl-1 = <&pwm12_sleep_pins_a>;
338 pinctrl-names = "default", "sleep";
347 phys = <&usbphyc_port0>;
352 pinctrl-0 = <&usbotg_hs_pins_a>;
353 pinctrl-names = "default";
354 phys = <&usbphyc_port1 0>;
355 phy-names = "usb2-phy";