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.dtsi"
9 #include "stm32mp157-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/mfd/st,stpmic1.h>
14 model = "STMicroelectronics STM32MP157C eval daughter";
15 compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
18 stdout-path = "serial0:115200n8";
22 reg = <0xC0000000 0x40000000>;
29 sd_switch: regulator-sd_switch {
30 compatible = "regulator-gpio";
31 regulator-name = "sd_switch";
32 regulator-min-microvolt = <1800000>;
33 regulator-max-microvolt = <2900000>;
34 regulator-type = "voltage";
37 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
39 states = <1800000 0x1 2900000 0x0>;
48 pinctrl-names = "default";
49 pinctrl-0 = <&i2c4_pins_a>;
50 i2c-scl-rising-time-ns = <185>;
51 i2c-scl-falling-time-ns = <20>;
55 compatible = "st,stpmic1";
58 interrupt-parent = <&gpioa>;
60 #interrupt-cells = <2>;
63 st,main_control_register = <0x04>;
64 st,vin_control_register = <0xc0>;
65 st,usb_control_register = <0x30>;
68 compatible = "st,stpmic1-regulators";
70 ldo1-supply = <&v3v3>;
71 ldo2-supply = <&v3v3>;
72 ldo3-supply = <&vdd_ddr>;
73 ldo5-supply = <&v3v3>;
74 ldo6-supply = <&v3v3>;
75 pwr_sw1-supply = <&bst_out>;
76 pwr_sw2-supply = <&bst_out>;
79 regulator-name = "vddcore";
80 regulator-min-microvolt = <800000>;
81 regulator-max-microvolt = <1350000>;
83 regulator-initial-mode = <2>;
84 regulator-over-current-protection;
86 regulator-state-standby {
87 regulator-on-in-suspend;
88 regulator-suspend-microvolt = <1200000>;
92 regulator-off-in-suspend;
94 regulator-state-disk {
95 regulator-off-in-suspend;
100 regulator-name = "vdd_ddr";
101 regulator-min-microvolt = <1350000>;
102 regulator-max-microvolt = <1350000>;
104 regulator-initial-mode = <2>;
105 regulator-over-current-protection;
107 regulator-state-standby {
108 regulator-suspend-microvolt = <1350000>;
109 regulator-on-in-suspend;
110 regulator-mode = <8>;
112 regulator-state-mem {
113 regulator-suspend-microvolt = <1350000>;
114 regulator-on-in-suspend;
115 regulator-mode = <8>;
117 regulator-state-disk {
118 regulator-off-in-suspend;
123 regulator-name = "vdd";
124 regulator-min-microvolt = <3300000>;
125 regulator-max-microvolt = <3300000>;
128 regulator-initial-mode = <8>;
129 regulator-over-current-protection;
131 regulator-state-standby {
132 regulator-suspend-microvolt = <3300000>;
133 regulator-on-in-suspend;
134 regulator-mode = <8>;
136 regulator-state-mem {
137 regulator-suspend-microvolt = <3300000>;
138 regulator-on-in-suspend;
139 regulator-mode = <8>;
141 regulator-state-disk {
142 regulator-suspend-microvolt = <3300000>;
143 regulator-on-in-suspend;
144 regulator-mode = <8>;
149 regulator-name = "v3v3";
150 regulator-min-microvolt = <3300000>;
151 regulator-max-microvolt = <3300000>;
153 regulator-over-current-protection;
154 regulator-initial-mode = <8>;
156 regulator-state-standby {
157 regulator-suspend-microvolt = <3300000>;
158 regulator-unchanged-in-suspend;
159 regulator-mode = <8>;
161 regulator-state-mem {
162 regulator-off-in-suspend;
164 regulator-state-disk {
165 regulator-off-in-suspend;
170 regulator-name = "vdda";
171 regulator-min-microvolt = <2900000>;
172 regulator-max-microvolt = <2900000>;
173 interrupts = <IT_CURLIM_LDO1 0>;
174 interrupt-parent = <&pmic>;
176 regulator-state-standby {
177 regulator-suspend-microvolt = <2900000>;
178 regulator-unchanged-in-suspend;
180 regulator-state-mem {
181 regulator-off-in-suspend;
183 regulator-state-disk {
184 regulator-off-in-suspend;
189 regulator-name = "v2v8";
190 regulator-min-microvolt = <2800000>;
191 regulator-max-microvolt = <2800000>;
192 interrupts = <IT_CURLIM_LDO2 0>;
193 interrupt-parent = <&pmic>;
195 regulator-state-standby {
196 regulator-suspend-microvolt = <2800000>;
197 regulator-unchanged-in-suspend;
199 regulator-state-mem {
200 regulator-off-in-suspend;
202 regulator-state-disk {
203 regulator-off-in-suspend;
208 regulator-name = "vtt_ddr";
209 regulator-min-microvolt = <0000000>;
210 regulator-max-microvolt = <1000000>;
212 regulator-over-current-protection;
214 regulator-state-standby {
215 regulator-off-in-suspend;
217 regulator-state-mem {
218 regulator-off-in-suspend;
220 regulator-state-disk {
221 regulator-off-in-suspend;
226 regulator-name = "vdd_usb";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
229 interrupts = <IT_CURLIM_LDO4 0>;
230 interrupt-parent = <&pmic>;
232 regulator-state-standby {
233 regulator-unchanged-in-suspend;
235 regulator-state-mem {
236 regulator-off-in-suspend;
238 regulator-state-disk {
239 regulator-off-in-suspend;
244 regulator-name = "vdd_sd";
245 regulator-min-microvolt = <2900000>;
246 regulator-max-microvolt = <2900000>;
247 interrupts = <IT_CURLIM_LDO5 0>;
248 interrupt-parent = <&pmic>;
251 regulator-state-standby {
252 regulator-suspend-microvolt = <2900000>;
253 regulator-unchanged-in-suspend;
255 regulator-state-mem {
256 regulator-off-in-suspend;
258 regulator-state-disk {
259 regulator-off-in-suspend;
264 regulator-name = "v1v8";
265 regulator-min-microvolt = <1800000>;
266 regulator-max-microvolt = <1800000>;
267 interrupts = <IT_CURLIM_LDO6 0>;
268 interrupt-parent = <&pmic>;
270 regulator-state-standby {
271 regulator-suspend-microvolt = <1800000>;
272 regulator-unchanged-in-suspend;
274 regulator-state-mem {
275 regulator-off-in-suspend;
277 regulator-state-disk {
278 regulator-off-in-suspend;
283 regulator-name = "vref_ddr";
285 regulator-over-current-protection;
287 regulator-state-standby {
288 regulator-on-in-suspend;
290 regulator-state-mem {
291 regulator-on-in-suspend;
293 regulator-state-disk {
294 regulator-off-in-suspend;
299 regulator-name = "bst_out";
300 interrupts = <IT_OCP_BOOST 0>;
301 interrupt-parent = <&pmic>;
305 regulator-name = "vbus_otg";
306 interrupts = <IT_OCP_OTG 0>;
307 interrupt-parent = <&pmic>;
308 regulator-active-discharge;
312 regulator-name = "vbus_sw";
313 interrupts = <IT_OCP_SWOUT 0>;
314 interrupt-parent = <&pmic>;
315 regulator-active-discharge;
327 hwlocks = <&hwspinlock 0>;
343 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
349 vmmc-supply = <&vdd_sd>;
350 vqmmc-supply = <&sd_switch>;
360 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
367 vmmc-supply = <&v3v3>;
368 vqmmc-supply = <&vdd>;
380 pinctrl-names = "default";
381 pinctrl-0 = <&uart4_pins_a>;
386 phy-supply = <&vdd_usb>;
390 phy-supply = <&vdd_usb>;