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>;
30 sd_switch: regulator-sd_switch {
31 compatible = "regulator-gpio";
32 regulator-name = "sd_switch";
33 regulator-min-microvolt = <1800000>;
34 regulator-max-microvolt = <2900000>;
35 regulator-type = "voltage";
38 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
40 states = <1800000 0x1 2900000 0x0>;
49 pinctrl-names = "default";
50 pinctrl-0 = <&i2c4_pins_a>;
51 i2c-scl-rising-time-ns = <185>;
52 i2c-scl-falling-time-ns = <20>;
54 /* spare dmas for other usage */
55 /delete-property/dmas;
56 /delete-property/dma-names;
59 compatible = "st,stpmic1";
61 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
63 #interrupt-cells = <2>;
67 compatible = "st,stpmic1-regulators";
68 ldo1-supply = <&v3v3>;
69 ldo2-supply = <&v3v3>;
70 ldo3-supply = <&vdd_ddr>;
71 ldo5-supply = <&v3v3>;
72 ldo6-supply = <&v3v3>;
73 pwr_sw1-supply = <&bst_out>;
74 pwr_sw2-supply = <&bst_out>;
77 regulator-name = "vddcore";
78 regulator-min-microvolt = <800000>;
79 regulator-max-microvolt = <1350000>;
81 regulator-initial-mode = <0>;
82 regulator-over-current-protection;
86 regulator-name = "vdd_ddr";
87 regulator-min-microvolt = <1350000>;
88 regulator-max-microvolt = <1350000>;
90 regulator-initial-mode = <0>;
91 regulator-over-current-protection;
95 regulator-name = "vdd";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
100 regulator-initial-mode = <0>;
101 regulator-over-current-protection;
105 regulator-name = "v3v3";
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
109 regulator-over-current-protection;
110 regulator-initial-mode = <0>;
114 regulator-name = "vdda";
115 regulator-min-microvolt = <2900000>;
116 regulator-max-microvolt = <2900000>;
117 interrupts = <IT_CURLIM_LDO1 0>;
121 regulator-name = "v2v8";
122 regulator-min-microvolt = <2800000>;
123 regulator-max-microvolt = <2800000>;
124 interrupts = <IT_CURLIM_LDO2 0>;
128 regulator-name = "vtt_ddr";
129 regulator-min-microvolt = <500000>;
130 regulator-max-microvolt = <750000>;
132 regulator-over-current-protection;
136 regulator-name = "vdd_usb";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
139 interrupts = <IT_CURLIM_LDO4 0>;
143 regulator-name = "vdd_sd";
144 regulator-min-microvolt = <2900000>;
145 regulator-max-microvolt = <2900000>;
146 interrupts = <IT_CURLIM_LDO5 0>;
151 regulator-name = "v1v8";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
154 interrupts = <IT_CURLIM_LDO6 0>;
158 regulator-name = "vref_ddr";
160 regulator-over-current-protection;
164 regulator-name = "bst_out";
165 interrupts = <IT_OCP_BOOST 0>;
169 regulator-name = "vbus_otg";
170 interrupts = <IT_OCP_OTG 0>;
174 regulator-name = "vbus_sw";
175 interrupts = <IT_OCP_SWOUT 0>;
176 regulator-active-discharge;
181 compatible = "st,stpmic1-onkey";
182 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
183 interrupt-names = "onkey-falling", "onkey-rising";
184 power-off-time-sec = <10>;
189 compatible = "st,stpmic1-wdt";
217 pinctrl-names = "default", "opendrain", "sleep";
218 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
219 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
220 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
226 vmmc-supply = <&vdd_sd>;
227 vqmmc-supply = <&sd_switch>;
232 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
239 vmmc-supply = <&v3v3>;
240 vqmmc-supply = <&vdd>;
246 /* spare dmas for other usage */
247 /delete-property/dmas;
248 /delete-property/dma-names;
255 pinctrl-names = "default";
256 pinctrl-0 = <&uart4_pins_a>;
261 vbus-supply = <&vbus_otg>;
265 phy-supply = <&vdd_usb>;
269 phy-supply = <&vdd_usb>;