Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Kever Yang | fc281b7 | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2016 Rockchip Electronics Co., Ltd |
Kever Yang | fc281b7 | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "rk3328.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "Rockchip RK3328 EVB"; |
| 11 | compatible = "rockchip,rk3328-evb", "rockchip,rk3328"; |
| 12 | |
| 13 | chosen { |
| 14 | stdout-path = &uart2; |
| 15 | }; |
Meng Dongyang | 776a09c | 2017-06-28 19:22:41 +0800 | [diff] [blame] | 16 | |
David Wu | 60525e1 | 2018-01-13 14:04:11 +0800 | [diff] [blame] | 17 | gmac_clkin: external-gmac-clock { |
| 18 | compatible = "fixed-clock"; |
| 19 | clock-frequency = <125000000>; |
| 20 | clock-output-names = "gmac_clkin"; |
| 21 | #clock-cells = <0>; |
| 22 | }; |
| 23 | |
Kever Yang | f12b8cc | 2017-06-08 15:32:06 +0800 | [diff] [blame] | 24 | vcc3v3_sdmmc: sdmmc-pwren { |
| 25 | compatible = "regulator-fixed"; |
| 26 | regulator-name = "vcc3v3"; |
| 27 | gpio = <&gpio0 30 GPIO_ACTIVE_LOW>; |
| 28 | regulator-always-on; |
| 29 | regulator-boot-on; |
| 30 | }; |
| 31 | |
Meng Dongyang | c27dcf9 | 2017-06-28 19:22:45 +0800 | [diff] [blame] | 32 | vcc5v0_otg: vcc5v0-otg-drv { |
| 33 | compatible = "regulator-fixed"; |
| 34 | enable-active-high; |
| 35 | regulator-name = "vcc5v0_otg"; |
| 36 | gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
| 37 | regulator-min-microvolt = <5000000>; |
| 38 | regulator-max-microvolt = <5000000>; |
| 39 | }; |
| 40 | |
Meng Dongyang | 776a09c | 2017-06-28 19:22:41 +0800 | [diff] [blame] | 41 | vcc5v0_host_xhci: vcc5v0-host-xhci-drv { |
| 42 | compatible = "regulator-fixed"; |
| 43 | enable-active-high; |
| 44 | regulator-name = "vcc5v0_host_xhci"; |
| 45 | gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
| 46 | regulator-min-microvolt = <5000000>; |
| 47 | regulator-max-microvolt = <5000000>; |
| 48 | }; |
David Wu | 60525e1 | 2018-01-13 14:04:11 +0800 | [diff] [blame] | 49 | |
| 50 | vcc_phy: vcc-phy-regulator { |
| 51 | compatible = "regulator-fixed"; |
| 52 | regulator-name = "vcc_phy"; |
| 53 | regulator-always-on; |
| 54 | regulator-boot-on; |
| 55 | }; |
Kever Yang | fc281b7 | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 56 | }; |
| 57 | |
David Wu | c28a610 | 2017-09-20 14:44:23 +0800 | [diff] [blame] | 58 | &saradc { |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
Kever Yang | fc281b7 | 2017-02-23 15:37:50 +0800 | [diff] [blame] | 62 | &uart2 { |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
| 66 | &sdmmc { |
| 67 | bus-width = <4>; |
| 68 | cap-mmc-highspeed; |
| 69 | cap-sd-highspeed; |
| 70 | card-detect-delay = <200>; |
| 71 | disable-wp; |
| 72 | num-slots = <1>; |
| 73 | pinctrl-names = "default"; |
| 74 | pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>; |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | |
| 78 | &emmc { |
| 79 | bus-width = <8>; |
| 80 | cap-mmc-highspeed; |
| 81 | supports-emmc; |
| 82 | disable-wp; |
| 83 | non-removable; |
| 84 | num-slots = <1>; |
| 85 | pinctrl-names = "default"; |
| 86 | pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; |
| 87 | status = "okay"; |
| 88 | }; |
Meng Dongyang | 4fd2d8f | 2017-05-17 18:21:46 +0800 | [diff] [blame] | 89 | |
David Wu | 60525e1 | 2018-01-13 14:04:11 +0800 | [diff] [blame] | 90 | &gmac2io { |
| 91 | phy-supply = <&vcc_phy>; |
| 92 | phy-mode = "rgmii"; |
| 93 | clock_in_out = "input"; |
| 94 | snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; |
| 95 | snps,reset-active-low; |
| 96 | snps,reset-delays-us = <0 10000 50000>; |
| 97 | assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>; |
| 98 | assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>; |
| 99 | pinctrl-names = "default"; |
| 100 | pinctrl-0 = <&rgmiim1_pins>; |
| 101 | tx_delay = <0x26>; |
| 102 | rx_delay = <0x11>; |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
Meng Dongyang | 4fd2d8f | 2017-05-17 18:21:46 +0800 | [diff] [blame] | 106 | &usb_host0_ehci { |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
| 110 | &usb_host0_ohci { |
| 111 | status = "okay"; |
| 112 | }; |
Meng Dongyang | 820d112 | 2017-05-17 18:25:28 +0800 | [diff] [blame] | 113 | |
Meng Dongyang | c27dcf9 | 2017-06-28 19:22:45 +0800 | [diff] [blame] | 114 | &usb20_otg { |
| 115 | vbus-supply = <&vcc5v0_otg>; |
| 116 | status = "okay"; |
| 117 | }; |
| 118 | |
Elaine Zhang | 18220f1 | 2017-09-27 15:23:38 +0800 | [diff] [blame] | 119 | &i2c1 { |
| 120 | clock-frequency = <400000>; |
| 121 | i2c-scl-rising-time-ns = <168>; |
| 122 | i2c-scl-falling-time-ns = <4>; |
| 123 | status = "okay"; |
| 124 | |
| 125 | rk805: pmic@18 { |
| 126 | compatible = "rockchip,rk805"; |
| 127 | status = "okay"; |
| 128 | reg = <0x18>; |
| 129 | interrupt-parent = <&gpio2>; |
| 130 | interrupts = <6 IRQ_TYPE_LEVEL_LOW>; |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&pmic_int_l>; |
| 133 | rockchip,system-power-controller; |
| 134 | wakeup-source; |
| 135 | gpio-controller; |
| 136 | #gpio-cells = <2>; |
| 137 | #clock-cells = <1>; |
| 138 | clock-output-names = "xin32k", "rk805-clkout2"; |
| 139 | |
| 140 | regulators { |
| 141 | vdd_logic: DCDC_REG1 { |
| 142 | regulator-name = "vdd_logic"; |
| 143 | regulator-min-microvolt = <712500>; |
| 144 | regulator-max-microvolt = <1450000>; |
| 145 | regulator-ramp-delay = <6001>; |
| 146 | regulator-boot-on; |
| 147 | regulator-always-on; |
| 148 | regulator-state-mem { |
| 149 | regulator-on-in-suspend; |
| 150 | regulator-suspend-microvolt = <1000000>; |
| 151 | }; |
| 152 | }; |
| 153 | |
| 154 | vdd_arm: DCDC_REG2 { |
| 155 | regulator-name = "vdd_arm"; |
| 156 | regulator-min-microvolt = <712500>; |
| 157 | regulator-max-microvolt = <1450000>; |
| 158 | regulator-ramp-delay = <6001>; |
| 159 | regulator-boot-on; |
| 160 | regulator-always-on; |
| 161 | regulator-state-mem { |
| 162 | regulator-on-in-suspend; |
| 163 | regulator-suspend-microvolt = <1000000>; |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | vcc_ddr: DCDC_REG3 { |
| 168 | regulator-name = "vcc_ddr"; |
| 169 | regulator-boot-on; |
| 170 | regulator-always-on; |
| 171 | regulator-state-mem { |
| 172 | regulator-on-in-suspend; |
| 173 | }; |
| 174 | }; |
| 175 | |
| 176 | vcc_io: DCDC_REG4 { |
| 177 | regulator-name = "vcc_io"; |
| 178 | regulator-min-microvolt = <3300000>; |
| 179 | regulator-max-microvolt = <3300000>; |
| 180 | regulator-boot-on; |
| 181 | regulator-always-on; |
| 182 | regulator-state-mem { |
| 183 | regulator-on-in-suspend; |
| 184 | regulator-suspend-microvolt = <3300000>; |
| 185 | }; |
| 186 | }; |
| 187 | |
| 188 | vdd_18: LDO_REG1 { |
| 189 | regulator-name = "vdd_18"; |
| 190 | regulator-min-microvolt = <1800000>; |
| 191 | regulator-max-microvolt = <1800000>; |
| 192 | regulator-boot-on; |
| 193 | regulator-always-on; |
| 194 | regulator-state-mem { |
| 195 | regulator-on-in-suspend; |
| 196 | regulator-suspend-microvolt = <1800000>; |
| 197 | }; |
| 198 | }; |
| 199 | |
| 200 | vcc_18emmc: LDO_REG2 { |
| 201 | regulator-name = "vcc_18emmc"; |
| 202 | regulator-min-microvolt = <1800000>; |
| 203 | regulator-max-microvolt = <1800000>; |
| 204 | regulator-boot-on; |
| 205 | regulator-always-on; |
| 206 | regulator-state-mem { |
| 207 | regulator-on-in-suspend; |
| 208 | regulator-suspend-microvolt = <1800000>; |
| 209 | }; |
| 210 | }; |
| 211 | |
| 212 | vdd_10: LDO_REG3 { |
| 213 | regulator-name = "vdd_10"; |
| 214 | regulator-min-microvolt = <1000000>; |
| 215 | regulator-max-microvolt = <1000000>; |
| 216 | regulator-boot-on; |
| 217 | regulator-always-on; |
| 218 | regulator-state-mem { |
| 219 | regulator-on-in-suspend; |
| 220 | regulator-suspend-microvolt = <1000000>; |
| 221 | }; |
| 222 | }; |
| 223 | }; |
| 224 | }; |
| 225 | }; |
| 226 | |
| 227 | &pinctrl { |
| 228 | pmic { |
| 229 | pmic_int_l: pmic-int-l { |
| 230 | rockchip,pins = |
| 231 | <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio2_a6 */ |
| 232 | }; |
| 233 | }; |
| 234 | }; |
| 235 | |