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>;
107 #address-cells = <1>;
113 remote-endpoint = <<dc_ep0_out>;
120 remote-endpoint = <&dsi_panel_in>;
126 compatible = "raydium,rm68200";
128 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
129 backlight = <&panel_backlight>;
130 power-supply = <&v3v3>;
134 dsi_panel_in: endpoint {
135 remote-endpoint = <&dsi_out>;
143 pinctrl-0 = <ðernet0_rgmii_pins_a>;
144 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
145 pinctrl-names = "default", "sleep";
146 phy-mode = "rgmii-id";
148 phy-handle = <&phy0>;
151 #address-cells = <1>;
153 compatible = "snps,dwmac-mdio";
154 phy0: ethernet-phy@0 {
161 pinctrl-names = "default", "sleep";
162 pinctrl-0 = <&fmc_pins_a>;
163 pinctrl-1 = <&fmc_sleep_pins_a>;
165 #address-cells = <1>;
171 #address-cells = <1>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&i2c2_pins_a>;
179 i2c-scl-rising-time-ns = <185>;
180 i2c-scl-falling-time-ns = <20>;
184 compatible = "ovti,ov5640";
185 pinctrl-names = "default";
186 pinctrl-0 = <&ov5640_pins>;
188 clocks = <&clk_ext_camera>;
189 clock-names = "xclk";
190 DOVDD-supply = <&v2v8>;
191 powerdown-gpios = <&stmfx_pinctrl 18 GPIO_ACTIVE_HIGH>;
192 reset-gpios = <&stmfx_pinctrl 19 GPIO_ACTIVE_LOW>;
198 remote-endpoint = <&dcmi_0>;
200 data-shift = <2>; /* lines 9:2 are used */
209 compatible = "st,stmfx-0300";
211 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
212 interrupt-parent = <&gpioi>;
213 vdd-supply = <&v3v3>;
215 stmfx_pinctrl: stmfx-pin-controller {
216 compatible = "st,stmfx-0300-pinctrl";
219 interrupt-controller;
220 #interrupt-cells = <2>;
221 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
223 joystick_pins: joystick {
224 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
229 ov5640_pins: camera {
230 pins = "agpio2", "agpio3"; /* stmfx pins 18 & 19 */
239 pinctrl-names = "default";
240 pinctrl-0 = <&i2c5_pins_a>;
241 i2c-scl-rising-time-ns = <185>;
242 i2c-scl-falling-time-ns = <20>;
250 #address-cells = <1>;
253 ltdc_ep0_out: endpoint@0 {
255 remote-endpoint = <&dsi_in>;
261 pinctrl-names = "default", "sleep";
262 pinctrl-0 = <&m_can1_pins_a>;
263 pinctrl-1 = <&m_can1_sleep_pins_a>;
268 pinctrl-names = "default", "sleep";
269 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
270 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
271 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
272 #address-cells = <1>;
276 flash0: mx66l51235l@0 {
277 compatible = "jedec,spi-nor";
279 spi-rx-bus-width = <4>;
280 spi-max-frequency = <108000000>;
281 #address-cells = <1>;
285 flash1: mx66l51235l@1 {
286 compatible = "jedec,spi-nor";
288 spi-rx-bus-width = <4>;
289 spi-max-frequency = <108000000>;
290 #address-cells = <1>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&spi1_pins_a>;
302 /* spare dmas for other usage (un-delete to enable pwm capture) */
303 /delete-property/dmas;
304 /delete-property/dma-names;
307 pinctrl-0 = <&pwm2_pins_a>;
308 pinctrl-names = "default";
317 /delete-property/dmas;
318 /delete-property/dma-names;
321 pinctrl-0 = <&pwm8_pins_a>;
322 pinctrl-names = "default";
331 /delete-property/dmas;
332 /delete-property/dma-names;
335 pinctrl-0 = <&pwm12_pins_a>;
336 pinctrl-names = "default";
345 phys = <&usbphyc_port0>;
351 dr_mode = "peripheral";
352 phys = <&usbphyc_port1 0>;
353 phy-names = "usb2-phy";