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>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>;
90 vref-supply = <&vrefbuf>;
94 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
95 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
96 * 5 * (56 + 47kOhms) * 5pF => 2.5us.
97 * Use arbitrary margin here (e.g. 5us).
99 st,min-sample-time-nsecs = <5000>;
100 /* AIN connector, USB Type-C CC1 & CC2 */
101 st,adc-channels = <0 1 6 13 18 19>;
105 /* AIN connector, USB Type-C CC1 & CC2 */
106 st,adc-channels = <0 1 2 6 18 19>;
107 st,min-sample-time-nsecs = <5000>;
113 pinctrl-names = "default", "sleep";
114 pinctrl-0 = <&cec_pins_b>;
115 pinctrl-1 = <&cec_sleep_pins_b>;
124 cpu-supply = <&vddcore>;
128 cpu-supply = <&vddcore>;
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;
241 typec: stusb1600@28 {
242 compatible = "st,stusb1600";
244 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
245 interrupt-parent = <&gpioi>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&stusb1600_pins_a>;
251 typec_con: connector {
252 compatible = "usb-c-connector";
255 power-opmode = "default";
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 ldo3-supply = <&vdd_ddr>;
271 ldo6-supply = <&v3v3>;
272 pwr_sw1-supply = <&bst_out>;
273 pwr_sw2-supply = <&bst_out>;
276 regulator-name = "vddcore";
277 regulator-min-microvolt = <1200000>;
278 regulator-max-microvolt = <1350000>;
280 regulator-initial-mode = <0>;
281 regulator-over-current-protection;
285 regulator-name = "vdd_ddr";
286 regulator-min-microvolt = <1350000>;
287 regulator-max-microvolt = <1350000>;
289 regulator-initial-mode = <0>;
290 regulator-over-current-protection;
294 regulator-name = "vdd";
295 regulator-min-microvolt = <3300000>;
296 regulator-max-microvolt = <3300000>;
299 regulator-initial-mode = <0>;
300 regulator-over-current-protection;
304 regulator-name = "v3v3";
305 regulator-min-microvolt = <3300000>;
306 regulator-max-microvolt = <3300000>;
308 regulator-over-current-protection;
309 regulator-initial-mode = <0>;
313 regulator-name = "v1v8_audio";
314 regulator-min-microvolt = <1800000>;
315 regulator-max-microvolt = <1800000>;
317 interrupts = <IT_CURLIM_LDO1 0>;
321 regulator-name = "v3v3_hdmi";
322 regulator-min-microvolt = <3300000>;
323 regulator-max-microvolt = <3300000>;
325 interrupts = <IT_CURLIM_LDO2 0>;
329 regulator-name = "vtt_ddr";
330 regulator-min-microvolt = <500000>;
331 regulator-max-microvolt = <750000>;
333 regulator-over-current-protection;
337 regulator-name = "vdd_usb";
338 interrupts = <IT_CURLIM_LDO4 0>;
342 regulator-name = "vdda";
343 regulator-min-microvolt = <2900000>;
344 regulator-max-microvolt = <2900000>;
345 interrupts = <IT_CURLIM_LDO5 0>;
350 regulator-name = "v1v2_hdmi";
351 regulator-min-microvolt = <1200000>;
352 regulator-max-microvolt = <1200000>;
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";
395 pinctrl-names = "default", "sleep";
396 pinctrl-0 = <&i2c5_pins_a>;
397 pinctrl-1 = <&i2c5_sleep_pins_a>;
398 i2c-scl-rising-time-ns = <185>;
399 i2c-scl-falling-time-ns = <20>;
400 clock-frequency = <400000>;
401 /* spare dmas for other usage */
402 /delete-property/dmas;
403 /delete-property/dma-names;
408 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
409 clock-names = "pclk", "i2sclk", "x8k", "x11k";
410 pinctrl-names = "default", "sleep";
411 pinctrl-0 = <&i2s2_pins_a>;
412 pinctrl-1 = <&i2s2_sleep_pins_a>;
416 i2s2_endpoint: endpoint {
417 remote-endpoint = <&sii9022_tx_endpoint>;
434 pinctrl-names = "default", "sleep";
435 pinctrl-0 = <<dc_pins_a>;
436 pinctrl-1 = <<dc_sleep_pins_a>;
440 ltdc_ep0_out: endpoint@0 {
442 remote-endpoint = <&sii9022_in>;
448 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
449 <&vdev0vring1>, <&vdev0buffer>;
450 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
451 mbox-names = "vq0", "vq1", "shutdown";
452 interrupt-parent = <&exti>;
459 vdd_3v3_usbfs-supply = <&vdd_usb>;
471 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
472 clock-names = "pclk", "x8k", "x11k";
473 pinctrl-names = "default", "sleep";
474 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
475 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
478 sai2a: audio-controller@4400b004 {
481 clocks = <&rcc SAI2_K>;
482 clock-names = "sai_ck";
486 sai2a_endpoint: endpoint {
487 remote-endpoint = <&cs42l51_tx_endpoint>;
490 dai-tdm-slot-num = <2>;
491 dai-tdm-slot-width = <32>;
496 sai2b: audio-controller@4400b024 {
498 st,sync = <&sai2a 2>;
499 clocks = <&rcc SAI2_K>, <&sai2a>;
500 clock-names = "sai_ck", "MCLK";
504 sai2b_endpoint: endpoint {
505 remote-endpoint = <&cs42l51_rx_endpoint>;
508 dai-tdm-slot-num = <2>;
509 dai-tdm-slot-width = <32>;
516 pinctrl-names = "default", "opendrain", "sleep";
517 pinctrl-0 = <&sdmmc1_b4_pins_a>;
518 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
519 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
520 cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
524 vmmc-supply = <&v3v3>;
529 pinctrl-names = "default", "opendrain", "sleep";
530 pinctrl-0 = <&sdmmc3_b4_pins_a>;
531 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
532 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
536 vmmc-supply = <&v3v3>;
541 /* spare dmas for other usage */
542 /delete-property/dmas;
543 /delete-property/dma-names;
546 pinctrl-0 = <&pwm1_pins_a>;
547 pinctrl-1 = <&pwm1_sleep_pins_a>;
548 pinctrl-names = "default", "sleep";
557 /delete-property/dmas;
558 /delete-property/dma-names;
561 pinctrl-0 = <&pwm3_pins_a>;
562 pinctrl-1 = <&pwm3_sleep_pins_a>;
563 pinctrl-names = "default", "sleep";
572 /delete-property/dmas;
573 /delete-property/dma-names;
576 pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
577 pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
578 pinctrl-names = "default", "sleep";
587 /delete-property/dmas;
588 /delete-property/dma-names;
591 pinctrl-0 = <&pwm5_pins_a>;
592 pinctrl-1 = <&pwm5_sleep_pins_a>;
593 pinctrl-names = "default", "sleep";
602 /delete-property/dmas;
603 /delete-property/dma-names;
611 /delete-property/dmas;
612 /delete-property/dma-names;
615 pinctrl-0 = <&pwm12_pins_a>;
616 pinctrl-1 = <&pwm12_sleep_pins_a>;
617 pinctrl-names = "default", "sleep";
626 pinctrl-names = "default", "sleep", "idle";
627 pinctrl-0 = <&uart4_pins_a>;
628 pinctrl-1 = <&uart4_sleep_pins_a>;
629 pinctrl-2 = <&uart4_idle_pins_a>;
634 pinctrl-names = "default", "sleep", "idle";
635 pinctrl-0 = <&uart7_pins_c>;
636 pinctrl-1 = <&uart7_sleep_pins_c>;
637 pinctrl-2 = <&uart7_idle_pins_c>;
642 pinctrl-names = "default", "sleep", "idle";
643 pinctrl-0 = <&usart3_pins_c>;
644 pinctrl-1 = <&usart3_sleep_pins_c>;
645 pinctrl-2 = <&usart3_idle_pins_c>;
651 phys = <&usbphyc_port0>;
656 phys = <&usbphyc_port1 0>;
657 phy-names = "usb2-phy";
667 phy-supply = <&vdd_usb>;
671 phy-supply = <&vdd_usb>;
675 regulator-min-microvolt = <2500000>;
676 regulator-max-microvolt = <2500000>;
677 vdda-supply = <&vdd>;