1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring 3724ba675SRob Herring/dts-v1/; 4724ba675SRob Herring 5724ba675SRob Herring#include <dt-bindings/input/input.h> 6724ba675SRob Herring#include "rk3229.dtsi" 7724ba675SRob Herring 8724ba675SRob Herring/ { 9724ba675SRob Herring model = "Rockchip RK3229 Evaluation board"; 10724ba675SRob Herring compatible = "rockchip,rk3229-evb", "rockchip,rk3229"; 11724ba675SRob Herring 12724ba675SRob Herring aliases { 13724ba675SRob Herring mmc0 = &emmc; 14724ba675SRob Herring }; 15724ba675SRob Herring 16724ba675SRob Herring memory@60000000 { 17724ba675SRob Herring device_type = "memory"; 18724ba675SRob Herring reg = <0x60000000 0x40000000>; 19724ba675SRob Herring }; 20724ba675SRob Herring 21*2c3944d9SJohan Jonker dc_12v: regulator-dc-12v { 22724ba675SRob Herring compatible = "regulator-fixed"; 23724ba675SRob Herring regulator-name = "dc_12v"; 24724ba675SRob Herring regulator-always-on; 25724ba675SRob Herring regulator-boot-on; 26724ba675SRob Herring regulator-min-microvolt = <12000000>; 27724ba675SRob Herring regulator-max-microvolt = <12000000>; 28724ba675SRob Herring }; 29724ba675SRob Herring 30724ba675SRob Herring ext_gmac: ext_gmac { 31724ba675SRob Herring compatible = "fixed-clock"; 32724ba675SRob Herring clock-frequency = <125000000>; 33724ba675SRob Herring clock-output-names = "ext_gmac"; 34724ba675SRob Herring #clock-cells = <0>; 35724ba675SRob Herring }; 36724ba675SRob Herring 37*2c3944d9SJohan Jonker vcc_host: regulator-vcc-host { 38724ba675SRob Herring compatible = "regulator-fixed"; 39724ba675SRob Herring enable-active-high; 40724ba675SRob Herring gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; 41724ba675SRob Herring pinctrl-names = "default"; 42724ba675SRob Herring pinctrl-0 = <&host_vbus_drv>; 43724ba675SRob Herring regulator-name = "vcc_host"; 44724ba675SRob Herring regulator-always-on; 45724ba675SRob Herring regulator-boot-on; 46724ba675SRob Herring vin-supply = <&vcc_sys>; 47724ba675SRob Herring }; 48724ba675SRob Herring 49*2c3944d9SJohan Jonker vcc_phy: regulator-vcc-phy { 50724ba675SRob Herring compatible = "regulator-fixed"; 51724ba675SRob Herring enable-active-high; 52724ba675SRob Herring regulator-name = "vcc_phy"; 53724ba675SRob Herring regulator-min-microvolt = <1800000>; 54724ba675SRob Herring regulator-max-microvolt = <1800000>; 55724ba675SRob Herring regulator-always-on; 56724ba675SRob Herring regulator-boot-on; 57724ba675SRob Herring vin-supply = <&vccio_1v8>; 58724ba675SRob Herring }; 59724ba675SRob Herring 60*2c3944d9SJohan Jonker vcc_sys: regulator-vcc-sys { 61724ba675SRob Herring compatible = "regulator-fixed"; 62724ba675SRob Herring regulator-name = "vcc_sys"; 63724ba675SRob Herring regulator-always-on; 64724ba675SRob Herring regulator-boot-on; 65724ba675SRob Herring regulator-min-microvolt = <5000000>; 66724ba675SRob Herring regulator-max-microvolt = <5000000>; 67724ba675SRob Herring vin-supply = <&dc_12v>; 68724ba675SRob Herring }; 69724ba675SRob Herring 70*2c3944d9SJohan Jonker vccio_1v8: regulator-vccio-1v8 { 71724ba675SRob Herring compatible = "regulator-fixed"; 72724ba675SRob Herring regulator-name = "vccio_1v8"; 73724ba675SRob Herring regulator-min-microvolt = <1800000>; 74724ba675SRob Herring regulator-max-microvolt = <1800000>; 75724ba675SRob Herring regulator-always-on; 76724ba675SRob Herring vin-supply = <&vcc_sys>; 77724ba675SRob Herring }; 78724ba675SRob Herring 79*2c3944d9SJohan Jonker vccio_3v3: regulator-vccio-3v3 { 80724ba675SRob Herring compatible = "regulator-fixed"; 81724ba675SRob Herring regulator-name = "vccio_3v3"; 82724ba675SRob Herring regulator-min-microvolt = <3300000>; 83724ba675SRob Herring regulator-max-microvolt = <3300000>; 84724ba675SRob Herring regulator-always-on; 85724ba675SRob Herring vin-supply = <&vcc_sys>; 86724ba675SRob Herring }; 87724ba675SRob Herring 88*2c3944d9SJohan Jonker vdd_arm: regulator-vdd-arm { 89724ba675SRob Herring compatible = "pwm-regulator"; 90724ba675SRob Herring pwms = <&pwm1 0 25000 1>; 91724ba675SRob Herring pwm-supply = <&vcc_sys>; 92724ba675SRob Herring regulator-name = "vdd_arm"; 93724ba675SRob Herring regulator-min-microvolt = <950000>; 94724ba675SRob Herring regulator-max-microvolt = <1400000>; 95724ba675SRob Herring regulator-always-on; 96724ba675SRob Herring regulator-boot-on; 97724ba675SRob Herring }; 98724ba675SRob Herring 99*2c3944d9SJohan Jonker vdd_log: regulator-vdd-log { 100724ba675SRob Herring compatible = "pwm-regulator"; 101724ba675SRob Herring pwms = <&pwm2 0 25000 1>; 102724ba675SRob Herring pwm-supply = <&vcc_sys>; 103724ba675SRob Herring regulator-name = "vdd_log"; 104724ba675SRob Herring regulator-min-microvolt = <1000000>; 105724ba675SRob Herring regulator-max-microvolt = <1300000>; 106724ba675SRob Herring regulator-always-on; 107724ba675SRob Herring regulator-boot-on; 108724ba675SRob Herring }; 109724ba675SRob Herring 110724ba675SRob Herring gpio-keys { 111724ba675SRob Herring compatible = "gpio-keys"; 112724ba675SRob Herring autorepeat; 113724ba675SRob Herring pinctrl-names = "default"; 114724ba675SRob Herring pinctrl-0 = <&pwr_key>; 115724ba675SRob Herring 116724ba675SRob Herring power_key: power-key { 117724ba675SRob Herring label = "GPIO Key Power"; 118724ba675SRob Herring gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; 119724ba675SRob Herring linux,code = <KEY_POWER>; 120724ba675SRob Herring debounce-interval = <100>; 121724ba675SRob Herring wakeup-source; 122724ba675SRob Herring }; 123724ba675SRob Herring }; 124724ba675SRob Herring}; 125724ba675SRob Herring 126724ba675SRob Herring&cpu0 { 127724ba675SRob Herring cpu-supply = <&vdd_arm>; 128724ba675SRob Herring}; 129724ba675SRob Herring 130724ba675SRob Herring&cpu1 { 131724ba675SRob Herring cpu-supply = <&vdd_arm>; 132724ba675SRob Herring}; 133724ba675SRob Herring 134724ba675SRob Herring&cpu2 { 135724ba675SRob Herring cpu-supply = <&vdd_arm>; 136724ba675SRob Herring}; 137724ba675SRob Herring 138724ba675SRob Herring&cpu3 { 139724ba675SRob Herring cpu-supply = <&vdd_arm>; 140724ba675SRob Herring}; 141724ba675SRob Herring 142724ba675SRob Herring&emmc { 143724ba675SRob Herring cap-mmc-highspeed; 144724ba675SRob Herring non-removable; 145724ba675SRob Herring status = "okay"; 146724ba675SRob Herring}; 147724ba675SRob Herring 148724ba675SRob Herring&gmac { 149724ba675SRob Herring assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>; 150724ba675SRob Herring assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>; 151724ba675SRob Herring clock_in_out = "input"; 152724ba675SRob Herring phy-supply = <&vcc_phy>; 153724ba675SRob Herring phy-mode = "rgmii"; 154724ba675SRob Herring pinctrl-names = "default"; 155724ba675SRob Herring pinctrl-0 = <&rgmii_pins>; 156724ba675SRob Herring snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>; 157724ba675SRob Herring snps,reset-active-low; 158724ba675SRob Herring snps,reset-delays-us = <0 10000 1000000>; 159724ba675SRob Herring tx_delay = <0x30>; 160724ba675SRob Herring rx_delay = <0x10>; 161724ba675SRob Herring status = "okay"; 162724ba675SRob Herring}; 163724ba675SRob Herring 164724ba675SRob Herring&io_domains { 165724ba675SRob Herring status = "okay"; 166724ba675SRob Herring 167724ba675SRob Herring vccio1-supply = <&vccio_3v3>; 168724ba675SRob Herring vccio2-supply = <&vccio_1v8>; 169724ba675SRob Herring vccio4-supply = <&vccio_3v3>; 170724ba675SRob Herring}; 171724ba675SRob Herring 172724ba675SRob Herring&pinctrl { 173724ba675SRob Herring keys { 174724ba675SRob Herring pwr_key: pwr-key { 175724ba675SRob Herring rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; 176724ba675SRob Herring }; 177724ba675SRob Herring }; 178724ba675SRob Herring 179724ba675SRob Herring usb { 180724ba675SRob Herring host_vbus_drv: host-vbus-drv { 181724ba675SRob Herring rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; 182724ba675SRob Herring }; 183724ba675SRob Herring }; 184724ba675SRob Herring}; 185724ba675SRob Herring 186724ba675SRob Herring&pwm1 { 187724ba675SRob Herring status = "okay"; 188724ba675SRob Herring}; 189724ba675SRob Herring 190724ba675SRob Herring&pwm2 { 191724ba675SRob Herring status = "okay"; 192724ba675SRob Herring}; 193724ba675SRob Herring 194724ba675SRob Herring&tsadc { 195724ba675SRob Herring rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ 196724ba675SRob Herring status = "okay"; 197724ba675SRob Herring}; 198724ba675SRob Herring 199724ba675SRob Herring&uart2 { 200724ba675SRob Herring status = "okay"; 201724ba675SRob Herring}; 202724ba675SRob Herring 203724ba675SRob Herring&u2phy0 { 204724ba675SRob Herring status = "okay"; 205724ba675SRob Herring 206724ba675SRob Herring u2phy0_otg: otg-port { 207724ba675SRob Herring status = "okay"; 208724ba675SRob Herring }; 209724ba675SRob Herring 210724ba675SRob Herring u2phy0_host: host-port { 211724ba675SRob Herring phy-supply = <&vcc_host>; 212724ba675SRob Herring status = "okay"; 213724ba675SRob Herring }; 214724ba675SRob Herring}; 215724ba675SRob Herring 216724ba675SRob Herring&u2phy1 { 217724ba675SRob Herring status = "okay"; 218724ba675SRob Herring 219724ba675SRob Herring u2phy1_otg: otg-port { 220724ba675SRob Herring phy-supply = <&vcc_host>; 221724ba675SRob Herring status = "okay"; 222724ba675SRob Herring }; 223724ba675SRob Herring 224724ba675SRob Herring u2phy1_host: host-port { 225724ba675SRob Herring phy-supply = <&vcc_host>; 226724ba675SRob Herring status = "okay"; 227724ba675SRob Herring }; 228724ba675SRob Herring}; 229724ba675SRob Herring 230724ba675SRob Herring&usb_host0_ehci { 231724ba675SRob Herring status = "okay"; 232724ba675SRob Herring}; 233724ba675SRob Herring 234724ba675SRob Herring&usb_host0_ohci { 235724ba675SRob Herring status = "okay"; 236724ba675SRob Herring}; 237724ba675SRob Herring 238724ba675SRob Herring&usb_host1_ehci { 239724ba675SRob Herring status = "okay"; 240724ba675SRob Herring}; 241724ba675SRob Herring 242724ba675SRob Herring&usb_host1_ohci { 243724ba675SRob Herring status = "okay"; 244724ba675SRob Herring}; 245724ba675SRob Herring 246724ba675SRob Herring&usb_host2_ehci { 247724ba675SRob Herring status = "okay"; 248724ba675SRob Herring}; 249724ba675SRob Herring 250724ba675SRob Herring&usb_host2_ohci { 251724ba675SRob Herring status = "okay"; 252724ba675SRob Herring}; 253724ba675SRob Herring 254724ba675SRob Herring&usb_otg { 255724ba675SRob Herring status = "okay"; 256724ba675SRob Herring}; 257