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>;
133 pinctrl-0 = <ðernet0_rgmii_pins_a>;
134 pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>;
135 pinctrl-names = "default", "sleep";
136 phy-mode = "rgmii-id";
138 phy-handle = <&phy0>;
141 #address-cells = <1>;
143 compatible = "snps,dwmac-mdio";
144 phy0: ethernet-phy@0 {
151 contiguous-area = <&gpu_reserved>;
155 pinctrl-names = "default", "sleep";
156 pinctrl-0 = <&i2c1_pins_a>;
157 pinctrl-1 = <&i2c1_sleep_pins_a>;
158 i2c-scl-rising-time-ns = <100>;
159 i2c-scl-falling-time-ns = <7>;
161 /delete-property/dmas;
162 /delete-property/dma-names;
164 hdmi-transmitter@39 {
165 compatible = "sil,sii9022";
167 iovcc-supply = <&v3v3_hdmi>;
168 cvcc12-supply = <&v1v2_hdmi>;
169 reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
170 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
171 interrupt-parent = <&gpiog>;
172 #sound-dai-cells = <0>;
176 #address-cells = <1>;
181 sii9022_in: endpoint {
182 remote-endpoint = <<dc_ep0_out>;
188 sii9022_tx_endpoint: endpoint {
189 remote-endpoint = <&i2s2_endpoint>;
195 cs42l51: cs42l51@4a {
196 compatible = "cirrus,cs42l51";
198 #sound-dai-cells = <0>;
200 VD-supply = <&v1v8_audio>;
201 VA-supply = <&v1v8_audio>;
202 VAHP-supply = <&v1v8_audio>;
203 reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
205 clock-names = "MCLK";
209 #address-cells = <1>;
212 cs42l51_tx_endpoint: endpoint@0 {
214 remote-endpoint = <&sai2a_endpoint>;
219 cs42l51_rx_endpoint: endpoint@1 {
221 remote-endpoint = <&sai2b_endpoint>;
230 pinctrl-names = "default", "sleep";
231 pinctrl-0 = <&i2c4_pins_a>;
232 pinctrl-1 = <&i2c4_sleep_pins_a>;
233 i2c-scl-rising-time-ns = <185>;
234 i2c-scl-falling-time-ns = <20>;
235 clock-frequency = <400000>;
237 /* spare dmas for other usage */
238 /delete-property/dmas;
239 /delete-property/dma-names;
242 compatible = "st,stpmic1";
244 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
245 interrupt-controller;
246 #interrupt-cells = <2>;
250 compatible = "st,stpmic1-regulators";
251 buck1-supply = <&vin>;
252 buck2-supply = <&vin>;
253 buck3-supply = <&vin>;
254 buck4-supply = <&vin>;
255 ldo1-supply = <&v3v3>;
256 ldo2-supply = <&vin>;
257 ldo3-supply = <&vdd_ddr>;
258 ldo4-supply = <&vin>;
259 ldo5-supply = <&vin>;
260 ldo6-supply = <&v3v3>;
261 vref_ddr-supply = <&vin>;
262 boost-supply = <&vin>;
263 pwr_sw1-supply = <&bst_out>;
264 pwr_sw2-supply = <&bst_out>;
267 regulator-name = "vddcore";
268 regulator-min-microvolt = <1200000>;
269 regulator-max-microvolt = <1350000>;
271 regulator-initial-mode = <0>;
272 regulator-over-current-protection;
276 regulator-name = "vdd_ddr";
277 regulator-min-microvolt = <1350000>;
278 regulator-max-microvolt = <1350000>;
280 regulator-initial-mode = <0>;
281 regulator-over-current-protection;
285 regulator-name = "vdd";
286 regulator-min-microvolt = <3300000>;
287 regulator-max-microvolt = <3300000>;
290 regulator-initial-mode = <0>;
291 regulator-over-current-protection;
295 regulator-name = "v3v3";
296 regulator-min-microvolt = <3300000>;
297 regulator-max-microvolt = <3300000>;
299 regulator-over-current-protection;
300 regulator-initial-mode = <0>;
304 regulator-name = "v1v8_audio";
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
308 interrupts = <IT_CURLIM_LDO1 0>;
312 regulator-name = "v3v3_hdmi";
313 regulator-min-microvolt = <3300000>;
314 regulator-max-microvolt = <3300000>;
316 interrupts = <IT_CURLIM_LDO2 0>;
320 regulator-name = "vtt_ddr";
321 regulator-min-microvolt = <500000>;
322 regulator-max-microvolt = <750000>;
324 regulator-over-current-protection;
328 regulator-name = "vdd_usb";
329 interrupts = <IT_CURLIM_LDO4 0>;
333 regulator-name = "vdda";
334 regulator-min-microvolt = <2900000>;
335 regulator-max-microvolt = <2900000>;
336 interrupts = <IT_CURLIM_LDO5 0>;
341 regulator-name = "v1v2_hdmi";
342 regulator-min-microvolt = <1200000>;
343 regulator-max-microvolt = <1200000>;
345 interrupts = <IT_CURLIM_LDO6 0>;
349 regulator-name = "vref_ddr";
354 regulator-name = "bst_out";
355 interrupts = <IT_OCP_BOOST 0>;
359 regulator-name = "vbus_otg";
360 interrupts = <IT_OCP_OTG 0>;
364 regulator-name = "vbus_sw";
365 interrupts = <IT_OCP_SWOUT 0>;
366 regulator-active-discharge = <1>;
371 compatible = "st,stpmic1-onkey";
372 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
373 interrupt-names = "onkey-falling", "onkey-rising";
374 power-off-time-sec = <10>;
379 compatible = "st,stpmic1-wdt";
386 pinctrl-names = "default", "sleep";
387 pinctrl-0 = <&i2c5_pins_a>;
388 pinctrl-1 = <&i2c5_sleep_pins_a>;
389 i2c-scl-rising-time-ns = <185>;
390 i2c-scl-falling-time-ns = <20>;
391 clock-frequency = <400000>;
392 /* spare dmas for other usage */
393 /delete-property/dmas;
394 /delete-property/dma-names;
399 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
400 clock-names = "pclk", "i2sclk", "x8k", "x11k";
401 pinctrl-names = "default", "sleep";
402 pinctrl-0 = <&i2s2_pins_a>;
403 pinctrl-1 = <&i2s2_sleep_pins_a>;
407 i2s2_endpoint: endpoint {
408 remote-endpoint = <&sii9022_tx_endpoint>;
425 pinctrl-names = "default", "sleep";
426 pinctrl-0 = <<dc_pins_a>;
427 pinctrl-1 = <<dc_sleep_pins_a>;
431 ltdc_ep0_out: endpoint@0 {
433 remote-endpoint = <&sii9022_in>;
439 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
440 <&vdev0vring1>, <&vdev0buffer>;
441 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
442 mbox-names = "vq0", "vq1", "shutdown";
443 interrupt-parent = <&exti>;
450 vdd_3v3_usbfs-supply = <&vdd_usb>;
462 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
463 clock-names = "pclk", "x8k", "x11k";
464 pinctrl-names = "default", "sleep";
465 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
466 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
469 sai2a: audio-controller@4400b004 {
472 clocks = <&rcc SAI2_K>;
473 clock-names = "sai_ck";
477 sai2a_endpoint: endpoint {
478 remote-endpoint = <&cs42l51_tx_endpoint>;
481 dai-tdm-slot-num = <2>;
482 dai-tdm-slot-width = <32>;
487 sai2b: audio-controller@4400b024 {
489 st,sync = <&sai2a 2>;
490 clocks = <&rcc SAI2_K>, <&sai2a>;
491 clock-names = "sai_ck", "MCLK";
495 sai2b_endpoint: endpoint {
496 remote-endpoint = <&cs42l51_rx_endpoint>;
499 dai-tdm-slot-num = <2>;
500 dai-tdm-slot-width = <32>;
507 pinctrl-names = "default", "opendrain", "sleep";
508 pinctrl-0 = <&sdmmc1_b4_pins_a>;
509 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
510 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
511 cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
515 vmmc-supply = <&v3v3>;
520 pinctrl-names = "default", "opendrain", "sleep";
521 pinctrl-0 = <&sdmmc3_b4_pins_a>;
522 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
523 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
527 vmmc-supply = <&v3v3>;
532 /* spare dmas for other usage */
533 /delete-property/dmas;
534 /delete-property/dma-names;
537 pinctrl-0 = <&pwm1_pins_a>;
538 pinctrl-1 = <&pwm1_sleep_pins_a>;
539 pinctrl-names = "default", "sleep";
548 /delete-property/dmas;
549 /delete-property/dma-names;
552 pinctrl-0 = <&pwm3_pins_a>;
553 pinctrl-1 = <&pwm3_sleep_pins_a>;
554 pinctrl-names = "default", "sleep";
563 /delete-property/dmas;
564 /delete-property/dma-names;
567 pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
568 pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
569 pinctrl-names = "default", "sleep";
578 /delete-property/dmas;
579 /delete-property/dma-names;
582 pinctrl-0 = <&pwm5_pins_a>;
583 pinctrl-1 = <&pwm5_sleep_pins_a>;
584 pinctrl-names = "default", "sleep";
593 /delete-property/dmas;
594 /delete-property/dma-names;
602 /delete-property/dmas;
603 /delete-property/dma-names;
606 pinctrl-0 = <&pwm12_pins_a>;
607 pinctrl-1 = <&pwm12_sleep_pins_a>;
608 pinctrl-names = "default", "sleep";
617 pinctrl-names = "default", "sleep", "idle";
618 pinctrl-0 = <&uart4_pins_a>;
619 pinctrl-1 = <&uart4_sleep_pins_a>;
620 pinctrl-2 = <&uart4_idle_pins_a>;
625 pinctrl-names = "default", "sleep", "idle";
626 pinctrl-0 = <&uart7_pins_c>;
627 pinctrl-1 = <&uart7_sleep_pins_c>;
628 pinctrl-2 = <&uart7_idle_pins_c>;
633 pinctrl-names = "default", "sleep", "idle";
634 pinctrl-0 = <&usart3_pins_c>;
635 pinctrl-1 = <&usart3_sleep_pins_c>;
636 pinctrl-2 = <&usart3_idle_pins_c>;
642 phys = <&usbphyc_port0>;
647 phys = <&usbphyc_port1 0>;
648 phy-names = "usb2-phy";
658 phy-supply = <&vdd_usb>;
659 vdda1v1-supply = <®11>;
660 vdda1v8-supply = <®18>;
664 phy-supply = <&vdd_usb>;
665 vdda1v1-supply = <®11>;
666 vdda1v8-supply = <®18>;
670 regulator-min-microvolt = <2500000>;
671 regulator-max-microvolt = <2500000>;
672 vdda-supply = <&vdd>;