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 device_type = "memory";
23 reg = <0xC0000000 0x40000000>;
31 compatible = "regulator-fixed";
32 regulator-name = "reg11";
33 regulator-min-microvolt = <1100000>;
34 regulator-max-microvolt = <1100000>;
39 compatible = "regulator-fixed";
40 regulator-name = "reg18";
41 regulator-min-microvolt = <1800000>;
42 regulator-max-microvolt = <1800000>;
46 sd_switch: regulator-sd_switch {
47 compatible = "regulator-gpio";
48 regulator-name = "sd_switch";
49 regulator-min-microvolt = <1800000>;
50 regulator-max-microvolt = <2900000>;
51 regulator-type = "voltage";
54 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
56 states = <1800000 0x1 2900000 0x0>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&i2c4_pins_a>;
67 i2c-scl-rising-time-ns = <185>;
68 i2c-scl-falling-time-ns = <20>;
70 /* spare dmas for other usage */
71 /delete-property/dmas;
72 /delete-property/dma-names;
75 compatible = "st,stpmic1";
77 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
79 #interrupt-cells = <2>;
83 compatible = "st,stpmic1-regulators";
84 ldo1-supply = <&v3v3>;
85 ldo2-supply = <&v3v3>;
86 ldo3-supply = <&vdd_ddr>;
87 ldo5-supply = <&v3v3>;
88 ldo6-supply = <&v3v3>;
89 pwr_sw1-supply = <&bst_out>;
90 pwr_sw2-supply = <&bst_out>;
93 regulator-name = "vddcore";
94 regulator-min-microvolt = <800000>;
95 regulator-max-microvolt = <1350000>;
97 regulator-initial-mode = <0>;
98 regulator-over-current-protection;
102 regulator-name = "vdd_ddr";
103 regulator-min-microvolt = <1350000>;
104 regulator-max-microvolt = <1350000>;
106 regulator-initial-mode = <0>;
107 regulator-over-current-protection;
111 regulator-name = "vdd";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
116 regulator-initial-mode = <0>;
117 regulator-over-current-protection;
121 regulator-name = "v3v3";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
125 regulator-over-current-protection;
126 regulator-initial-mode = <0>;
130 regulator-name = "vdda";
131 regulator-min-microvolt = <2900000>;
132 regulator-max-microvolt = <2900000>;
133 interrupts = <IT_CURLIM_LDO1 0>;
137 regulator-name = "v2v8";
138 regulator-min-microvolt = <2800000>;
139 regulator-max-microvolt = <2800000>;
140 interrupts = <IT_CURLIM_LDO2 0>;
144 regulator-name = "vtt_ddr";
145 regulator-min-microvolt = <500000>;
146 regulator-max-microvolt = <750000>;
148 regulator-over-current-protection;
152 regulator-name = "vdd_usb";
153 regulator-min-microvolt = <3300000>;
154 regulator-max-microvolt = <3300000>;
155 interrupts = <IT_CURLIM_LDO4 0>;
159 regulator-name = "vdd_sd";
160 regulator-min-microvolt = <2900000>;
161 regulator-max-microvolt = <2900000>;
162 interrupts = <IT_CURLIM_LDO5 0>;
167 regulator-name = "v1v8";
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <1800000>;
170 interrupts = <IT_CURLIM_LDO6 0>;
174 regulator-name = "vref_ddr";
176 regulator-over-current-protection;
180 regulator-name = "bst_out";
181 interrupts = <IT_OCP_BOOST 0>;
185 regulator-name = "vbus_otg";
186 interrupts = <IT_OCP_OTG 0>;
190 regulator-name = "vbus_sw";
191 interrupts = <IT_OCP_SWOUT 0>;
192 regulator-active-discharge;
197 compatible = "st,stpmic1-onkey";
198 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
199 interrupt-names = "onkey-falling", "onkey-rising";
200 power-off-time-sec = <10>;
205 compatible = "st,stpmic1-wdt";
229 pinctrl-names = "default", "opendrain", "sleep";
230 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
231 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
232 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
238 vmmc-supply = <&vdd_sd>;
239 vqmmc-supply = <&sd_switch>;
245 /* spare dmas for other usage */
246 /delete-property/dmas;
247 /delete-property/dma-names;
254 pinctrl-names = "default";
255 pinctrl-0 = <&uart4_pins_a>;
260 phy-supply = <&vdd_usb>;
261 vdda1v1-supply = <®11>;
262 vdda1v8-supply = <®18>;
266 phy-supply = <&vdd_usb>;
267 vdda1v1-supply = <®11>;
268 vdda1v8-supply = <®18>;