Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.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", "sleep";
128         pinctrl-0 = <&m_can1_pins_a>;
129         pinctrl-1 = <&m_can1_sleep_pins_a>;
130         status = "okay";
131 };
132
133 &qspi {
134         pinctrl-names = "default";
135         pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
136         reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
137         #address-cells = <1>;
138         #size-cells = <0>;
139         status = "okay";
140
141         flash0: mx66l51235l@0 {
142                 reg = <0>;
143                 spi-rx-bus-width = <4>;
144                 spi-max-frequency = <108000000>;
145                 #address-cells = <1>;
146                 #size-cells = <1>;
147         };
148
149         flash1: mx66l51235l@1 {
150                 reg = <1>;
151                 spi-rx-bus-width = <4>;
152                 spi-max-frequency = <108000000>;
153                 #address-cells = <1>;
154                 #size-cells = <1>;
155         };
156 };
157
158 &spi1 {
159         pinctrl-names = "default";
160         pinctrl-0 = <&spi1_pins_a>;
161         status = "disabled";
162 };
163
164 &timers2 {
165         /* spare dmas for other usage (un-delete to enable pwm capture) */
166         /delete-property/dmas;
167         /delete-property/dma-names;
168         status = "disabled";
169         pwm {
170                 pinctrl-0 = <&pwm2_pins_a>;
171                 pinctrl-names = "default";
172                 status = "okay";
173         };
174         timer@1 {
175                 status = "okay";
176         };
177 };
178
179 &timers8 {
180         /delete-property/dmas;
181         /delete-property/dma-names;
182         status = "disabled";
183         pwm {
184                 pinctrl-0 = <&pwm8_pins_a>;
185                 pinctrl-names = "default";
186                 status = "okay";
187         };
188         timer@7 {
189                 status = "okay";
190         };
191 };
192
193 &timers12 {
194         /delete-property/dmas;
195         /delete-property/dma-names;
196         status = "disabled";
197         pwm {
198                 pinctrl-0 = <&pwm12_pins_a>;
199                 pinctrl-names = "default";
200                 status = "okay";
201         };
202         timer@11 {
203                 status = "okay";
204         };
205 };
206
207 &usbh_ehci {
208         phys = <&usbphyc_port0>;
209         phy-names = "usb";
210         status = "okay";
211 };
212
213 &usbotg_hs {
214         dr_mode = "peripheral";
215         phys = <&usbphyc_port1 0>;
216         phy-names = "usb2-phy";
217         status = "okay";
218 };
219
220 &usbphyc {
221         status = "okay";
222 };