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