1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd 4 * Copyright (c) 2019 Radxa Limited 5 * Copyright (c) 2019 Amarula Solutions(India) 6 */ 7 8#include <dt-bindings/pwm/pwm.h> 9 10/ { 11 clkin_gmac: external-gmac-clock { 12 compatible = "fixed-clock"; 13 clock-frequency = <125000000>; 14 clock-output-names = "clkin_gmac"; 15 #clock-cells = <0>; 16 }; 17 18 sdio_pwrseq: sdio-pwrseq { 19 compatible = "mmc-pwrseq-simple"; 20 clocks = <&hym8563>; 21 clock-names = "ext_clock"; 22 pinctrl-names = "default"; 23 pinctrl-0 = <&wifi_enable_h>; 24 }; 25 26 vcc12v_dcin: regulator-vcc12v-dcin { 27 compatible = "regulator-fixed"; 28 regulator-name = "vcc12v_dcin"; 29 regulator-always-on; 30 regulator-boot-on; 31 regulator-min-microvolt = <12000000>; 32 regulator-max-microvolt = <12000000>; 33 }; 34 35 vcc5v0_sys: regulator-vcc5v0-sys { 36 compatible = "regulator-fixed"; 37 regulator-name = "vcc5v0_sys"; 38 regulator-always-on; 39 regulator-boot-on; 40 regulator-min-microvolt = <5000000>; 41 regulator-max-microvolt = <5000000>; 42 vin-supply = <&vcc12v_dcin>; 43 }; 44 45 vbus_host: regulator-vbus-host { 46 compatible = "regulator-fixed"; 47 pinctrl-names = "default"; 48 pinctrl-0 = <&usb1_en_oc>; 49 regulator-name = "vbus_host"; /* HOST-5V */ 50 regulator-always-on; 51 vin-supply = <&vcc5v0_sys>; 52 }; 53 54 vbus_typec: regulator-vbus-typec { 55 compatible = "regulator-fixed"; 56 pinctrl-names = "default"; 57 pinctrl-0 = <&usb0_en_oc>; 58 regulator-name = "vbus_typec"; 59 regulator-always-on; 60 vin-supply = <&vcc5v0_sys>; 61 }; 62}; 63 64&gmac { 65 assigned-clock-parents = <&clkin_gmac>; 66 clock_in_out = "input"; 67 phy-mode = "rgmii"; 68 pinctrl-names = "default"; 69 pinctrl-0 = <&rgmii_pins>; 70 snps,reset-active-low; 71 snps,reset-delays-us = <0 10000 50000>; 72 tx_delay = <0x28>; 73 rx_delay = <0x11>; 74 status = "okay"; 75}; 76 77&hdmi { 78 status = "okay"; 79}; 80 81&pwm0 { 82 status = "okay"; 83}; 84 85&pwm2 { 86 status = "okay"; 87}; 88 89&sdio0 { 90 bus-width = <4>; 91 cap-sd-highspeed; 92 cap-sdio-irq; 93 keep-power-in-suspend; 94 mmc-pwrseq = <&sdio_pwrseq>; 95 non-removable; 96 pinctrl-names = "default"; 97 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 98 sd-uhs-sdr104; 99 status = "okay"; 100}; 101 102&sdmmc { 103 bus-width = <4>; 104 cap-mmc-highspeed; 105 cap-sd-highspeed; 106 disable-wp; 107 vqmmc-supply = <&vccio_sd>; 108 pinctrl-names = "default"; 109 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 110 status = "okay"; 111}; 112 113&uart0 { 114 pinctrl-names = "default"; 115 pinctrl-0 = <&uart0_xfer &uart0_cts>; 116 status = "okay"; 117}; 118 119&uart2 { 120 status = "okay"; 121}; 122 123&vopb { 124 status = "okay"; 125}; 126 127&vopb_mmu { 128 status = "okay"; 129}; 130 131&vopl { 132 status = "okay"; 133}; 134 135&vopl_mmu { 136 status = "okay"; 137}; 138