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>;
75 reg = <0xfe000000 0x02000000>;
84 sd_switch: regulator-sd_switch {
85 compatible = "regulator-gpio";
86 regulator-name = "sd_switch";
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <2900000>;
89 regulator-type = "voltage";
92 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
94 states = <1800000 0x1>,
100 /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
101 pinctrl-0 = <&adc1_in6_pins_a>;
102 pinctrl-names = "default";
104 vdda-supply = <&vdda>;
105 vref-supply = <&vdda>;
108 st,adc-channels = <0 1 6>;
109 /* 16.5 ck_cycles sampling time */
110 st,min-sample-time-nsecs = <400>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
118 vref-supply = <&vdda>;
133 contiguous-area = <&gpu_reserved>;
138 pinctrl-names = "default", "sleep";
139 pinctrl-0 = <&i2c4_pins_a>;
140 pinctrl-1 = <&i2c4_pins_sleep_a>;
141 i2c-scl-rising-time-ns = <185>;
142 i2c-scl-falling-time-ns = <20>;
143 clock-frequency = <400000>;
145 /* spare dmas for other usage */
146 /delete-property/dmas;
147 /delete-property/dma-names;
150 compatible = "st,stpmic1";
152 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
153 interrupt-controller;
154 #interrupt-cells = <2>;
158 compatible = "st,stpmic1-regulators";
159 ldo1-supply = <&v3v3>;
160 ldo2-supply = <&v3v3>;
161 ldo3-supply = <&vdd_ddr>;
162 ldo5-supply = <&v3v3>;
163 ldo6-supply = <&v3v3>;
164 pwr_sw1-supply = <&bst_out>;
165 pwr_sw2-supply = <&bst_out>;
168 regulator-name = "vddcore";
169 regulator-min-microvolt = <1200000>;
170 regulator-max-microvolt = <1350000>;
172 regulator-initial-mode = <0>;
173 regulator-over-current-protection;
177 regulator-name = "vdd_ddr";
178 regulator-min-microvolt = <1350000>;
179 regulator-max-microvolt = <1350000>;
181 regulator-initial-mode = <0>;
182 regulator-over-current-protection;
186 regulator-name = "vdd";
187 regulator-min-microvolt = <3300000>;
188 regulator-max-microvolt = <3300000>;
191 regulator-initial-mode = <0>;
192 regulator-over-current-protection;
196 regulator-name = "v3v3";
197 regulator-min-microvolt = <3300000>;
198 regulator-max-microvolt = <3300000>;
200 regulator-over-current-protection;
201 regulator-initial-mode = <0>;
205 regulator-name = "vdda";
206 regulator-min-microvolt = <2900000>;
207 regulator-max-microvolt = <2900000>;
208 interrupts = <IT_CURLIM_LDO1 0>;
212 regulator-name = "v2v8";
213 regulator-min-microvolt = <2800000>;
214 regulator-max-microvolt = <2800000>;
215 interrupts = <IT_CURLIM_LDO2 0>;
219 regulator-name = "vtt_ddr";
220 regulator-min-microvolt = <500000>;
221 regulator-max-microvolt = <750000>;
223 regulator-over-current-protection;
227 regulator-name = "vdd_usb";
228 interrupts = <IT_CURLIM_LDO4 0>;
232 regulator-name = "vdd_sd";
233 regulator-min-microvolt = <2900000>;
234 regulator-max-microvolt = <2900000>;
235 interrupts = <IT_CURLIM_LDO5 0>;
240 regulator-name = "v1v8";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
243 interrupts = <IT_CURLIM_LDO6 0>;
247 regulator-name = "vref_ddr";
252 regulator-name = "bst_out";
253 interrupts = <IT_OCP_BOOST 0>;
257 regulator-name = "vbus_otg";
258 interrupts = <IT_OCP_OTG 0>;
262 regulator-name = "vbus_sw";
263 interrupts = <IT_OCP_SWOUT 0>;
264 regulator-active-discharge = <1>;
269 compatible = "st,stpmic1-onkey";
270 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
271 interrupt-names = "onkey-falling", "onkey-rising";
272 power-off-time-sec = <10>;
277 compatible = "st,stpmic1-wdt";
293 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
294 <&vdev0vring1>, <&vdev0buffer>;
295 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
296 mbox-names = "vq0", "vq1", "shutdown";
297 interrupt-parent = <&exti>;
304 vdd_3v3_usbfs-supply = <&vdd_usb>;
316 pinctrl-names = "default", "opendrain", "sleep";
317 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
318 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
319 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
320 cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
326 vmmc-supply = <&vdd_sd>;
327 vqmmc-supply = <&sd_switch>;
332 pinctrl-names = "default", "opendrain", "sleep";
333 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
334 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
335 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
341 vmmc-supply = <&v3v3>;
342 vqmmc-supply = <&vdd>;
349 /* spare dmas for other usage */
350 /delete-property/dmas;
351 /delete-property/dma-names;
358 pinctrl-names = "default";
359 pinctrl-0 = <&uart4_pins_a>;
364 vbus-supply = <&vbus_otg>;
368 phy-supply = <&vdd_usb>;
372 phy-supply = <&vdd_usb>;