1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (c) 2020 Rockchip Electronics Co., Ltd. 4724ba675SRob Herring * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. 5724ba675SRob Herring */ 6724ba675SRob Herring 7724ba675SRob Herring/ { 8724ba675SRob Herring compatible = "edgeble,neural-compute-module-2", "rockchip,rv1126"; 9724ba675SRob Herring 10724ba675SRob Herring aliases { 11724ba675SRob Herring mmc0 = &emmc; 12724ba675SRob Herring }; 13724ba675SRob Herring 14724ba675SRob Herring vccio_flash: vccio-flash-regulator { 15724ba675SRob Herring compatible = "regulator-fixed"; 16724ba675SRob Herring enable-active-high; 17724ba675SRob Herring gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; 18724ba675SRob Herring pinctrl-names = "default"; 19724ba675SRob Herring pinctrl-0 = <&flash_vol_sel>; 20724ba675SRob Herring regulator-name = "vccio_flash"; 21724ba675SRob Herring regulator-always-on; 22724ba675SRob Herring regulator-boot-on; 23724ba675SRob Herring regulator-min-microvolt = <1800000>; 24724ba675SRob Herring regulator-max-microvolt = <1800000>; 25724ba675SRob Herring vin-supply = <&vcc_3v3>; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring sdio_pwrseq: pwrseq-sdio { 29724ba675SRob Herring compatible = "mmc-pwrseq-simple"; 30724ba675SRob Herring clocks = <&rk809 1>; 31724ba675SRob Herring clock-names = "ext_clock"; 32724ba675SRob Herring pinctrl-names = "default"; 33724ba675SRob Herring pinctrl-0 = <&wifi_enable_h>; 34724ba675SRob Herring reset-gpios = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; 35724ba675SRob Herring }; 36724ba675SRob Herring}; 37724ba675SRob Herring 38724ba675SRob Herring&cpu0 { 39724ba675SRob Herring cpu-supply = <&vdd_arm>; 40724ba675SRob Herring}; 41724ba675SRob Herring 42724ba675SRob Herring&emmc { 43724ba675SRob Herring bus-width = <8>; 44724ba675SRob Herring non-removable; 45724ba675SRob Herring pinctrl-names = "default"; 46012f90c3SJagan Teki pinctrl-0 = <&emmc_bus8 &emmc_cmd &emmc_clk>; 47724ba675SRob Herring rockchip,default-sample-phase = <90>; 48724ba675SRob Herring vmmc-supply = <&vcc_3v3>; 49724ba675SRob Herring vqmmc-supply = <&vccio_flash>; 50724ba675SRob Herring status = "okay"; 51724ba675SRob Herring}; 52724ba675SRob Herring 53724ba675SRob Herring&i2c0 { 54724ba675SRob Herring clock-frequency = <400000>; 55724ba675SRob Herring status = "okay"; 56724ba675SRob Herring 57724ba675SRob Herring rk809: pmic@20 { 58724ba675SRob Herring compatible = "rockchip,rk809"; 59724ba675SRob Herring reg = <0x20>; 60724ba675SRob Herring interrupt-parent = <&gpio0>; 61724ba675SRob Herring interrupts = <RK_PB1 IRQ_TYPE_LEVEL_LOW>; 62724ba675SRob Herring #clock-cells = <1>; 63724ba675SRob Herring clock-output-names = "rk808-clkout1", "rk808-clkout2"; 64724ba675SRob Herring pinctrl-names = "default"; 65724ba675SRob Herring pinctrl-0 = <&pmic_int_l>; 66724ba675SRob Herring rockchip,system-power-controller; 67724ba675SRob Herring wakeup-source; 68724ba675SRob Herring 69724ba675SRob Herring vcc1-supply = <&vcc5v0_sys>; 70724ba675SRob Herring vcc2-supply = <&vcc5v0_sys>; 71724ba675SRob Herring vcc3-supply = <&vcc5v0_sys>; 72724ba675SRob Herring vcc4-supply = <&vcc5v0_sys>; 73724ba675SRob Herring vcc5-supply = <&vcc_buck5>; 74724ba675SRob Herring vcc6-supply = <&vcc_buck5>; 75724ba675SRob Herring vcc7-supply = <&vcc5v0_sys>; 76724ba675SRob Herring vcc8-supply = <&vcc3v3_sys>; 77724ba675SRob Herring vcc9-supply = <&vcc5v0_sys>; 78724ba675SRob Herring 79724ba675SRob Herring regulators { 80724ba675SRob Herring vdd_npu_vepu: DCDC_REG1 { 81724ba675SRob Herring regulator-name = "vdd_npu_vepu"; 82724ba675SRob Herring regulator-always-on; 83724ba675SRob Herring regulator-boot-on; 84724ba675SRob Herring regulator-initial-mode = <0x2>; 85724ba675SRob Herring regulator-min-microvolt = <650000>; 86724ba675SRob Herring regulator-max-microvolt = <950000>; 87724ba675SRob Herring regulator-ramp-delay = <6001>; 88724ba675SRob Herring regulator-state-mem { 89724ba675SRob Herring regulator-off-in-suspend; 90724ba675SRob Herring }; 91724ba675SRob Herring }; 92724ba675SRob Herring 93724ba675SRob Herring vdd_arm: DCDC_REG2 { 94724ba675SRob Herring regulator-name = "vdd_arm"; 95724ba675SRob Herring regulator-always-on; 96724ba675SRob Herring regulator-boot-on; 97724ba675SRob Herring regulator-initial-mode = <0x2>; 98724ba675SRob Herring regulator-min-microvolt = <725000>; 99724ba675SRob Herring regulator-max-microvolt = <1350000>; 100724ba675SRob Herring regulator-ramp-delay = <6001>; 101724ba675SRob Herring regulator-state-mem { 102724ba675SRob Herring regulator-off-in-suspend; 103724ba675SRob Herring }; 104724ba675SRob Herring }; 105724ba675SRob Herring 106724ba675SRob Herring vcc_ddr: DCDC_REG3 { 107724ba675SRob Herring regulator-name = "vcc_ddr"; 108724ba675SRob Herring regulator-always-on; 109724ba675SRob Herring regulator-boot-on; 110724ba675SRob Herring regulator-initial-mode = <0x2>; 111724ba675SRob Herring regulator-state-mem { 112724ba675SRob Herring regulator-on-in-suspend; 113724ba675SRob Herring }; 114724ba675SRob Herring }; 115724ba675SRob Herring 116724ba675SRob Herring vcc3v3_sys: DCDC_REG4 { 117724ba675SRob Herring regulator-name = "vcc3v3_sys"; 118724ba675SRob Herring regulator-always-on; 119724ba675SRob Herring regulator-boot-on; 120724ba675SRob Herring regulator-initial-mode = <0x2>; 121724ba675SRob Herring regulator-min-microvolt = <3300000>; 122724ba675SRob Herring regulator-max-microvolt = <3300000>; 123724ba675SRob Herring regulator-state-mem { 124724ba675SRob Herring regulator-on-in-suspend; 125724ba675SRob Herring regulator-suspend-microvolt = <3300000>; 126724ba675SRob Herring }; 127724ba675SRob Herring }; 128724ba675SRob Herring 129724ba675SRob Herring vcc_buck5: DCDC_REG5 { 130724ba675SRob Herring regulator-name = "vcc_buck5"; 131724ba675SRob Herring regulator-always-on; 132724ba675SRob Herring regulator-boot-on; 133724ba675SRob Herring regulator-min-microvolt = <2200000>; 134724ba675SRob Herring regulator-max-microvolt = <2200000>; 135724ba675SRob Herring regulator-state-mem { 136724ba675SRob Herring regulator-on-in-suspend; 137724ba675SRob Herring regulator-suspend-microvolt = <2200000>; 138724ba675SRob Herring }; 139724ba675SRob Herring }; 140724ba675SRob Herring 141724ba675SRob Herring vcc_0v8: LDO_REG1 { 142724ba675SRob Herring regulator-name = "vcc_0v8"; 143724ba675SRob Herring regulator-always-on; 144724ba675SRob Herring regulator-boot-on; 145724ba675SRob Herring regulator-min-microvolt = <800000>; 146724ba675SRob Herring regulator-max-microvolt = <800000>; 147724ba675SRob Herring regulator-state-mem { 148724ba675SRob Herring regulator-off-in-suspend; 149724ba675SRob Herring }; 150724ba675SRob Herring }; 151724ba675SRob Herring 152724ba675SRob Herring vcc1v8_pmu: LDO_REG2 { 153724ba675SRob Herring regulator-name = "vcc1v8_pmu"; 154724ba675SRob Herring regulator-always-on; 155724ba675SRob Herring regulator-boot-on; 156724ba675SRob Herring regulator-min-microvolt = <1800000>; 157724ba675SRob Herring regulator-max-microvolt = <1800000>; 158724ba675SRob Herring regulator-state-mem { 159724ba675SRob Herring regulator-on-in-suspend; 160724ba675SRob Herring regulator-suspend-microvolt = <1800000>; 161724ba675SRob Herring }; 162724ba675SRob Herring }; 163724ba675SRob Herring 164724ba675SRob Herring vdd0v8_pmu: LDO_REG3 { 165724ba675SRob Herring regulator-name = "vcc0v8_pmu"; 166724ba675SRob Herring regulator-always-on; 167724ba675SRob Herring regulator-boot-on; 168724ba675SRob Herring regulator-min-microvolt = <800000>; 169724ba675SRob Herring regulator-max-microvolt = <800000>; 170724ba675SRob Herring regulator-state-mem { 171724ba675SRob Herring regulator-on-in-suspend; 172724ba675SRob Herring regulator-suspend-microvolt = <800000>; 173724ba675SRob Herring }; 174724ba675SRob Herring }; 175724ba675SRob Herring 176724ba675SRob Herring vcc_1v8: LDO_REG4 { 177724ba675SRob Herring regulator-name = "vcc_1v8"; 178724ba675SRob Herring regulator-always-on; 179724ba675SRob Herring regulator-boot-on; 180724ba675SRob Herring regulator-min-microvolt = <1800000>; 181724ba675SRob Herring regulator-max-microvolt = <1800000>; 182724ba675SRob Herring regulator-state-mem { 183724ba675SRob Herring regulator-on-in-suspend; 184724ba675SRob Herring regulator-suspend-microvolt = <1800000>; 185724ba675SRob Herring }; 186724ba675SRob Herring }; 187724ba675SRob Herring 188724ba675SRob Herring vcc_dovdd: LDO_REG5 { 189724ba675SRob Herring regulator-name = "vcc_dovdd"; 190724ba675SRob Herring regulator-boot-on; 191724ba675SRob Herring regulator-min-microvolt = <1800000>; 192724ba675SRob Herring regulator-max-microvolt = <1800000>; 193724ba675SRob Herring regulator-state-mem { 194724ba675SRob Herring regulator-off-in-suspend; 195724ba675SRob Herring }; 196724ba675SRob Herring }; 197724ba675SRob Herring 198724ba675SRob Herring vcc_dvdd: LDO_REG6 { 199724ba675SRob Herring regulator-name = "vcc_dvdd"; 200724ba675SRob Herring regulator-min-microvolt = <1200000>; 201724ba675SRob Herring regulator-max-microvolt = <1200000>; 202724ba675SRob Herring regulator-state-mem { 203724ba675SRob Herring regulator-off-in-suspend; 204724ba675SRob Herring }; 205724ba675SRob Herring }; 206724ba675SRob Herring 207724ba675SRob Herring vcc_avdd: LDO_REG7 { 208724ba675SRob Herring regulator-name = "vcc_avdd"; 209724ba675SRob Herring regulator-min-microvolt = <2800000>; 210724ba675SRob Herring regulator-max-microvolt = <2800000>; 211724ba675SRob Herring regulator-state-mem { 212724ba675SRob Herring regulator-off-in-suspend; 213724ba675SRob Herring }; 214724ba675SRob Herring }; 215724ba675SRob Herring 216724ba675SRob Herring vccio_sd: LDO_REG8 { 217724ba675SRob Herring regulator-name = "vccio_sd"; 218724ba675SRob Herring regulator-always-on; 219724ba675SRob Herring regulator-boot-on; 220724ba675SRob Herring regulator-min-microvolt = <1800000>; 221724ba675SRob Herring regulator-max-microvolt = <3300000>; 222724ba675SRob Herring regulator-state-mem { 223724ba675SRob Herring regulator-off-in-suspend; 224724ba675SRob Herring }; 225724ba675SRob Herring }; 226724ba675SRob Herring 227724ba675SRob Herring vcc3v3_sd: LDO_REG9 { 228724ba675SRob Herring regulator-name = "vcc3v3_sd"; 229724ba675SRob Herring regulator-always-on; 230724ba675SRob Herring regulator-boot-on; 231724ba675SRob Herring regulator-min-microvolt = <3300000>; 232724ba675SRob Herring regulator-max-microvolt = <3300000>; 233724ba675SRob Herring regulator-state-mem { 234724ba675SRob Herring regulator-off-in-suspend; 235724ba675SRob Herring }; 236724ba675SRob Herring }; 237724ba675SRob Herring 238724ba675SRob Herring vcc_5v0: SWITCH_REG1 { 239724ba675SRob Herring regulator-name = "vcc_5v0"; 240724ba675SRob Herring }; 241724ba675SRob Herring 242724ba675SRob Herring vcc_3v3: SWITCH_REG2 { 243724ba675SRob Herring regulator-name = "vcc_3v3"; 244724ba675SRob Herring regulator-always-on; 245724ba675SRob Herring regulator-boot-on; 246724ba675SRob Herring }; 247724ba675SRob Herring }; 248724ba675SRob Herring }; 249724ba675SRob Herring}; 250724ba675SRob Herring 251724ba675SRob Herring&pinctrl { 252724ba675SRob Herring bt { 253724ba675SRob Herring bt_enable: bt-enable { 254724ba675SRob Herring rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 255724ba675SRob Herring }; 256724ba675SRob Herring }; 257724ba675SRob Herring 258724ba675SRob Herring flash { 259724ba675SRob Herring flash_vol_sel: flash-vol-sel { 260724ba675SRob Herring rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 261724ba675SRob Herring }; 262724ba675SRob Herring }; 263724ba675SRob Herring 264724ba675SRob Herring pmic { 265724ba675SRob Herring pmic_int_l: pmic-int-l { 266724ba675SRob Herring rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; 267724ba675SRob Herring }; 268724ba675SRob Herring }; 269724ba675SRob Herring 270724ba675SRob Herring wifi { 271724ba675SRob Herring wifi_enable_h: wifi-enable-h { 272724ba675SRob Herring rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 273724ba675SRob Herring }; 274724ba675SRob Herring }; 275724ba675SRob Herring}; 276724ba675SRob Herring 277724ba675SRob Herring&pmu_io_domains { 278724ba675SRob Herring pmuio0-supply = <&vcc1v8_pmu>; 279724ba675SRob Herring pmuio1-supply = <&vcc3v3_sys>; 280724ba675SRob Herring vccio1-supply = <&vccio_flash>; 281724ba675SRob Herring vccio2-supply = <&vccio_sd>; 282724ba675SRob Herring vccio3-supply = <&vcc_1v8>; 283724ba675SRob Herring vccio4-supply = <&vcc_dovdd>; 284724ba675SRob Herring vccio5-supply = <&vcc_1v8>; 285724ba675SRob Herring vccio6-supply = <&vcc_1v8>; 286724ba675SRob Herring vccio7-supply = <&vcc_dovdd>; 287724ba675SRob Herring status = "okay"; 288724ba675SRob Herring}; 289724ba675SRob Herring 290724ba675SRob Herring&saradc { 291724ba675SRob Herring vref-supply = <&vcc_1v8>; 292724ba675SRob Herring status = "okay"; 293724ba675SRob Herring}; 294724ba675SRob Herring 295*f544630dSStephen Chen&sfc { 296*f544630dSStephen Chen pinctrl-names = "default"; 297*f544630dSStephen Chen pinctrl-0 = <&fspi_pins>; 298*f544630dSStephen Chen #address-cells = <1>; 299*f544630dSStephen Chen #size-cells = <0>; 300*f544630dSStephen Chen status = "okay"; 301*f544630dSStephen Chen 302*f544630dSStephen Chen flash@0 { 303*f544630dSStephen Chen compatible = "jedec,spi-nor"; 304*f544630dSStephen Chen reg = <0>; 305*f544630dSStephen Chen spi-max-frequency = <50000000>; 306*f544630dSStephen Chen spi-rx-bus-width = <4>; 307*f544630dSStephen Chen spi-tx-bus-width = <1>; 308*f544630dSStephen Chen }; 309*f544630dSStephen Chen}; 310*f544630dSStephen Chen 311724ba675SRob Herring&sdio { 312724ba675SRob Herring bus-width = <4>; 313724ba675SRob Herring cap-sd-highspeed; 314724ba675SRob Herring cap-sdio-irq; 315724ba675SRob Herring keep-power-in-suspend; 316724ba675SRob Herring max-frequency = <100000000>; 317724ba675SRob Herring mmc-pwrseq = <&sdio_pwrseq>; 318724ba675SRob Herring non-removable; 319724ba675SRob Herring pinctrl-names = "default"; 320724ba675SRob Herring pinctrl-0 = <&sdmmc1_clk &sdmmc1_cmd &sdmmc1_bus4>; 321724ba675SRob Herring rockchip,default-sample-phase = <90>; 322724ba675SRob Herring sd-uhs-sdr104; 323724ba675SRob Herring vmmc-supply = <&vcc3v3_sys>; 324724ba675SRob Herring vqmmc-supply = <&vcc_1v8>; 325724ba675SRob Herring status = "okay"; 326724ba675SRob Herring #address-cells = <1>; 327724ba675SRob Herring #size-cells = <0>; 328724ba675SRob Herring}; 329724ba675SRob Herring 330724ba675SRob Herring&uart0 { 331724ba675SRob Herring pinctrl-names = "default"; 332724ba675SRob Herring pinctrl-0 = <&uart0_xfer &uart0_ctsn &uart0_rtsn>; 333724ba675SRob Herring status = "okay"; 334724ba675SRob Herring 335724ba675SRob Herring bluetooth { 336724ba675SRob Herring compatible = "qcom,qca9377-bt"; 337724ba675SRob Herring clocks = <&rk809 1>; 338724ba675SRob Herring enable-gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>; /* BT_RST */ 339724ba675SRob Herring max-speed = <2000000>; 340724ba675SRob Herring pinctrl-names = "default"; 341724ba675SRob Herring pinctrl-0 = <&bt_enable>; 342724ba675SRob Herring vddxo-supply = <&vcc3v3_sys>; 343724ba675SRob Herring vddio-supply = <&vcc_1v8>; 344724ba675SRob Herring }; 345724ba675SRob Herring}; 346