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>;
121 pinctrl-0 = <ðernet0_rgmii_pins_a>;
122 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
123 pinctrl-names = "default", "sleep";
124 phy-mode = "rgmii-id";
126 phy-handle = <&phy0>;
129 #address-cells = <1>;
131 compatible = "snps,dwmac-mdio";
132 phy0: ethernet-phy@0 {
139 contiguous-area = <&gpu_reserved>;
144 pinctrl-names = "default", "sleep";
145 pinctrl-0 = <&i2c1_pins_a>;
146 pinctrl-1 = <&i2c1_pins_sleep_a>;
147 i2c-scl-rising-time-ns = <100>;
148 i2c-scl-falling-time-ns = <7>;
150 /delete-property/dmas;
151 /delete-property/dma-names;
153 hdmi-transmitter@39 {
154 compatible = "sil,sii9022";
156 iovcc-supply = <&v3v3_hdmi>;
157 cvcc12-supply = <&v1v2_hdmi>;
158 reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
159 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
160 interrupt-parent = <&gpiog>;
161 #sound-dai-cells = <0>;
165 #address-cells = <1>;
170 sii9022_in: endpoint {
171 remote-endpoint = <<dc_ep0_out>;
177 sii9022_tx_endpoint: endpoint {
178 remote-endpoint = <&i2s2_endpoint>;
184 cs42l51: cs42l51@4a {
185 compatible = "cirrus,cs42l51";
187 #sound-dai-cells = <0>;
189 VD-supply = <&v1v8_audio>;
190 VA-supply = <&v1v8_audio>;
191 VAHP-supply = <&v1v8_audio>;
192 reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
194 clock-names = "MCLK";
198 #address-cells = <1>;
201 cs42l51_tx_endpoint: endpoint@0 {
203 remote-endpoint = <&sai2a_endpoint>;
208 cs42l51_rx_endpoint: endpoint@1 {
210 remote-endpoint = <&sai2b_endpoint>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&i2c4_pins_a>;
221 i2c-scl-rising-time-ns = <185>;
222 i2c-scl-falling-time-ns = <20>;
224 /* spare dmas for other usage */
225 /delete-property/dmas;
226 /delete-property/dma-names;
228 typec: stusb1600@28 {
229 compatible = "st,stusb1600";
231 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
232 interrupt-parent = <&gpioi>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&stusb1600_pins_a>;
238 typec_con: connector {
239 compatible = "usb-c-connector";
242 power-opmode = "default";
247 compatible = "st,stpmic1";
249 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
250 interrupt-controller;
251 #interrupt-cells = <2>;
255 compatible = "st,stpmic1-regulators";
256 ldo1-supply = <&v3v3>;
257 ldo3-supply = <&vdd_ddr>;
258 ldo6-supply = <&v3v3>;
259 pwr_sw1-supply = <&bst_out>;
260 pwr_sw2-supply = <&bst_out>;
263 regulator-name = "vddcore";
264 regulator-min-microvolt = <1200000>;
265 regulator-max-microvolt = <1350000>;
267 regulator-initial-mode = <0>;
268 regulator-over-current-protection;
272 regulator-name = "vdd_ddr";
273 regulator-min-microvolt = <1350000>;
274 regulator-max-microvolt = <1350000>;
276 regulator-initial-mode = <0>;
277 regulator-over-current-protection;
281 regulator-name = "vdd";
282 regulator-min-microvolt = <3300000>;
283 regulator-max-microvolt = <3300000>;
286 regulator-initial-mode = <0>;
287 regulator-over-current-protection;
291 regulator-name = "v3v3";
292 regulator-min-microvolt = <3300000>;
293 regulator-max-microvolt = <3300000>;
295 regulator-over-current-protection;
296 regulator-initial-mode = <0>;
300 regulator-name = "v1v8_audio";
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>;
304 interrupts = <IT_CURLIM_LDO1 0>;
308 regulator-name = "v3v3_hdmi";
309 regulator-min-microvolt = <3300000>;
310 regulator-max-microvolt = <3300000>;
312 interrupts = <IT_CURLIM_LDO2 0>;
316 regulator-name = "vtt_ddr";
317 regulator-min-microvolt = <500000>;
318 regulator-max-microvolt = <750000>;
320 regulator-over-current-protection;
324 regulator-name = "vdd_usb";
325 regulator-min-microvolt = <3300000>;
326 regulator-max-microvolt = <3300000>;
327 interrupts = <IT_CURLIM_LDO4 0>;
331 regulator-name = "vdda";
332 regulator-min-microvolt = <2900000>;
333 regulator-max-microvolt = <2900000>;
334 interrupts = <IT_CURLIM_LDO5 0>;
339 regulator-name = "v1v2_hdmi";
340 regulator-min-microvolt = <1200000>;
341 regulator-max-microvolt = <1200000>;
343 interrupts = <IT_CURLIM_LDO6 0>;
347 regulator-name = "vref_ddr";
349 regulator-over-current-protection;
353 regulator-name = "bst_out";
354 interrupts = <IT_OCP_BOOST 0>;
358 regulator-name = "vbus_otg";
359 interrupts = <IT_OCP_OTG 0>;
363 regulator-name = "vbus_sw";
364 interrupts = <IT_OCP_SWOUT 0>;
365 regulator-active-discharge = <1>;
370 compatible = "st,stpmic1-onkey";
371 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
372 interrupt-names = "onkey-falling", "onkey-rising";
373 power-off-time-sec = <10>;
378 compatible = "st,stpmic1-wdt";
385 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
386 clock-names = "pclk", "i2sclk", "x8k", "x11k";
387 pinctrl-names = "default", "sleep";
388 pinctrl-0 = <&i2s2_pins_a>;
389 pinctrl-1 = <&i2s2_pins_sleep_a>;
393 i2s2_endpoint: endpoint {
394 remote-endpoint = <&sii9022_tx_endpoint>;
411 pinctrl-names = "default", "sleep";
412 pinctrl-0 = <<dc_pins_a>;
413 pinctrl-1 = <<dc_pins_sleep_a>;
417 #address-cells = <1>;
420 ltdc_ep0_out: endpoint@0 {
422 remote-endpoint = <&sii9022_in>;
428 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
429 <&vdev0vring1>, <&vdev0buffer>;
430 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
431 mbox-names = "vq0", "vq1", "shutdown";
432 interrupt-parent = <&exti>;
439 vdd_3v3_usbfs-supply = <&vdd_usb>;
451 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
452 clock-names = "pclk", "x8k", "x11k";
453 pinctrl-names = "default", "sleep";
454 pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
455 pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
458 sai2a: audio-controller@4400b004 {
461 clocks = <&rcc SAI2_K>;
462 clock-names = "sai_ck";
466 sai2a_endpoint: endpoint {
467 remote-endpoint = <&cs42l51_tx_endpoint>;
470 dai-tdm-slot-num = <2>;
471 dai-tdm-slot-width = <32>;
476 sai2b: audio-controller@4400b024 {
478 st,sync = <&sai2a 2>;
479 clocks = <&rcc SAI2_K>, <&sai2a>;
480 clock-names = "sai_ck", "MCLK";
484 sai2b_endpoint: endpoint {
485 remote-endpoint = <&cs42l51_rx_endpoint>;
488 dai-tdm-slot-num = <2>;
489 dai-tdm-slot-width = <32>;
496 pinctrl-names = "default", "opendrain", "sleep";
497 pinctrl-0 = <&sdmmc1_b4_pins_a>;
498 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
499 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
503 vmmc-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>;
520 /* spare dmas for other usage */
521 /delete-property/dmas;
522 /delete-property/dma-names;
525 pinctrl-0 = <&pwm1_pins_a>;
526 pinctrl-1 = <&pwm1_sleep_pins_a>;
527 pinctrl-names = "default", "sleep";
536 /delete-property/dmas;
537 /delete-property/dma-names;
540 pinctrl-0 = <&pwm3_pins_a>;
541 pinctrl-1 = <&pwm3_sleep_pins_a>;
542 pinctrl-names = "default", "sleep";
551 /delete-property/dmas;
552 /delete-property/dma-names;
555 pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
556 pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
557 pinctrl-names = "default", "sleep";
566 /delete-property/dmas;
567 /delete-property/dma-names;
570 pinctrl-0 = <&pwm5_pins_a>;
571 pinctrl-1 = <&pwm5_sleep_pins_a>;
572 pinctrl-names = "default", "sleep";
581 /delete-property/dmas;
582 /delete-property/dma-names;
590 /delete-property/dmas;
591 /delete-property/dma-names;
594 pinctrl-0 = <&pwm12_pins_a>;
595 pinctrl-1 = <&pwm12_sleep_pins_a>;
596 pinctrl-names = "default", "sleep";
605 pinctrl-names = "default";
606 pinctrl-0 = <&uart4_pins_a>;
611 phys = <&usbphyc_port0>;
616 dr_mode = "peripheral";
617 phys = <&usbphyc_port1 0>;
618 phy-names = "usb2-phy";
627 phy-supply = <&vdd_usb>;
631 phy-supply = <&vdd_usb>;
635 regulator-min-microvolt = <2500000>;
636 regulator-max-microvolt = <2500000>;
637 vdda-supply = <&vdd>;