1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
9 #include "stm32mp157c.dtsi"
10 #include "stm32mp157-pinctrl.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/mfd/st,stpmic1.h>
15 model = "STMicroelectronics STM32MP157A-DK1 Discovery Board";
16 compatible = "st,stm32mp157a-dk1", "st,stm32mp157";
19 ethernet0 = ðernet0;
24 stdout-path = "serial0:115200n8";
28 reg = <0xc0000000 0x20000000>;
32 compatible = "gpio-leds";
35 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
36 linux,default-trigger = "heartbeat";
37 default-state = "off";
43 pinctrl-names = "default", "sleep";
44 pinctrl-0 = <&cec_pins_b>;
45 pinctrl-1 = <&cec_pins_sleep_b>;
51 pinctrl-0 = <ðernet0_rgmii_pins_a>;
52 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
53 pinctrl-names = "default", "sleep";
54 phy-mode = "rgmii-id";
61 compatible = "snps,dwmac-mdio";
62 phy0: ethernet-phy@0 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&i2c4_pins_a>;
72 i2c-scl-rising-time-ns = <185>;
73 i2c-scl-falling-time-ns = <20>;
75 /* spare dmas for other usage */
76 /delete-property/dmas;
77 /delete-property/dma-names;
80 compatible = "st,stusb1600";
82 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
83 interrupt-parent = <&gpioi>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&stusb1600_pins_a>;
89 typec_con: connector {
90 compatible = "usb-c-connector";
93 power-opmode = "default";
98 compatible = "st,stpmic1";
100 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
101 interrupt-controller;
102 #interrupt-cells = <2>;
106 compatible = "st,stpmic1-regulators";
107 ldo1-supply = <&v3v3>;
108 ldo3-supply = <&vdd_ddr>;
109 ldo6-supply = <&v3v3>;
110 pwr_sw1-supply = <&bst_out>;
111 pwr_sw2-supply = <&bst_out>;
114 regulator-name = "vddcore";
115 regulator-min-microvolt = <800000>;
116 regulator-max-microvolt = <1350000>;
118 regulator-initial-mode = <0>;
119 regulator-over-current-protection;
123 regulator-name = "vdd_ddr";
124 regulator-min-microvolt = <1350000>;
125 regulator-max-microvolt = <1350000>;
127 regulator-initial-mode = <0>;
128 regulator-over-current-protection;
132 regulator-name = "vdd";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
137 regulator-initial-mode = <0>;
138 regulator-over-current-protection;
142 regulator-name = "v3v3";
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
146 regulator-over-current-protection;
147 regulator-initial-mode = <0>;
151 regulator-name = "v1v8_audio";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
155 interrupts = <IT_CURLIM_LDO1 0>;
159 regulator-name = "v3v3_hdmi";
160 regulator-min-microvolt = <3300000>;
161 regulator-max-microvolt = <3300000>;
163 interrupts = <IT_CURLIM_LDO2 0>;
167 regulator-name = "vtt_ddr";
168 regulator-min-microvolt = <500000>;
169 regulator-max-microvolt = <750000>;
171 regulator-over-current-protection;
175 regulator-name = "vdd_usb";
176 regulator-min-microvolt = <3300000>;
177 regulator-max-microvolt = <3300000>;
178 interrupts = <IT_CURLIM_LDO4 0>;
182 regulator-name = "vdda";
183 regulator-min-microvolt = <2900000>;
184 regulator-max-microvolt = <2900000>;
185 interrupts = <IT_CURLIM_LDO5 0>;
190 regulator-name = "v1v2_hdmi";
191 regulator-min-microvolt = <1200000>;
192 regulator-max-microvolt = <1200000>;
194 interrupts = <IT_CURLIM_LDO6 0>;
198 regulator-name = "vref_ddr";
200 regulator-over-current-protection;
204 regulator-name = "bst_out";
205 interrupts = <IT_OCP_BOOST 0>;
209 regulator-name = "vbus_otg";
210 interrupts = <IT_OCP_OTG 0>;
214 regulator-name = "vbus_sw";
215 interrupts = <IT_OCP_SWOUT 0>;
216 regulator-active-discharge;
221 compatible = "st,stpmic1-onkey";
222 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
223 interrupt-names = "onkey-falling", "onkey-rising";
224 power-off-time-sec = <10>;
229 compatible = "st,stpmic1-wdt";
257 pinctrl-names = "default", "opendrain", "sleep";
258 pinctrl-0 = <&sdmmc1_b4_pins_a>;
259 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
260 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
264 vmmc-supply = <&v3v3>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&uart4_pins_a>;
275 phys = <&usbphyc_port0>;
281 dr_mode = "peripheral";
282 phys = <&usbphyc_port1 0>;
283 phy-names = "usb2-phy";
292 phy-supply = <&vdd_usb>;
296 phy-supply = <&vdd_usb>;
300 regulator-min-microvolt = <2500000>;
301 regulator-max-microvolt = <2500000>;
302 vdda-supply = <&vdd>;