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 "stm32mp157xaa-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 mcuram2: mcuram2@10000000 {
32 compatible = "shared-dma-pool";
33 reg = <0x10000000 0x40000>;
37 vdev0vring0: vdev0vring0@10040000 {
38 compatible = "shared-dma-pool";
39 reg = <0x10040000 0x1000>;
43 vdev0vring1: vdev0vring1@10041000 {
44 compatible = "shared-dma-pool";
45 reg = <0x10041000 0x1000>;
49 vdev0buffer: vdev0buffer@10042000 {
50 compatible = "shared-dma-pool";
51 reg = <0x10042000 0x4000>;
55 mcuram: mcuram@30000000 {
56 compatible = "shared-dma-pool";
57 reg = <0x30000000 0x40000>;
61 retram: retram@38000000 {
62 compatible = "shared-dma-pool";
63 reg = <0x38000000 0x10000>;
67 gpu_reserved: gpu@e8000000 {
68 reg = <0xe8000000 0x8000000>;
77 sd_switch: regulator-sd_switch {
78 compatible = "regulator-gpio";
79 regulator-name = "sd_switch";
80 regulator-min-microvolt = <1800000>;
81 regulator-max-microvolt = <2900000>;
82 regulator-type = "voltage";
85 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
87 states = <1800000 0x1 2900000 0x0>;
96 contiguous-area = <&gpu_reserved>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c4_pins_a>;
103 i2c-scl-rising-time-ns = <185>;
104 i2c-scl-falling-time-ns = <20>;
106 /* spare dmas for other usage */
107 /delete-property/dmas;
108 /delete-property/dma-names;
111 compatible = "st,stpmic1";
113 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
114 interrupt-controller;
115 #interrupt-cells = <2>;
119 compatible = "st,stpmic1-regulators";
120 ldo1-supply = <&v3v3>;
121 ldo2-supply = <&v3v3>;
122 ldo3-supply = <&vdd_ddr>;
123 ldo5-supply = <&v3v3>;
124 ldo6-supply = <&v3v3>;
125 pwr_sw1-supply = <&bst_out>;
126 pwr_sw2-supply = <&bst_out>;
129 regulator-name = "vddcore";
130 regulator-min-microvolt = <800000>;
131 regulator-max-microvolt = <1350000>;
133 regulator-initial-mode = <0>;
134 regulator-over-current-protection;
138 regulator-name = "vdd_ddr";
139 regulator-min-microvolt = <1350000>;
140 regulator-max-microvolt = <1350000>;
142 regulator-initial-mode = <0>;
143 regulator-over-current-protection;
147 regulator-name = "vdd";
148 regulator-min-microvolt = <3300000>;
149 regulator-max-microvolt = <3300000>;
152 regulator-initial-mode = <0>;
153 regulator-over-current-protection;
157 regulator-name = "v3v3";
158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
161 regulator-over-current-protection;
162 regulator-initial-mode = <0>;
166 regulator-name = "vdda";
167 regulator-min-microvolt = <2900000>;
168 regulator-max-microvolt = <2900000>;
169 interrupts = <IT_CURLIM_LDO1 0>;
173 regulator-name = "v2v8";
174 regulator-min-microvolt = <2800000>;
175 regulator-max-microvolt = <2800000>;
176 interrupts = <IT_CURLIM_LDO2 0>;
180 regulator-name = "vtt_ddr";
181 regulator-min-microvolt = <500000>;
182 regulator-max-microvolt = <750000>;
184 regulator-over-current-protection;
188 regulator-name = "vdd_usb";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
191 interrupts = <IT_CURLIM_LDO4 0>;
195 regulator-name = "vdd_sd";
196 regulator-min-microvolt = <2900000>;
197 regulator-max-microvolt = <2900000>;
198 interrupts = <IT_CURLIM_LDO5 0>;
203 regulator-name = "v1v8";
204 regulator-min-microvolt = <1800000>;
205 regulator-max-microvolt = <1800000>;
206 interrupts = <IT_CURLIM_LDO6 0>;
210 regulator-name = "vref_ddr";
212 regulator-over-current-protection;
216 regulator-name = "bst_out";
217 interrupts = <IT_OCP_BOOST 0>;
221 regulator-name = "vbus_otg";
222 interrupts = <IT_OCP_OTG 0>;
226 regulator-name = "vbus_sw";
227 interrupts = <IT_OCP_SWOUT 0>;
228 regulator-active-discharge;
233 compatible = "st,stpmic1-onkey";
234 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
235 interrupt-names = "onkey-falling", "onkey-rising";
236 power-off-time-sec = <10>;
241 compatible = "st,stpmic1-wdt";
257 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
258 <&vdev0vring1>, <&vdev0buffer>;
259 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
260 mbox-names = "vq0", "vq1", "shutdown";
261 interrupt-parent = <&exti>;
269 vdd_3v3_usbfs-supply = <&vdd_usb>;
282 pinctrl-names = "default", "opendrain", "sleep";
283 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
284 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
285 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
291 vmmc-supply = <&vdd_sd>;
292 vqmmc-supply = <&sd_switch>;
297 pinctrl-names = "default", "opendrain", "sleep";
298 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
299 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
300 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
306 vmmc-supply = <&v3v3>;
307 vqmmc-supply = <&v3v3>;
314 /* spare dmas for other usage */
315 /delete-property/dmas;
316 /delete-property/dma-names;
323 pinctrl-names = "default";
324 pinctrl-0 = <&uart4_pins_a>;
329 vbus-supply = <&vbus_otg>;
333 phy-supply = <&vdd_usb>;
337 phy-supply = <&vdd_usb>;