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 compatible = "gpio-keys";
28 pinctrl-0 = <&joystick_pins>;
29 pinctrl-names = "default";
32 linux,code = <KEY_ENTER>;
33 interrupt-parent = <&stmfx_pinctrl>;
34 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
38 linux,code = <KEY_DOWN>;
39 interrupt-parent = <&stmfx_pinctrl>;
40 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
44 linux,code = <KEY_LEFT>;
45 interrupt-parent = <&stmfx_pinctrl>;
46 interrupts = <2 IRQ_TYPE_EDGE_RISING>;
50 linux,code = <KEY_RIGHT>;
51 interrupt-parent = <&stmfx_pinctrl>;
52 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
56 linux,code = <KEY_UP>;
57 interrupt-parent = <&stmfx_pinctrl>;
58 interrupts = <4 IRQ_TYPE_EDGE_RISING>;
62 panel_backlight: panel-backlight {
63 compatible = "gpio-backlight";
64 gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&cec_pins_a>;
88 remote-endpoint = <<dc_ep0_out>;
95 remote-endpoint = <&dsi_panel_in>;
101 compatible = "raydium,rm68200";
103 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
104 backlight = <&panel_backlight>;
108 dsi_panel_in: endpoint {
109 remote-endpoint = <&dsi_out>;
117 pinctrl-0 = <ðernet0_rgmii_pins_a>;
118 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
119 pinctrl-names = "default", "sleep";
122 phy-handle = <&phy0>;
125 #address-cells = <1>;
127 compatible = "snps,dwmac-mdio";
128 phy0: ethernet-phy@0 {
135 pinctrl-names = "default";
136 pinctrl-0 = <&i2c2_pins_a>;
137 i2c-scl-rising-time-ns = <185>;
138 i2c-scl-falling-time-ns = <20>;
142 compatible = "st,stmfx-0300";
144 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
145 interrupt-parent = <&gpioi>;
146 vdd-supply = <&v3v3>;
148 stmfx_pinctrl: stmfx-pin-controller {
149 compatible = "st,stmfx-0300-pinctrl";
152 interrupt-controller;
153 #interrupt-cells = <2>;
154 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
156 joystick_pins: joystick {
157 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
166 pinctrl-names = "default";
167 pinctrl-0 = <&i2c5_pins_a>;
168 i2c-scl-rising-time-ns = <185>;
169 i2c-scl-falling-time-ns = <20>;
177 #address-cells = <1>;
180 ltdc_ep0_out: endpoint@0 {
182 remote-endpoint = <&dsi_in>;
188 pinctrl-names = "default", "sleep";
189 pinctrl-0 = <&m_can1_pins_a>;
190 pinctrl-1 = <&m_can1_sleep_pins_a>;
195 pinctrl-names = "default", "sleep";
196 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
197 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
198 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
199 #address-cells = <1>;
203 flash0: mx66l51235l@0 {
205 spi-rx-bus-width = <4>;
206 spi-max-frequency = <108000000>;
207 #address-cells = <1>;
211 flash1: mx66l51235l@1 {
213 spi-rx-bus-width = <4>;
214 spi-max-frequency = <108000000>;
215 #address-cells = <1>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&spi1_pins_a>;
227 /* spare dmas for other usage (un-delete to enable pwm capture) */
228 /delete-property/dmas;
229 /delete-property/dma-names;
232 pinctrl-0 = <&pwm2_pins_a>;
233 pinctrl-names = "default";
242 /delete-property/dmas;
243 /delete-property/dma-names;
246 pinctrl-0 = <&pwm8_pins_a>;
247 pinctrl-names = "default";
256 /delete-property/dmas;
257 /delete-property/dma-names;
260 pinctrl-0 = <&pwm12_pins_a>;
261 pinctrl-names = "default";
270 phys = <&usbphyc_port0>;
276 dr_mode = "peripheral";
277 phys = <&usbphyc_port1 0>;
278 phy-names = "usb2-phy";