Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is dual-licensed: you can use it either under the terms |
| 3 | * of the GPL or the X11 license, at your option. Note that this dual |
| 4 | * licensing only applies to this file, and not this project as a |
| 5 | * whole. |
| 6 | * |
| 7 | * a) This file is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of the |
| 10 | * License, or (at your option) any later version. |
| 11 | * |
| 12 | * This file is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * Or, alternatively, |
| 18 | * |
| 19 | * b) Permission is hereby granted, free of charge, to any person |
| 20 | * obtaining a copy of this software and associated documentation |
| 21 | * files (the "Software"), to deal in the Software without |
| 22 | * restriction, including without limitation the rights to use, |
| 23 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 24 | * sell copies of the Software, and to permit persons to whom the |
| 25 | * Software is furnished to do so, subject to the following |
| 26 | * conditions: |
| 27 | * |
| 28 | * The above copyright notice and this permission notice shall be |
| 29 | * included in all copies or substantial portions of the Software. |
| 30 | * |
| 31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 32 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 33 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 34 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 35 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 36 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 37 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 38 | * OTHER DEALINGS IN THE SOFTWARE. |
| 39 | */ |
| 40 | |
| 41 | /dts-v1/; |
| 42 | |
Frank Wang | 970630e | 2017-06-22 18:29:57 +0800 | [diff] [blame] | 43 | #include "rk3229.dtsi" |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 44 | |
| 45 | / { |
| 46 | model = "Rockchip RK3229 Evaluation board"; |
| 47 | compatible = "rockchip,rk3229-evb", "rockchip,rk3229"; |
| 48 | |
Javier Martinez Canillas | 09fbc4a | 2016-09-09 10:01:07 -0400 | [diff] [blame] | 49 | memory@60000000 { |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 50 | device_type = "memory"; |
| 51 | reg = <0x60000000 0x40000000>; |
| 52 | }; |
| 53 | |
Frank Wang | 76f7887 | 2017-07-05 16:30:16 +0800 | [diff] [blame] | 54 | dc_12v: dc-12v-regulator { |
| 55 | compatible = "regulator-fixed"; |
| 56 | regulator-name = "dc_12v"; |
| 57 | regulator-always-on; |
| 58 | regulator-boot-on; |
| 59 | regulator-min-microvolt = <12000000>; |
| 60 | regulator-max-microvolt = <12000000>; |
| 61 | }; |
| 62 | |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 63 | ext_gmac: ext_gmac { |
| 64 | compatible = "fixed-clock"; |
| 65 | clock-frequency = <125000000>; |
| 66 | clock-output-names = "ext_gmac"; |
| 67 | #clock-cells = <0>; |
| 68 | }; |
| 69 | |
William Wu | 81b61d3 | 2017-06-02 15:04:25 +0800 | [diff] [blame] | 70 | vcc_host: vcc-host-regulator { |
| 71 | compatible = "regulator-fixed"; |
| 72 | enable-active-high; |
| 73 | gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&host_vbus_drv>; |
| 76 | regulator-name = "vcc_host"; |
| 77 | regulator-always-on; |
| 78 | regulator-boot-on; |
Frank Wang | 76f7887 | 2017-07-05 16:30:16 +0800 | [diff] [blame] | 79 | vin-supply = <&vcc_sys>; |
William Wu | 81b61d3 | 2017-06-02 15:04:25 +0800 | [diff] [blame] | 80 | }; |
| 81 | |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 82 | vcc_phy: vcc-phy-regulator { |
| 83 | compatible = "regulator-fixed"; |
| 84 | enable-active-high; |
| 85 | regulator-name = "vcc_phy"; |
| 86 | regulator-min-microvolt = <1800000>; |
| 87 | regulator-max-microvolt = <1800000>; |
| 88 | regulator-always-on; |
| 89 | regulator-boot-on; |
Frank Wang | 76f7887 | 2017-07-05 16:30:16 +0800 | [diff] [blame] | 90 | vin-supply = <&vccio_1v8>; |
| 91 | }; |
| 92 | |
| 93 | vcc_sys: vcc-sys-regulator { |
| 94 | compatible = "regulator-fixed"; |
| 95 | regulator-name = "vcc_sys"; |
| 96 | regulator-always-on; |
| 97 | regulator-boot-on; |
| 98 | regulator-min-microvolt = <5000000>; |
| 99 | regulator-max-microvolt = <5000000>; |
| 100 | vin-supply = <&dc_12v>; |
| 101 | }; |
| 102 | |
| 103 | vccio_1v8: vccio-1v8-regulator { |
| 104 | compatible = "regulator-fixed"; |
| 105 | regulator-name = "vccio_1v8"; |
| 106 | regulator-min-microvolt = <1800000>; |
| 107 | regulator-max-microvolt = <1800000>; |
| 108 | regulator-always-on; |
| 109 | vin-supply = <&vcc_sys>; |
| 110 | }; |
| 111 | |
| 112 | vccio_3v3: vccio-3v3-regulator { |
| 113 | compatible = "regulator-fixed"; |
| 114 | regulator-name = "vccio_3v3"; |
| 115 | regulator-min-microvolt = <3300000>; |
| 116 | regulator-max-microvolt = <3300000>; |
| 117 | regulator-always-on; |
| 118 | vin-supply = <&vcc_sys>; |
| 119 | }; |
| 120 | |
| 121 | vdd_arm: vdd-arm-regulator { |
| 122 | compatible = "pwm-regulator"; |
| 123 | pwms = <&pwm1 0 25000 1>; |
| 124 | pwm-supply = <&vcc_sys>; |
| 125 | regulator-name = "vdd_arm"; |
| 126 | regulator-min-microvolt = <950000>; |
| 127 | regulator-max-microvolt = <1400000>; |
| 128 | regulator-always-on; |
| 129 | regulator-boot-on; |
| 130 | }; |
| 131 | |
| 132 | vdd_log: vdd-log-regulator { |
| 133 | compatible = "pwm-regulator"; |
| 134 | pwms = <&pwm2 0 25000 1>; |
| 135 | pwm-supply = <&vcc_sys>; |
| 136 | regulator-name = "vdd_log"; |
| 137 | regulator-min-microvolt = <1000000>; |
| 138 | regulator-max-microvolt = <1300000>; |
| 139 | regulator-always-on; |
| 140 | regulator-boot-on; |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 141 | }; |
| 142 | }; |
| 143 | |
Finley Xiao | 2e1b0da | 2017-07-05 16:30:17 +0800 | [diff] [blame^] | 144 | &cpu0 { |
| 145 | cpu-supply = <&vdd_arm>; |
| 146 | }; |
| 147 | |
| 148 | &cpu1 { |
| 149 | cpu-supply = <&vdd_arm>; |
| 150 | }; |
| 151 | |
| 152 | &cpu2 { |
| 153 | cpu-supply = <&vdd_arm>; |
| 154 | }; |
| 155 | |
| 156 | &cpu3 { |
| 157 | cpu-supply = <&vdd_arm>; |
| 158 | }; |
| 159 | |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 160 | &gmac { |
| 161 | assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>; |
| 162 | assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>; |
| 163 | clock_in_out = "input"; |
| 164 | phy-supply = <&vcc_phy>; |
| 165 | phy-mode = "rgmii"; |
| 166 | pinctrl-names = "default"; |
| 167 | pinctrl-0 = <&rgmii_pins>; |
Andy Yan | e9e79d5 | 2016-10-22 20:54:55 +0800 | [diff] [blame] | 168 | snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>; |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 169 | snps,reset-active-low; |
| 170 | snps,reset-delays-us = <0 10000 1000000>; |
| 171 | tx_delay = <0x30>; |
| 172 | rx_delay = <0x10>; |
| 173 | status = "okay"; |
| 174 | }; |
| 175 | |
William Wu | 81b61d3 | 2017-06-02 15:04:25 +0800 | [diff] [blame] | 176 | &pinctrl { |
| 177 | usb { |
| 178 | host_vbus_drv: host-vbus-drv { |
| 179 | rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 180 | }; |
| 181 | }; |
| 182 | }; |
| 183 | |
Frank Wang | 76f7887 | 2017-07-05 16:30:16 +0800 | [diff] [blame] | 184 | &pwm1 { |
| 185 | status = "okay"; |
| 186 | }; |
| 187 | |
| 188 | &pwm2 { |
| 189 | status = "okay"; |
| 190 | }; |
| 191 | |
Xing Zheng | 241eff3 | 2016-06-22 11:16:53 +0800 | [diff] [blame] | 192 | &uart2 { |
| 193 | status = "okay"; |
| 194 | }; |
William Wu | 81b61d3 | 2017-06-02 15:04:25 +0800 | [diff] [blame] | 195 | |
| 196 | &u2phy0 { |
| 197 | status = "okay"; |
| 198 | |
| 199 | u2phy0_otg: otg-port { |
| 200 | status = "okay"; |
| 201 | }; |
| 202 | |
| 203 | u2phy0_host: host-port { |
| 204 | phy-supply = <&vcc_host>; |
| 205 | status = "okay"; |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | &u2phy1 { |
| 210 | status = "okay"; |
| 211 | |
| 212 | u2phy1_otg: otg-port { |
| 213 | phy-supply = <&vcc_host>; |
| 214 | status = "okay"; |
| 215 | }; |
| 216 | |
| 217 | u2phy1_host: host-port { |
| 218 | phy-supply = <&vcc_host>; |
| 219 | status = "okay"; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | &usb_host0_ehci { |
| 224 | status = "okay"; |
| 225 | }; |
| 226 | |
| 227 | &usb_host0_ohci { |
| 228 | status = "okay"; |
| 229 | }; |
| 230 | |
| 231 | &usb_host1_ehci { |
| 232 | status = "okay"; |
| 233 | }; |
| 234 | |
| 235 | &usb_host1_ohci { |
| 236 | status = "okay"; |
| 237 | }; |
| 238 | |
| 239 | &usb_host2_ehci { |
| 240 | status = "okay"; |
| 241 | }; |
| 242 | |
| 243 | &usb_host2_ohci { |
| 244 | status = "okay"; |
| 245 | }; |
| 246 | |
| 247 | &usb_otg { |
| 248 | status = "okay"; |
| 249 | }; |