1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring/* 3724ba675SRob Herring * Device tree file for Firefly Rockchip RK3288 Core board 4724ba675SRob Herring * Copyright (c) 2016 Randy Li <ayaka@soulik.info> 5724ba675SRob Herring */ 6724ba675SRob Herring 7724ba675SRob Herring#include <dt-bindings/input/input.h> 8724ba675SRob Herring#include "rk3288.dtsi" 9724ba675SRob Herring 10724ba675SRob Herring/ { 11724ba675SRob Herring memory@0 { 12724ba675SRob Herring device_type = "memory"; 13724ba675SRob Herring reg = <0x0 0x0 0x0 0x80000000>; 14724ba675SRob Herring }; 15724ba675SRob Herring 16724ba675SRob Herring ext_gmac: external-gmac-clock { 17724ba675SRob Herring compatible = "fixed-clock"; 18724ba675SRob Herring #clock-cells = <0>; 19724ba675SRob Herring clock-frequency = <125000000>; 20724ba675SRob Herring clock-output-names = "ext_gmac"; 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring 24*2c3944d9SJohan Jonker vcc_flash: regulator-flash { 25724ba675SRob Herring compatible = "regulator-fixed"; 26724ba675SRob Herring regulator-name = "vcc_flash"; 27724ba675SRob Herring regulator-min-microvolt = <1800000>; 28724ba675SRob Herring regulator-max-microvolt = <1800000>; 29724ba675SRob Herring vin-supply = <&vcc_io>; 30724ba675SRob Herring }; 31724ba675SRob Herring}; 32724ba675SRob Herring 33724ba675SRob Herring&cpu0 { 34724ba675SRob Herring cpu0-supply = <&vdd_cpu>; 35724ba675SRob Herring}; 36724ba675SRob Herring 37724ba675SRob Herring&emmc { 38724ba675SRob Herring bus-width = <8>; 39724ba675SRob Herring cap-mmc-highspeed; 40724ba675SRob Herring disable-wp; 41724ba675SRob Herring mmc-ddr-1_8v; 42724ba675SRob Herring mmc-hs200-1_8v; 43724ba675SRob Herring non-removable; 44724ba675SRob Herring pinctrl-names = "default"; 45724ba675SRob Herring pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>; 46724ba675SRob Herring vmmc-supply = <&vcc_io>; 47724ba675SRob Herring vqmmc-supply = <&vcc_flash>; 48724ba675SRob Herring status = "okay"; 49724ba675SRob Herring}; 50724ba675SRob Herring 51724ba675SRob Herring&gmac { 52724ba675SRob Herring assigned-clocks = <&cru SCLK_MAC>; 53724ba675SRob Herring assigned-clock-parents = <&ext_gmac>; 54724ba675SRob Herring clock_in_out = "input"; 55724ba675SRob Herring pinctrl-names = "default"; 56724ba675SRob Herring pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>; 57724ba675SRob Herring phy-supply = <&vcc_lan>; 58724ba675SRob Herring phy-mode = "rgmii"; 59724ba675SRob Herring snps,reset-active-low; 60724ba675SRob Herring snps,reset-delays-us = <0 10000 1000000>; 61724ba675SRob Herring snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>; 62724ba675SRob Herring tx_delay = <0x30>; 63724ba675SRob Herring rx_delay = <0x10>; 64724ba675SRob Herring status = "okay"; 65724ba675SRob Herring}; 66724ba675SRob Herring 67724ba675SRob Herring&i2c0 { 68724ba675SRob Herring clock-frequency = <400000>; 69724ba675SRob Herring status = "okay"; 70724ba675SRob Herring 71724ba675SRob Herring vdd_cpu: syr827@40 { 72724ba675SRob Herring compatible = "silergy,syr827"; 73724ba675SRob Herring fcs,suspend-voltage-selector = <1>; 74724ba675SRob Herring reg = <0x40>; 75724ba675SRob Herring regulator-name = "vdd_cpu"; 76724ba675SRob Herring regulator-min-microvolt = <850000>; 77724ba675SRob Herring regulator-max-microvolt = <1350000>; 78724ba675SRob Herring regulator-always-on; 79724ba675SRob Herring regulator-boot-on; 80724ba675SRob Herring regulator-enable-ramp-delay = <300>; 81724ba675SRob Herring regulator-ramp-delay = <8000>; 82724ba675SRob Herring vin-supply = <&vcc_sys>; 83724ba675SRob Herring }; 84724ba675SRob Herring 85724ba675SRob Herring vdd_gpu: syr828@41 { 86724ba675SRob Herring compatible = "silergy,syr828"; 87724ba675SRob Herring fcs,suspend-voltage-selector = <1>; 88724ba675SRob Herring reg = <0x41>; 89724ba675SRob Herring regulator-name = "vdd_gpu"; 90724ba675SRob Herring regulator-min-microvolt = <850000>; 91724ba675SRob Herring regulator-max-microvolt = <1350000>; 92724ba675SRob Herring regulator-always-on; 93724ba675SRob Herring vin-supply = <&vcc_sys>; 94724ba675SRob Herring }; 95724ba675SRob Herring 96724ba675SRob Herring act8846: act8846@5a { 97724ba675SRob Herring compatible = "active-semi,act8846"; 98724ba675SRob Herring reg = <0x5a>; 99724ba675SRob Herring pinctrl-names = "default"; 100724ba675SRob Herring pinctrl-0 = <&pmic_vsel>, <&pwr_hold>; 101724ba675SRob Herring system-power-controller; 102724ba675SRob Herring 103724ba675SRob Herring vp1-supply = <&vcc_sys>; 104724ba675SRob Herring vp2-supply = <&vcc_sys>; 105724ba675SRob Herring vp3-supply = <&vcc_sys>; 106724ba675SRob Herring vp4-supply = <&vcc_sys>; 107724ba675SRob Herring inl1-supply = <&vcc_sys>; 108724ba675SRob Herring inl2-supply = <&vcc_sys>; 109724ba675SRob Herring inl3-supply = <&vcc_20>; 110724ba675SRob Herring 111724ba675SRob Herring regulators { 112724ba675SRob Herring vcc_ddr: REG1 { 113724ba675SRob Herring regulator-name = "vcc_ddr"; 114724ba675SRob Herring regulator-min-microvolt = <1200000>; 115724ba675SRob Herring regulator-max-microvolt = <1200000>; 116724ba675SRob Herring regulator-always-on; 117724ba675SRob Herring }; 118724ba675SRob Herring 119724ba675SRob Herring vcc_io: REG2 { 120724ba675SRob Herring regulator-name = "vcc_io"; 121724ba675SRob Herring regulator-min-microvolt = <3300000>; 122724ba675SRob Herring regulator-max-microvolt = <3300000>; 123724ba675SRob Herring regulator-always-on; 124724ba675SRob Herring }; 125724ba675SRob Herring 126724ba675SRob Herring vdd_log: REG3 { 127724ba675SRob Herring regulator-name = "vdd_log"; 128724ba675SRob Herring regulator-min-microvolt = <1100000>; 129724ba675SRob Herring regulator-max-microvolt = <1100000>; 130724ba675SRob Herring regulator-always-on; 131724ba675SRob Herring }; 132724ba675SRob Herring 133724ba675SRob Herring vcc_20: REG4 { 134724ba675SRob Herring regulator-name = "vcc_20"; 135724ba675SRob Herring regulator-min-microvolt = <2000000>; 136724ba675SRob Herring regulator-max-microvolt = <2000000>; 137724ba675SRob Herring regulator-always-on; 138724ba675SRob Herring }; 139724ba675SRob Herring 140724ba675SRob Herring vccio_sd: REG5 { 141724ba675SRob Herring regulator-name = "vccio_sd"; 142724ba675SRob Herring regulator-min-microvolt = <3300000>; 143724ba675SRob Herring regulator-max-microvolt = <3300000>; 144724ba675SRob Herring }; 145724ba675SRob Herring 146724ba675SRob Herring vdd10_lcd: REG6 { 147724ba675SRob Herring regulator-name = "vdd10_lcd"; 148724ba675SRob Herring regulator-min-microvolt = <1000000>; 149724ba675SRob Herring regulator-max-microvolt = <1000000>; 150724ba675SRob Herring regulator-always-on; 151724ba675SRob Herring }; 152724ba675SRob Herring 153724ba675SRob Herring vcca_18: REG7 { 154724ba675SRob Herring regulator-name = "vcca_18"; 155724ba675SRob Herring regulator-min-microvolt = <1800000>; 156724ba675SRob Herring regulator-max-microvolt = <1800000>; 157724ba675SRob Herring regulator-always-on; 158724ba675SRob Herring }; 159724ba675SRob Herring 160724ba675SRob Herring vcca_33: REG8 { 161724ba675SRob Herring regulator-name = "vcca_33"; 162724ba675SRob Herring regulator-min-microvolt = <3300000>; 163724ba675SRob Herring regulator-max-microvolt = <3300000>; 164724ba675SRob Herring regulator-always-on; 165724ba675SRob Herring }; 166724ba675SRob Herring 167724ba675SRob Herring vcc_lan: REG9 { 168724ba675SRob Herring regulator-name = "vcca_lan"; 169724ba675SRob Herring regulator-min-microvolt = <3300000>; 170724ba675SRob Herring regulator-max-microvolt = <3300000>; 171724ba675SRob Herring }; 172724ba675SRob Herring 173724ba675SRob Herring vdd_10: REG10 { 174724ba675SRob Herring regulator-name = "vdd_10"; 175724ba675SRob Herring regulator-min-microvolt = <1000000>; 176724ba675SRob Herring regulator-max-microvolt = <1000000>; 177724ba675SRob Herring regulator-always-on; 178724ba675SRob Herring }; 179724ba675SRob Herring 180724ba675SRob Herring vccio_wl: vcc_18: REG11 { 181724ba675SRob Herring regulator-name = "vcc_18"; 182724ba675SRob Herring regulator-min-microvolt = <1800000>; 183724ba675SRob Herring regulator-max-microvolt = <1800000>; 184724ba675SRob Herring }; 185724ba675SRob Herring 186724ba675SRob Herring vcc18_lcd: REG12 { 187724ba675SRob Herring regulator-name = "vcc18_lcd"; 188724ba675SRob Herring regulator-min-microvolt = <1800000>; 189724ba675SRob Herring regulator-max-microvolt = <1800000>; 190724ba675SRob Herring regulator-always-on; 191724ba675SRob Herring }; 192724ba675SRob Herring }; 193724ba675SRob Herring }; 194724ba675SRob Herring}; 195724ba675SRob Herring 196724ba675SRob Herring&io_domains { 197724ba675SRob Herring status = "okay"; 198724ba675SRob Herring 199724ba675SRob Herring audio-supply = <&vccio_wl>; 200724ba675SRob Herring bb-supply = <&vcc_io>; 201724ba675SRob Herring dvp-supply = <&dovdd_1v8>; 202724ba675SRob Herring flash0-supply = <&vcc_flash>; 203724ba675SRob Herring flash1-supply = <&vcc_lan>; 204724ba675SRob Herring gpio30-supply = <&vcc_io>; 205724ba675SRob Herring gpio1830-supply = <&vcc_io>; 206724ba675SRob Herring lcdc-supply = <&vcc_io>; 207724ba675SRob Herring sdcard-supply = <&vccio_sd>; 208724ba675SRob Herring wifi-supply = <&vccio_wl>; 209724ba675SRob Herring}; 210724ba675SRob Herring 211724ba675SRob Herring&pinctrl { 212724ba675SRob Herring pcfg_output_high: pcfg-output-high { 213724ba675SRob Herring output-high; 214724ba675SRob Herring }; 215724ba675SRob Herring 216724ba675SRob Herring pcfg_output_low: pcfg-output-low { 217724ba675SRob Herring output-low; 218724ba675SRob Herring }; 219724ba675SRob Herring 220724ba675SRob Herring pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma { 221724ba675SRob Herring bias-pull-up; 222724ba675SRob Herring drive-strength = <12>; 223724ba675SRob Herring }; 224724ba675SRob Herring 225724ba675SRob Herring act8846 { 226724ba675SRob Herring pwr_hold: pwr-hold { 227724ba675SRob Herring rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>; 228724ba675SRob Herring }; 229724ba675SRob Herring 230724ba675SRob Herring pmic_vsel: pmic-vsel { 231724ba675SRob Herring rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_output_low>; 232724ba675SRob Herring }; 233724ba675SRob Herring }; 234724ba675SRob Herring 235724ba675SRob Herring gmac { 236724ba675SRob Herring phy_int: phy-int { 237724ba675SRob Herring rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; 238724ba675SRob Herring }; 239724ba675SRob Herring 240724ba675SRob Herring phy_pmeb: phy-pmeb { 241724ba675SRob Herring rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 242724ba675SRob Herring }; 243724ba675SRob Herring 244724ba675SRob Herring phy_rst: phy-rst { 245724ba675SRob Herring rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>; 246724ba675SRob Herring }; 247724ba675SRob Herring }; 248724ba675SRob Herring}; 249724ba675SRob Herring 250724ba675SRob Herring&tsadc { 251724ba675SRob Herring rockchip,hw-tshut-mode = <0>; 252724ba675SRob Herring rockchip,hw-tshut-polarity = <0>; 253724ba675SRob Herring status = "okay"; 254724ba675SRob Herring}; 255724ba675SRob Herring 256724ba675SRob Herring&vopb { 257724ba675SRob Herring status = "okay"; 258724ba675SRob Herring}; 259724ba675SRob Herring 260724ba675SRob Herring&vopb_mmu { 261724ba675SRob Herring status = "okay"; 262724ba675SRob Herring}; 263724ba675SRob Herring 264724ba675SRob Herring&vopl { 265724ba675SRob Herring status = "okay"; 266724ba675SRob Herring}; 267724ba675SRob Herring 268724ba675SRob Herring&vopl_mmu { 269724ba675SRob Herring status = "okay"; 270724ba675SRob Herring}; 271724ba675SRob Herring 272724ba675SRob Herring&wdt { 273724ba675SRob Herring status = "okay"; 274724ba675SRob Herring}; 275