1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2023 Theobroma Systems Design 3 * Copyright (c) 2023 Theobroma Systems Design und Consulting GmbH 4 */ 4 */ 5 5 6 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include "rk3588.dtsi" 9 #include "rk3588.dtsi" 10 10 11 / { 11 / { 12 compatible = "tsd,rk3588-tiger", "rock 12 compatible = "tsd,rk3588-tiger", "rockchip,rk3588"; 13 13 14 aliases { 14 aliases { 15 mmc0 = &sdhci; 15 mmc0 = &sdhci; 16 rtc0 = &rtc_twi; 16 rtc0 = &rtc_twi; 17 }; 17 }; 18 18 19 emmc_pwrseq: emmc-pwrseq { 19 emmc_pwrseq: emmc-pwrseq { 20 compatible = "mmc-pwrseq-emmc" 20 compatible = "mmc-pwrseq-emmc"; 21 pinctrl-0 = <&emmc_reset>; 21 pinctrl-0 = <&emmc_reset>; 22 pinctrl-names = "default"; 22 pinctrl-names = "default"; 23 reset-gpios = <&gpio2 RK_PA3 G 23 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>; 24 }; 24 }; 25 25 26 extcon_usb3: extcon-usb3 { 26 extcon_usb3: extcon-usb3 { 27 compatible = "linux,extcon-usb 27 compatible = "linux,extcon-usb-gpio"; 28 id-gpios = <&gpio3 RK_PC0 GPIO 28 id-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 29 pinctrl-names = "default"; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&usb3_id>; 30 pinctrl-0 = <&usb3_id>; 31 status = "disabled"; 31 status = "disabled"; 32 }; 32 }; 33 33 34 leds { 34 leds { 35 compatible = "gpio-leds"; 35 compatible = "gpio-leds"; 36 pinctrl-names = "default"; 36 pinctrl-names = "default"; 37 pinctrl-0 = <&module_led_pin>; 37 pinctrl-0 = <&module_led_pin>; 38 38 39 /* Named LED1 on the board */ 39 /* Named LED1 on the board */ 40 led-1 { 40 led-1 { 41 gpios = <&gpio1 RK_PD3 41 gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; 42 function = LED_FUNCTIO 42 function = LED_FUNCTION_HEARTBEAT; 43 linux,default-trigger 43 linux,default-trigger = "heartbeat"; 44 color = <LED_COLOR_ID_ 44 color = <LED_COLOR_ID_AMBER>; 45 }; 45 }; 46 }; 46 }; 47 47 48 /* 48 /* 49 * 100MHz reference clock for PCIe per 49 * 100MHz reference clock for PCIe peripherals from PI6C557-05BLE 50 * clock generator. 50 * clock generator. 51 * The clock output is gated via the O 51 * The clock output is gated via the OE pin on the clock generator. 52 * This is modeled as a fixed-clock pl 52 * This is modeled as a fixed-clock plus a gpio-gate-clock. 53 */ 53 */ 54 pcie_refclk_gen: pcie-refclk-gen-clock 54 pcie_refclk_gen: pcie-refclk-gen-clock { 55 compatible = "fixed-clock"; 55 compatible = "fixed-clock"; 56 #clock-cells = <0>; 56 #clock-cells = <0>; 57 clock-frequency = <100000000>; 57 clock-frequency = <100000000>; 58 }; 58 }; 59 59 60 pcie_refclk: pcie-refclk-clock { 60 pcie_refclk: pcie-refclk-clock { 61 compatible = "gpio-gate-clock" 61 compatible = "gpio-gate-clock"; 62 clocks = <&pcie_refclk_gen>; 62 clocks = <&pcie_refclk_gen>; 63 #clock-cells = <0>; 63 #clock-cells = <0>; 64 enable-gpios = <&gpio4 RK_PB4 64 enable-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; /* PCIE30X4_CLKREQN_M1_L */ 65 }; 65 }; 66 66 67 vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regul 67 vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator { 68 compatible = "regulator-fixed" 68 compatible = "regulator-fixed"; 69 regulator-name = "vcc_1v1_nldo 69 regulator-name = "vcc_1v1_nldo_s3"; 70 regulator-always-on; 70 regulator-always-on; 71 regulator-boot-on; 71 regulator-boot-on; 72 regulator-min-microvolt = <110 72 regulator-min-microvolt = <1100000>; 73 regulator-max-microvolt = <110 73 regulator-max-microvolt = <1100000>; 74 vin-supply = <&vcc5v0_sys>; 74 vin-supply = <&vcc5v0_sys>; 75 }; 75 }; 76 76 77 vcc_1v2_s3: vcc-1v2-s3-regulator { 77 vcc_1v2_s3: vcc-1v2-s3-regulator { 78 compatible = "regulator-fixed" 78 compatible = "regulator-fixed"; 79 regulator-name = "vcc_1v2_s3"; 79 regulator-name = "vcc_1v2_s3"; 80 regulator-always-on; 80 regulator-always-on; 81 regulator-boot-on; 81 regulator-boot-on; 82 regulator-min-microvolt = <120 82 regulator-min-microvolt = <1200000>; 83 regulator-max-microvolt = <120 83 regulator-max-microvolt = <1200000>; 84 vin-supply = <&vcc5v0_sys>; 84 vin-supply = <&vcc5v0_sys>; 85 }; 85 }; 86 86 87 vcc5v0_sys: vcc5v0-sys-regulator { 87 vcc5v0_sys: vcc5v0-sys-regulator { 88 compatible = "regulator-fixed" 88 compatible = "regulator-fixed"; 89 regulator-name = "vcc5v0_sys"; 89 regulator-name = "vcc5v0_sys"; 90 regulator-always-on; 90 regulator-always-on; 91 regulator-boot-on; 91 regulator-boot-on; 92 regulator-min-microvolt = <500 92 regulator-min-microvolt = <5000000>; 93 regulator-max-microvolt = <500 93 regulator-max-microvolt = <5000000>; 94 vin-supply = <&vcc5v0_baseboar 94 vin-supply = <&vcc5v0_baseboard>; 95 }; 95 }; 96 }; 96 }; 97 97 98 &cpu_b0 { 98 &cpu_b0 { 99 cpu-supply = <&vdd_cpu_big0_s0>; 99 cpu-supply = <&vdd_cpu_big0_s0>; 100 }; 100 }; 101 101 102 &cpu_b1 { 102 &cpu_b1 { 103 cpu-supply = <&vdd_cpu_big0_s0>; 103 cpu-supply = <&vdd_cpu_big0_s0>; 104 }; 104 }; 105 105 106 &cpu_b2 { 106 &cpu_b2 { 107 cpu-supply = <&vdd_cpu_big1_s0>; 107 cpu-supply = <&vdd_cpu_big1_s0>; 108 }; 108 }; 109 109 110 &cpu_b3 { 110 &cpu_b3 { 111 cpu-supply = <&vdd_cpu_big1_s0>; 111 cpu-supply = <&vdd_cpu_big1_s0>; 112 }; 112 }; 113 113 114 &cpu_l0 { 114 &cpu_l0 { 115 cpu-supply = <&vdd_cpu_lit_s0>; 115 cpu-supply = <&vdd_cpu_lit_s0>; 116 }; 116 }; 117 117 118 &cpu_l1 { 118 &cpu_l1 { 119 cpu-supply = <&vdd_cpu_lit_s0>; 119 cpu-supply = <&vdd_cpu_lit_s0>; 120 }; 120 }; 121 121 122 &cpu_l2 { 122 &cpu_l2 { 123 cpu-supply = <&vdd_cpu_lit_s0>; 123 cpu-supply = <&vdd_cpu_lit_s0>; 124 }; 124 }; 125 125 126 &cpu_l3 { 126 &cpu_l3 { 127 cpu-supply = <&vdd_cpu_lit_s0>; 127 cpu-supply = <&vdd_cpu_lit_s0>; 128 }; 128 }; 129 129 130 &gmac0 { 130 &gmac0 { 131 clock_in_out = "output"; 131 clock_in_out = "output"; 132 phy-handle = <&rgmii_phy>; 132 phy-handle = <&rgmii_phy>; 133 phy-mode = "rgmii"; 133 phy-mode = "rgmii"; 134 phy-supply = <&vcc_1v2_s3>; 134 phy-supply = <&vcc_1v2_s3>; 135 pinctrl-names = "default"; 135 pinctrl-names = "default"; 136 pinctrl-0 = <&gmac0_miim 136 pinctrl-0 = <&gmac0_miim 137 &gmac0_rx_bus2 137 &gmac0_rx_bus2 138 &gmac0_tx_bus2 138 &gmac0_tx_bus2 139 &gmac0_rgmii_clk 139 &gmac0_rgmii_clk 140 &gmac0_rgmii_bus 140 &gmac0_rgmii_bus 141 ð0_pins 141 ð0_pins 142 ð_reset>; 142 ð_reset>; 143 tx_delay = <0x10>; 143 tx_delay = <0x10>; 144 rx_delay = <0x10>; 144 rx_delay = <0x10>; 145 snps,reset-gpio = <&gpio4 RK_PC3 GPIO_ 145 snps,reset-gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_LOW>; 146 snps,reset-active-low; 146 snps,reset-active-low; 147 snps,reset-delays-us = <0 10000 100000 147 snps,reset-delays-us = <0 10000 100000>; 148 }; 148 }; 149 149 150 &gpu { 150 &gpu { 151 mali-supply = <&vdd_gpu_s0>; 151 mali-supply = <&vdd_gpu_s0>; 152 status = "okay"; 152 status = "okay"; 153 }; 153 }; 154 154 155 &i2c1 { 155 &i2c1 { 156 pinctrl-0 = <&i2c1m0_xfer>; 156 pinctrl-0 = <&i2c1m0_xfer>; 157 }; 157 }; 158 158 159 &i2c1m0_xfer { 159 &i2c1m0_xfer { 160 rockchip,pins = 160 rockchip,pins = 161 /* i2c1_scl_m0 */ 161 /* i2c1_scl_m0 */ 162 <0 RK_PB5 9 &pcfg_pull_none_dr 162 <0 RK_PB5 9 &pcfg_pull_none_drv_level_0>, 163 /* i2c1_sda_m0 */ 163 /* i2c1_sda_m0 */ 164 <0 RK_PB6 9 &pcfg_pull_none_dr 164 <0 RK_PB6 9 &pcfg_pull_none_drv_level_0>; 165 }; 165 }; 166 166 167 &i2c2 { 167 &i2c2 { 168 pinctrl-0 = <&i2c2m3_xfer>; 168 pinctrl-0 = <&i2c2m3_xfer>; 169 status = "okay"; 169 status = "okay"; 170 }; 170 }; 171 171 172 &i2c2m3_xfer { 172 &i2c2m3_xfer { 173 rockchip,pins = 173 rockchip,pins = 174 /* i2c2_scl_m3 */ 174 /* i2c2_scl_m3 */ 175 <1 RK_PC5 9 &pcfg_pull_none_dr 175 <1 RK_PC5 9 &pcfg_pull_none_drv_level_0>, 176 /* i2c2_sda_m3 */ 176 /* i2c2_sda_m3 */ 177 <1 RK_PC4 9 &pcfg_pull_none_dr 177 <1 RK_PC4 9 &pcfg_pull_none_drv_level_0>; 178 }; 178 }; 179 179 180 &i2c3 { 180 &i2c3 { 181 pinctrl-0 = <&i2c3m0_xfer>; 181 pinctrl-0 = <&i2c3m0_xfer>; 182 }; 182 }; 183 183 184 &i2c4 { 184 &i2c4 { 185 pinctrl-0 = <&i2c4m4_xfer>; 185 pinctrl-0 = <&i2c4m4_xfer>; 186 status = "okay"; 186 status = "okay"; 187 187 188 vdd_npu_s0: regulator@42 { 188 vdd_npu_s0: regulator@42 { 189 compatible = "rockchip,rk8602" 189 compatible = "rockchip,rk8602"; 190 reg = <0x42>; 190 reg = <0x42>; 191 fcs,suspend-voltage-selector = 191 fcs,suspend-voltage-selector = <1>; 192 regulator-name = "vdd_npu_s0"; 192 regulator-name = "vdd_npu_s0"; 193 regulator-always-on; 193 regulator-always-on; 194 regulator-boot-on; 194 regulator-boot-on; 195 regulator-min-microvolt = <550 195 regulator-min-microvolt = <550000>; 196 regulator-max-microvolt = <950 196 regulator-max-microvolt = <950000>; 197 regulator-ramp-delay = <2300>; 197 regulator-ramp-delay = <2300>; 198 vin-supply = <&vcc5v0_sys>; 198 vin-supply = <&vcc5v0_sys>; 199 199 200 regulator-state-mem { 200 regulator-state-mem { 201 regulator-off-in-suspe 201 regulator-off-in-suspend; 202 }; 202 }; 203 }; 203 }; 204 }; 204 }; 205 205 206 &i2c5 { 206 &i2c5 { 207 pinctrl-0 = <&i2c5m1_xfer>; 207 pinctrl-0 = <&i2c5m1_xfer>; 208 }; 208 }; 209 209 210 &i2c5m1_xfer { 210 &i2c5m1_xfer { 211 rockchip,pins = 211 rockchip,pins = 212 /* i2c5_scl_m1 */ 212 /* i2c5_scl_m1 */ 213 <4 RK_PB6 9 &pcfg_pull_none_dr 213 <4 RK_PB6 9 &pcfg_pull_none_drv_level_0>, 214 /* i2c5_sda_m1 */ 214 /* i2c5_sda_m1 */ 215 <4 RK_PB7 9 &pcfg_pull_none_dr 215 <4 RK_PB7 9 &pcfg_pull_none_drv_level_0>; 216 }; 216 }; 217 217 218 &i2c6 { 218 &i2c6 { 219 /* 219 /* 220 * Mule-ATtiny can handle up to Fast m 220 * Mule-ATtiny can handle up to Fast mode Plus (1MHz) on I2C bus, 221 * but SOC can handle only up to (400k 221 * but SOC can handle only up to (400kHz). 222 */ 222 */ 223 clock-frequency = <400000>; 223 clock-frequency = <400000>; 224 status = "okay"; 224 status = "okay"; 225 225 226 fan@18 { 226 fan@18 { 227 compatible = "ti,amc6821"; 227 compatible = "ti,amc6821"; 228 reg = <0x18>; 228 reg = <0x18>; 229 }; 229 }; 230 230 231 rtc_twi: rtc@6f { 231 rtc_twi: rtc@6f { 232 compatible = "isil,isl1208"; 232 compatible = "isil,isl1208"; 233 reg = <0x6f>; 233 reg = <0x6f>; 234 }; 234 }; 235 }; 235 }; 236 236 237 &i2c6m0_xfer { 237 &i2c6m0_xfer { 238 rockchip,pins = 238 rockchip,pins = 239 /* i2c6_scl_m0 */ 239 /* i2c6_scl_m0 */ 240 <0 RK_PD0 9 &pcfg_pull_none_dr 240 <0 RK_PD0 9 &pcfg_pull_none_drv_level_0>, 241 /* i2c6_sda_m0 */ 241 /* i2c6_sda_m0 */ 242 <0 RK_PC7 9 &pcfg_pull_none_dr 242 <0 RK_PC7 9 &pcfg_pull_none_drv_level_0>; 243 }; 243 }; 244 244 245 &i2c7 { 245 &i2c7 { 246 status = "okay"; 246 status = "okay"; 247 247 248 vdd_cpu_big0_s0: regulator@42 { 248 vdd_cpu_big0_s0: regulator@42 { 249 compatible = "rockchip,rk8602" 249 compatible = "rockchip,rk8602"; 250 reg = <0x42>; 250 reg = <0x42>; 251 fcs,suspend-voltage-selector = 251 fcs,suspend-voltage-selector = <1>; 252 regulator-name = "vdd_cpu_big0 252 regulator-name = "vdd_cpu_big0_s0"; 253 regulator-always-on; 253 regulator-always-on; 254 regulator-boot-on; 254 regulator-boot-on; 255 regulator-min-microvolt = <550 255 regulator-min-microvolt = <550000>; 256 regulator-max-microvolt = <105 256 regulator-max-microvolt = <1050000>; 257 regulator-ramp-delay = <2300>; 257 regulator-ramp-delay = <2300>; 258 vin-supply = <&vcc5v0_sys>; 258 vin-supply = <&vcc5v0_sys>; 259 259 260 regulator-state-mem { 260 regulator-state-mem { 261 regulator-off-in-suspe 261 regulator-off-in-suspend; 262 }; 262 }; 263 }; 263 }; 264 264 265 vdd_cpu_big1_s0: regulator@43 { 265 vdd_cpu_big1_s0: regulator@43 { 266 compatible = "rockchip,rk8603" 266 compatible = "rockchip,rk8603", "rockchip,rk8602"; 267 reg = <0x43>; 267 reg = <0x43>; 268 fcs,suspend-voltage-selector = 268 fcs,suspend-voltage-selector = <1>; 269 regulator-name = "vdd_cpu_big1 269 regulator-name = "vdd_cpu_big1_s0"; 270 regulator-always-on; 270 regulator-always-on; 271 regulator-boot-on; 271 regulator-boot-on; 272 regulator-min-microvolt = <550 272 regulator-min-microvolt = <550000>; 273 regulator-max-microvolt = <105 273 regulator-max-microvolt = <1050000>; 274 regulator-ramp-delay = <2300>; 274 regulator-ramp-delay = <2300>; 275 vin-supply = <&vcc5v0_sys>; 275 vin-supply = <&vcc5v0_sys>; 276 276 277 regulator-state-mem { 277 regulator-state-mem { 278 regulator-off-in-suspe 278 regulator-off-in-suspend; 279 }; 279 }; 280 }; 280 }; 281 }; 281 }; 282 282 283 &i2c7m0_xfer { 283 &i2c7m0_xfer { 284 rockchip,pins = 284 rockchip,pins = 285 /* i2c7_scl_m0 */ 285 /* i2c7_scl_m0 */ 286 <1 RK_PD0 9 &pcfg_pull_none_dr 286 <1 RK_PD0 9 &pcfg_pull_none_drv_level_0>, 287 /* i2c7_sda_m0 */ 287 /* i2c7_sda_m0 */ 288 <1 RK_PD1 9 &pcfg_pull_none_dr 288 <1 RK_PD1 9 &pcfg_pull_none_drv_level_0>; 289 }; 289 }; 290 290 291 &i2c8 { 291 &i2c8 { 292 pinctrl-0 = <&i2c8m2_xfer>; 292 pinctrl-0 = <&i2c8m2_xfer>; 293 }; 293 }; 294 294 295 &mdio0 { 295 &mdio0 { 296 rgmii_phy: ethernet-phy@6 { 296 rgmii_phy: ethernet-phy@6 { 297 /* KSZ9031 or KSZ9131 */ 297 /* KSZ9031 or KSZ9131 */ 298 compatible = "ethernet-phy-iee 298 compatible = "ethernet-phy-ieee802.3-c22"; 299 reg = <0x6>; 299 reg = <0x6>; 300 clocks = <&cru REFCLKO25M_ETH0 300 clocks = <&cru REFCLKO25M_ETH0_OUT>; 301 }; 301 }; 302 }; 302 }; 303 303 304 &pcie3x4 { 304 &pcie3x4 { 305 /* 305 /* 306 * The board has a gpio-controlled "pc 306 * The board has a gpio-controlled "pcie_refclk" generator, 307 * so add it to the list of clocks. 307 * so add it to the list of clocks. 308 */ 308 */ 309 clocks = <&cru ACLK_PCIE_4L_MSTR>, <&c 309 clocks = <&cru ACLK_PCIE_4L_MSTR>, <&cru ACLK_PCIE_4L_SLV>, 310 <&cru ACLK_PCIE_4L_DBI>, <&cr 310 <&cru ACLK_PCIE_4L_DBI>, <&cru PCLK_PCIE_4L>, 311 <&cru CLK_PCIE_AUX0>, <&cru C 311 <&cru CLK_PCIE_AUX0>, <&cru CLK_PCIE4L_PIPE>, 312 <&pcie_refclk>; 312 <&pcie_refclk>; 313 clock-names = "aclk_mst", "aclk_slv", 313 clock-names = "aclk_mst", "aclk_slv", 314 "aclk_dbi", "pclk", 314 "aclk_dbi", "pclk", 315 "aux", "pipe", 315 "aux", "pipe", 316 "ref"; 316 "ref"; 317 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTI 317 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; 318 }; 318 }; 319 319 320 &pinctrl { 320 &pinctrl { 321 emmc { 321 emmc { 322 emmc_reset: emmc-reset { 322 emmc_reset: emmc-reset { 323 rockchip,pins = <2 RK_ 323 rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 324 }; 324 }; 325 }; 325 }; 326 326 327 ethernet { 327 ethernet { 328 eth_reset: eth-reset { 328 eth_reset: eth-reset { 329 rockchip,pins = <4 RK_ 329 rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; 330 }; 330 }; 331 }; 331 }; 332 332 333 leds { 333 leds { 334 module_led_pin: module-led-pin 334 module_led_pin: module-led-pin { 335 rockchip,pins = <1 RK_ 335 rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 336 }; 336 }; 337 }; 337 }; 338 338 339 usb3 { 339 usb3 { 340 usb3_id: usb3-id { 340 usb3_id: usb3-id { 341 rockchip,pins = 341 rockchip,pins = 342 <3 RK_PC0 RK_FUNC_GP 342 <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 343 }; 343 }; 344 }; 344 }; 345 }; 345 }; 346 346 347 &pwm0 { 347 &pwm0 { 348 pinctrl-0 = <&pwm0m1_pins>; 348 pinctrl-0 = <&pwm0m1_pins>; 349 pinctrl-names = "default"; 349 pinctrl-names = "default"; 350 }; 350 }; 351 351 352 &saradc { 352 &saradc { 353 vref-supply = <&vcc_1v8_s0>; 353 vref-supply = <&vcc_1v8_s0>; 354 status = "okay"; 354 status = "okay"; 355 }; 355 }; 356 356 357 &sdhci { 357 &sdhci { 358 bus-width = <8>; 358 bus-width = <8>; 359 cap-mmc-highspeed; 359 cap-mmc-highspeed; 360 mmc-ddr-1_8v; 360 mmc-ddr-1_8v; 361 mmc-hs200-1_8v; 361 mmc-hs200-1_8v; 362 mmc-hs400-1_8v; 362 mmc-hs400-1_8v; 363 mmc-hs400-enhanced-strobe; 363 mmc-hs400-enhanced-strobe; 364 mmc-pwrseq = <&emmc_pwrseq>; 364 mmc-pwrseq = <&emmc_pwrseq>; 365 no-sdio; 365 no-sdio; 366 no-sd; 366 no-sd; 367 non-removable; 367 non-removable; 368 pinctrl-names = "default"; 368 pinctrl-names = "default"; 369 pinctrl-0 = <&emmc_bus8 &emmc_cmd &emm 369 pinctrl-0 = <&emmc_bus8 &emmc_cmd &emmc_clk &emmc_data_strobe>; 370 supports-cqe; 370 supports-cqe; 371 vmmc-supply = <&vcc_3v3_s3>; 371 vmmc-supply = <&vcc_3v3_s3>; 372 vqmmc-supply = <&vcc_1v8_s3>; 372 vqmmc-supply = <&vcc_1v8_s3>; 373 status = "okay"; 373 status = "okay"; 374 }; 374 }; 375 375 376 &sdmmc { 376 &sdmmc { 377 bus-width = <4>; 377 bus-width = <4>; 378 cap-sd-highspeed; 378 cap-sd-highspeed; 379 max-frequency = <150000000>; 379 max-frequency = <150000000>; 380 vqmmc-supply = <&vccio_sd_s0>; 380 vqmmc-supply = <&vccio_sd_s0>; 381 }; 381 }; 382 382 383 &spi0 { 383 &spi0 { 384 pinctrl-0 = <&spi0m1_cs0 &spi0m1_cs1 & 384 pinctrl-0 = <&spi0m1_cs0 &spi0m1_cs1 &spi0m3_pins>; 385 }; 385 }; 386 386 387 &spi2 { 387 &spi2 { 388 assigned-clocks = <&cru CLK_SPI2>; 388 assigned-clocks = <&cru CLK_SPI2>; 389 assigned-clock-rates = <200000000>; 389 assigned-clock-rates = <200000000>; 390 num-cs = <1>; 390 num-cs = <1>; 391 pinctrl-names = "default"; 391 pinctrl-names = "default"; 392 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins> 392 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; 393 status = "okay"; 393 status = "okay"; 394 394 395 pmic@0 { 395 pmic@0 { 396 compatible = "rockchip,rk806"; 396 compatible = "rockchip,rk806"; 397 reg = <0x0>; 397 reg = <0x0>; 398 interrupt-parent = <&gpio0>; 398 interrupt-parent = <&gpio0>; 399 interrupts = <7 IRQ_TYPE_LEVEL 399 interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 400 gpio-controller; 400 gpio-controller; 401 #gpio-cells = <2>; 401 #gpio-cells = <2>; 402 pinctrl-names = "default"; 402 pinctrl-names = "default"; 403 pinctrl-0 = <&pmic_pins>, <&rk 403 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, 404 <&rk806_dvs2_null> 404 <&rk806_dvs2_null>, <&rk806_dvs3_null>; 405 spi-max-frequency = <1000000>; 405 spi-max-frequency = <1000000>; 406 system-power-controller; 406 system-power-controller; 407 vcc1-supply = <&vcc5v0_sys>; 407 vcc1-supply = <&vcc5v0_sys>; 408 vcc2-supply = <&vcc5v0_sys>; 408 vcc2-supply = <&vcc5v0_sys>; 409 vcc3-supply = <&vcc5v0_sys>; 409 vcc3-supply = <&vcc5v0_sys>; 410 vcc4-supply = <&vcc5v0_sys>; 410 vcc4-supply = <&vcc5v0_sys>; 411 vcc5-supply = <&vcc5v0_sys>; 411 vcc5-supply = <&vcc5v0_sys>; 412 vcc6-supply = <&vcc5v0_sys>; 412 vcc6-supply = <&vcc5v0_sys>; 413 vcc7-supply = <&vcc5v0_sys>; 413 vcc7-supply = <&vcc5v0_sys>; 414 vcc8-supply = <&vcc5v0_sys>; 414 vcc8-supply = <&vcc5v0_sys>; 415 vcc9-supply = <&vcc5v0_sys>; 415 vcc9-supply = <&vcc5v0_sys>; 416 vcc10-supply = <&vcc5v0_sys>; 416 vcc10-supply = <&vcc5v0_sys>; 417 vcc11-supply = <&vcc_2v0_pldo_ 417 vcc11-supply = <&vcc_2v0_pldo_s3>; 418 vcc12-supply = <&vcc5v0_sys>; 418 vcc12-supply = <&vcc5v0_sys>; 419 vcc13-supply = <&vcc_1v1_nldo_ 419 vcc13-supply = <&vcc_1v1_nldo_s3>; 420 vcc14-supply = <&vcc_1v1_nldo_ 420 vcc14-supply = <&vcc_1v1_nldo_s3>; 421 vcca-supply = <&vcc5v0_sys>; 421 vcca-supply = <&vcc5v0_sys>; 422 422 423 rk806_dvs1_null: dvs1-null-pin 423 rk806_dvs1_null: dvs1-null-pins { 424 pins = "gpio_pwrctrl1" 424 pins = "gpio_pwrctrl1"; 425 function = "pin_fun0"; 425 function = "pin_fun0"; 426 }; 426 }; 427 427 428 rk806_dvs2_null: dvs2-null-pin 428 rk806_dvs2_null: dvs2-null-pins { 429 pins = "gpio_pwrctrl2" 429 pins = "gpio_pwrctrl2"; 430 function = "pin_fun0"; 430 function = "pin_fun0"; 431 }; 431 }; 432 432 433 rk806_dvs3_null: dvs3-null-pin 433 rk806_dvs3_null: dvs3-null-pins { 434 pins = "gpio_pwrctrl3" 434 pins = "gpio_pwrctrl3"; 435 function = "pin_fun0"; 435 function = "pin_fun0"; 436 }; 436 }; 437 437 438 regulators { 438 regulators { 439 vdd_gpu_s0: dcdc-reg1 439 vdd_gpu_s0: dcdc-reg1 { 440 regulator-boot 440 regulator-boot-on; 441 regulator-min- 441 regulator-min-microvolt = <550000>; 442 regulator-max- 442 regulator-max-microvolt = <950000>; 443 regulator-ramp 443 regulator-ramp-delay = <12500>; 444 regulator-name 444 regulator-name = "vdd_gpu_s0"; 445 regulator-enab 445 regulator-enable-ramp-delay = <400>; 446 446 447 regulator-stat 447 regulator-state-mem { 448 regula 448 regulator-off-in-suspend; 449 }; 449 }; 450 }; 450 }; 451 451 452 vdd_cpu_lit_s0: dcdc-r 452 vdd_cpu_lit_s0: dcdc-reg2 { 453 regulator-name 453 regulator-name = "vdd_cpu_lit_s0"; 454 regulator-alwa 454 regulator-always-on; 455 regulator-boot 455 regulator-boot-on; 456 regulator-min- 456 regulator-min-microvolt = <550000>; 457 regulator-max- 457 regulator-max-microvolt = <950000>; 458 regulator-ramp 458 regulator-ramp-delay = <12500>; 459 459 460 regulator-stat 460 regulator-state-mem { 461 regula 461 regulator-off-in-suspend; 462 }; 462 }; 463 }; 463 }; 464 464 465 vdd_log_s0: dcdc-reg3 465 vdd_log_s0: dcdc-reg3 { 466 regulator-name 466 regulator-name = "vdd_log_s0"; 467 regulator-alwa 467 regulator-always-on; 468 regulator-boot 468 regulator-boot-on; 469 regulator-min- 469 regulator-min-microvolt = <675000>; 470 regulator-max- 470 regulator-max-microvolt = <750000>; 471 regulator-ramp 471 regulator-ramp-delay = <12500>; 472 472 473 regulator-stat 473 regulator-state-mem { 474 regula 474 regulator-off-in-suspend; 475 regula 475 regulator-suspend-microvolt = <750000>; 476 }; 476 }; 477 }; 477 }; 478 478 479 vdd_vdenc_s0: dcdc-reg 479 vdd_vdenc_s0: dcdc-reg4 { 480 regulator-name 480 regulator-name = "vdd_vdenc_s0"; 481 regulator-alwa 481 regulator-always-on; 482 regulator-boot 482 regulator-boot-on; 483 regulator-min- 483 regulator-min-microvolt = <550000>; 484 regulator-max- 484 regulator-max-microvolt = <950000>; 485 regulator-ramp 485 regulator-ramp-delay = <12500>; 486 486 487 regulator-stat 487 regulator-state-mem { 488 regula 488 regulator-off-in-suspend; 489 }; 489 }; 490 }; 490 }; 491 491 492 vdd_ddr_s0: dcdc-reg5 492 vdd_ddr_s0: dcdc-reg5 { 493 regulator-name 493 regulator-name = "vdd_ddr_s0"; 494 regulator-alwa 494 regulator-always-on; 495 regulator-boot 495 regulator-boot-on; 496 regulator-min- 496 regulator-min-microvolt = <675000>; 497 regulator-max- 497 regulator-max-microvolt = <900000>; 498 regulator-ramp 498 regulator-ramp-delay = <12500>; 499 499 500 regulator-stat 500 regulator-state-mem { 501 regula 501 regulator-off-in-suspend; 502 regula 502 regulator-suspend-microvolt = <850000>; 503 }; 503 }; 504 }; 504 }; 505 505 506 vdd2_ddr_s3: dcdc-reg6 506 vdd2_ddr_s3: dcdc-reg6 { 507 regulator-name 507 regulator-name = "vdd2_ddr_s3"; 508 regulator-alwa 508 regulator-always-on; 509 regulator-boot 509 regulator-boot-on; 510 510 511 regulator-stat 511 regulator-state-mem { 512 regula 512 regulator-on-in-suspend; 513 }; 513 }; 514 }; 514 }; 515 515 516 vcc_2v0_pldo_s3: dcdc- 516 vcc_2v0_pldo_s3: dcdc-reg7 { 517 regulator-name 517 regulator-name = "vcc_2v0_pldo_s3"; 518 regulator-alwa 518 regulator-always-on; 519 regulator-boot 519 regulator-boot-on; 520 regulator-min- 520 regulator-min-microvolt = <2000000>; 521 regulator-max- 521 regulator-max-microvolt = <2000000>; 522 regulator-ramp 522 regulator-ramp-delay = <12500>; 523 523 524 regulator-stat 524 regulator-state-mem { 525 regula 525 regulator-on-in-suspend; 526 regula 526 regulator-suspend-microvolt = <2000000>; 527 }; 527 }; 528 }; 528 }; 529 529 530 vcc_3v3_s3: dcdc-reg8 530 vcc_3v3_s3: dcdc-reg8 { 531 regulator-name 531 regulator-name = "vcc_3v3_s3"; 532 regulator-alwa 532 regulator-always-on; 533 regulator-boot 533 regulator-boot-on; 534 regulator-min- 534 regulator-min-microvolt = <3300000>; 535 regulator-max- 535 regulator-max-microvolt = <3300000>; 536 536 537 regulator-stat 537 regulator-state-mem { 538 regula 538 regulator-on-in-suspend; 539 regula 539 regulator-suspend-microvolt = <3300000>; 540 }; 540 }; 541 }; 541 }; 542 542 543 vddq_ddr_s0: dcdc-reg9 543 vddq_ddr_s0: dcdc-reg9 { 544 regulator-name 544 regulator-name = "vddq_ddr_s0"; 545 regulator-alwa 545 regulator-always-on; 546 regulator-boot 546 regulator-boot-on; 547 547 548 regulator-stat 548 regulator-state-mem { 549 regula 549 regulator-off-in-suspend; 550 }; 550 }; 551 }; 551 }; 552 552 553 vcc_1v8_s3: dcdc-reg10 553 vcc_1v8_s3: dcdc-reg10 { 554 regulator-name 554 regulator-name = "vcc_1v8_s3"; 555 regulator-alwa 555 regulator-always-on; 556 regulator-boot 556 regulator-boot-on; 557 regulator-min- 557 regulator-min-microvolt = <1800000>; 558 regulator-max- 558 regulator-max-microvolt = <1800000>; 559 559 560 regulator-stat 560 regulator-state-mem { 561 regula 561 regulator-on-in-suspend; 562 regula 562 regulator-suspend-microvolt = <1800000>; 563 }; 563 }; 564 }; 564 }; 565 565 566 vcca_1v8_s0: pldo-reg1 566 vcca_1v8_s0: pldo-reg1 { 567 regulator-name 567 regulator-name = "vcca_1v8_s0"; 568 regulator-alwa 568 regulator-always-on; 569 regulator-boot 569 regulator-boot-on; 570 regulator-min- 570 regulator-min-microvolt = <1800000>; 571 regulator-max- 571 regulator-max-microvolt = <1800000>; 572 572 573 regulator-stat 573 regulator-state-mem { 574 regula 574 regulator-off-in-suspend; 575 }; 575 }; 576 }; 576 }; 577 577 578 vcc_1v8_s0: pldo-reg2 578 vcc_1v8_s0: pldo-reg2 { 579 regulator-name 579 regulator-name = "vcc_1v8_s0"; 580 regulator-alwa 580 regulator-always-on; 581 regulator-boot 581 regulator-boot-on; 582 regulator-min- 582 regulator-min-microvolt = <1800000>; 583 regulator-max- 583 regulator-max-microvolt = <1800000>; 584 584 585 regulator-stat 585 regulator-state-mem { 586 regula 586 regulator-off-in-suspend; 587 regula 587 regulator-suspend-microvolt = <1800000>; 588 }; 588 }; 589 }; 589 }; 590 590 591 vdda_1v2_s0: pldo-reg3 591 vdda_1v2_s0: pldo-reg3 { 592 regulator-name 592 regulator-name = "vdda_1v2_s0"; 593 regulator-alwa 593 regulator-always-on; 594 regulator-boot 594 regulator-boot-on; 595 regulator-min- 595 regulator-min-microvolt = <1200000>; 596 regulator-max- 596 regulator-max-microvolt = <1200000>; 597 597 598 regulator-stat 598 regulator-state-mem { 599 regula 599 regulator-off-in-suspend; 600 }; 600 }; 601 }; 601 }; 602 602 603 vcca_3v3_s0: pldo-reg4 603 vcca_3v3_s0: pldo-reg4 { 604 regulator-name 604 regulator-name = "vcca_3v3_s0"; 605 regulator-alwa 605 regulator-always-on; 606 regulator-boot 606 regulator-boot-on; 607 regulator-min- 607 regulator-min-microvolt = <3300000>; 608 regulator-max- 608 regulator-max-microvolt = <3300000>; 609 regulator-ramp 609 regulator-ramp-delay = <12500>; 610 610 611 regulator-stat 611 regulator-state-mem { 612 regula 612 regulator-off-in-suspend; 613 }; 613 }; 614 }; 614 }; 615 615 616 vccio_sd_s0: pldo-reg5 616 vccio_sd_s0: pldo-reg5 { 617 regulator-name 617 regulator-name = "vccio_sd_s0"; 618 regulator-alwa 618 regulator-always-on; 619 regulator-boot 619 regulator-boot-on; 620 regulator-min- 620 regulator-min-microvolt = <1800000>; 621 regulator-max- 621 regulator-max-microvolt = <3300000>; 622 regulator-ramp 622 regulator-ramp-delay = <12500>; 623 623 624 regulator-stat 624 regulator-state-mem { 625 regula 625 regulator-off-in-suspend; 626 }; 626 }; 627 }; 627 }; 628 628 629 pldo6_s3: pldo-reg6 { 629 pldo6_s3: pldo-reg6 { 630 regulator-name 630 regulator-name = "pldo6_s3"; 631 regulator-alwa 631 regulator-always-on; 632 regulator-boot 632 regulator-boot-on; 633 regulator-min- 633 regulator-min-microvolt = <1800000>; 634 regulator-max- 634 regulator-max-microvolt = <1800000>; 635 635 636 regulator-stat 636 regulator-state-mem { 637 regula 637 regulator-on-in-suspend; 638 regula 638 regulator-suspend-microvolt = <1800000>; 639 }; 639 }; 640 }; 640 }; 641 641 642 vdd_0v75_s3: nldo-reg1 642 vdd_0v75_s3: nldo-reg1 { 643 regulator-name 643 regulator-name = "vdd_0v75_s3"; 644 regulator-alwa 644 regulator-always-on; 645 regulator-boot 645 regulator-boot-on; 646 regulator-min- 646 regulator-min-microvolt = <750000>; 647 regulator-max- 647 regulator-max-microvolt = <750000>; 648 648 649 regulator-stat 649 regulator-state-mem { 650 regula 650 regulator-on-in-suspend; 651 regula 651 regulator-suspend-microvolt = <750000>; 652 }; 652 }; 653 }; 653 }; 654 654 655 vdda_ddr_pll_s0: nldo- 655 vdda_ddr_pll_s0: nldo-reg2 { 656 regulator-name 656 regulator-name = "vdda_ddr_pll_s0"; 657 regulator-alwa 657 regulator-always-on; 658 regulator-boot 658 regulator-boot-on; 659 regulator-min- 659 regulator-min-microvolt = <850000>; 660 regulator-max- 660 regulator-max-microvolt = <850000>; 661 661 662 regulator-stat 662 regulator-state-mem { 663 regula 663 regulator-off-in-suspend; 664 regula 664 regulator-suspend-microvolt = <850000>; 665 }; 665 }; 666 }; 666 }; 667 667 668 vdda_0v75_s0: nldo-reg 668 vdda_0v75_s0: nldo-reg3 { 669 regulator-name 669 regulator-name = "vdda_0v75_s0"; 670 regulator-alwa 670 regulator-always-on; 671 regulator-boot 671 regulator-boot-on; 672 regulator-min- 672 regulator-min-microvolt = <750000>; 673 regulator-max- 673 regulator-max-microvolt = <750000>; 674 674 675 regulator-stat 675 regulator-state-mem { 676 regula 676 regulator-off-in-suspend; 677 }; 677 }; 678 }; 678 }; 679 679 680 vdda_0v85_s0: nldo-reg 680 vdda_0v85_s0: nldo-reg4 { 681 regulator-name 681 regulator-name = "vdda_0v85_s0"; 682 regulator-alwa 682 regulator-always-on; 683 regulator-boot 683 regulator-boot-on; 684 regulator-min- 684 regulator-min-microvolt = <850000>; 685 regulator-max- 685 regulator-max-microvolt = <850000>; 686 686 687 regulator-stat 687 regulator-state-mem { 688 regula 688 regulator-off-in-suspend; 689 }; 689 }; 690 }; 690 }; 691 691 692 vdd_0v75_s0: nldo-reg5 692 vdd_0v75_s0: nldo-reg5 { 693 regulator-name 693 regulator-name = "vdd_0v75_s0"; 694 regulator-alwa 694 regulator-always-on; 695 regulator-boot 695 regulator-boot-on; 696 regulator-min- 696 regulator-min-microvolt = <750000>; 697 regulator-max- 697 regulator-max-microvolt = <750000>; 698 698 699 regulator-stat 699 regulator-state-mem { 700 regula 700 regulator-off-in-suspend; 701 }; 701 }; 702 }; 702 }; 703 }; 703 }; 704 }; 704 }; 705 }; 705 }; 706 706 707 &tsadc { 707 &tsadc { 708 status = "okay"; 708 status = "okay"; 709 }; 709 }; 710 710 711 /* Routed to UART0 on the Q7 connector */ 711 /* Routed to UART0 on the Q7 connector */ 712 &uart2 { 712 &uart2 { 713 pinctrl-0 = <&uart2m2_xfer>; 713 pinctrl-0 = <&uart2m2_xfer>; 714 }; 714 }; 715 715 716 /* Mule-ATtiny UPDI */ 716 /* Mule-ATtiny UPDI */ 717 &uart4 { 717 &uart4 { 718 pinctrl-0 = <&uart4m2_xfer>; 718 pinctrl-0 = <&uart4m2_xfer>; 719 status = "okay"; 719 status = "okay"; 720 }; 720 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.