1*062b9b66SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 272cee3dbSSamuel Holland// Copyright (C) 2022 Samuel Holland <samuel@sholland.org> 372cee3dbSSamuel Holland 472cee3dbSSamuel Holland#include <dt-bindings/gpio/gpio.h> 572cee3dbSSamuel Holland#include <dt-bindings/leds/common.h> 672cee3dbSSamuel Holland 772cee3dbSSamuel Holland/dts-v1/; 872cee3dbSSamuel Holland 972cee3dbSSamuel Holland#include "sun20i-d1.dtsi" 1072cee3dbSSamuel Holland#include "sun20i-common-regulators.dtsi" 1172cee3dbSSamuel Holland 1272cee3dbSSamuel Holland/ { 1372cee3dbSSamuel Holland model = "Dongshan Nezha STU"; 1472cee3dbSSamuel Holland compatible = "100ask,dongshan-nezha-stu", "allwinner,sun20i-d1"; 1572cee3dbSSamuel Holland 1672cee3dbSSamuel Holland aliases { 1772cee3dbSSamuel Holland ethernet0 = &emac; 1872cee3dbSSamuel Holland serial0 = &uart0; 1972cee3dbSSamuel Holland }; 2072cee3dbSSamuel Holland 2172cee3dbSSamuel Holland chosen { 2272cee3dbSSamuel Holland stdout-path = "serial0:115200n8"; 2372cee3dbSSamuel Holland }; 2472cee3dbSSamuel Holland 2572cee3dbSSamuel Holland leds { 2672cee3dbSSamuel Holland compatible = "gpio-leds"; 2772cee3dbSSamuel Holland 2872cee3dbSSamuel Holland led-0 { 2972cee3dbSSamuel Holland color = <LED_COLOR_ID_GREEN>; 3072cee3dbSSamuel Holland function = LED_FUNCTION_STATUS; 3172cee3dbSSamuel Holland gpios = <&pio 2 1 GPIO_ACTIVE_HIGH>; /* PC1 */ 3272cee3dbSSamuel Holland }; 3372cee3dbSSamuel Holland }; 3472cee3dbSSamuel Holland 3572cee3dbSSamuel Holland reg_usbvbus: usbvbus { 3672cee3dbSSamuel Holland compatible = "regulator-fixed"; 3772cee3dbSSamuel Holland regulator-name = "usbvbus"; 3872cee3dbSSamuel Holland regulator-min-microvolt = <5000000>; 3972cee3dbSSamuel Holland regulator-max-microvolt = <5000000>; 4072cee3dbSSamuel Holland gpio = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ 4172cee3dbSSamuel Holland enable-active-high; 4272cee3dbSSamuel Holland vin-supply = <®_vcc>; 4372cee3dbSSamuel Holland }; 4472cee3dbSSamuel Holland 4572cee3dbSSamuel Holland /* 4672cee3dbSSamuel Holland * This regulator is PWM-controlled, but the PWM controller is not 4772cee3dbSSamuel Holland * yet supported, so fix the regulator to its default voltage. 4872cee3dbSSamuel Holland */ 4972cee3dbSSamuel Holland reg_vdd_cpu: vdd-cpu { 5072cee3dbSSamuel Holland compatible = "regulator-fixed"; 5172cee3dbSSamuel Holland regulator-name = "vdd-cpu"; 5272cee3dbSSamuel Holland regulator-min-microvolt = <1100000>; 5372cee3dbSSamuel Holland regulator-max-microvolt = <1100000>; 5472cee3dbSSamuel Holland vin-supply = <®_vcc>; 5572cee3dbSSamuel Holland }; 5672cee3dbSSamuel Holland}; 5772cee3dbSSamuel Holland 5872cee3dbSSamuel Holland&cpu0 { 5972cee3dbSSamuel Holland cpu-supply = <®_vdd_cpu>; 6072cee3dbSSamuel Holland}; 6172cee3dbSSamuel Holland 6272cee3dbSSamuel Holland&dcxo { 6372cee3dbSSamuel Holland clock-frequency = <24000000>; 6472cee3dbSSamuel Holland}; 6572cee3dbSSamuel Holland 6672cee3dbSSamuel Holland&ehci0 { 6772cee3dbSSamuel Holland status = "okay"; 6872cee3dbSSamuel Holland}; 6972cee3dbSSamuel Holland 7072cee3dbSSamuel Holland&emac { 7172cee3dbSSamuel Holland pinctrl-0 = <&rgmii_pe_pins>; 7272cee3dbSSamuel Holland pinctrl-names = "default"; 7372cee3dbSSamuel Holland phy-handle = <&ext_rgmii_phy>; 7472cee3dbSSamuel Holland phy-mode = "rgmii-id"; 7572cee3dbSSamuel Holland phy-supply = <®_vcc_3v3>; 7672cee3dbSSamuel Holland status = "okay"; 7772cee3dbSSamuel Holland}; 7872cee3dbSSamuel Holland 7972cee3dbSSamuel Holland&mdio { 8072cee3dbSSamuel Holland ext_rgmii_phy: ethernet-phy@1 { 8172cee3dbSSamuel Holland compatible = "ethernet-phy-ieee802.3-c22"; 8272cee3dbSSamuel Holland reg = <1>; 8372cee3dbSSamuel Holland }; 8472cee3dbSSamuel Holland}; 8572cee3dbSSamuel Holland 8672cee3dbSSamuel Holland&mmc0 { 8772cee3dbSSamuel Holland broken-cd; 8872cee3dbSSamuel Holland bus-width = <4>; 8972cee3dbSSamuel Holland disable-wp; 9072cee3dbSSamuel Holland vmmc-supply = <®_vcc_3v3>; 9172cee3dbSSamuel Holland vqmmc-supply = <®_vcc_3v3>; 9272cee3dbSSamuel Holland pinctrl-0 = <&mmc0_pins>; 9372cee3dbSSamuel Holland pinctrl-names = "default"; 9472cee3dbSSamuel Holland status = "okay"; 9572cee3dbSSamuel Holland}; 9672cee3dbSSamuel Holland 9772cee3dbSSamuel Holland&ohci0 { 9872cee3dbSSamuel Holland status = "okay"; 9972cee3dbSSamuel Holland}; 10072cee3dbSSamuel Holland 10172cee3dbSSamuel Holland&uart0 { 10272cee3dbSSamuel Holland pinctrl-0 = <&uart0_pb8_pins>; 10372cee3dbSSamuel Holland pinctrl-names = "default"; 10472cee3dbSSamuel Holland status = "okay"; 10572cee3dbSSamuel Holland}; 10672cee3dbSSamuel Holland 10772cee3dbSSamuel Holland&usb_otg { 10872cee3dbSSamuel Holland dr_mode = "otg"; 10972cee3dbSSamuel Holland status = "okay"; 11072cee3dbSSamuel Holland}; 11172cee3dbSSamuel Holland 11272cee3dbSSamuel Holland&usbphy { 11372cee3dbSSamuel Holland usb0_id_det-gpios = <&pio 3 21 GPIO_ACTIVE_HIGH>; /* PD21 */ 11472cee3dbSSamuel Holland usb0_vbus_det-gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ 11572cee3dbSSamuel Holland usb0_vbus-supply = <®_usbvbus>; 11672cee3dbSSamuel Holland status = "okay"; 11772cee3dbSSamuel Holland}; 118