0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
0004 * Copyright (c) 2019 Radxa Limited
0005 * Copyright (c) 2019 Amarula Solutions(India)
0006 */
0007
0008 #include <dt-bindings/pwm/pwm.h>
0009
0010 / {
0011 clkin_gmac: external-gmac-clock {
0012 compatible = "fixed-clock";
0013 clock-frequency = <125000000>;
0014 clock-output-names = "clkin_gmac";
0015 #clock-cells = <0>;
0016 };
0017
0018 sdio_pwrseq: sdio-pwrseq {
0019 compatible = "mmc-pwrseq-simple";
0020 clocks = <&hym8563>;
0021 clock-names = "ext_clock";
0022 pinctrl-names = "default";
0023 pinctrl-0 = <&wifi_enable_h>;
0024 };
0025
0026 vcc12v_dcin: vcc12v-dcin-regulator {
0027 compatible = "regulator-fixed";
0028 regulator-name = "vcc12v_dcin";
0029 regulator-always-on;
0030 regulator-boot-on;
0031 regulator-min-microvolt = <12000000>;
0032 regulator-max-microvolt = <12000000>;
0033 };
0034
0035 vcc5v0_sys: vcc5v0-sys-regulator {
0036 compatible = "regulator-fixed";
0037 regulator-name = "vcc5v0_sys";
0038 regulator-always-on;
0039 regulator-boot-on;
0040 regulator-min-microvolt = <5000000>;
0041 regulator-max-microvolt = <5000000>;
0042 vin-supply = <&vcc12v_dcin>;
0043 };
0044
0045 vbus_host: vbus-host {
0046 compatible = "regulator-fixed";
0047 pinctrl-names = "default";
0048 pinctrl-0 = <&usb1_en_oc>;
0049 regulator-name = "vbus_host"; /* HOST-5V */
0050 regulator-always-on;
0051 vin-supply = <&vcc5v0_sys>;
0052 };
0053
0054 vbus_typec: vbus-typec {
0055 compatible = "regulator-fixed";
0056 pinctrl-names = "default";
0057 pinctrl-0 = <&usb0_en_oc>;
0058 regulator-name = "vbus_typec";
0059 regulator-always-on;
0060 vin-supply = <&vcc5v0_sys>;
0061 };
0062 };
0063
0064 &gmac {
0065 assigned-clock-parents = <&clkin_gmac>;
0066 clock_in_out = "input";
0067 phy-mode = "rgmii";
0068 pinctrl-names = "default";
0069 pinctrl-0 = <&rgmii_pins>;
0070 snps,reset-active-low;
0071 snps,reset-delays-us = <0 10000 50000>;
0072 tx_delay = <0x28>;
0073 rx_delay = <0x11>;
0074 status = "okay";
0075 };
0076
0077 &hdmi {
0078 status = "okay";
0079 };
0080
0081 &pwm0 {
0082 status = "okay";
0083 };
0084
0085 &pwm2 {
0086 status = "okay";
0087 };
0088
0089 &sdio0 {
0090 bus-width = <4>;
0091 cap-sd-highspeed;
0092 cap-sdio-irq;
0093 keep-power-in-suspend;
0094 mmc-pwrseq = <&sdio_pwrseq>;
0095 non-removable;
0096 pinctrl-names = "default";
0097 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
0098 sd-uhs-sdr104;
0099 status = "okay";
0100 };
0101
0102 &sdmmc {
0103 bus-width = <4>;
0104 cap-mmc-highspeed;
0105 cap-sd-highspeed;
0106 disable-wp;
0107 vqmmc-supply = <&vccio_sd>;
0108 pinctrl-names = "default";
0109 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
0110 status = "okay";
0111 };
0112
0113 &uart0 {
0114 pinctrl-names = "default";
0115 pinctrl-0 = <&uart0_xfer &uart0_cts>;
0116 status = "okay";
0117 };
0118
0119 &uart2 {
0120 status = "okay";
0121 };
0122
0123 &vopb {
0124 status = "okay";
0125 };
0126
0127 &vopb_mmu {
0128 status = "okay";
0129 };
0130
0131 &vopl {
0132 status = "okay";
0133 };
0134
0135 &vopl_mmu {
0136 status = "okay";
0137 };