1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2026 Yanan He <grumpycat921013@gmail.com> 4 */ 5 6#include "rv1126.dtsi" 7 8/ { 9 compatible = "alientek,clrv1126f", "rockchip,rv1126"; 10 11 aliases { 12 mmc0 = &emmc; 13 }; 14}; 15 16&cpu0 { 17 cpu-supply = <&vdd_arm>; 18}; 19 20&cpu1 { 21 cpu-supply = <&vdd_arm>; 22}; 23 24&cpu2 { 25 cpu-supply = <&vdd_arm>; 26}; 27 28&cpu3 { 29 cpu-supply = <&vdd_arm>; 30}; 31 32&emmc { 33 bus-width = <8>; 34 cap-mmc-highspeed; 35 mmc-hs200-1_8v; 36 non-removable; 37 pinctrl-names = "default"; 38 pinctrl-0 = <&emmc_bus8 &emmc_cmd &emmc_clk &emmc_rstnout>; 39 rockchip,default-sample-phase = <90>; 40 vmmc-supply = <&vcc_3v3>; 41 vqmmc-supply = <&vcc_1v8>; 42 status = "okay"; 43}; 44 45&i2c0 { 46 clock-frequency = <400000>; 47 status = "okay"; 48 49 rk809: pmic@20 { 50 compatible = "rockchip,rk809"; 51 reg = <0x20>; 52 interrupt-parent = <&gpio0>; 53 interrupts = <RK_PB1 IRQ_TYPE_LEVEL_LOW>; 54 #clock-cells = <1>; 55 #sound-dai-cells = <0>; 56 clock-output-names = "rk808-clkout1", "rk808-clkout2"; 57 clock-names = "mclk"; 58 clocks = <&cru MCLK_I2S0_TX_OUT2IO>; 59 assigned-clocks = <&cru MCLK_I2S0_TX_OUT2IO>; 60 assigned-clock-parents = <&cru MCLK_I2S0_TX>; 61 pinctrl-names = "default"; 62 pinctrl-0 = <&pmic_int_l>; 63 rockchip,system-power-controller; 64 wakeup-source; 65 66 vcc1-supply = <&vcc5v0_sys>; 67 vcc2-supply = <&vcc5v0_sys>; 68 vcc3-supply = <&vcc5v0_sys>; 69 vcc4-supply = <&vcc5v0_sys>; 70 vcc5-supply = <&vcc_buck5>; 71 vcc6-supply = <&vcc_buck5>; 72 vcc7-supply = <&vcc5v0_sys>; 73 vcc8-supply = <&vcc3v3_sys>; 74 vcc9-supply = <&vcc5v0_sys>; 75 76 regulators { 77 vdd_npu_vepu: DCDC_REG1 { 78 regulator-name = "vdd_npu_vepu"; 79 regulator-always-on; 80 regulator-boot-on; 81 regulator-initial-mode = <0x2>; 82 regulator-min-microvolt = <650000>; 83 regulator-max-microvolt = <950000>; 84 regulator-ramp-delay = <6001>; 85 86 regulator-state-mem { 87 regulator-off-in-suspend; 88 }; 89 }; 90 91 vdd_arm: DCDC_REG2 { 92 regulator-name = "vdd_arm"; 93 regulator-always-on; 94 regulator-boot-on; 95 regulator-initial-mode = <0x2>; 96 regulator-min-microvolt = <725000>; 97 regulator-max-microvolt = <1350000>; 98 regulator-ramp-delay = <6001>; 99 100 regulator-state-mem { 101 regulator-off-in-suspend; 102 }; 103 }; 104 105 vcc_ddr: DCDC_REG3 { 106 regulator-name = "vcc_ddr"; 107 regulator-always-on; 108 regulator-boot-on; 109 regulator-initial-mode = <0x2>; 110 111 regulator-state-mem { 112 regulator-on-in-suspend; 113 }; 114 }; 115 116 vcc3v3_sys: DCDC_REG4 { 117 regulator-name = "vcc3v3_sys"; 118 regulator-always-on; 119 regulator-boot-on; 120 regulator-initial-mode = <0x2>; 121 regulator-min-microvolt = <3300000>; 122 regulator-max-microvolt = <3300000>; 123 124 regulator-state-mem { 125 regulator-on-in-suspend; 126 regulator-suspend-microvolt = <3300000>; 127 }; 128 }; 129 130 vcc_buck5: DCDC_REG5 { 131 regulator-name = "vcc_buck5"; 132 regulator-always-on; 133 regulator-boot-on; 134 regulator-min-microvolt = <2200000>; 135 regulator-max-microvolt = <2200000>; 136 137 regulator-state-mem { 138 regulator-on-in-suspend; 139 regulator-suspend-microvolt = <2200000>; 140 }; 141 }; 142 143 vcc_0v8: LDO_REG1 { 144 regulator-name = "vcc_0v8"; 145 regulator-always-on; 146 regulator-boot-on; 147 regulator-min-microvolt = <800000>; 148 regulator-max-microvolt = <800000>; 149 150 regulator-state-mem { 151 regulator-off-in-suspend; 152 }; 153 }; 154 155 vcc1v8_pmu: LDO_REG2 { 156 regulator-name = "vcc1v8_pmu"; 157 regulator-always-on; 158 regulator-boot-on; 159 regulator-min-microvolt = <1800000>; 160 regulator-max-microvolt = <1800000>; 161 162 regulator-state-mem { 163 regulator-on-in-suspend; 164 regulator-suspend-microvolt = <1800000>; 165 }; 166 }; 167 168 vdd0v8_pmu: LDO_REG3 { 169 regulator-name = "vcc0v8_pmu"; 170 regulator-always-on; 171 regulator-boot-on; 172 regulator-min-microvolt = <800000>; 173 regulator-max-microvolt = <800000>; 174 175 regulator-state-mem { 176 regulator-on-in-suspend; 177 regulator-suspend-microvolt = <800000>; 178 }; 179 }; 180 181 vcc_1v8: LDO_REG4 { 182 regulator-name = "vcc_1v8"; 183 regulator-always-on; 184 regulator-boot-on; 185 regulator-min-microvolt = <1800000>; 186 regulator-max-microvolt = <1800000>; 187 188 regulator-state-mem { 189 regulator-on-in-suspend; 190 regulator-suspend-microvolt = <1800000>; 191 }; 192 }; 193 194 vcc_dovdd: LDO_REG5 { 195 regulator-name = "vcc_dovdd"; 196 regulator-always-on; 197 regulator-boot-on; 198 regulator-min-microvolt = <1800000>; 199 regulator-max-microvolt = <1800000>; 200 201 regulator-state-mem { 202 regulator-off-in-suspend; 203 }; 204 }; 205 206 vcc_dvdd: LDO_REG6 { 207 regulator-name = "vcc_dvdd"; 208 regulator-min-microvolt = <1200000>; 209 regulator-max-microvolt = <1200000>; 210 211 regulator-state-mem { 212 regulator-off-in-suspend; 213 }; 214 }; 215 216 vcc_avdd: LDO_REG7 { 217 regulator-name = "vcc_avdd"; 218 regulator-min-microvolt = <2800000>; 219 regulator-max-microvolt = <2800000>; 220 221 regulator-state-mem { 222 regulator-off-in-suspend; 223 }; 224 }; 225 226 vccio_sd: LDO_REG8 { 227 regulator-name = "vccio_sd"; 228 regulator-always-on; 229 regulator-boot-on; 230 regulator-min-microvolt = <1800000>; 231 regulator-max-microvolt = <3300000>; 232 233 regulator-state-mem { 234 regulator-off-in-suspend; 235 }; 236 }; 237 238 vcc3v3_sd: LDO_REG9 { 239 regulator-name = "vcc3v3_sd"; 240 regulator-always-on; 241 regulator-boot-on; 242 regulator-min-microvolt = <3300000>; 243 regulator-max-microvolt = <3300000>; 244 245 regulator-state-mem { 246 regulator-off-in-suspend; 247 }; 248 }; 249 250 vcc_5v0: SWITCH_REG1 { 251 regulator-name = "vcc_5v0"; 252 }; 253 254 vcc_3v3: SWITCH_REG2 { 255 regulator-name = "vcc_3v3"; 256 regulator-always-on; 257 regulator-boot-on; 258 }; 259 }; 260 }; 261}; 262 263&pinctrl { 264 pmic { 265 pmic_int_l: pmic-int-l { 266 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; 267 }; 268 }; 269}; 270 271&pmu_io_domains { 272 pmuio0-supply = <&vcc3v3_sys>; 273 pmuio1-supply = <&vcc3v3_sys>; 274 vccio1-supply = <&vcc_1v8>; 275 vccio2-supply = <&vccio_sd>; 276 vccio3-supply = <&vcc_1v8>; 277 vccio4-supply = <&vcc_3v3>; 278 vccio5-supply = <&vcc_3v3>; 279 vccio6-supply = <&vcc_3v3>; 280 vccio7-supply = <&vcc_1v8>; 281 status = "okay"; 282}; 283 284&saradc { 285 vref-supply = <&vcc_1v8>; 286 status = "okay"; 287}; 288 289&wdt { 290 status = "okay"; 291}; 292