e114c9b628b8bb6cd06ede612c79224062156fe5
[oweals/u-boot.git] / arch / arm / dts / stm32mp157c-ev1.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /*
3  * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
4  * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
5  */
6 /dts-v1/;
7
8 #include "stm32mp157c-ed1.dts"
9
10 / {
11         model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
12         compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
13
14         chosen {
15                 stdout-path = "serial0:115200n8";
16         };
17
18         aliases {
19                 serial0 = &uart4;
20                 ethernet0 = &ethernet0;
21         };
22
23         panel_backlight: panel-backlight {
24                 compatible = "gpio-backlight";
25                 gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
26                 default-on;
27                 status = "okay";
28         };
29 };
30
31 &cec {
32         pinctrl-names = "default";
33         pinctrl-0 = <&cec_pins_a>;
34         status = "okay";
35 };
36
37 &dsi {
38         #address-cells = <1>;
39         #size-cells = <0>;
40         status = "okay";
41
42         ports {
43                 #address-cells = <1>;
44                 #size-cells = <0>;
45
46                 port@0 {
47                         reg = <0>;
48                         dsi_in: endpoint {
49                                 remote-endpoint = <&ltdc_ep0_out>;
50                         };
51                 };
52
53                 port@1 {
54                         reg = <1>;
55                         dsi_out: endpoint {
56                                 remote-endpoint = <&dsi_panel_in>;
57                         };
58                 };
59         };
60
61         panel-dsi@0 {
62                 compatible = "raydium,rm68200";
63                 reg = <0>;
64                 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
65                 backlight = <&panel_backlight>;
66                 status = "okay";
67
68                 port {
69                         dsi_panel_in: endpoint {
70                                 remote-endpoint = <&dsi_out>;
71                         };
72                 };
73         };
74 };
75
76 &ethernet0 {
77         status = "okay";
78         pinctrl-0 = <&ethernet0_rgmii_pins_a>;
79         pinctrl-1 = <&ethernet0_rgmii_pins_sleep_a>;
80         pinctrl-names = "default", "sleep";
81         phy-mode = "rgmii";
82         max-speed = <1000>;
83         phy-handle = <&phy0>;
84
85         mdio0 {
86                 #address-cells = <1>;
87                 #size-cells = <0>;
88                 compatible = "snps,dwmac-mdio";
89                 phy0: ethernet-phy@0 {
90                         reg = <0>;
91                 };
92         };
93 };
94
95 &i2c2 {
96         pinctrl-names = "default";
97         pinctrl-0 = <&i2c2_pins_a>;
98         i2c-scl-rising-time-ns = <185>;
99         i2c-scl-falling-time-ns = <20>;
100         status = "okay";
101 };
102
103 &i2c5 {
104         pinctrl-names = "default";
105         pinctrl-0 = <&i2c5_pins_a>;
106         i2c-scl-rising-time-ns = <185>;
107         i2c-scl-falling-time-ns = <20>;
108         status = "okay";
109 };
110
111 &ltdc {
112         status = "okay";
113
114         port {
115                 #address-cells = <1>;
116                 #size-cells = <0>;
117
118                 ltdc_ep0_out: endpoint@0 {
119                         reg = <0>;
120                         remote-endpoint = <&dsi_in>;
121                 };
122         };
123 };
124
125 &m_can1 {
126         pinctrl-names = "default";
127         pinctrl-0 = <&m_can1_pins_a>;
128         status = "okay";
129 };
130
131 &qspi {
132         pinctrl-names = "default";
133         pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
134         reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
135         #address-cells = <1>;
136         #size-cells = <0>;
137         status = "okay";
138
139         flash0: mx66l51235l@0 {
140                 reg = <0>;
141                 spi-rx-bus-width = <4>;
142                 spi-max-frequency = <108000000>;
143                 #address-cells = <1>;
144                 #size-cells = <1>;
145         };
146
147         flash1: mx66l51235l@1 {
148                 reg = <1>;
149                 spi-rx-bus-width = <4>;
150                 spi-max-frequency = <108000000>;
151                 #address-cells = <1>;
152                 #size-cells = <1>;
153         };
154 };
155
156 &spi1 {
157         pinctrl-names = "default";
158         pinctrl-0 = <&spi1_pins_a>;
159         status = "disabled";
160 };
161
162 &timers2 {
163         status = "disabled";
164         pwm {
165                 pinctrl-0 = <&pwm2_pins_a>;
166                 pinctrl-names = "default";
167                 status = "okay";
168         };
169         timer@1 {
170                 status = "okay";
171         };
172 };
173
174 &timers8 {
175         status = "disabled";
176         pwm {
177                 pinctrl-0 = <&pwm8_pins_a>;
178                 pinctrl-names = "default";
179                 status = "okay";
180         };
181         timer@7 {
182                 status = "okay";
183         };
184 };
185
186 &timers12 {
187         status = "disabled";
188         pwm {
189                 pinctrl-0 = <&pwm12_pins_a>;
190                 pinctrl-names = "default";
191                 status = "okay";
192         };
193         timer@11 {
194                 status = "okay";
195         };
196 };
197
198 &usbh_ehci {
199         phys = <&usbphyc_port0>;
200         phy-names = "usb";
201         vbus-supply = <&vbus_sw>;
202         status = "okay";
203 };
204
205 &usbotg_hs {
206         pinctrl-names = "default";
207         pinctrl-0 = <&usbotg_hs_pins_a>;
208         dr_mode = "peripheral";
209         phys = <&usbphyc_port1 0>;
210         phy-names = "usb2-phy";
211         status = "okay";
212 };
213
214 &usbphyc {
215         status = "okay";
216 };