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