14ee99cebSKlaus Goger// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2cc7364fbSJianqun Xu/* 3cc7364fbSJianqun Xu * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd 4cc7364fbSJianqun Xu */ 5cc7364fbSJianqun Xu 6cc7364fbSJianqun Xu/dts-v1/; 7cc7364fbSJianqun Xu#include <dt-bindings/pwm/pwm.h> 8cc7364fbSJianqun Xu#include "rk3399.dtsi" 9cc7364fbSJianqun Xu 10cc7364fbSJianqun Xu/ { 11cc7364fbSJianqun Xu model = "Rockchip RK3399 Evaluation Board"; 12cc7364fbSJianqun Xu compatible = "rockchip,rk3399-evb", "rockchip,rk3399", 13cc7364fbSJianqun Xu "google,rk3399evb-rev2"; 14cc7364fbSJianqun Xu 15578c0e7eSYakir Yang backlight: backlight { 16578c0e7eSYakir Yang compatible = "pwm-backlight"; 17578c0e7eSYakir Yang brightness-levels = < 18578c0e7eSYakir Yang 0 1 2 3 4 5 6 7 19578c0e7eSYakir Yang 8 9 10 11 12 13 14 15 20578c0e7eSYakir Yang 16 17 18 19 20 21 22 23 21578c0e7eSYakir Yang 24 25 26 27 28 29 30 31 22578c0e7eSYakir Yang 32 33 34 35 36 37 38 39 23578c0e7eSYakir Yang 40 41 42 43 44 45 46 47 24578c0e7eSYakir Yang 48 49 50 51 52 53 54 55 25578c0e7eSYakir Yang 56 57 58 59 60 61 62 63 26578c0e7eSYakir Yang 64 65 66 67 68 69 70 71 27578c0e7eSYakir Yang 72 73 74 75 76 77 78 79 28578c0e7eSYakir Yang 80 81 82 83 84 85 86 87 29578c0e7eSYakir Yang 88 89 90 91 92 93 94 95 30578c0e7eSYakir Yang 96 97 98 99 100 101 102 103 31578c0e7eSYakir Yang 104 105 106 107 108 109 110 111 32578c0e7eSYakir Yang 112 113 114 115 116 117 118 119 33578c0e7eSYakir Yang 120 121 122 123 124 125 126 127 34578c0e7eSYakir Yang 128 129 130 131 132 133 134 135 35578c0e7eSYakir Yang 136 137 138 139 140 141 142 143 36578c0e7eSYakir Yang 144 145 146 147 148 149 150 151 37578c0e7eSYakir Yang 152 153 154 155 156 157 158 159 38578c0e7eSYakir Yang 160 161 162 163 164 165 166 167 39578c0e7eSYakir Yang 168 169 170 171 172 173 174 175 40578c0e7eSYakir Yang 176 177 178 179 180 181 182 183 41578c0e7eSYakir Yang 184 185 186 187 188 189 190 191 42578c0e7eSYakir Yang 192 193 194 195 196 197 198 199 43578c0e7eSYakir Yang 200 201 202 203 204 205 206 207 44578c0e7eSYakir Yang 208 209 210 211 212 213 214 215 45578c0e7eSYakir Yang 216 217 218 219 220 221 222 223 46578c0e7eSYakir Yang 224 225 226 227 228 229 230 231 47578c0e7eSYakir Yang 232 233 234 235 236 237 238 239 48578c0e7eSYakir Yang 240 241 242 243 244 245 246 247 49578c0e7eSYakir Yang 248 249 250 251 252 253 254 255>; 50578c0e7eSYakir Yang default-brightness-level = <200>; 514eb45558SAndy Yan enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; 52578c0e7eSYakir Yang pwms = <&pwm0 0 25000 0>; 53578c0e7eSYakir Yang }; 54578c0e7eSYakir Yang 550714bc77SRoger Chen clkin_gmac: external-gmac-clock { 560714bc77SRoger Chen compatible = "fixed-clock"; 570714bc77SRoger Chen clock-frequency = <125000000>; 580714bc77SRoger Chen clock-output-names = "clkin_gmac"; 590714bc77SRoger Chen #clock-cells = <0>; 600714bc77SRoger Chen }; 610714bc77SRoger Chen 62cc7364fbSJianqun Xu vdd_center: vdd-center { 63cc7364fbSJianqun Xu compatible = "pwm-regulator"; 64cc7364fbSJianqun Xu pwms = <&pwm3 0 25000 0>; 65cc7364fbSJianqun Xu regulator-name = "vdd_center"; 66cc7364fbSJianqun Xu regulator-min-microvolt = <800000>; 67cc7364fbSJianqun Xu regulator-max-microvolt = <1400000>; 68cc7364fbSJianqun Xu regulator-always-on; 69cc7364fbSJianqun Xu regulator-boot-on; 70cc7364fbSJianqun Xu status = "okay"; 71cc7364fbSJianqun Xu }; 72cc7364fbSJianqun Xu 73cc7364fbSJianqun Xu vcc3v3_sys: vcc3v3-sys { 74cc7364fbSJianqun Xu compatible = "regulator-fixed"; 75cc7364fbSJianqun Xu regulator-name = "vcc3v3_sys"; 76cc7364fbSJianqun Xu regulator-always-on; 77cc7364fbSJianqun Xu regulator-boot-on; 78cc7364fbSJianqun Xu regulator-min-microvolt = <3300000>; 79cc7364fbSJianqun Xu regulator-max-microvolt = <3300000>; 80cc7364fbSJianqun Xu }; 81cc7364fbSJianqun Xu 821d3bc1d6SFrank Wang vcc5v0_sys: vcc5v0-sys { 831d3bc1d6SFrank Wang compatible = "regulator-fixed"; 841d3bc1d6SFrank Wang regulator-name = "vcc5v0_sys"; 851d3bc1d6SFrank Wang regulator-always-on; 861d3bc1d6SFrank Wang regulator-boot-on; 871d3bc1d6SFrank Wang regulator-min-microvolt = <5000000>; 881d3bc1d6SFrank Wang regulator-max-microvolt = <5000000>; 891d3bc1d6SFrank Wang }; 901d3bc1d6SFrank Wang 911d3bc1d6SFrank Wang vcc5v0_host: vcc5v0-host-regulator { 921d3bc1d6SFrank Wang compatible = "regulator-fixed"; 931d3bc1d6SFrank Wang enable-active-high; 944eb45558SAndy Yan gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; 951d3bc1d6SFrank Wang pinctrl-names = "default"; 961d3bc1d6SFrank Wang pinctrl-0 = <&vcc5v0_host_en>; 971d3bc1d6SFrank Wang regulator-name = "vcc5v0_host"; 981d3bc1d6SFrank Wang vin-supply = <&vcc5v0_sys>; 991d3bc1d6SFrank Wang }; 1001d3bc1d6SFrank Wang 101cc7364fbSJianqun Xu vcc_phy: vcc-phy-regulator { 102cc7364fbSJianqun Xu compatible = "regulator-fixed"; 103cc7364fbSJianqun Xu regulator-name = "vcc_phy"; 104cc7364fbSJianqun Xu regulator-always-on; 105cc7364fbSJianqun Xu regulator-boot-on; 106cc7364fbSJianqun Xu }; 1070714bc77SRoger Chen 1080714bc77SRoger Chen vcc_phy: vcc-phy-regulator { 1090714bc77SRoger Chen compatible = "regulator-fixed"; 1100714bc77SRoger Chen regulator-name = "vcc_phy"; 1110714bc77SRoger Chen regulator-always-on; 1120714bc77SRoger Chen regulator-boot-on; 1130714bc77SRoger Chen }; 1140714bc77SRoger Chen 115cc7364fbSJianqun Xu}; 116cc7364fbSJianqun Xu 11713b2b3e2SBrian Norris&emmc_phy { 11813b2b3e2SBrian Norris status = "okay"; 11913b2b3e2SBrian Norris}; 12013b2b3e2SBrian Norris 1210714bc77SRoger Chen&gmac { 1220714bc77SRoger Chen assigned-clocks = <&cru SCLK_RMII_SRC>; 1230714bc77SRoger Chen assigned-clock-parents = <&clkin_gmac>; 1240714bc77SRoger Chen clock_in_out = "input"; 1250714bc77SRoger Chen phy-supply = <&vcc_phy>; 1260714bc77SRoger Chen phy-mode = "rgmii"; 1270714bc77SRoger Chen pinctrl-names = "default"; 1280714bc77SRoger Chen pinctrl-0 = <&rgmii_pins>; 1294eb45558SAndy Yan snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 1300714bc77SRoger Chen snps,reset-active-low; 1310714bc77SRoger Chen snps,reset-delays-us = <0 10000 50000>; 1320714bc77SRoger Chen tx_delay = <0x28>; 1330714bc77SRoger Chen rx_delay = <0x11>; 1340714bc77SRoger Chen status = "okay"; 1350714bc77SRoger Chen}; 1360714bc77SRoger Chen 137cc7364fbSJianqun Xu&pwm0 { 138cc7364fbSJianqun Xu status = "okay"; 139cc7364fbSJianqun Xu}; 140cc7364fbSJianqun Xu 141cc7364fbSJianqun Xu&pwm2 { 142cc7364fbSJianqun Xu status = "okay"; 143cc7364fbSJianqun Xu}; 144cc7364fbSJianqun Xu 145cc7364fbSJianqun Xu&pwm3 { 146cc7364fbSJianqun Xu status = "okay"; 147cc7364fbSJianqun Xu}; 148cc7364fbSJianqun Xu 14913b2b3e2SBrian Norris&sdhci { 15013b2b3e2SBrian Norris bus-width = <8>; 15113b2b3e2SBrian Norris mmc-hs400-1_8v; 15213b2b3e2SBrian Norris mmc-hs400-enhanced-strobe; 15313b2b3e2SBrian Norris non-removable; 15413b2b3e2SBrian Norris status = "okay"; 15513b2b3e2SBrian Norris}; 15613b2b3e2SBrian Norris 1579eb4f3c4SShawn Lin&pcie_phy { 1589eb4f3c4SShawn Lin status = "disabled"; 1599eb4f3c4SShawn Lin}; 1609eb4f3c4SShawn Lin 1619eb4f3c4SShawn Lin&pcie0 { 1624eb45558SAndy Yan ep-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; 1639eb4f3c4SShawn Lin num-lanes = <4>; 1649eb4f3c4SShawn Lin pinctrl-names = "default"; 1650e01eca3SShawn Lin pinctrl-0 = <&pcie_clkreqn_cpm>; 1669eb4f3c4SShawn Lin status = "disabled"; 1679eb4f3c4SShawn Lin}; 1689eb4f3c4SShawn Lin 1691d3bc1d6SFrank Wang&u2phy0 { 1701d3bc1d6SFrank Wang status = "okay"; 1711d3bc1d6SFrank Wang}; 1721d3bc1d6SFrank Wang 1731d3bc1d6SFrank Wang&u2phy0_host { 1741d3bc1d6SFrank Wang phy-supply = <&vcc5v0_host>; 1751d3bc1d6SFrank Wang status = "okay"; 1761d3bc1d6SFrank Wang}; 1771d3bc1d6SFrank Wang 1781d3bc1d6SFrank Wang&u2phy1 { 1791d3bc1d6SFrank Wang status = "okay"; 1801d3bc1d6SFrank Wang}; 1811d3bc1d6SFrank Wang 1821d3bc1d6SFrank Wang&u2phy1_host { 1831d3bc1d6SFrank Wang phy-supply = <&vcc5v0_host>; 1841d3bc1d6SFrank Wang status = "okay"; 1851d3bc1d6SFrank Wang}; 1861d3bc1d6SFrank Wang 187cc7364fbSJianqun Xu&uart2 { 188cc7364fbSJianqun Xu status = "okay"; 189cc7364fbSJianqun Xu}; 190cc7364fbSJianqun Xu 191cc7364fbSJianqun Xu&usb_host0_ehci { 192cc7364fbSJianqun Xu status = "okay"; 193cc7364fbSJianqun Xu}; 194cc7364fbSJianqun Xu 195cc7364fbSJianqun Xu&usb_host0_ohci { 196cc7364fbSJianqun Xu status = "okay"; 197cc7364fbSJianqun Xu}; 198cc7364fbSJianqun Xu 199cc7364fbSJianqun Xu&usb_host1_ehci { 200cc7364fbSJianqun Xu status = "okay"; 201cc7364fbSJianqun Xu}; 202cc7364fbSJianqun Xu 203cc7364fbSJianqun Xu&usb_host1_ohci { 204cc7364fbSJianqun Xu status = "okay"; 205cc7364fbSJianqun Xu}; 206cc7364fbSJianqun Xu 207cc7364fbSJianqun Xu&pinctrl { 208cc7364fbSJianqun Xu pmic { 209cc7364fbSJianqun Xu pmic_int_l: pmic-int-l { 210cc7364fbSJianqun Xu rockchip,pins = 211cc7364fbSJianqun Xu <1 21 RK_FUNC_GPIO &pcfg_pull_up>; 212cc7364fbSJianqun Xu }; 213cc7364fbSJianqun Xu 214cc7364fbSJianqun Xu pmic_dvs2: pmic-dvs2 { 215cc7364fbSJianqun Xu rockchip,pins = 216cc7364fbSJianqun Xu <1 18 RK_FUNC_GPIO &pcfg_pull_down>; 217cc7364fbSJianqun Xu }; 218cc7364fbSJianqun Xu }; 2191d3bc1d6SFrank Wang 2201d3bc1d6SFrank Wang usb2 { 2211d3bc1d6SFrank Wang vcc5v0_host_en: vcc5v0-host-en { 2221d3bc1d6SFrank Wang rockchip,pins = 2231d3bc1d6SFrank Wang <4 25 RK_FUNC_GPIO &pcfg_pull_none>; 2241d3bc1d6SFrank Wang }; 2251d3bc1d6SFrank Wang }; 226cc7364fbSJianqun Xu}; 227