0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002
0003 /dts-v1/;
0004
0005 #include <dt-bindings/input/input.h>
0006 #include "rk3229.dtsi"
0007
0008 / {
0009 model = "Rockchip RK3229 Evaluation board";
0010 compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
0011
0012 aliases {
0013 mmc0 = &emmc;
0014 };
0015
0016 memory@60000000 {
0017 device_type = "memory";
0018 reg = <0x60000000 0x40000000>;
0019 };
0020
0021 dc_12v: dc-12v-regulator {
0022 compatible = "regulator-fixed";
0023 regulator-name = "dc_12v";
0024 regulator-always-on;
0025 regulator-boot-on;
0026 regulator-min-microvolt = <12000000>;
0027 regulator-max-microvolt = <12000000>;
0028 };
0029
0030 ext_gmac: ext_gmac {
0031 compatible = "fixed-clock";
0032 clock-frequency = <125000000>;
0033 clock-output-names = "ext_gmac";
0034 #clock-cells = <0>;
0035 };
0036
0037 vcc_host: vcc-host-regulator {
0038 compatible = "regulator-fixed";
0039 enable-active-high;
0040 gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
0041 pinctrl-names = "default";
0042 pinctrl-0 = <&host_vbus_drv>;
0043 regulator-name = "vcc_host";
0044 regulator-always-on;
0045 regulator-boot-on;
0046 vin-supply = <&vcc_sys>;
0047 };
0048
0049 vcc_phy: vcc-phy-regulator {
0050 compatible = "regulator-fixed";
0051 enable-active-high;
0052 regulator-name = "vcc_phy";
0053 regulator-min-microvolt = <1800000>;
0054 regulator-max-microvolt = <1800000>;
0055 regulator-always-on;
0056 regulator-boot-on;
0057 vin-supply = <&vccio_1v8>;
0058 };
0059
0060 vcc_sys: vcc-sys-regulator {
0061 compatible = "regulator-fixed";
0062 regulator-name = "vcc_sys";
0063 regulator-always-on;
0064 regulator-boot-on;
0065 regulator-min-microvolt = <5000000>;
0066 regulator-max-microvolt = <5000000>;
0067 vin-supply = <&dc_12v>;
0068 };
0069
0070 vccio_1v8: vccio-1v8-regulator {
0071 compatible = "regulator-fixed";
0072 regulator-name = "vccio_1v8";
0073 regulator-min-microvolt = <1800000>;
0074 regulator-max-microvolt = <1800000>;
0075 regulator-always-on;
0076 vin-supply = <&vcc_sys>;
0077 };
0078
0079 vccio_3v3: vccio-3v3-regulator {
0080 compatible = "regulator-fixed";
0081 regulator-name = "vccio_3v3";
0082 regulator-min-microvolt = <3300000>;
0083 regulator-max-microvolt = <3300000>;
0084 regulator-always-on;
0085 vin-supply = <&vcc_sys>;
0086 };
0087
0088 vdd_arm: vdd-arm-regulator {
0089 compatible = "pwm-regulator";
0090 pwms = <&pwm1 0 25000 1>;
0091 pwm-supply = <&vcc_sys>;
0092 regulator-name = "vdd_arm";
0093 regulator-min-microvolt = <950000>;
0094 regulator-max-microvolt = <1400000>;
0095 regulator-always-on;
0096 regulator-boot-on;
0097 };
0098
0099 vdd_log: vdd-log-regulator {
0100 compatible = "pwm-regulator";
0101 pwms = <&pwm2 0 25000 1>;
0102 pwm-supply = <&vcc_sys>;
0103 regulator-name = "vdd_log";
0104 regulator-min-microvolt = <1000000>;
0105 regulator-max-microvolt = <1300000>;
0106 regulator-always-on;
0107 regulator-boot-on;
0108 };
0109
0110 gpio-keys {
0111 compatible = "gpio-keys";
0112 autorepeat;
0113 pinctrl-names = "default";
0114 pinctrl-0 = <&pwr_key>;
0115
0116 power_key: power-key {
0117 label = "GPIO Key Power";
0118 gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
0119 linux,code = <KEY_POWER>;
0120 debounce-interval = <100>;
0121 wakeup-source;
0122 };
0123 };
0124 };
0125
0126 &cpu0 {
0127 cpu-supply = <&vdd_arm>;
0128 };
0129
0130 &cpu1 {
0131 cpu-supply = <&vdd_arm>;
0132 };
0133
0134 &cpu2 {
0135 cpu-supply = <&vdd_arm>;
0136 };
0137
0138 &cpu3 {
0139 cpu-supply = <&vdd_arm>;
0140 };
0141
0142 &emmc {
0143 cap-mmc-highspeed;
0144 non-removable;
0145 status = "okay";
0146 };
0147
0148 &gmac {
0149 assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
0150 assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
0151 clock_in_out = "input";
0152 phy-supply = <&vcc_phy>;
0153 phy-mode = "rgmii";
0154 pinctrl-names = "default";
0155 pinctrl-0 = <&rgmii_pins>;
0156 snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
0157 snps,reset-active-low;
0158 snps,reset-delays-us = <0 10000 1000000>;
0159 tx_delay = <0x30>;
0160 rx_delay = <0x10>;
0161 status = "okay";
0162 };
0163
0164 &io_domains {
0165 status = "okay";
0166
0167 vccio1-supply = <&vccio_3v3>;
0168 vccio2-supply = <&vccio_1v8>;
0169 vccio4-supply = <&vccio_3v3>;
0170 };
0171
0172 &pinctrl {
0173 keys {
0174 pwr_key: pwr-key {
0175 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
0176 };
0177 };
0178
0179 usb {
0180 host_vbus_drv: host-vbus-drv {
0181 rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
0182 };
0183 };
0184 };
0185
0186 &pwm1 {
0187 status = "okay";
0188 };
0189
0190 &pwm2 {
0191 status = "okay";
0192 };
0193
0194 &tsadc {
0195 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
0196 status = "okay";
0197 };
0198
0199 &uart2 {
0200 status = "okay";
0201 };
0202
0203 &u2phy0 {
0204 status = "okay";
0205
0206 u2phy0_otg: otg-port {
0207 status = "okay";
0208 };
0209
0210 u2phy0_host: host-port {
0211 phy-supply = <&vcc_host>;
0212 status = "okay";
0213 };
0214 };
0215
0216 &u2phy1 {
0217 status = "okay";
0218
0219 u2phy1_otg: otg-port {
0220 phy-supply = <&vcc_host>;
0221 status = "okay";
0222 };
0223
0224 u2phy1_host: host-port {
0225 phy-supply = <&vcc_host>;
0226 status = "okay";
0227 };
0228 };
0229
0230 &usb_host0_ehci {
0231 status = "okay";
0232 };
0233
0234 &usb_host0_ohci {
0235 status = "okay";
0236 };
0237
0238 &usb_host1_ehci {
0239 status = "okay";
0240 };
0241
0242 &usb_host1_ohci {
0243 status = "okay";
0244 };
0245
0246 &usb_host2_ehci {
0247 status = "okay";
0248 };
0249
0250 &usb_host2_ohci {
0251 status = "okay";
0252 };
0253
0254 &usb_otg {
0255 status = "okay";
0256 };