1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de> 4 */ 5 6/dts-v1/; 7#include <dt-bindings/input/input.h> 8#include <dt-bindings/pwm/pwm.h> 9#include "rk3288.dtsi" 10 11/ { 12 compatible = "netxeon,r89", "rockchip,rk3288"; 13 14 memory@0 { 15 device_type = "memory"; 16 reg = <0x0 0x0 0x0 0x80000000>; 17 }; 18 19 ext_gmac: external-gmac-clock { 20 compatible = "fixed-clock"; 21 clock-frequency = <125000000>; 22 clock-output-names = "ext_gmac"; 23 #clock-cells = <0>; 24 }; 25 26 gpio-keys { 27 compatible = "gpio-keys"; 28 autorepeat; 29 30 pinctrl-names = "default"; 31 pinctrl-0 = <&pwrbtn>; 32 33 power { 34 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 35 linux,code = <KEY_POWER>; 36 label = "GPIO Key Power"; 37 linux,input-type = <1>; 38 wakeup-source; 39 debounce-interval = <100>; 40 }; 41 }; 42 43 ir: ir-receiver { 44 compatible = "gpio-ir-receiver"; 45 gpios = <&gpio7 RK_PA0 GPIO_ACTIVE_LOW>; 46 pinctrl-names = "default"; 47 pinctrl-0 = <&ir_int>; 48 }; 49 50 vcc_host: vcc-host-regulator { 51 compatible = "regulator-fixed"; 52 enable-active-high; 53 gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; 54 pinctrl-names = "default"; 55 pinctrl-0 = <&host_vbus_drv>; 56 regulator-name = "vcc_host"; 57 regulator-always-on; 58 regulator-boot-on; 59 }; 60 61 vcc_otg: vcc-otg-regulator { 62 compatible = "regulator-fixed"; 63 enable-active-high; 64 gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 65 pinctrl-names = "default"; 66 pinctrl-0 = <&otg_vbus_drv>; 67 regulator-name = "vcc_otg"; 68 regulator-always-on; 69 regulator-boot-on; 70 }; 71 72 vcc_sdmmc: sdmmc-regulator { 73 compatible = "regulator-fixed"; 74 regulator-name = "sdmmc-supply"; 75 regulator-min-microvolt = <3300000>; 76 regulator-max-microvolt = <3300000>; 77 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>; 78 startup-delay-us = <100000>; 79 vin-supply = <&vcc_io>; 80 }; 81 82 vcc_sys: sys-regulator { 83 compatible = "regulator-fixed"; 84 regulator-name = "sys-supply"; 85 regulator-min-microvolt = <5000000>; 86 regulator-max-microvolt = <5000000>; 87 regulator-always-on; 88 regulator-boot-on; 89 }; 90}; 91 92&cpu0 { 93 cpu0-supply = <&vdd_cpu>; 94}; 95 96&gmac { 97 phy-supply = <&vcc_lan>; 98 phy-mode = "rgmii"; 99 clock_in_out = "input"; 100 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; 101 snps,reset-active-low; 102 snps,reset-delays-us = <0 10000 1000000>; 103 assigned-clocks = <&cru SCLK_MAC>; 104 assigned-clock-parents = <&ext_gmac>; 105 pinctrl-names = "default"; 106 pinctrl-0 = <&rgmii_pins>; 107 tx_delay = <0x30>; 108 rx_delay = <0x10>; 109 status = "ok"; 110}; 111 112&hdmi { 113 status = "okay"; 114}; 115 116&i2c0 { 117 status = "okay"; 118 119 vdd_cpu: pmic@40 { 120 compatible = "silergy,syr827"; 121 reg = <0x40>; 122 fcs,suspend-voltage-selector = <1>; 123 regulator-name = "VDD_CPU"; 124 regulator-enable-ramp-delay = <300>; 125 regulator-min-microvolt = <850000>; 126 regulator-max-microvolt = <1350000>; 127 regulator-ramp-delay = <8000>; 128 regulator-always-on; 129 regulator-boot-on; 130 vin-supply = <&vcc_sys>; 131 }; 132 133 vdd_gpu: pmic@41 { 134 compatible = "silergy,syr828"; 135 reg = <0x41>; 136 fcs,suspend-voltage-selector = <1>; 137 regulator-name = "VDD_GPU"; 138 regulator-enable-ramp-delay = <300>; 139 regulator-min-microvolt = <850000>; 140 regulator-max-microvolt = <1350000>; 141 regulator-ramp-delay = <8000>; 142 regulator-always-on; 143 regulator-boot-on; 144 vin-supply = <&vcc_sys>; 145 }; 146 147 rtc@51 { 148 compatible = "haoyu,hym8563"; 149 reg = <0x51>; 150 #clock-cells = <0>; 151 clock-output-names = "xin32k"; 152 interrupt-parent = <&gpio0>; 153 interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>; 154 pinctrl-names = "default"; 155 pinctrl-0 = <&pmic_int>; 156 }; 157 158 act8846: pmic@5a { 159 compatible = "active-semi,act8846"; 160 reg = <0x5a>; 161 pinctrl-names = "default"; 162 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>; 163 system-power-controller; 164 165 regulators { 166 vcc_ddr: REG1 { 167 regulator-name = "VCC_DDR"; 168 regulator-min-microvolt = <1200000>; 169 regulator-max-microvolt = <1200000>; 170 regulator-always-on; 171 }; 172 173 vcc_io: REG2 { 174 regulator-name = "VCC_IO"; 175 regulator-min-microvolt = <3300000>; 176 regulator-max-microvolt = <3300000>; 177 regulator-always-on; 178 }; 179 180 vdd_log: REG3 { 181 regulator-name = "VDD_LOG"; 182 regulator-min-microvolt = <1000000>; 183 regulator-max-microvolt = <1000000>; 184 regulator-always-on; 185 }; 186 187 vcc_20: REG4 { 188 regulator-name = "VCC_20"; 189 regulator-min-microvolt = <2000000>; 190 regulator-max-microvolt = <2000000>; 191 regulator-always-on; 192 }; 193 194 vccio_sd: REG5 { 195 regulator-name = "VCCIO_SD"; 196 regulator-min-microvolt = <3300000>; 197 regulator-max-microvolt = <3300000>; 198 regulator-always-on; 199 }; 200 201 vdd10_lcd: REG6 { 202 regulator-name = "VDD10_LCD"; 203 regulator-min-microvolt = <1000000>; 204 regulator-max-microvolt = <1000000>; 205 regulator-always-on; 206 }; 207 208 vcc_wl: REG7 { 209 regulator-name = "VCC_WL"; 210 regulator-min-microvolt = <3300000>; 211 regulator-max-microvolt = <3300000>; 212 regulator-always-on; 213 }; 214 215 vcca_33: REG8 { 216 regulator-name = "VCCA_33"; 217 regulator-min-microvolt = <3300000>; 218 regulator-max-microvolt = <3300000>; 219 regulator-always-on; 220 }; 221 222 vcc_lan: REG9 { 223 regulator-name = "VCC_LAN"; 224 regulator-min-microvolt = <3300000>; 225 regulator-max-microvolt = <3300000>; 226 regulator-always-on; 227 }; 228 229 vdd_10: REG10 { 230 regulator-name = "VDD_10"; 231 regulator-min-microvolt = <1000000>; 232 regulator-max-microvolt = <1000000>; 233 regulator-always-on; 234 }; 235 236 vcc_18: REG11 { 237 regulator-name = "VCC_18"; 238 regulator-min-microvolt = <1800000>; 239 regulator-max-microvolt = <1800000>; 240 regulator-always-on; 241 }; 242 243 vcc18_lcd: REG12 { 244 regulator-name = "VCC18_LCD"; 245 regulator-min-microvolt = <1800000>; 246 regulator-max-microvolt = <1800000>; 247 regulator-always-on; 248 }; 249 }; 250 }; 251}; 252 253&i2c5 { 254 status = "okay"; 255}; 256 257&pinctrl { 258 pcfg_output_high: pcfg-output-high { 259 output-high; 260 }; 261 262 pcfg_output_low: pcfg-output-low { 263 output-low; 264 }; 265 266 act8846 { 267 pmic_vsel: pmic-vsel { 268 rockchip,pins = <7 RK_PA1 RK_FUNC_GPIO &pcfg_output_low>; 269 }; 270 271 pwr_hold: pwr-hold { 272 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_output_high>; 273 }; 274 }; 275 276 buttons { 277 pwrbtn: pwrbtn { 278 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 279 }; 280 }; 281 282 ir { 283 ir_int: ir-int { 284 rockchip,pins = <7 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 285 }; 286 }; 287 288 pmic { 289 pmic_int: pmic-int { 290 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; 291 }; 292 }; 293 294 usb { 295 host_vbus_drv: host-vbus-drv { 296 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; 297 }; 298 299 otg_vbus_drv: otg-vbus-drv { 300 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 301 }; 302 }; 303}; 304 305&pwm0 { 306 status = "okay"; 307}; 308 309&saradc { 310 vref-supply = <&vcc_18>; 311 status = "okay"; 312}; 313 314&sdmmc { 315 bus-width = <4>; 316 cap-mmc-highspeed; 317 cap-sd-highspeed; 318 card-detect-delay = <200>; 319 disable-wp; 320 pinctrl-names = "default"; 321 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 322 vmmc-supply = <&vcc_sdmmc>; 323 vqmmc-supply = <&vccio_sd>; 324 status = "okay"; 325}; 326 327&tsadc { 328 rockchip,hw-tshut-mode = <0>; 329 rockchip,hw-tshut-polarity = <0>; 330 status = "okay"; 331}; 332 333&uart0 { 334 status = "okay"; 335}; 336 337&uart1 { 338 status = "okay"; 339}; 340 341&uart2 { 342 status = "okay"; 343}; 344 345&uart3 { 346 status = "okay"; 347}; 348 349&uart4 { 350 status = "okay"; 351}; 352 353&usb_host0_ehci { 354 status = "okay"; 355}; 356 357&usb_host1 { 358 status = "okay"; 359}; 360 361&usb_otg { 362 status = "okay"; 363}; 364 365&usbphy { 366 status = "okay"; 367}; 368 369&vopb { 370 status = "okay"; 371}; 372 373&vopb_mmu { 374 status = "okay"; 375}; 376 377&vopl { 378 status = "okay"; 379}; 380 381&vopl_mmu { 382 status = "okay"; 383}; 384 385&wdt { 386 status = "okay"; 387}; 388