1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de>
6 #include "stm32mp15-pinctrl.dtsi"
7 #include "stm32mp15xxaa-pinctrl.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/mfd/st,stpmic1.h>
13 ethernet0 = ðernet0;
20 device_type = "memory";
21 reg = <0xC0000000 0x40000000>;
29 mcuram2: mcuram2@10000000 {
30 compatible = "shared-dma-pool";
31 reg = <0x10000000 0x40000>;
35 vdev0vring0: vdev0vring0@10040000 {
36 compatible = "shared-dma-pool";
37 reg = <0x10040000 0x1000>;
41 vdev0vring1: vdev0vring1@10041000 {
42 compatible = "shared-dma-pool";
43 reg = <0x10041000 0x1000>;
47 vdev0buffer: vdev0buffer@10042000 {
48 compatible = "shared-dma-pool";
49 reg = <0x10042000 0x4000>;
53 mcuram: mcuram@30000000 {
54 compatible = "shared-dma-pool";
55 reg = <0x30000000 0x40000>;
59 retram: retram@38000000 {
60 compatible = "shared-dma-pool";
61 reg = <0x38000000 0x10000>;
66 ethernet_vio: vioregulator {
67 compatible = "regulator-fixed";
68 regulator-name = "vio";
69 regulator-min-microvolt = <3300000>;
70 regulator-max-microvolt = <3300000>;
71 gpio = <&gpiog 3 GPIO_ACTIVE_LOW>;
80 vdda-supply = <&vdda>;
81 vref-supply = <&vdda>;
85 st,min-sample-time-nsecs = <5000>;
86 st,adc-channels = <0>;
91 st,adc-channels = <1>;
92 st,min-sample-time-nsecs = <5000>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
104 vref-supply = <&vdda>;
121 pinctrl-0 = <ðernet0_rmii_pins_a>;
122 pinctrl-1 = <ðernet0_rmii_sleep_pins_a>;
123 pinctrl-names = "default", "sleep";
126 phy-handle = <&phy0>;
130 #address-cells = <1>;
132 compatible = "snps,dwmac-mdio";
134 phy0: ethernet-phy@1 {
137 compatible = "ethernet-phy-id0007.c0f0",
138 "ethernet-phy-ieee802.3-c22";
139 clocks = <&rcc ETHCK_K>;
140 reset-gpios = <&gpioh 3 GPIO_ACTIVE_LOW>;
141 reset-assert-us = <500>;
142 reset-deassert-us = <500>;
143 smsc,disable-energy-detect;
144 interrupt-parent = <&gpioi>;
145 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
151 pinctrl-names = "default", "sleep";
152 pinctrl-0 = <&fmc_pins_b>;
153 pinctrl-1 = <&fmc_sleep_pins_b>;
156 ksz8851: ethernet@1,0 {
157 compatible = "micrel,ks8851-mll";
158 reg = <1 0x0 0x2>, <1 0x2 0x20000>;
159 interrupt-parent = <&gpioc>;
160 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
163 /* Timing values are in nS */
164 st,fmc2-ebi-cs-mux-enable;
165 st,fmc2-ebi-cs-transaction-type = <4>;
166 st,fmc2-ebi-cs-buswidth = <16>;
167 st,fmc2-ebi-cs-address-setup-ns = <5>;
168 st,fmc2-ebi-cs-address-hold-ns = <5>;
169 st,fmc2-ebi-cs-bus-turnaround-ns = <5>;
170 st,fmc2-ebi-cs-data-setup-ns = <45>;
171 st,fmc2-ebi-cs-data-hold-ns = <1>;
172 st,fmc2-ebi-cs-write-address-setup-ns = <5>;
173 st,fmc2-ebi-cs-write-address-hold-ns = <5>;
174 st,fmc2-ebi-cs-write-bus-turnaround-ns = <5>;
175 st,fmc2-ebi-cs-write-data-setup-ns = <45>;
176 st,fmc2-ebi-cs-write-data-hold-ns = <1>;
181 gpio-line-names = "", "", "", "",
182 "", "", "DHCOM-K", "",
188 gpio-line-names = "", "", "", "",
190 "DHCOM-Q", "", "", "",
195 gpio-line-names = "", "", "", "",
196 "", "", "DHCOM-E", "",
203 gpio-line-names = "", "", "", "",
204 "", "", "DHCOM-B", "",
205 "", "", "", "DHCOM-F",
206 "DHCOM-D", "", "", "";
210 gpio-line-names = "", "", "", "",
211 "", "", "DHCOM-P", "",
217 gpio-line-names = "", "", "", "DHCOM-A",
224 gpio-line-names = "DHCOM-C", "", "", "",
226 "DHCOM-L", "", "", "",
231 gpio-line-names = "", "", "", "",
232 "", "", "", "DHCOM-N",
233 "DHCOM-J", "DHCOM-W", "DHCOM-V", "DHCOM-U",
234 "DHCOM-T", "", "DHCOM-S", "";
238 gpio-line-names = "DHCOM-G", "DHCOM-O", "DHCOM-H", "DHCOM-I",
239 "DHCOM-R", "DHCOM-M", "", "",
245 pinctrl-names = "default";
246 pinctrl-0 = <&i2c4_pins_a>;
247 i2c-scl-rising-time-ns = <185>;
248 i2c-scl-falling-time-ns = <20>;
250 /* spare dmas for other usage */
251 /delete-property/dmas;
252 /delete-property/dma-names;
255 compatible = "microcrystal,rv8803";
260 compatible = "st,stpmic1";
262 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
263 interrupt-controller;
264 #interrupt-cells = <2>;
268 compatible = "st,stpmic1-regulators";
269 ldo1-supply = <&v3v3>;
270 ldo2-supply = <&v3v3>;
271 ldo3-supply = <&vdd_ddr>;
272 ldo5-supply = <&v3v3>;
273 ldo6-supply = <&v3v3>;
274 pwr_sw1-supply = <&bst_out>;
275 pwr_sw2-supply = <&bst_out>;
278 regulator-name = "vddcore";
279 regulator-min-microvolt = <800000>;
280 regulator-max-microvolt = <1350000>;
282 regulator-initial-mode = <0>;
283 regulator-over-current-protection;
287 regulator-name = "vdd_ddr";
288 regulator-min-microvolt = <1350000>;
289 regulator-max-microvolt = <1350000>;
291 regulator-initial-mode = <0>;
292 regulator-over-current-protection;
296 regulator-name = "vdd";
297 regulator-min-microvolt = <3300000>;
298 regulator-max-microvolt = <3300000>;
301 regulator-initial-mode = <0>;
302 regulator-over-current-protection;
306 regulator-name = "v3v3";
307 regulator-min-microvolt = <3300000>;
308 regulator-max-microvolt = <3300000>;
310 regulator-over-current-protection;
311 regulator-initial-mode = <0>;
315 regulator-name = "vdda";
317 regulator-min-microvolt = <2900000>;
318 regulator-max-microvolt = <2900000>;
319 interrupts = <IT_CURLIM_LDO1 0>;
323 regulator-name = "v2v8";
324 regulator-min-microvolt = <2800000>;
325 regulator-max-microvolt = <2800000>;
326 interrupts = <IT_CURLIM_LDO2 0>;
330 regulator-name = "vtt_ddr";
331 regulator-min-microvolt = <500000>;
332 regulator-max-microvolt = <750000>;
334 regulator-over-current-protection;
338 regulator-name = "vdd_usb";
339 interrupts = <IT_CURLIM_LDO4 0>;
343 regulator-name = "vdd_sd";
344 regulator-min-microvolt = <2900000>;
345 regulator-max-microvolt = <2900000>;
346 interrupts = <IT_CURLIM_LDO5 0>;
351 regulator-name = "v1v8";
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <1800000>;
354 interrupts = <IT_CURLIM_LDO6 0>;
358 regulator-name = "vref_ddr";
363 regulator-name = "bst_out";
364 interrupts = <IT_OCP_BOOST 0>;
368 regulator-name = "vbus_otg";
369 interrupts = <IT_OCP_OTG 0>;
373 regulator-name = "vbus_sw";
374 interrupts = <IT_OCP_SWOUT 0>;
375 regulator-active-discharge = <1>;
380 compatible = "st,stpmic1-onkey";
381 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
382 interrupt-names = "onkey-falling", "onkey-rising";
383 power-off-time-sec = <10>;
388 compatible = "st,stpmic1-wdt";
394 compatible = "ti,tsc2004";
396 vio-supply = <&v3v3>;
397 interrupts-extended = <&gpioh 15 IRQ_TYPE_EDGE_FALLING>;
401 compatible = "atmel,24c02";
417 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
418 <&vdev0vring1>, <&vdev0buffer>;
419 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
420 mbox-names = "vq0", "vq1", "shutdown";
421 interrupt-parent = <&exti>;
428 vdd_3v3_usbfs-supply = <&vdd_usb>;
432 pinctrl-names = "default", "sleep";
433 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
434 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
435 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
436 #address-cells = <1>;
441 compatible = "jedec,spi-nor";
443 spi-rx-bus-width = <4>;
444 spi-max-frequency = <108000000>;
445 #address-cells = <1>;
459 pinctrl-names = "default", "opendrain", "sleep", "init";
460 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
461 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
462 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
463 pinctrl-3 = <&sdmmc1_b4_init_pins_a &sdmmc1_dir_init_pins_a>;
464 cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
469 st,cmd-gpios = <&gpiod 2 0>;
470 st,ck-gpios = <&gpioc 12 0>;
471 st,ckin-gpios = <&gpioe 4 0>;
473 vmmc-supply = <&vdd_sd>;
479 * SD bus pull-up resistors:
480 * - optional on SoMs with SD voltage translator
481 * - mandatory on SoMs without SD voltage translator
492 pinctrl-names = "default", "opendrain", "sleep";
493 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
494 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
495 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
501 vmmc-supply = <&v3v3>;
502 vqmmc-supply = <&v3v3>;
508 pinctrl-names = "default", "opendrain", "sleep";
509 pinctrl-0 = <&sdmmc3_b4_pins_a>;
510 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
511 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
515 vmmc-supply = <&v3v3>;
516 vqmmc-supply = <&v3v3>;
522 pinctrl-names = "default";
523 pinctrl-0 = <&uart4_pins_a>;