1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2020 Manivannan Sadhasivam
8 #include "stm32mp157.dtsi"
9 #include "stm32mp15-pinctrl.dtsi"
10 #include "stm32mp15xxac-pinctrl.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/mfd/st,stpmic1.h>
24 stdout-path = "serial1:115200n8";
28 device_type = "memory";
29 reg = <0xc0000000 0x10000000>;
33 compatible = "gpio-leds";
36 label = "green:user1";
37 gpios = <&gpioa 13 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "heartbeat";
39 default-state = "off";
43 label = "green:user2";
44 gpios = <&gpioh 3 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "mmc0";
46 default-state = "off";
50 label = "green:user3";
51 gpios = <&gpioh 2 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "mmc1";
53 default-state = "off";
57 label = "green:user4";
58 gpios = <&gpiof 12 GPIO_ACTIVE_HIGH>;
59 linux,default-trigger = "none";
60 default-state = "off";
65 sd_switch: regulator-sd_switch {
66 compatible = "regulator-gpio";
67 regulator-name = "sd_switch";
68 regulator-min-microvolt = <1800000>;
69 regulator-max-microvolt = <2900000>;
70 regulator-type = "voltage";
73 gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>;
75 states = <1800000 0x1>,
80 /* Only headless mode is supported */
87 pinctrl-names = "default";
88 pinctrl-0 = <&i2c2_pins_a>;
89 i2c-scl-rising-time-ns = <1000>;
90 i2c-scl-falling-time-ns = <300>;
92 /delete-property/dmas;
93 /delete-property/dma-names;
97 pinctrl-names = "default";
98 pinctrl-0 = <&i2c4_pins_a>;
99 i2c-scl-rising-time-ns = <185>;
100 i2c-scl-falling-time-ns = <20>;
102 /delete-property/dmas;
103 /delete-property/dma-names;
106 compatible = "st,stpmic1";
108 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
109 interrupt-controller;
110 #interrupt-cells = <2>;
114 compatible = "st,stpmic1-regulators";
116 ldo1-supply = <&v3v3>;
117 ldo2-supply = <&v3v3>;
118 ldo3-supply = <&vdd_ddr>;
119 ldo5-supply = <&v3v3>;
120 ldo6-supply = <&v3v3>;
121 pwr_sw1-supply = <&bst_out>;
122 pwr_sw2-supply = <&bst_out>;
125 regulator-name = "vddcore";
126 regulator-min-microvolt = <1200000>;
127 regulator-max-microvolt = <1350000>;
129 regulator-initial-mode = <0>;
130 regulator-over-current-protection;
134 regulator-name = "vdd_ddr";
135 regulator-min-microvolt = <1500000>;
136 regulator-max-microvolt = <1500000>;
138 regulator-initial-mode = <0>;
139 regulator-over-current-protection;
143 regulator-name = "vdd";
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <1800000>;
148 regulator-initial-mode = <0>;
149 regulator-over-current-protection;
153 regulator-name = "v3v3";
154 regulator-min-microvolt = <3300000>;
155 regulator-max-microvolt = <3300000>;
157 regulator-over-current-protection;
158 regulator-initial-mode = <0>;
162 regulator-name = "vdda";
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
166 interrupts = <IT_CURLIM_LDO1 0>;
170 regulator-name = "v2v9";
171 regulator-min-microvolt = <2900000>;
172 regulator-max-microvolt = <2900000>;
174 interrupts = <IT_CURLIM_LDO2 0>;
178 regulator-name = "vtt_ddr";
179 regulator-min-microvolt = <500000>;
180 regulator-max-microvolt = <750000>;
182 regulator-over-current-protection;
186 regulator-name = "vdd_usb";
187 regulator-min-microvolt = <3300000>;
188 regulator-max-microvolt = <3300000>;
189 interrupts = <IT_CURLIM_LDO4 0>;
193 regulator-name = "vdd_sd";
194 regulator-min-microvolt = <2900000>;
195 regulator-max-microvolt = <2900000>;
196 interrupts = <IT_CURLIM_LDO5 0>;
201 regulator-name = "v1v8";
202 regulator-min-microvolt = <1800000>;
203 regulator-max-microvolt = <1800000>;
205 interrupts = <IT_CURLIM_LDO6 0>;
209 regulator-name = "vref_ddr";
211 regulator-over-current-protection;
215 regulator-name = "bst_out";
216 interrupts = <IT_OCP_BOOST 0>;
220 regulator-name = "vbus_otg";
221 interrupts = <IT_OCP_OTG 0>;
222 regulator-active-discharge;
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 1>;
235 interrupt-names = "onkey-falling", "onkey-rising";
240 compatible = "st,stpmic1-wdt";
253 vdd_3v3_usbfs-supply = <&vdd_usb>;
265 pinctrl-names = "default", "opendrain", "sleep";
266 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
267 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>;
268 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>;
275 vmmc-supply = <&vdd_sd>;
276 vqmmc-supply = <&sd_switch>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&spi4_pins_a>;
284 cs-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>;
290 pinctrl-names = "default", "sleep";
291 pinctrl-0 = <&usart2_pins_b>;
292 pinctrl-1 = <&usart2_sleep_pins_b>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&uart4_pins_c>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&uart7_pins_b>;
313 phys = <&usbphyc_port0>;
319 dr_mode = "peripheral";
320 pinctrl-0 = <&usbotg_hs_pins_a>;
321 pinctrl-names = "default";
322 phy-names = "usb2-phy";
323 phys = <&usbphyc_port1 0>;
324 vbus-supply = <&vbus_otg>;
333 phy-supply = <&vdd_usb>;
334 vdda1v1-supply = <®11>;
335 vdda1v8-supply = <®18>;
339 phy-supply = <&vdd_usb>;
340 vdda1v1-supply = <®11>;
341 vdda1v8-supply = <®18>;