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