0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002
0003 /*
0004 * Copyright (C) 2018 O.S. Systems Software LTDA.
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "rv1108.dtsi"
0010
0011 / {
0012 model = "Elgin RV1108 R1 board";
0013 compatible = "elgin,rv1108-r1", "rockchip,rv1108";
0014
0015 aliases {
0016 mmc0 = &emmc;
0017 };
0018
0019 memory@60000000 {
0020 device_type = "memory";
0021 reg = <0x60000000 0x08000000>;
0022 };
0023
0024 chosen {
0025 stdout-path = "serial2:1500000n8";
0026 };
0027
0028 vcc_sys: vsys-regulator {
0029 compatible = "regulator-fixed";
0030 regulator-name = "vsys";
0031 regulator-min-microvolt = <5000000>;
0032 regulator-max-microvolt = <5000000>;
0033 regulator-boot-on;
0034 };
0035 };
0036
0037 &cpu0 {
0038 cpu-supply = <&vdd_core>;
0039 };
0040
0041 &emmc {
0042 bus-width = <8>;
0043 cap-mmc-highspeed;
0044 no-sd;
0045 no-sdio;
0046 non-removable;
0047 mmc-ddr-1_8v;
0048 mmc-hs200-1_8v;
0049 pinctrl-names = "default";
0050 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
0051 status = "okay";
0052 };
0053
0054 &gmac {
0055 clock_in_out = "output";
0056 pinctrl-names = "default";
0057 pinctrl-0 = <&rmii_pins>;
0058 snps,reset-gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_LOW>;
0059 snps,reset-active-low;
0060 status = "okay";
0061 };
0062
0063 &i2c0 {
0064 clock-frequency = <400000>;
0065 i2c-scl-rising-time-ns = <275>;
0066 i2c-scl-falling-time-ns = <16>;
0067 status = "okay";
0068
0069 rk805: pmic@18 {
0070 compatible = "rockchip,rk805";
0071 reg = <0x18>;
0072 interrupt-parent = <&gpio0>;
0073 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
0074 rockchip,system-power-controller;
0075 #clock-cells = <0>;
0076
0077 vcc1-supply = <&vcc_sys>;
0078 vcc2-supply = <&vcc_sys>;
0079 vcc3-supply = <&vcc_sys>;
0080 vcc4-supply = <&vcc_sys>;
0081 vcc5-supply = <&vdd_buck2>;
0082 vcc6-supply = <&vdd_buck2>;
0083
0084 regulators {
0085 vdd_core: DCDC_REG1 {
0086 regulator-name = "vdd_core";
0087 regulator-min-microvolt = <700000>;
0088 regulator-max-microvolt = <1500000>;
0089 regulator-always-on;
0090 regulator-boot-on;
0091 regulator-state-mem {
0092 regulator-on-in-suspend;
0093 regulator-suspend-microvolt = <900000>;
0094 };
0095 };
0096
0097 vdd_buck2: DCDC_REG2 {
0098 regulator-name = "vdd_buck2";
0099 regulator-min-microvolt = <2200000>;
0100 regulator-max-microvolt = <2200000>;
0101 regulator-always-on;
0102 regulator-boot-on;
0103 regulator-state-mem {
0104 regulator-off-in-suspend;
0105 };
0106 };
0107
0108 vcc_ddr: DCDC_REG3 {
0109 regulator-name = "vcc_ddr";
0110 regulator-always-on;
0111 regulator-boot-on;
0112 regulator-state-mem {
0113 regulator-on-in-suspend;
0114 };
0115 };
0116
0117 vcc_io: DCDC_REG4 {
0118 regulator-name = "vcc_io";
0119 regulator-min-microvolt = <3300000>;
0120 regulator-max-microvolt = <3300000>;
0121 regulator-always-on;
0122 regulator-boot-on;
0123 regulator-state-mem {
0124 regulator-on-in-suspend;
0125 regulator-suspend-microvolt = <3300000>;
0126 };
0127 };
0128
0129 vdd_10: LDO_REG1 {
0130 regulator-name = "vdd_10";
0131 regulator-min-microvolt = <1000000>;
0132 regulator-max-microvolt = <1000000>;
0133 regulator-always-on;
0134 regulator-boot-on;
0135 regulator-state-mem {
0136 regulator-off-in-suspend;
0137 };
0138 };
0139
0140 vcc_18: LDO_REG2 {
0141 regulator-name = "vcc_18";
0142 regulator-min-microvolt = <1800000>;
0143 regulator-max-microvolt = <1800000>;
0144 regulator-always-on;
0145 regulator-boot-on;
0146 regulator-state-mem {
0147 regulator-off-in-suspend;
0148 };
0149 };
0150
0151 vdd10_pmu: LDO_REG3 {
0152 regulator-name = "vdd10_pmu";
0153 regulator-min-microvolt = <1000000>;
0154 regulator-max-microvolt = <1000000>;
0155 regulator-always-on;
0156 regulator-boot-on;
0157 regulator-state-mem {
0158 regulator-on-in-suspend;
0159 regulator-suspend-microvolt = <1000000>;
0160 };
0161 };
0162 };
0163 };
0164 };
0165
0166 &spi {
0167 pinctrl-names = "default";
0168 pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
0169 status = "okay";
0170
0171 dh2228fv: dac@0 {
0172 compatible = "rohm,dh2228fv";
0173 reg = <0>;
0174 spi-max-frequency = <24000000>;
0175 spi-cpha;
0176 spi-cpol;
0177 };
0178 };
0179
0180 &u2phy {
0181 status = "okay";
0182
0183 u2phy_host: host-port {
0184 status = "okay";
0185 };
0186
0187 u2phy_otg: otg-port {
0188 status = "okay";
0189 };
0190 };
0191
0192 &uart0 {
0193 pinctrl-names = "default";
0194 pinctrl-0 = <&uart0_xfer>;
0195 status = "okay";
0196 };
0197
0198 &uart2 {
0199 status = "okay";
0200 };
0201
0202 &usb_host_ehci {
0203 status = "okay";
0204 };
0205
0206 &usb_host_ohci {
0207 status = "okay";
0208 };
0209
0210 &usb_otg {
0211 status = "okay";
0212 };