// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) // SPDX-FileCopyrightText: 2021 David Jander, Protonic Holland // SPDX-FileCopyrightText: 2021 Oleksij Rempel, Pengutronix #include #include #include #include #include #include "stm32mp151.dtsi" / { chosen { stdout-path = "serial0:115200n8"; }; aliases { serial0 = &uart4; ethernet0 = ðernet0; }; v3v3: fixed-regulator-v3v3 { compatible = "regulator-fixed"; regulator-name = "v3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; led { compatible = "gpio-leds"; led-0 { label = "debug:red"; gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; }; led-1 { label = "debug:green"; gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; }; }; }; &usbh_ehci { phys = <&usbphyc_port0>; phy-names = "usb"; status = "okay"; }; &usbotg_hs { dr_mode = "host"; pinctrl-0 = <&usbotg_hs_pins_a>; pinctrl-names = "default"; phys = <&usbphyc_port1 0>; phy-names = "usb2-phy"; status = "okay"; }; &usbphyc { status = "okay"; }; &usbphyc_port1 { phy-supply = <&v3v3>; }; &sdmmc1 { pinctrl-names = "default"; pinctrl-0 = <&sdmmc1_b4_pins_a>; st,neg-edge; bus-width = <4>; sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; sd-uhs-ddr50; vmmc-supply = <&v3v3>; vqmmc-supply = <&v3v3>; status = "okay"; }; &sdmmc1_b4_pins_a { pins1 { bias-pull-up; }; pins2 { bias-pull-up; }; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins_a>; status = "okay"; }; &uart4_pins_a { pins1 { pinmux = ; /* UART4_TX */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = ; /* UART4_RX */ bias-pull-up; }; };