1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2019 Marek Vasut <marex@denx.de>
7 #include "stm32mp157.dtsi"
8 #include "stm32mp15xc.dtsi"
9 #include "stm32mp15-pinctrl.dtsi"
10 #include "stm32mp15xxaa-pinctrl.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/mfd/st,stpmic1.h>
17 ethernet0 = ðernet0;
21 device_type = "memory";
22 reg = <0xC0000000 0x40000000>;
25 ethernet_vio: vioregulator {
26 compatible = "regulator-fixed";
27 regulator-name = "vio";
28 regulator-min-microvolt = <3300000>;
29 regulator-max-microvolt = <3300000>;
30 gpio = <&gpiog 3 GPIO_ACTIVE_LOW>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&cec_pins_a>;
44 pinctrl-names = "default", "sleep";
45 pinctrl-0 = <&dcmi_pins_a>;
46 pinctrl-1 = <&dcmi_sleep_pins_a>;
55 pinctrl-0 = <ðernet0_rmii_pins_a>;
56 pinctrl-1 = <ðernet0_rmii_pins_sleep_a>;
57 pinctrl-names = "default", "sleep";
62 phy-reset-gpios = <&gpioh 15 GPIO_ACTIVE_LOW>;
67 compatible = "snps,dwmac-mdio";
69 phy0: ethernet-phy@1 {
76 pinctrl-names = "default";
77 pinctrl-0 = <&i2c2_pins_a>;
78 i2c-scl-rising-time-ns = <185>;
79 i2c-scl-falling-time-ns = <20>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&i2c4_pins_a>;
86 i2c-scl-rising-time-ns = <185>;
87 i2c-scl-falling-time-ns = <20>;
89 /* spare dmas for other usage */
90 /delete-property/dmas;
91 /delete-property/dma-names;
94 compatible = "st,stpmic1";
96 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
98 #interrupt-cells = <2>;
102 compatible = "st,stpmic1-regulators";
103 ldo1-supply = <&v3v3>;
104 ldo2-supply = <&v3v3>;
105 ldo3-supply = <&vdd_ddr>;
106 ldo5-supply = <&v3v3>;
107 ldo6-supply = <&v3v3>;
108 pwr_sw1-supply = <&bst_out>;
109 pwr_sw2-supply = <&bst_out>;
112 regulator-name = "vddcore";
113 regulator-min-microvolt = <800000>;
114 regulator-max-microvolt = <1350000>;
116 regulator-initial-mode = <0>;
117 regulator-over-current-protection;
121 regulator-name = "vdd_ddr";
122 regulator-min-microvolt = <1350000>;
123 regulator-max-microvolt = <1350000>;
125 regulator-initial-mode = <0>;
126 regulator-over-current-protection;
130 regulator-name = "vdd";
131 regulator-min-microvolt = <3300000>;
132 regulator-max-microvolt = <3300000>;
135 regulator-initial-mode = <0>;
136 regulator-over-current-protection;
140 regulator-name = "v3v3";
141 regulator-min-microvolt = <3300000>;
142 regulator-max-microvolt = <3300000>;
144 regulator-over-current-protection;
145 regulator-initial-mode = <0>;
149 regulator-name = "vdda";
150 regulator-min-microvolt = <2900000>;
151 regulator-max-microvolt = <2900000>;
152 interrupts = <IT_CURLIM_LDO1 0>;
156 regulator-name = "v2v8";
157 regulator-min-microvolt = <2800000>;
158 regulator-max-microvolt = <2800000>;
159 interrupts = <IT_CURLIM_LDO2 0>;
163 regulator-name = "vtt_ddr";
164 regulator-min-microvolt = <500000>;
165 regulator-max-microvolt = <750000>;
167 regulator-over-current-protection;
171 regulator-name = "vdd_usb";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
174 interrupts = <IT_CURLIM_LDO4 0>;
178 regulator-name = "vdd_sd";
179 regulator-min-microvolt = <2900000>;
180 regulator-max-microvolt = <2900000>;
181 interrupts = <IT_CURLIM_LDO5 0>;
186 regulator-name = "v1v8";
187 regulator-min-microvolt = <1800000>;
188 regulator-max-microvolt = <1800000>;
189 interrupts = <IT_CURLIM_LDO6 0>;
193 regulator-name = "vref_ddr";
195 regulator-over-current-protection;
199 regulator-name = "bst_out";
200 interrupts = <IT_OCP_BOOST 0>;
204 regulator-name = "vbus_otg";
205 interrupts = <IT_OCP_OTG 0>;
209 regulator-name = "vbus_sw";
210 interrupts = <IT_OCP_SWOUT 0>;
211 regulator-active-discharge;
216 compatible = "st,stpmic1-onkey";
217 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
218 interrupt-names = "onkey-falling", "onkey-rising";
219 power-off-time-sec = <10>;
224 compatible = "st,stpmic1-wdt";
230 compatible = "atmel,24c02";
237 pinctrl-names = "default";
238 pinctrl-0 = <&i2c5_pins_a>;
239 i2c-scl-rising-time-ns = <185>;
240 i2c-scl-falling-time-ns = <20>;
254 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
255 mbox-names = "vq0", "vq1", "shutdown";
261 vdd_3v3_usbfs-supply = <&vdd_usb>;
265 ethernet0_rmii_pins_a: rmii-0 {
267 pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH1_RMII_TXD0 */
268 <STM32_PINMUX('G', 14, AF11)>, /* ETH1_RMII_TXD1 */
269 <STM32_PINMUX('B', 11, AF11)>, /* ETH1_RMII_TX_EN */
270 <STM32_PINMUX('A', 1, AF0)>, /* ETH1_RMII_REF_CLK */
271 <STM32_PINMUX('A', 2, AF11)>, /* ETH1_MDIO */
272 <STM32_PINMUX('C', 1, AF11)>; /* ETH1_MDC */
278 pinmux = <STM32_PINMUX('C', 4, AF11)>, /* ETH1_RMII_RXD0 */
279 <STM32_PINMUX('C', 5, AF11)>, /* ETH1_RMII_RXD1 */
280 <STM32_PINMUX('A', 7, AF11)>; /* ETH1_RMII_CRS_DV */
285 ethernet0_rmii_pins_sleep_a: rmii-sleep-0 {
287 pinmux = <STM32_PINMUX('G', 13, ANALOG)>, /* ETH1_RMII_TXD0 */
288 <STM32_PINMUX('G', 14, ANALOG)>, /* ETH1_RMII_TXD1 */
289 <STM32_PINMUX('B', 11, ANALOG)>, /* ETH1_RMII_TX_EN */
290 <STM32_PINMUX('A', 2, ANALOG)>, /* ETH1_MDIO */
291 <STM32_PINMUX('C', 1, ANALOG)>, /* ETH1_MDC */
292 <STM32_PINMUX('C', 4, ANALOG)>, /* ETH1_RMII_RXD0 */
293 <STM32_PINMUX('C', 5, ANALOG)>, /* ETH1_RMII_RXD1 */
294 <STM32_PINMUX('A', 1, ANALOG)>, /* ETH1_RMII_REF_CLK */
295 <STM32_PINMUX('A', 7, ANALOG)>; /* ETH1_RMII_CRS_DV */
301 pinctrl-names = "default", "sleep";
302 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
303 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
304 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
305 #address-cells = <1>;
309 flash0: mx66l51235l@0 {
310 compatible = "jedec,spi-nor";
312 spi-rx-bus-width = <4>;
313 spi-max-frequency = <108000000>;
314 #address-cells = <1>;
318 flash1: mx66l51235l@1 {
319 compatible = "jedec,spi-nor";
321 spi-rx-bus-width = <4>;
322 spi-max-frequency = <108000000>;
323 #address-cells = <1>;
337 pinctrl-names = "default", "opendrain", "sleep";
338 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
339 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
340 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
341 cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
347 vmmc-supply = <&vdd_sd>;
352 pinctrl-names = "default";
353 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
360 vmmc-supply = <&v3v3>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&spi1_pins_a>;
371 /* spare dmas for other usage (un-delete to enable pwm capture) */
372 /delete-property/dmas;
373 /delete-property/dma-names;
376 pinctrl-0 = <&pwm2_pins_a>;
377 pinctrl-names = "default";
387 /* spare dmas for other usage */
388 /delete-property/dmas;
389 /delete-property/dma-names;
396 /delete-property/dmas;
397 /delete-property/dma-names;
400 pinctrl-0 = <&pwm8_pins_a>;
401 pinctrl-names = "default";
410 /delete-property/dmas;
411 /delete-property/dma-names;
414 pinctrl-0 = <&pwm12_pins_a>;
415 pinctrl-names = "default";
424 pinctrl-names = "default";
425 pinctrl-0 = <&uart4_pins_a>;
430 phys = <&usbphyc_port0>;
436 dr_mode = "peripheral";
437 phys = <&usbphyc_port1 0>;
438 phy-names = "usb2-phy";
439 vbus-supply = <&vbus_otg>;
448 phy-supply = <&vdd_usb>;
452 phy-supply = <&vdd_usb>;