1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/regulator/st,stm32mp13-regulator.h>
13 #include "stm32mp135.dtsi"
14 #include "stm32mp13xf.dtsi"
15 #include "stm32mp13-pinctrl.dtsi"
18 model = "STMicroelectronics STM32MP135F-DK Discovery Board";
19 compatible = "st,stm32mp135f-dk", "st,stm32mp135";
29 stdout-path = "serial0:115200n8";
33 device_type = "memory";
34 reg = <0xc0000000 0x20000000>;
43 reg = <0xdd000000 0x3000000>;
49 compatible = "gpio-keys";
54 gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
59 compatible = "gpio-leds";
62 function = LED_FUNCTION_HEARTBEAT;
63 color = <LED_COLOR_ID_BLUE>;
64 gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "heartbeat";
66 default-state = "off";
72 pinctrl-names = "default";
73 pinctrl-0 = <&adc1_usb_cc_pins_a>;
74 vdda-supply = <&scmi_vdd_adc>;
75 vref-supply = <&scmi_vdd_adc>;
80 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in6 & in12.
81 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
82 * 5 * (5.1 + 47kOhms) * 5pF => 1.3us.
83 * Use arbitrary margin here (e.g. 5us).
87 st,min-sample-time-ns = <5000>;
91 st,min-sample-time-ns = <5000>;
105 pinctrl-names = "default", "sleep";
106 pinctrl-0 = <&i2c1_pins_a>;
107 pinctrl-1 = <&i2c1_sleep_pins_a>;
108 i2c-scl-rising-time-ns = <96>;
109 i2c-scl-falling-time-ns = <3>;
110 clock-frequency = <1000000>;
112 /* spare dmas for other usage */
113 /delete-property/dmas;
114 /delete-property/dma-names;
116 mcp23017: pinctrl@21 {
117 compatible = "microchip,mcp23017";
121 interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
122 interrupt-parent = <&gpiog>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&mcp23017_pins_a>;
125 interrupt-controller;
126 #interrupt-cells = <2>;
127 microchip,irq-mirror;
131 compatible = "st,stm32g0-typec";
133 /* Alert pin on PI2 */
134 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
135 interrupt-parent = <&gpioi>;
136 /* Internal pull-up on PI2 */
137 pinctrl-names = "default";
138 pinctrl-0 = <&stm32g0_intn_pins_a>;
139 firmware-name = "stm32g0-ucsi.mp135f-dk.fw";
141 compatible = "usb-c-connector";
145 con_usb_c_g0_ep: endpoint {
146 remote-endpoint = <&usbotg_hs_ep>;
154 pinctrl-names = "default", "sleep";
155 pinctrl-0 = <&i2c5_pins_a>;
156 pinctrl-1 = <&i2c5_sleep_pins_a>;
157 i2c-scl-rising-time-ns = <170>;
158 i2c-scl-falling-time-ns = <5>;
159 clock-frequency = <400000>;
161 /* spare dmas for other usage */
162 /delete-property/dmas;
163 /delete-property/dma-names;
176 scmi_vdd_adc: regulator@10 {
177 reg = <VOLTD_SCMI_STPMIC1_LDO1>;
178 regulator-name = "vdd_adc";
180 scmi_vdd_usb: regulator@13 {
181 reg = <VOLTD_SCMI_STPMIC1_LDO4>;
182 regulator-name = "vdd_usb";
184 scmi_vdd_sd: regulator@14 {
185 reg = <VOLTD_SCMI_STPMIC1_LDO5>;
186 regulator-name = "vdd_sd";
188 scmi_v1v8_periph: regulator@15 {
189 reg = <VOLTD_SCMI_STPMIC1_LDO6>;
190 regulator-name = "v1v8_periph";
192 scmi_v3v3_sw: regulator@19 {
193 reg = <VOLTD_SCMI_STPMIC1_PWR_SW2>;
194 regulator-name = "v3v3_sw";
199 pinctrl-names = "default", "opendrain", "sleep";
200 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
201 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
202 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
203 cd-gpios = <&gpioh 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
207 vmmc-supply = <&scmi_vdd_sd>;
212 pinctrl-names = "default", "sleep";
213 pinctrl-0 = <&spi5_pins_a>;
214 pinctrl-1 = <&spi5_sleep_pins_a>;
219 /delete-property/dmas;
220 /delete-property/dma-names;
223 pinctrl-0 = <&pwm3_pins_a>;
224 pinctrl-1 = <&pwm3_sleep_pins_a>;
225 pinctrl-names = "default", "sleep";
234 /delete-property/dmas;
235 /delete-property/dma-names;
238 pinctrl-0 = <&pwm4_pins_a>;
239 pinctrl-1 = <&pwm4_sleep_pins_a>;
240 pinctrl-names = "default", "sleep";
249 /delete-property/dmas;
250 /delete-property/dma-names;
253 pinctrl-0 = <&pwm8_pins_a>;
254 pinctrl-1 = <&pwm8_sleep_pins_a>;
255 pinctrl-names = "default", "sleep";
266 pinctrl-0 = <&pwm14_pins_a>;
267 pinctrl-1 = <&pwm14_sleep_pins_a>;
268 pinctrl-names = "default", "sleep";
277 pinctrl-names = "default", "sleep", "idle";
278 pinctrl-0 = <&uart4_pins_a>;
279 pinctrl-1 = <&uart4_sleep_pins_a>;
280 pinctrl-2 = <&uart4_idle_pins_a>;
281 /delete-property/dmas;
282 /delete-property/dma-names;
287 pinctrl-names = "default", "sleep", "idle";
288 pinctrl-0 = <&uart8_pins_a>;
289 pinctrl-1 = <&uart8_sleep_pins_a>;
290 pinctrl-2 = <&uart8_idle_pins_a>;
291 /delete-property/dmas;
292 /delete-property/dma-names;
297 pinctrl-names = "default", "sleep", "idle";
298 pinctrl-0 = <&usart1_pins_a>;
299 pinctrl-1 = <&usart1_sleep_pins_a>;
300 pinctrl-2 = <&usart1_idle_pins_a>;
307 pinctrl-names = "default", "sleep", "idle";
308 pinctrl-0 = <&usart2_pins_a>;
309 pinctrl-1 = <&usart2_sleep_pins_a>;
310 pinctrl-2 = <&usart2_idle_pins_a>;
316 phys = <&usbphyc_port0>;
318 #address-cells = <1>;
322 compatible = "usb424,2514";
324 vdd-supply = <&scmi_v3v3_sw>;
329 phys = <&usbphyc_port1 0>;
330 phy-names = "usb2-phy";
334 usbotg_hs_ep: endpoint {
335 remote-endpoint = <&con_usb_c_g0_ep>;
345 phy-supply = <&scmi_vdd_usb>;
346 st,current-boost-microamp = <1000>;
347 st,decrease-hs-slew-rate;
348 st,tune-hs-dc-level = <2>;
349 st,enable-hs-rftime-reduction;
350 st,trim-hs-current = <11>;
351 st,trim-hs-impedance = <2>;
352 st,tune-squelch-level = <1>;
353 st,enable-hs-rx-gain-eq;
359 phy-supply = <&scmi_vdd_usb>;
360 st,current-boost-microamp = <1000>;
361 st,decrease-hs-slew-rate;
362 st,tune-hs-dc-level = <2>;
363 st,enable-hs-rftime-reduction;
364 st,trim-hs-current = <11>;
365 st,trim-hs-impedance = <2>;
366 st,tune-squelch-level = <1>;
367 st,enable-hs-rx-gain-eq;