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_pins_sleep_b>;
120 cpu-supply = <&vddcore>;
124 cpu-supply = <&vddcore>;
129 pinctrl-0 = <ðernet0_rgmii_pins_a>;
130 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
131 pinctrl-names = "default", "sleep";
132 phy-mode = "rgmii-id";
134 phy-handle = <&phy0>;
137 #address-cells = <1>;
139 compatible = "snps,dwmac-mdio";
140 phy0: ethernet-phy@0 {
147 contiguous-area = <&gpu_reserved>;
152 pinctrl-names = "default", "sleep";
153 pinctrl-0 = <&i2c1_pins_a>;
154 pinctrl-1 = <&i2c1_pins_sleep_a>;
155 i2c-scl-rising-time-ns = <100>;
156 i2c-scl-falling-time-ns = <7>;
158 /delete-property/dmas;
159 /delete-property/dma-names;
161 hdmi-transmitter@39 {
162 compatible = "sil,sii9022";
164 iovcc-supply = <&v3v3_hdmi>;
165 cvcc12-supply = <&v1v2_hdmi>;
166 reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
167 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
168 interrupt-parent = <&gpiog>;
169 #sound-dai-cells = <0>;
173 #address-cells = <1>;
178 sii9022_in: endpoint {
179 remote-endpoint = <<dc_ep0_out>;
185 sii9022_tx_endpoint: endpoint {
186 remote-endpoint = <&i2s2_endpoint>;
192 cs42l51: cs42l51@4a {
193 compatible = "cirrus,cs42l51";
195 #sound-dai-cells = <0>;
197 VD-supply = <&v1v8_audio>;
198 VA-supply = <&v1v8_audio>;
199 VAHP-supply = <&v1v8_audio>;
200 reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
202 clock-names = "MCLK";
206 #address-cells = <1>;
209 cs42l51_tx_endpoint: endpoint@0 {
211 remote-endpoint = <&sai2a_endpoint>;
216 cs42l51_rx_endpoint: endpoint@1 {
218 remote-endpoint = <&sai2b_endpoint>;
227 pinctrl-names = "default", "sleep";
228 pinctrl-0 = <&i2c4_pins_a>;
229 pinctrl-1 = <&i2c4_pins_sleep_a>;
230 i2c-scl-rising-time-ns = <185>;
231 i2c-scl-falling-time-ns = <20>;
232 clock-frequency = <400000>;
234 /* spare dmas for other usage */
235 /delete-property/dmas;
236 /delete-property/dma-names;
238 typec: stusb1600@28 {
239 compatible = "st,stusb1600";
241 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
242 interrupt-parent = <&gpioi>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&stusb1600_pins_a>;
248 typec_con: connector {
249 compatible = "usb-c-connector";
252 power-opmode = "default";
257 compatible = "st,stpmic1";
259 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
260 interrupt-controller;
261 #interrupt-cells = <2>;
265 compatible = "st,stpmic1-regulators";
266 ldo1-supply = <&v3v3>;
267 ldo3-supply = <&vdd_ddr>;
268 ldo6-supply = <&v3v3>;
269 pwr_sw1-supply = <&bst_out>;
270 pwr_sw2-supply = <&bst_out>;
273 regulator-name = "vddcore";
274 regulator-min-microvolt = <1200000>;
275 regulator-max-microvolt = <1350000>;
277 regulator-initial-mode = <0>;
278 regulator-over-current-protection;
282 regulator-name = "vdd_ddr";
283 regulator-min-microvolt = <1350000>;
284 regulator-max-microvolt = <1350000>;
286 regulator-initial-mode = <0>;
287 regulator-over-current-protection;
291 regulator-name = "vdd";
292 regulator-min-microvolt = <3300000>;
293 regulator-max-microvolt = <3300000>;
296 regulator-initial-mode = <0>;
297 regulator-over-current-protection;
301 regulator-name = "v3v3";
302 regulator-min-microvolt = <3300000>;
303 regulator-max-microvolt = <3300000>;
305 regulator-over-current-protection;
306 regulator-initial-mode = <0>;
310 regulator-name = "v1v8_audio";
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
314 interrupts = <IT_CURLIM_LDO1 0>;
318 regulator-name = "v3v3_hdmi";
319 regulator-min-microvolt = <3300000>;
320 regulator-max-microvolt = <3300000>;
322 interrupts = <IT_CURLIM_LDO2 0>;
326 regulator-name = "vtt_ddr";
327 regulator-min-microvolt = <500000>;
328 regulator-max-microvolt = <750000>;
330 regulator-over-current-protection;
334 regulator-name = "vdd_usb";
335 interrupts = <IT_CURLIM_LDO4 0>;
339 regulator-name = "vdda";
340 regulator-min-microvolt = <2900000>;
341 regulator-max-microvolt = <2900000>;
342 interrupts = <IT_CURLIM_LDO5 0>;
347 regulator-name = "v1v2_hdmi";
348 regulator-min-microvolt = <1200000>;
349 regulator-max-microvolt = <1200000>;
351 interrupts = <IT_CURLIM_LDO6 0>;
355 regulator-name = "vref_ddr";
360 regulator-name = "bst_out";
361 interrupts = <IT_OCP_BOOST 0>;
365 regulator-name = "vbus_otg";
366 interrupts = <IT_OCP_OTG 0>;
370 regulator-name = "vbus_sw";
371 interrupts = <IT_OCP_SWOUT 0>;
372 regulator-active-discharge = <1>;
377 compatible = "st,stpmic1-onkey";
378 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
379 interrupt-names = "onkey-falling", "onkey-rising";
380 power-off-time-sec = <10>;
385 compatible = "st,stpmic1-wdt";
392 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
393 clock-names = "pclk", "i2sclk", "x8k", "x11k";
394 pinctrl-names = "default", "sleep";
395 pinctrl-0 = <&i2s2_pins_a>;
396 pinctrl-1 = <&i2s2_pins_sleep_a>;
400 i2s2_endpoint: endpoint {
401 remote-endpoint = <&sii9022_tx_endpoint>;
418 pinctrl-names = "default", "sleep";
419 pinctrl-0 = <<dc_pins_a>;
420 pinctrl-1 = <<dc_pins_sleep_a>;
424 #address-cells = <1>;
427 ltdc_ep0_out: endpoint@0 {
429 remote-endpoint = <&sii9022_in>;
435 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
436 <&vdev0vring1>, <&vdev0buffer>;
437 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
438 mbox-names = "vq0", "vq1", "shutdown";
439 interrupt-parent = <&exti>;
446 vdd_3v3_usbfs-supply = <&vdd_usb>;
458 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
459 clock-names = "pclk", "x8k", "x11k";
460 pinctrl-names = "default", "sleep";
461 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
462 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
465 sai2a: audio-controller@4400b004 {
468 clocks = <&rcc SAI2_K>;
469 clock-names = "sai_ck";
473 sai2a_endpoint: endpoint {
474 remote-endpoint = <&cs42l51_tx_endpoint>;
477 dai-tdm-slot-num = <2>;
478 dai-tdm-slot-width = <32>;
483 sai2b: audio-controller@4400b024 {
485 st,sync = <&sai2a 2>;
486 clocks = <&rcc SAI2_K>, <&sai2a>;
487 clock-names = "sai_ck", "MCLK";
491 sai2b_endpoint: endpoint {
492 remote-endpoint = <&cs42l51_rx_endpoint>;
495 dai-tdm-slot-num = <2>;
496 dai-tdm-slot-width = <32>;
503 pinctrl-names = "default", "opendrain", "sleep";
504 pinctrl-0 = <&sdmmc1_b4_pins_a>;
505 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
506 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
507 cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
511 vmmc-supply = <&v3v3>;
516 pinctrl-names = "default", "opendrain", "sleep";
517 pinctrl-0 = <&sdmmc3_b4_pins_a>;
518 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
519 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
523 vmmc-supply = <&v3v3>;
528 /* spare dmas for other usage */
529 /delete-property/dmas;
530 /delete-property/dma-names;
533 pinctrl-0 = <&pwm1_pins_a>;
534 pinctrl-1 = <&pwm1_sleep_pins_a>;
535 pinctrl-names = "default", "sleep";
544 /delete-property/dmas;
545 /delete-property/dma-names;
548 pinctrl-0 = <&pwm3_pins_a>;
549 pinctrl-1 = <&pwm3_sleep_pins_a>;
550 pinctrl-names = "default", "sleep";
559 /delete-property/dmas;
560 /delete-property/dma-names;
563 pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
564 pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
565 pinctrl-names = "default", "sleep";
574 /delete-property/dmas;
575 /delete-property/dma-names;
578 pinctrl-0 = <&pwm5_pins_a>;
579 pinctrl-1 = <&pwm5_sleep_pins_a>;
580 pinctrl-names = "default", "sleep";
589 /delete-property/dmas;
590 /delete-property/dma-names;
598 /delete-property/dmas;
599 /delete-property/dma-names;
602 pinctrl-0 = <&pwm12_pins_a>;
603 pinctrl-1 = <&pwm12_sleep_pins_a>;
604 pinctrl-names = "default", "sleep";
613 pinctrl-names = "default";
614 pinctrl-0 = <&uart4_pins_a>;
619 phys = <&usbphyc_port0>;
624 dr_mode = "peripheral";
625 phys = <&usbphyc_port1 0>;
626 phy-names = "usb2-phy";
635 phy-supply = <&vdd_usb>;
639 phy-supply = <&vdd_usb>;
643 regulator-min-microvolt = <2500000>;
644 regulator-max-microvolt = <2500000>;
645 vdda-supply = <&vdd>;