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 "stm32mp135.dtsi"
13 #include "stm32mp13xf.dtsi"
14 #include "stm32mp13-pinctrl.dtsi"
17 model = "STMicroelectronics STM32MP135F-DK Discovery Board";
18 compatible = "st,stm32mp135f-dk", "st,stm32mp135";
25 device_type = "memory";
26 reg = <0xc0000000 0x20000000>;
35 reg = <0xdd000000 0x3000000>;
41 compatible = "gpio-keys";
46 gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
51 compatible = "gpio-leds";
54 function = LED_FUNCTION_HEARTBEAT;
55 color = <LED_COLOR_ID_BLUE>;
56 gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "heartbeat";
58 default-state = "off";
63 compatible = "regulator-fixed";
64 regulator-name = "v3v3_sw";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
71 compatible = "regulator-fixed";
72 regulator-name = "vdd_adc";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
79 compatible = "regulator-fixed";
80 regulator-name = "vdd_sd";
81 regulator-min-microvolt = <2900000>;
82 regulator-max-microvolt = <2900000>;
87 compatible = "regulator-fixed";
88 regulator-name = "vdd_usb";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&adc1_usb_cc_pins_a>;
98 vdda-supply = <&vdd_adc>;
99 vref-supply = <&vdd_adc>;
104 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in6 & in12.
105 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
106 * 5 * (5.1 + 47kOhms) * 5pF => 1.3us.
107 * Use arbitrary margin here (e.g. 5us).
111 st,min-sample-time-ns = <5000>;
115 st,min-sample-time-ns = <5000>;
121 pinctrl-names = "default", "sleep";
122 pinctrl-0 = <&i2c1_pins_a>;
123 pinctrl-1 = <&i2c1_sleep_pins_a>;
124 i2c-scl-rising-time-ns = <96>;
125 i2c-scl-falling-time-ns = <3>;
126 clock-frequency = <1000000>;
128 /* spare dmas for other usage */
129 /delete-property/dmas;
130 /delete-property/dma-names;
133 compatible = "st,stm32g0-typec";
135 /* Alert pin on PI2 */
136 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
137 interrupt-parent = <&gpioi>;
138 /* Internal pull-up on PI2 */
139 pinctrl-names = "default";
140 pinctrl-0 = <&stm32g0_intn_pins_a>;
141 firmware-name = "stm32g0-ucsi.mp135f-dk.fw";
143 compatible = "usb-c-connector";
147 con_usb_c_g0_ep: endpoint {
148 remote-endpoint = <&usbotg_hs_ep>;
156 pinctrl-names = "default", "sleep";
157 pinctrl-0 = <&i2c5_pins_a>;
158 pinctrl-1 = <&i2c5_sleep_pins_a>;
159 i2c-scl-rising-time-ns = <170>;
160 i2c-scl-falling-time-ns = <5>;
161 clock-frequency = <400000>;
163 /* spare dmas for other usage */
164 /delete-property/dmas;
165 /delete-property/dma-names;
178 pinctrl-names = "default", "opendrain", "sleep";
179 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
180 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
181 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
182 cd-gpios = <&gpioh 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
186 vmmc-supply = <&vdd_sd>;
191 pinctrl-names = "default", "sleep";
192 pinctrl-0 = <&spi5_pins_a>;
193 pinctrl-1 = <&spi5_sleep_pins_a>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&uart4_pins_a>;
204 phys = <&usbphyc_port0>;
206 #address-cells = <1>;
210 compatible = "usb424,2514";
212 vdd-supply = <&v3v3_sw>;
217 phys = <&usbphyc_port1 0>;
218 phy-names = "usb2-phy";
222 usbotg_hs_ep: endpoint {
223 remote-endpoint = <&con_usb_c_g0_ep>;
233 phy-supply = <&vdd_usb>;
234 st,current-boost-microamp = <1000>;
235 st,decrease-hs-slew-rate;
236 st,tune-hs-dc-level = <2>;
237 st,enable-hs-rftime-reduction;
238 st,trim-hs-current = <11>;
239 st,trim-hs-impedance = <2>;
240 st,tune-squelch-level = <1>;
241 st,enable-hs-rx-gain-eq;
247 phy-supply = <&vdd_usb>;
248 st,current-boost-microamp = <1000>;
249 st,decrease-hs-slew-rate;
250 st,tune-hs-dc-level = <2>;
251 st,enable-hs-rftime-reduction;
252 st,trim-hs-current = <11>;
253 st,trim-hs-impedance = <2>;
254 st,tune-squelch-level = <1>;
255 st,enable-hs-rx-gain-eq;