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 "stm32mp157.dtsi"
9 #include "stm32mp15xc.dtsi"
10 #include "stm32mp15-pinctrl.dtsi"
11 #include "stm32mp15xxaa-pinctrl.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/mfd/st,stpmic1.h>
16 model = "STMicroelectronics STM32MP157C eval daughter";
17 compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
20 stdout-path = "serial0:115200n8";
24 device_type = "memory";
25 reg = <0xC0000000 0x40000000>;
33 mcuram2: mcuram2@10000000 {
34 compatible = "shared-dma-pool";
35 reg = <0x10000000 0x40000>;
39 vdev0vring0: vdev0vring0@10040000 {
40 compatible = "shared-dma-pool";
41 reg = <0x10040000 0x1000>;
45 vdev0vring1: vdev0vring1@10041000 {
46 compatible = "shared-dma-pool";
47 reg = <0x10041000 0x1000>;
51 vdev0buffer: vdev0buffer@10042000 {
52 compatible = "shared-dma-pool";
53 reg = <0x10042000 0x4000>;
57 mcuram: mcuram@30000000 {
58 compatible = "shared-dma-pool";
59 reg = <0x30000000 0x40000>;
63 retram: retram@38000000 {
64 compatible = "shared-dma-pool";
65 reg = <0x38000000 0x10000>;
69 gpu_reserved: gpu@e8000000 {
70 reg = <0xe8000000 0x8000000>;
79 sd_switch: regulator-sd_switch {
80 compatible = "regulator-gpio";
81 regulator-name = "sd_switch";
82 regulator-min-microvolt = <1800000>;
83 regulator-max-microvolt = <2900000>;
84 regulator-type = "voltage";
87 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
89 states = <1800000 0x1>,
95 /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
96 pinctrl-0 = <&adc1_in6_pins_a>;
97 pinctrl-names = "default";
99 vdda-supply = <&vdda>;
100 vref-supply = <&vdda>;
103 st,adc-channels = <0 1 6>;
104 /* 16.5 ck_cycles sampling time */
105 st,min-sample-time-nsecs = <400>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
113 vref-supply = <&vdda>;
128 contiguous-area = <&gpu_reserved>;
133 pinctrl-names = "default", "sleep";
134 pinctrl-0 = <&i2c4_pins_a>;
135 pinctrl-1 = <&i2c4_pins_sleep_a>;
136 i2c-scl-rising-time-ns = <185>;
137 i2c-scl-falling-time-ns = <20>;
138 clock-frequency = <400000>;
140 /* spare dmas for other usage */
141 /delete-property/dmas;
142 /delete-property/dma-names;
145 compatible = "st,stpmic1";
147 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
148 interrupt-controller;
149 #interrupt-cells = <2>;
153 compatible = "st,stpmic1-regulators";
154 ldo1-supply = <&v3v3>;
155 ldo2-supply = <&v3v3>;
156 ldo3-supply = <&vdd_ddr>;
157 ldo5-supply = <&v3v3>;
158 ldo6-supply = <&v3v3>;
159 pwr_sw1-supply = <&bst_out>;
160 pwr_sw2-supply = <&bst_out>;
163 regulator-name = "vddcore";
164 regulator-min-microvolt = <1200000>;
165 regulator-max-microvolt = <1350000>;
167 regulator-initial-mode = <0>;
168 regulator-over-current-protection;
172 regulator-name = "vdd_ddr";
173 regulator-min-microvolt = <1350000>;
174 regulator-max-microvolt = <1350000>;
176 regulator-initial-mode = <0>;
177 regulator-over-current-protection;
181 regulator-name = "vdd";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
186 regulator-initial-mode = <0>;
187 regulator-over-current-protection;
191 regulator-name = "v3v3";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
195 regulator-over-current-protection;
196 regulator-initial-mode = <0>;
200 regulator-name = "vdda";
201 regulator-min-microvolt = <2900000>;
202 regulator-max-microvolt = <2900000>;
203 interrupts = <IT_CURLIM_LDO1 0>;
207 regulator-name = "v2v8";
208 regulator-min-microvolt = <2800000>;
209 regulator-max-microvolt = <2800000>;
210 interrupts = <IT_CURLIM_LDO2 0>;
214 regulator-name = "vtt_ddr";
215 regulator-min-microvolt = <500000>;
216 regulator-max-microvolt = <750000>;
218 regulator-over-current-protection;
222 regulator-name = "vdd_usb";
223 interrupts = <IT_CURLIM_LDO4 0>;
227 regulator-name = "vdd_sd";
228 regulator-min-microvolt = <2900000>;
229 regulator-max-microvolt = <2900000>;
230 interrupts = <IT_CURLIM_LDO5 0>;
235 regulator-name = "v1v8";
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <1800000>;
238 interrupts = <IT_CURLIM_LDO6 0>;
242 regulator-name = "vref_ddr";
247 regulator-name = "bst_out";
248 interrupts = <IT_OCP_BOOST 0>;
252 regulator-name = "vbus_otg";
253 interrupts = <IT_OCP_OTG 0>;
257 regulator-name = "vbus_sw";
258 interrupts = <IT_OCP_SWOUT 0>;
259 regulator-active-discharge = <1>;
264 compatible = "st,stpmic1-onkey";
265 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
266 interrupt-names = "onkey-falling", "onkey-rising";
267 power-off-time-sec = <10>;
272 compatible = "st,stpmic1-wdt";
288 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
289 <&vdev0vring1>, <&vdev0buffer>;
290 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
291 mbox-names = "vq0", "vq1", "shutdown";
292 interrupt-parent = <&exti>;
299 vdd_3v3_usbfs-supply = <&vdd_usb>;
311 pinctrl-names = "default", "opendrain", "sleep";
312 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
313 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
314 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
315 cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
321 vmmc-supply = <&vdd_sd>;
322 vqmmc-supply = <&sd_switch>;
327 pinctrl-names = "default", "opendrain", "sleep";
328 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
329 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
330 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
336 vmmc-supply = <&v3v3>;
337 vqmmc-supply = <&vdd>;
344 /* spare dmas for other usage */
345 /delete-property/dmas;
346 /delete-property/dma-names;
353 pinctrl-names = "default";
354 pinctrl-0 = <&uart4_pins_a>;
359 vbus-supply = <&vbus_otg>;
363 phy-supply = <&vdd_usb>;
367 phy-supply = <&vdd_usb>;