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/leds/common.h>
14 #include <dt-bindings/mfd/st,stpmic1.h>
17 model = "STMicroelectronics STM32MP157C eval daughter";
18 compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
25 stdout-path = "serial0:115200n8";
29 device_type = "memory";
30 reg = <0xC0000000 0x40000000>;
38 mcuram2: mcuram2@10000000 {
39 compatible = "shared-dma-pool";
40 reg = <0x10000000 0x40000>;
44 vdev0vring0: vdev0vring0@10040000 {
45 compatible = "shared-dma-pool";
46 reg = <0x10040000 0x1000>;
50 vdev0vring1: vdev0vring1@10041000 {
51 compatible = "shared-dma-pool";
52 reg = <0x10041000 0x1000>;
56 vdev0buffer: vdev0buffer@10042000 {
57 compatible = "shared-dma-pool";
58 reg = <0x10042000 0x4000>;
62 mcuram: mcuram@30000000 {
63 compatible = "shared-dma-pool";
64 reg = <0x30000000 0x40000>;
68 retram: retram@38000000 {
69 compatible = "shared-dma-pool";
70 reg = <0x38000000 0x10000>;
76 compatible = "gpio-leds";
78 gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
79 linux,default-trigger = "heartbeat";
80 default-state = "off";
81 function = LED_FUNCTION_HEARTBEAT;
82 color = <LED_COLOR_ID_BLUE>;
86 sd_switch: regulator-sd_switch {
87 compatible = "regulator-gpio";
88 regulator-name = "sd_switch";
89 regulator-min-microvolt = <1800000>;
90 regulator-max-microvolt = <2900000>;
91 regulator-type = "voltage";
94 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>;
96 states = <1800000 0x1>,
101 compatible = "regulator-fixed";
102 regulator-name = "vin";
103 regulator-min-microvolt = <5000000>;
104 regulator-max-microvolt = <5000000>;
110 /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
111 pinctrl-0 = <&adc1_in6_pins_a>;
112 pinctrl-names = "default";
114 vdda-supply = <&vdda>;
115 vref-supply = <&vdda>;
121 /* 16.5 ck_cycles sampling time */
122 st,min-sample-time-ns = <400>;
126 st,min-sample-time-ns = <400>;
130 st,min-sample-time-ns = <400>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
146 vref-supply = <&vdda>;
165 pinctrl-names = "default", "sleep";
166 pinctrl-0 = <&i2c4_pins_a>;
167 pinctrl-1 = <&i2c4_sleep_pins_a>;
168 i2c-scl-rising-time-ns = <185>;
169 i2c-scl-falling-time-ns = <20>;
170 clock-frequency = <400000>;
172 /* spare dmas for other usage */
173 /delete-property/dmas;
174 /delete-property/dma-names;
177 compatible = "st,stpmic1";
179 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
180 interrupt-controller;
181 #interrupt-cells = <2>;
185 compatible = "st,stpmic1-regulators";
186 buck1-supply = <&vin>;
187 buck2-supply = <&vin>;
188 buck3-supply = <&vin>;
189 buck4-supply = <&vin>;
190 ldo1-supply = <&v3v3>;
191 ldo2-supply = <&v3v3>;
192 ldo3-supply = <&vdd_ddr>;
193 ldo4-supply = <&vin>;
194 ldo5-supply = <&v3v3>;
195 ldo6-supply = <&v3v3>;
196 vref_ddr-supply = <&vin>;
197 boost-supply = <&vin>;
198 pwr_sw1-supply = <&bst_out>;
199 pwr_sw2-supply = <&bst_out>;
202 regulator-name = "vddcore";
203 regulator-min-microvolt = <1200000>;
204 regulator-max-microvolt = <1350000>;
206 regulator-initial-mode = <0>;
207 regulator-over-current-protection;
211 regulator-name = "vdd_ddr";
212 regulator-min-microvolt = <1350000>;
213 regulator-max-microvolt = <1350000>;
215 regulator-initial-mode = <0>;
216 regulator-over-current-protection;
220 regulator-name = "vdd";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
225 regulator-initial-mode = <0>;
226 regulator-over-current-protection;
230 regulator-name = "v3v3";
231 regulator-min-microvolt = <3300000>;
232 regulator-max-microvolt = <3300000>;
234 regulator-over-current-protection;
235 regulator-initial-mode = <0>;
239 regulator-name = "vdda";
240 regulator-min-microvolt = <2900000>;
241 regulator-max-microvolt = <2900000>;
242 interrupts = <IT_CURLIM_LDO1 0>;
246 regulator-name = "v2v8";
247 regulator-min-microvolt = <2800000>;
248 regulator-max-microvolt = <2800000>;
249 interrupts = <IT_CURLIM_LDO2 0>;
253 regulator-name = "vtt_ddr";
254 regulator-min-microvolt = <500000>;
255 regulator-max-microvolt = <750000>;
257 regulator-over-current-protection;
261 regulator-name = "vdd_usb";
262 interrupts = <IT_CURLIM_LDO4 0>;
266 regulator-name = "vdd_sd";
267 regulator-min-microvolt = <2900000>;
268 regulator-max-microvolt = <2900000>;
269 interrupts = <IT_CURLIM_LDO5 0>;
274 regulator-name = "v1v8";
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <1800000>;
277 interrupts = <IT_CURLIM_LDO6 0>;
281 regulator-name = "vref_ddr";
286 regulator-name = "bst_out";
287 interrupts = <IT_OCP_BOOST 0>;
291 regulator-name = "vbus_otg";
292 interrupts = <IT_OCP_OTG 0>;
296 regulator-name = "vbus_sw";
297 interrupts = <IT_OCP_SWOUT 0>;
298 regulator-active-discharge = <1>;
303 compatible = "st,stpmic1-onkey";
304 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
305 interrupt-names = "onkey-falling", "onkey-rising";
306 power-off-time-sec = <10>;
311 compatible = "st,stpmic1-wdt";
327 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
328 <&vdev0vring1>, <&vdev0buffer>;
329 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
330 mbox-names = "vq0", "vq1", "shutdown", "detach";
331 interrupt-parent = <&exti>;
338 vdd_3v3_usbfs-supply = <&vdd_usb>;
350 pinctrl-names = "default", "opendrain", "sleep";
351 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
352 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
353 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
354 cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
360 vmmc-supply = <&vdd_sd>;
361 vqmmc-supply = <&sd_switch>;
370 pinctrl-names = "default", "opendrain", "sleep";
371 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
372 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
373 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
379 vmmc-supply = <&v3v3>;
380 vqmmc-supply = <&vdd>;
387 /* spare dmas for other usage */
388 /delete-property/dmas;
389 /delete-property/dma-names;
396 pinctrl-names = "default", "sleep", "idle";
397 pinctrl-0 = <&uart4_pins_a>;
398 pinctrl-1 = <&uart4_sleep_pins_a>;
399 pinctrl-2 = <&uart4_idle_pins_a>;
400 /delete-property/dmas;
401 /delete-property/dma-names;
406 vbus-supply = <&vbus_otg>;
410 phy-supply = <&vdd_usb>;
414 phy-supply = <&vdd_usb>;