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";
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 #address-cells = <1>;
104 phy-dsi-supply = <®18>;
108 #address-cells = <1>;
114 remote-endpoint = <<dc_ep0_out>;
121 remote-endpoint = <&dsi_panel_in>;
127 compatible = "raydium,rm68200";
129 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
130 backlight = <&panel_backlight>;
131 power-supply = <&v3v3>;
135 dsi_panel_in: endpoint {
136 remote-endpoint = <&dsi_out>;
144 pinctrl-0 = <ðernet0_rgmii_pins_a>;
145 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
146 pinctrl-names = "default", "sleep";
147 phy-mode = "rgmii-id";
149 phy-handle = <&phy0>;
152 #address-cells = <1>;
154 compatible = "snps,dwmac-mdio";
155 phy0: ethernet-phy@0 {
162 pinctrl-names = "default", "sleep";
163 pinctrl-0 = <&fmc_pins_a>;
164 pinctrl-1 = <&fmc_sleep_pins_a>;
166 #address-cells = <1>;
172 #address-cells = <1>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&i2c2_pins_a>;
180 i2c-scl-rising-time-ns = <185>;
181 i2c-scl-falling-time-ns = <20>;
185 compatible = "ovti,ov5640";
186 pinctrl-names = "default";
187 pinctrl-0 = <&ov5640_pins>;
189 clocks = <&clk_ext_camera>;
190 clock-names = "xclk";
191 DOVDD-supply = <&v2v8>;
192 powerdown-gpios = <&stmfx_pinctrl 18 GPIO_ACTIVE_HIGH>;
193 reset-gpios = <&stmfx_pinctrl 19 GPIO_ACTIVE_LOW>;
199 remote-endpoint = <&dcmi_0>;
201 data-shift = <2>; /* lines 9:2 are used */
210 compatible = "st,stmfx-0300";
212 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
213 interrupt-parent = <&gpioi>;
214 vdd-supply = <&v3v3>;
216 stmfx_pinctrl: stmfx-pin-controller {
217 compatible = "st,stmfx-0300-pinctrl";
220 interrupt-controller;
221 #interrupt-cells = <2>;
222 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
224 joystick_pins: joystick {
225 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
230 ov5640_pins: camera {
231 pins = "agpio2", "agpio3"; /* stmfx pins 18 & 19 */
240 pinctrl-names = "default";
241 pinctrl-0 = <&i2c5_pins_a>;
242 i2c-scl-rising-time-ns = <185>;
243 i2c-scl-falling-time-ns = <20>;
251 #address-cells = <1>;
254 ltdc_ep0_out: endpoint@0 {
256 remote-endpoint = <&dsi_in>;
262 pinctrl-names = "default", "sleep";
263 pinctrl-0 = <&m_can1_pins_a>;
264 pinctrl-1 = <&m_can1_sleep_pins_a>;
269 pinctrl-names = "default", "sleep";
270 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
271 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
272 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
273 #address-cells = <1>;
277 flash0: mx66l51235l@0 {
278 compatible = "jedec,spi-nor";
280 spi-rx-bus-width = <4>;
281 spi-max-frequency = <108000000>;
282 #address-cells = <1>;
286 flash1: mx66l51235l@1 {
287 compatible = "jedec,spi-nor";
289 spi-rx-bus-width = <4>;
290 spi-max-frequency = <108000000>;
291 #address-cells = <1>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&spi1_pins_a>;
303 /* spare dmas for other usage (un-delete to enable pwm capture) */
304 /delete-property/dmas;
305 /delete-property/dma-names;
308 pinctrl-0 = <&pwm2_pins_a>;
309 pinctrl-names = "default";
318 /delete-property/dmas;
319 /delete-property/dma-names;
322 pinctrl-0 = <&pwm8_pins_a>;
323 pinctrl-names = "default";
332 /delete-property/dmas;
333 /delete-property/dma-names;
336 pinctrl-0 = <&pwm12_pins_a>;
337 pinctrl-names = "default";
346 phys = <&usbphyc_port0>;
352 dr_mode = "peripheral";
353 phys = <&usbphyc_port1 0>;
354 phy-names = "usb2-phy";