]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/stm32mp157a-dk1.dts
MFV r353561: 10343 ZoL: Prefix all refcount functions with zfs_
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / stm32mp157a-dk1.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /*
3  * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4  * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
5  */
6
7 /dts-v1/;
8
9 #include "stm32mp157c.dtsi"
10 #include "stm32mp157xac-pinctrl.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/mfd/st,stpmic1.h>
13
14 / {
15         model = "STMicroelectronics STM32MP157A-DK1 Discovery Board";
16         compatible = "st,stm32mp157a-dk1", "st,stm32mp157";
17
18         aliases {
19                 ethernet0 = &ethernet0;
20                 serial0 = &uart4;
21         };
22
23         chosen {
24                 stdout-path = "serial0:115200n8";
25         };
26
27         memory@c0000000 {
28                 reg = <0xc0000000 0x20000000>;
29         };
30
31         reserved-memory {
32                 #address-cells = <1>;
33                 #size-cells = <1>;
34                 ranges;
35
36                 gpu_reserved: gpu@d4000000 {
37                         reg = <0xd4000000 0x4000000>;
38                         no-map;
39                 };
40         };
41
42         led {
43                 compatible = "gpio-leds";
44                 blue {
45                         label = "heartbeat";
46                         gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
47                         linux,default-trigger = "heartbeat";
48                         default-state = "off";
49                 };
50         };
51 };
52
53 &cec {
54         pinctrl-names = "default", "sleep";
55         pinctrl-0 = <&cec_pins_b>;
56         pinctrl-1 = <&cec_pins_sleep_b>;
57         status = "okay";
58 };
59
60 &ethernet0 {
61         status = "okay";
62         pinctrl-0 = <&ethernet0_rgmii_pins_a>;
63         pinctrl-1 = <&ethernet0_rgmii_pins_sleep_a>;
64         pinctrl-names = "default", "sleep";
65         phy-mode = "rgmii-id";
66         max-speed = <1000>;
67         phy-handle = <&phy0>;
68
69         mdio0 {
70                 #address-cells = <1>;
71                 #size-cells = <0>;
72                 compatible = "snps,dwmac-mdio";
73                 phy0: ethernet-phy@0 {
74                         reg = <0>;
75                 };
76         };
77 };
78
79 &gpu {
80         contiguous-area = <&gpu_reserved>;
81         status = "okay";
82 };
83
84 &i2c1 {
85         pinctrl-names = "default", "sleep";
86         pinctrl-0 = <&i2c1_pins_a>;
87         pinctrl-1 = <&i2c1_pins_sleep_a>;
88         i2c-scl-rising-time-ns = <100>;
89         i2c-scl-falling-time-ns = <7>;
90         status = "okay";
91         /delete-property/dmas;
92         /delete-property/dma-names;
93
94         hdmi-transmitter@39 {
95                 compatible = "sil,sii9022";
96                 reg = <0x39>;
97                 iovcc-supply = <&v3v3_hdmi>;
98                 cvcc12-supply = <&v1v2_hdmi>;
99                 reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
100                 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
101                 interrupt-parent = <&gpiog>;
102                 pinctrl-names = "default", "sleep";
103                 pinctrl-0 = <&ltdc_pins_a>;
104                 pinctrl-1 = <&ltdc_pins_sleep_a>;
105                 status = "okay";
106
107                 ports {
108                         #address-cells = <1>;
109                         #size-cells = <0>;
110
111                         port@0 {
112                                 reg = <0>;
113                                 sii9022_in: endpoint {
114                                         remote-endpoint = <&ltdc_ep0_out>;
115                                 };
116                         };
117                 };
118         };
119 };
120
121 &i2c4 {
122         pinctrl-names = "default";
123         pinctrl-0 = <&i2c4_pins_a>;
124         i2c-scl-rising-time-ns = <185>;
125         i2c-scl-falling-time-ns = <20>;
126         status = "okay";
127         /* spare dmas for other usage */
128         /delete-property/dmas;
129         /delete-property/dma-names;
130
131         pmic: stpmic@33 {
132                 compatible = "st,stpmic1";
133                 reg = <0x33>;
134                 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
135                 interrupt-controller;
136                 #interrupt-cells = <2>;
137                 status = "okay";
138
139                 regulators {
140                         compatible = "st,stpmic1-regulators";
141                         ldo1-supply = <&v3v3>;
142                         ldo3-supply = <&vdd_ddr>;
143                         ldo6-supply = <&v3v3>;
144                         pwr_sw1-supply = <&bst_out>;
145                         pwr_sw2-supply = <&bst_out>;
146
147                         vddcore: buck1 {
148                                 regulator-name = "vddcore";
149                                 regulator-min-microvolt = <800000>;
150                                 regulator-max-microvolt = <1350000>;
151                                 regulator-always-on;
152                                 regulator-initial-mode = <0>;
153                                 regulator-over-current-protection;
154                         };
155
156                         vdd_ddr: buck2 {
157                                 regulator-name = "vdd_ddr";
158                                 regulator-min-microvolt = <1350000>;
159                                 regulator-max-microvolt = <1350000>;
160                                 regulator-always-on;
161                                 regulator-initial-mode = <0>;
162                                 regulator-over-current-protection;
163                         };
164
165                         vdd: buck3 {
166                                 regulator-name = "vdd";
167                                 regulator-min-microvolt = <3300000>;
168                                 regulator-max-microvolt = <3300000>;
169                                 regulator-always-on;
170                                 st,mask-reset;
171                                 regulator-initial-mode = <0>;
172                                 regulator-over-current-protection;
173                         };
174
175                         v3v3: buck4 {
176                                 regulator-name = "v3v3";
177                                 regulator-min-microvolt = <3300000>;
178                                 regulator-max-microvolt = <3300000>;
179                                 regulator-always-on;
180                                 regulator-over-current-protection;
181                                 regulator-initial-mode = <0>;
182                         };
183
184                         v1v8_audio: ldo1 {
185                                 regulator-name = "v1v8_audio";
186                                 regulator-min-microvolt = <1800000>;
187                                 regulator-max-microvolt = <1800000>;
188                                 regulator-always-on;
189                                 interrupts = <IT_CURLIM_LDO1 0>;
190                         };
191
192                         v3v3_hdmi: ldo2 {
193                                 regulator-name = "v3v3_hdmi";
194                                 regulator-min-microvolt = <3300000>;
195                                 regulator-max-microvolt = <3300000>;
196                                 regulator-always-on;
197                                 interrupts = <IT_CURLIM_LDO2 0>;
198                         };
199
200                         vtt_ddr: ldo3 {
201                                 regulator-name = "vtt_ddr";
202                                 regulator-min-microvolt = <500000>;
203                                 regulator-max-microvolt = <750000>;
204                                 regulator-always-on;
205                                 regulator-over-current-protection;
206                         };
207
208                         vdd_usb: ldo4 {
209                                 regulator-name = "vdd_usb";
210                                 regulator-min-microvolt = <3300000>;
211                                 regulator-max-microvolt = <3300000>;
212                                 interrupts = <IT_CURLIM_LDO4 0>;
213                         };
214
215                         vdda: ldo5 {
216                                 regulator-name = "vdda";
217                                 regulator-min-microvolt = <2900000>;
218                                 regulator-max-microvolt = <2900000>;
219                                 interrupts = <IT_CURLIM_LDO5 0>;
220                                 regulator-boot-on;
221                         };
222
223                         v1v2_hdmi: ldo6 {
224                                 regulator-name = "v1v2_hdmi";
225                                 regulator-min-microvolt = <1200000>;
226                                 regulator-max-microvolt = <1200000>;
227                                 regulator-always-on;
228                                 interrupts = <IT_CURLIM_LDO6 0>;
229                         };
230
231                         vref_ddr: vref_ddr {
232                                 regulator-name = "vref_ddr";
233                                 regulator-always-on;
234                                 regulator-over-current-protection;
235                         };
236
237                          bst_out: boost {
238                                 regulator-name = "bst_out";
239                                 interrupts = <IT_OCP_BOOST 0>;
240                          };
241
242                         vbus_otg: pwr_sw1 {
243                                 regulator-name = "vbus_otg";
244                                 interrupts = <IT_OCP_OTG 0>;
245                          };
246
247                          vbus_sw: pwr_sw2 {
248                                 regulator-name = "vbus_sw";
249                                 interrupts = <IT_OCP_SWOUT 0>;
250                                 regulator-active-discharge;
251                          };
252                 };
253
254                 onkey {
255                         compatible = "st,stpmic1-onkey";
256                         interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
257                         interrupt-names = "onkey-falling", "onkey-rising";
258                         power-off-time-sec = <10>;
259                         status = "okay";
260                 };
261
262                 watchdog {
263                         compatible = "st,stpmic1-wdt";
264                         status = "disabled";
265                 };
266         };
267 };
268
269 &ipcc {
270         status = "okay";
271 };
272
273 &iwdg2 {
274         timeout-sec = <32>;
275         status = "okay";
276 };
277
278 &ltdc {
279         status = "okay";
280
281         port {
282                 #address-cells = <1>;
283                 #size-cells = <0>;
284
285                 ltdc_ep0_out: endpoint@0 {
286                         reg = <0>;
287                         remote-endpoint = <&sii9022_in>;
288                 };
289         };
290 };
291
292 &rng1 {
293         status = "okay";
294 };
295
296 &rtc {
297         status = "okay";
298 };
299
300 &sdmmc1 {
301         pinctrl-names = "default", "opendrain", "sleep";
302         pinctrl-0 = <&sdmmc1_b4_pins_a>;
303         pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
304         pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
305         broken-cd;
306         st,neg-edge;
307         bus-width = <4>;
308         vmmc-supply = <&v3v3>;
309         status = "okay";
310 };
311
312 &uart4 {
313         pinctrl-names = "default";
314         pinctrl-0 = <&uart4_pins_a>;
315         status = "okay";
316 };