0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
0004 */
0005
0006 /dts-v1/;
0007 #include "rk3066a.dtsi"
0008
0009 / {
0010 model = "MarsBoard RK3066";
0011 compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
0012
0013 aliases {
0014 mmc0 = &mmc0;
0015 };
0016
0017 memory@60000000 {
0018 device_type = "memory";
0019 reg = <0x60000000 0x40000000>;
0020 };
0021
0022 vdd_log: vdd-log {
0023 compatible = "pwm-regulator";
0024 pwms = <&pwm3 0 1000>;
0025 regulator-name = "vdd_log";
0026 regulator-min-microvolt = <1200000>;
0027 regulator-max-microvolt = <1200000>;
0028 regulator-always-on;
0029 voltage-table = <1000000 100>,
0030 <1200000 42>;
0031 status = "okay";
0032 };
0033
0034 vcc_sd0: sdmmc-regulator {
0035 compatible = "regulator-fixed";
0036 regulator-name = "sdmmc-supply";
0037 regulator-min-microvolt = <3000000>;
0038 regulator-max-microvolt = <3000000>;
0039 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
0040 startup-delay-us = <100000>;
0041 vin-supply = <&vcc_io>;
0042 };
0043
0044 vsys: vsys-regulator {
0045 compatible = "regulator-fixed";
0046 regulator-name = "vsys";
0047 regulator-min-microvolt = <5000000>;
0048 regulator-max-microvolt = <5000000>;
0049 regulator-boot-on;
0050 };
0051 };
0052
0053 &cpu0 {
0054 cpu-supply = <&vdd_arm>;
0055 };
0056
0057 &cpu1 {
0058 cpu-supply = <&vdd_arm>;
0059 };
0060
0061 &i2c1 {
0062 status = "okay";
0063 clock-frequency = <400000>;
0064
0065 tps: tps@2d {
0066 reg = <0x2d>;
0067
0068 interrupt-parent = <&gpio6>;
0069 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
0070
0071 vcc1-supply = <&vsys>;
0072 vcc2-supply = <&vsys>;
0073 vcc3-supply = <&vsys>;
0074 vcc4-supply = <&vsys>;
0075 vcc5-supply = <&vcc_io>;
0076 vcc6-supply = <&vcc_io>;
0077 vcc7-supply = <&vsys>;
0078 vccio-supply = <&vsys>;
0079
0080 regulators {
0081 vcc_rtc: regulator@0 {
0082 regulator-name = "vcc_rtc";
0083 regulator-always-on;
0084 };
0085
0086 vcc_io: regulator@1 {
0087 regulator-name = "vcc_io";
0088 regulator-always-on;
0089 };
0090
0091 vdd_arm: regulator@2 {
0092 regulator-name = "vdd_arm";
0093 regulator-min-microvolt = <600000>;
0094 regulator-max-microvolt = <1500000>;
0095 regulator-boot-on;
0096 regulator-always-on;
0097 };
0098
0099 vcc_ddr: regulator@3 {
0100 regulator-name = "vcc_ddr";
0101 regulator-min-microvolt = <600000>;
0102 regulator-max-microvolt = <1500000>;
0103 regulator-boot-on;
0104 regulator-always-on;
0105 };
0106
0107 vcc18_cif: regulator@5 {
0108 regulator-name = "vcc18_cif";
0109 regulator-always-on;
0110 };
0111
0112 vdd_11: regulator@6 {
0113 regulator-name = "vdd_11";
0114 regulator-always-on;
0115 };
0116
0117 vcc_25: regulator@7 {
0118 regulator-name = "vcc_25";
0119 regulator-always-on;
0120 };
0121
0122 vcc_18: regulator@8 {
0123 regulator-name = "vcc_18";
0124 regulator-always-on;
0125 };
0126
0127 vcc25_hdmi: regulator@9 {
0128 regulator-name = "vcc25_hdmi";
0129 regulator-always-on;
0130 };
0131
0132 vcca_33: regulator@10 {
0133 regulator-name = "vcca_33";
0134 regulator-always-on;
0135 };
0136
0137 vcc_rmii: regulator@11 {
0138 regulator-name = "vcc_rmii";
0139 };
0140
0141 vcc28_cif: regulator@12 {
0142 regulator-name = "vcc28_cif";
0143 regulator-always-on;
0144 };
0145 };
0146 };
0147 };
0148
0149 /* must be included after &tps gets defined */
0150 #include "tps65910.dtsi"
0151
0152 &emac {
0153 status = "okay";
0154
0155 phy = <&phy0>;
0156 phy-supply = <&vcc_rmii>;
0157
0158 pinctrl-names = "default";
0159 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
0160
0161 phy0: ethernet-phy@0 {
0162 reg = <0>;
0163 interrupt-parent = <&gpio1>;
0164 interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
0165 };
0166 };
0167
0168 &mmc0 {
0169 status = "okay";
0170
0171 pinctrl-names = "default";
0172 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
0173 vmmc-supply = <&vcc_sd0>;
0174 };
0175
0176 &pinctrl {
0177 lan8720a {
0178 phy_int: phy-int {
0179 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
0180 };
0181 };
0182 };
0183
0184 &pwm3 {
0185 status = "okay";
0186 };
0187
0188 &uart0 {
0189 status = "okay";
0190 };
0191
0192 &uart1 {
0193 status = "okay";
0194 };
0195
0196 &uart2 {
0197 status = "okay";
0198 };
0199
0200 &uart3 {
0201 status = "okay";
0202 };
0203
0204 &usbphy {
0205 status = "okay";
0206 };
0207
0208 &usb_host {
0209 status = "okay";
0210 };
0211
0212 &usb_otg {
0213 status = "okay";
0214 };
0215
0216 &wdt {
0217 status = "okay";
0218 };