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.
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/mfd/st,stpmic1.h>
12 device_type = "memory";
13 reg = <0xc0000000 0x20000000>;
21 mcuram2: mcuram2@10000000 {
22 compatible = "shared-dma-pool";
23 reg = <0x10000000 0x40000>;
27 vdev0vring0: vdev0vring0@10040000 {
28 compatible = "shared-dma-pool";
29 reg = <0x10040000 0x1000>;
33 vdev0vring1: vdev0vring1@10041000 {
34 compatible = "shared-dma-pool";
35 reg = <0x10041000 0x1000>;
39 vdev0buffer: vdev0buffer@10042000 {
40 compatible = "shared-dma-pool";
41 reg = <0x10042000 0x4000>;
45 mcuram: mcuram@30000000 {
46 compatible = "shared-dma-pool";
47 reg = <0x30000000 0x40000>;
51 retram: retram@38000000 {
52 compatible = "shared-dma-pool";
53 reg = <0x38000000 0x10000>;
57 gpu_reserved: gpu@d4000000 {
58 reg = <0xd4000000 0x4000000>;
64 compatible = "gpio-leds";
67 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
68 linux,default-trigger = "heartbeat";
69 default-state = "off";
74 compatible = "audio-graph-card";
75 label = "STM32MP1-DK";
80 dais = <&sai2a_port &sai2b_port &i2s2_port>;
85 compatible = "regulator-fixed";
86 regulator-name = "vin";
87 regulator-min-microvolt = <5000000>;
88 regulator-max-microvolt = <5000000>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>;
98 vref-supply = <&vrefbuf>;
102 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
103 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
104 * 5 * (56 + 47kOhms) * 5pF => 2.5us.
105 * Use arbitrary margin here (e.g. 5us).
107 st,min-sample-time-nsecs = <5000>;
108 /* AIN connector, USB Type-C CC1 & CC2 */
109 st,adc-channels = <0 1 6 13 18 19>;
113 /* AIN connector, USB Type-C CC1 & CC2 */
114 st,adc-channels = <0 1 2 6 18 19>;
115 st,min-sample-time-nsecs = <5000>;
121 pinctrl-names = "default", "sleep";
122 pinctrl-0 = <&cec_pins_b>;
123 pinctrl-1 = <&cec_sleep_pins_b>;
137 pinctrl-0 = <ðernet0_rgmii_pins_a>;
138 pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>;
139 pinctrl-names = "default", "sleep";
140 phy-mode = "rgmii-id";
142 phy-handle = <&phy0>;
145 #address-cells = <1>;
147 compatible = "snps,dwmac-mdio";
148 phy0: ethernet-phy@0 {
155 contiguous-area = <&gpu_reserved>;
163 pinctrl-names = "default", "sleep";
164 pinctrl-0 = <&i2c1_pins_a>;
165 pinctrl-1 = <&i2c1_sleep_pins_a>;
166 i2c-scl-rising-time-ns = <100>;
167 i2c-scl-falling-time-ns = <7>;
169 /delete-property/dmas;
170 /delete-property/dma-names;
172 hdmi-transmitter@39 {
173 compatible = "sil,sii9022";
175 iovcc-supply = <&v3v3_hdmi>;
176 cvcc12-supply = <&v1v2_hdmi>;
177 reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
178 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
179 interrupt-parent = <&gpiog>;
180 #sound-dai-cells = <0>;
184 #address-cells = <1>;
189 sii9022_in: endpoint {
190 remote-endpoint = <<dc_ep0_out>;
196 sii9022_tx_endpoint: endpoint {
197 remote-endpoint = <&i2s2_endpoint>;
203 cs42l51: cs42l51@4a {
204 compatible = "cirrus,cs42l51";
206 #sound-dai-cells = <0>;
208 VD-supply = <&v1v8_audio>;
209 VA-supply = <&v1v8_audio>;
210 VAHP-supply = <&v1v8_audio>;
211 reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
213 clock-names = "MCLK";
217 #address-cells = <1>;
220 cs42l51_tx_endpoint: endpoint@0 {
222 remote-endpoint = <&sai2a_endpoint>;
227 cs42l51_rx_endpoint: endpoint@1 {
229 remote-endpoint = <&sai2b_endpoint>;
238 pinctrl-names = "default", "sleep";
239 pinctrl-0 = <&i2c4_pins_a>;
240 pinctrl-1 = <&i2c4_sleep_pins_a>;
241 i2c-scl-rising-time-ns = <185>;
242 i2c-scl-falling-time-ns = <20>;
243 clock-frequency = <400000>;
245 /* spare dmas for other usage */
246 /delete-property/dmas;
247 /delete-property/dma-names;
250 compatible = "st,stusb1600";
252 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
253 interrupt-parent = <&gpioi>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&stusb1600_pins_a>;
260 compatible = "usb-c-connector";
263 typec-power-opmode = "default";
266 con_usbotg_hs_ep: endpoint {
267 remote-endpoint = <&usbotg_hs_ep>;
274 compatible = "st,stpmic1";
276 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
277 interrupt-controller;
278 #interrupt-cells = <2>;
282 compatible = "st,stpmic1-regulators";
283 buck1-supply = <&vin>;
284 buck2-supply = <&vin>;
285 buck3-supply = <&vin>;
286 buck4-supply = <&vin>;
287 ldo1-supply = <&v3v3>;
288 ldo2-supply = <&vin>;
289 ldo3-supply = <&vdd_ddr>;
290 ldo4-supply = <&vin>;
291 ldo5-supply = <&vin>;
292 ldo6-supply = <&v3v3>;
293 vref_ddr-supply = <&vin>;
294 boost-supply = <&vin>;
295 pwr_sw1-supply = <&bst_out>;
296 pwr_sw2-supply = <&bst_out>;
299 regulator-name = "vddcore";
300 regulator-min-microvolt = <1200000>;
301 regulator-max-microvolt = <1350000>;
303 regulator-initial-mode = <0>;
304 regulator-over-current-protection;
308 regulator-name = "vdd_ddr";
309 regulator-min-microvolt = <1350000>;
310 regulator-max-microvolt = <1350000>;
312 regulator-initial-mode = <0>;
313 regulator-over-current-protection;
317 regulator-name = "vdd";
318 regulator-min-microvolt = <3300000>;
319 regulator-max-microvolt = <3300000>;
322 regulator-initial-mode = <0>;
323 regulator-over-current-protection;
327 regulator-name = "v3v3";
328 regulator-min-microvolt = <3300000>;
329 regulator-max-microvolt = <3300000>;
331 regulator-over-current-protection;
332 regulator-initial-mode = <0>;
336 regulator-name = "v1v8_audio";
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
340 interrupts = <IT_CURLIM_LDO1 0>;
344 regulator-name = "v3v3_hdmi";
345 regulator-min-microvolt = <3300000>;
346 regulator-max-microvolt = <3300000>;
348 interrupts = <IT_CURLIM_LDO2 0>;
352 regulator-name = "vtt_ddr";
353 regulator-min-microvolt = <500000>;
354 regulator-max-microvolt = <750000>;
356 regulator-over-current-protection;
360 regulator-name = "vdd_usb";
361 interrupts = <IT_CURLIM_LDO4 0>;
365 regulator-name = "vdda";
366 regulator-min-microvolt = <2900000>;
367 regulator-max-microvolt = <2900000>;
368 interrupts = <IT_CURLIM_LDO5 0>;
373 regulator-name = "v1v2_hdmi";
374 regulator-min-microvolt = <1200000>;
375 regulator-max-microvolt = <1200000>;
377 interrupts = <IT_CURLIM_LDO6 0>;
381 regulator-name = "vref_ddr";
386 regulator-name = "bst_out";
387 interrupts = <IT_OCP_BOOST 0>;
391 regulator-name = "vbus_otg";
392 interrupts = <IT_OCP_OTG 0>;
396 regulator-name = "vbus_sw";
397 interrupts = <IT_OCP_SWOUT 0>;
398 regulator-active-discharge = <1>;
403 compatible = "st,stpmic1-onkey";
404 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
405 interrupt-names = "onkey-falling", "onkey-rising";
406 power-off-time-sec = <10>;
411 compatible = "st,stpmic1-wdt";
418 pinctrl-names = "default", "sleep";
419 pinctrl-0 = <&i2c5_pins_a>;
420 pinctrl-1 = <&i2c5_sleep_pins_a>;
421 i2c-scl-rising-time-ns = <185>;
422 i2c-scl-falling-time-ns = <20>;
423 clock-frequency = <400000>;
424 /* spare dmas for other usage */
425 /delete-property/dmas;
426 /delete-property/dma-names;
431 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
432 clock-names = "pclk", "i2sclk", "x8k", "x11k";
433 pinctrl-names = "default", "sleep";
434 pinctrl-0 = <&i2s2_pins_a>;
435 pinctrl-1 = <&i2s2_sleep_pins_a>;
439 i2s2_endpoint: endpoint {
440 remote-endpoint = <&sii9022_tx_endpoint>;
457 pinctrl-names = "default", "sleep";
458 pinctrl-0 = <<dc_pins_a>;
459 pinctrl-1 = <<dc_sleep_pins_a>;
463 ltdc_ep0_out: endpoint@0 {
465 remote-endpoint = <&sii9022_in>;
471 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
472 <&vdev0vring1>, <&vdev0buffer>;
473 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
474 mbox-names = "vq0", "vq1", "shutdown";
475 interrupt-parent = <&exti>;
482 vdd_3v3_usbfs-supply = <&vdd_usb>;
494 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
495 clock-names = "pclk", "x8k", "x11k";
496 pinctrl-names = "default", "sleep";
497 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
498 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
501 sai2a: audio-controller@4400b004 {
504 clocks = <&rcc SAI2_K>;
505 clock-names = "sai_ck";
509 sai2a_endpoint: endpoint {
510 remote-endpoint = <&cs42l51_tx_endpoint>;
513 dai-tdm-slot-num = <2>;
514 dai-tdm-slot-width = <32>;
519 sai2b: audio-controller@4400b024 {
521 st,sync = <&sai2a 2>;
522 clocks = <&rcc SAI2_K>, <&sai2a>;
523 clock-names = "sai_ck", "MCLK";
527 sai2b_endpoint: endpoint {
528 remote-endpoint = <&cs42l51_rx_endpoint>;
531 dai-tdm-slot-num = <2>;
532 dai-tdm-slot-width = <32>;
539 pinctrl-names = "default", "opendrain", "sleep";
540 pinctrl-0 = <&sdmmc1_b4_pins_a>;
541 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
542 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
543 cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
547 vmmc-supply = <&v3v3>;
552 pinctrl-names = "default", "opendrain", "sleep";
553 pinctrl-0 = <&sdmmc3_b4_pins_a>;
554 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
555 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
559 vmmc-supply = <&v3v3>;
564 /* spare dmas for other usage */
565 /delete-property/dmas;
566 /delete-property/dma-names;
569 pinctrl-0 = <&pwm1_pins_a>;
570 pinctrl-1 = <&pwm1_sleep_pins_a>;
571 pinctrl-names = "default", "sleep";
580 /delete-property/dmas;
581 /delete-property/dma-names;
584 pinctrl-0 = <&pwm3_pins_a>;
585 pinctrl-1 = <&pwm3_sleep_pins_a>;
586 pinctrl-names = "default", "sleep";
595 /delete-property/dmas;
596 /delete-property/dma-names;
599 pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
600 pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
601 pinctrl-names = "default", "sleep";
610 /delete-property/dmas;
611 /delete-property/dma-names;
614 pinctrl-0 = <&pwm5_pins_a>;
615 pinctrl-1 = <&pwm5_sleep_pins_a>;
616 pinctrl-names = "default", "sleep";
625 /delete-property/dmas;
626 /delete-property/dma-names;
634 /delete-property/dmas;
635 /delete-property/dma-names;
638 pinctrl-0 = <&pwm12_pins_a>;
639 pinctrl-1 = <&pwm12_sleep_pins_a>;
640 pinctrl-names = "default", "sleep";
649 pinctrl-names = "default", "sleep", "idle";
650 pinctrl-0 = <&uart4_pins_a>;
651 pinctrl-1 = <&uart4_sleep_pins_a>;
652 pinctrl-2 = <&uart4_idle_pins_a>;
657 pinctrl-names = "default", "sleep", "idle";
658 pinctrl-0 = <&uart7_pins_c>;
659 pinctrl-1 = <&uart7_sleep_pins_c>;
660 pinctrl-2 = <&uart7_idle_pins_c>;
665 pinctrl-names = "default", "sleep", "idle";
666 pinctrl-0 = <&usart3_pins_c>;
667 pinctrl-1 = <&usart3_sleep_pins_c>;
668 pinctrl-2 = <&usart3_idle_pins_c>;
674 phys = <&usbphyc_port0>;
679 phys = <&usbphyc_port1 0>;
680 phy-names = "usb2-phy";
685 usbotg_hs_ep: endpoint {
686 remote-endpoint = <&con_usbotg_hs_ep>;
696 phy-supply = <&vdd_usb>;
697 vdda1v1-supply = <®11>;
698 vdda1v8-supply = <®18>;
702 phy-supply = <&vdd_usb>;
703 vdda1v1-supply = <®11>;
704 vdda1v8-supply = <®18>;
708 regulator-min-microvolt = <2500000>;
709 regulator-max-microvolt = <2500000>;
710 vdda-supply = <&vdd>;