1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2020 Aditya Prayoga <aditya@ko 3 * Copyright (c) 2020 Aditya Prayoga <aditya@kobol.io> 4 */ 4 */ 5 5 6 /* 6 /* 7 * The Kobol Helios64 is a board designed to o 7 * The Kobol Helios64 is a board designed to operate as a NAS and optionally 8 * ships with an enclosing that can host five 8 * ships with an enclosing that can host five 2.5" hard disks. 9 * 9 * 10 * See https://wiki.kobol.io/helios64/intro/ f 10 * See https://wiki.kobol.io/helios64/intro/ for further details. 11 */ 11 */ 12 12 13 /dts-v1/; 13 /dts-v1/; 14 #include "rk3399.dtsi" 14 #include "rk3399.dtsi" >> 15 #include "rk3399-opp.dtsi" 15 16 16 / { 17 / { 17 model = "Kobol Helios64"; 18 model = "Kobol Helios64"; 18 compatible = "kobol,helios64", "rockch 19 compatible = "kobol,helios64", "rockchip,rk3399"; 19 20 20 aliases { 21 aliases { 21 ethernet0 = &gmac; << 22 mmc0 = &sdmmc; 22 mmc0 = &sdmmc; 23 mmc1 = &sdhci; 23 mmc1 = &sdhci; >> 24 spi1 = &spi1; >> 25 spi2 = &spi2; >> 26 spi5 = &spi5; 24 }; 27 }; 25 28 26 avdd_0v9_s0: avdd-0v9-s0 { 29 avdd_0v9_s0: avdd-0v9-s0 { 27 compatible = "regulator-fixed" 30 compatible = "regulator-fixed"; 28 regulator-name = "avdd_0v9_s0" 31 regulator-name = "avdd_0v9_s0"; 29 regulator-always-on; 32 regulator-always-on; 30 regulator-boot-on; 33 regulator-boot-on; 31 regulator-min-microvolt = <900 34 regulator-min-microvolt = <900000>; 32 regulator-max-microvolt = <900 35 regulator-max-microvolt = <900000>; 33 vin-supply = <&vcc1v8_sys_s3>; 36 vin-supply = <&vcc1v8_sys_s3>; 34 }; 37 }; 35 38 36 avdd_1v8_s0: avdd-1v8-s0 { 39 avdd_1v8_s0: avdd-1v8-s0 { 37 compatible = "regulator-fixed" 40 compatible = "regulator-fixed"; 38 regulator-name = "avdd_1v8_s0" 41 regulator-name = "avdd_1v8_s0"; 39 regulator-always-on; 42 regulator-always-on; 40 regulator-boot-on; 43 regulator-boot-on; 41 regulator-min-microvolt = <180 44 regulator-min-microvolt = <1800000>; 42 regulator-max-microvolt = <180 45 regulator-max-microvolt = <1800000>; 43 vin-supply = <&vcc3v3_sys_s3>; 46 vin-supply = <&vcc3v3_sys_s3>; 44 }; 47 }; 45 48 46 chosen { 49 chosen { 47 stdout-path = "serial2:1500000 50 stdout-path = "serial2:1500000n8"; 48 }; 51 }; 49 52 50 clkin_gmac: external-gmac-clock { 53 clkin_gmac: external-gmac-clock { 51 compatible = "fixed-clock"; 54 compatible = "fixed-clock"; 52 clock-frequency = <125000000>; 55 clock-frequency = <125000000>; 53 clock-output-names = "clkin_gm 56 clock-output-names = "clkin_gmac"; 54 #clock-cells = <0>; 57 #clock-cells = <0>; 55 }; 58 }; 56 59 57 fan1 { 60 fan1 { 58 /* fan connected to P7 */ 61 /* fan connected to P7 */ 59 compatible = "pwm-fan"; 62 compatible = "pwm-fan"; 60 pwms = <&pwm0 0 40000 0>; 63 pwms = <&pwm0 0 40000 0>; 61 cooling-levels = <0 80 170 255 64 cooling-levels = <0 80 170 255>; 62 }; 65 }; 63 66 64 fan2 { 67 fan2 { 65 /* fan connected to P6 */ 68 /* fan connected to P6 */ 66 compatible = "pwm-fan"; 69 compatible = "pwm-fan"; 67 pwms = <&pwm1 0 40000 0>; 70 pwms = <&pwm1 0 40000 0>; 68 cooling-levels = <0 80 170 255 71 cooling-levels = <0 80 170 255>; 69 }; 72 }; 70 73 71 leds { 74 leds { 72 compatible = "gpio-leds"; 75 compatible = "gpio-leds"; 73 pinctrl-names = "default"; 76 pinctrl-names = "default"; 74 pinctrl-0 = <&sys_grn_led_on & 77 pinctrl-0 = <&sys_grn_led_on &sys_red_led_on>; 75 78 76 led-0 { 79 led-0 { 77 label = "helios64:gree 80 label = "helios64:green:status"; 78 gpios = <&gpio0 RK_PB4 81 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 79 default-state = "on"; 82 default-state = "on"; 80 }; 83 }; 81 84 82 led-1 { 85 led-1 { 83 label = "helios64:red: 86 label = "helios64:red:fault"; 84 gpios = <&gpio0 RK_PB5 87 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 85 default-state = "keep" 88 default-state = "keep"; 86 }; 89 }; 87 }; 90 }; 88 91 89 hdd_a_power: hdd-a-power { << 90 compatible = "regulator-fixed" << 91 enable-active-high; << 92 gpio = <&gpio1 RK_PA0 GPIO_ACT << 93 pinctrl-0 = <&hdd_a_power_en>; << 94 pinctrl-names = "default"; << 95 regulator-always-on; << 96 regulator-boot-on; << 97 regulator-name = "hdd_a_power" << 98 startup-delay-us = <2000000>; << 99 }; << 100 << 101 hdd_b_power: hdd-b-power { << 102 compatible = "regulator-fixed" << 103 enable-active-high; << 104 gpio = <&gpio1 RK_PA1 GPIO_ACT << 105 pinctrl-0 = <&hdd_b_power_en>; << 106 pinctrl-names = "default"; << 107 regulator-always-on; << 108 regulator-boot-on; << 109 regulator-name = "hdd_b_power" << 110 startup-delay-us = <2000000>; << 111 }; << 112 << 113 pcie_power: pcie-power { 92 pcie_power: pcie-power { 114 compatible = "regulator-fixed" 93 compatible = "regulator-fixed"; 115 enable-active-high; 94 enable-active-high; 116 gpio = <&gpio1 RK_PD0 GPIO_ACT 95 gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; 117 pinctrl-0 = <&pcie_pwr>; 96 pinctrl-0 = <&pcie_pwr>; 118 pinctrl-names = "default"; 97 pinctrl-names = "default"; 119 regulator-boot-on; 98 regulator-boot-on; 120 regulator-name = "pcie_power"; 99 regulator-name = "pcie_power"; 121 startup-delay-us = <10000>; 100 startup-delay-us = <10000>; 122 vin-supply = <&vcc5v0_perdev>; 101 vin-supply = <&vcc5v0_perdev>; 123 }; 102 }; 124 103 125 usblan_power: usblan-power { << 126 compatible = "regulator-fixed" << 127 enable-active-high; << 128 gpio = <&gpio1 RK_PC7 GPIO_ACT << 129 pinctrl-names = "default"; << 130 pinctrl-0 = <&usb_lan_en>; << 131 regulator-name = "usblan_power << 132 regulator-always-on; << 133 regulator-boot-on; << 134 vin-supply = <&vcc5v0_usb>; << 135 }; << 136 << 137 vcc1v8_sys_s0: vcc1v8-sys-s0 { 104 vcc1v8_sys_s0: vcc1v8-sys-s0 { 138 compatible = "regulator-fixed" 105 compatible = "regulator-fixed"; 139 regulator-name = "vcc1v8_sys_s 106 regulator-name = "vcc1v8_sys_s0"; 140 regulator-always-on; 107 regulator-always-on; 141 regulator-boot-on; 108 regulator-boot-on; 142 regulator-min-microvolt = <180 109 regulator-min-microvolt = <1800000>; 143 regulator-max-microvolt = <180 110 regulator-max-microvolt = <1800000>; 144 vin-supply = <&vcc1v8_sys_s3>; 111 vin-supply = <&vcc1v8_sys_s3>; 145 }; 112 }; 146 113 147 vcc3v0_sd: vcc3v0-sd { 114 vcc3v0_sd: vcc3v0-sd { 148 compatible = "regulator-fixed" 115 compatible = "regulator-fixed"; 149 enable-active-high; 116 enable-active-high; 150 gpio = <&gpio0 RK_PA1 GPIO_ACT 117 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; 151 regulator-name = "vcc3v0_sd"; 118 regulator-name = "vcc3v0_sd"; 152 regulator-boot-on; 119 regulator-boot-on; 153 regulator-min-microvolt = <300 120 regulator-min-microvolt = <3000000>; 154 regulator-max-microvolt = <300 121 regulator-max-microvolt = <3000000>; 155 pinctrl-names = "default"; 122 pinctrl-names = "default"; 156 pinctrl-0 = <&sdmmc0_pwr_h>; 123 pinctrl-0 = <&sdmmc0_pwr_h>; 157 vin-supply = <&vcc3v3_sys_s3>; 124 vin-supply = <&vcc3v3_sys_s3>; 158 }; 125 }; 159 126 160 vcc3v3_sys_s3: vcc_lan: vcc3v3-sys-s3 127 vcc3v3_sys_s3: vcc_lan: vcc3v3-sys-s3 { 161 compatible = "regulator-fixed" 128 compatible = "regulator-fixed"; 162 regulator-name = "vcc3v3_sys_s 129 regulator-name = "vcc3v3_sys_s3"; 163 regulator-always-on; 130 regulator-always-on; 164 regulator-boot-on; 131 regulator-boot-on; 165 regulator-min-microvolt = <330 132 regulator-min-microvolt = <3300000>; 166 regulator-max-microvolt = <330 133 regulator-max-microvolt = <3300000>; 167 vin-supply = <&vcc5v0_sys>; 134 vin-supply = <&vcc5v0_sys>; 168 135 169 regulator-state-mem { 136 regulator-state-mem { 170 regulator-on-in-suspen 137 regulator-on-in-suspend; 171 }; 138 }; 172 }; 139 }; 173 140 174 vcc5v0_perdev: vcc5v0-perdev { 141 vcc5v0_perdev: vcc5v0-perdev { 175 compatible = "regulator-fixed" 142 compatible = "regulator-fixed"; 176 regulator-name = "vcc5v0_perde 143 regulator-name = "vcc5v0_perdev"; 177 regulator-always-on; 144 regulator-always-on; 178 regulator-boot-on; 145 regulator-boot-on; 179 regulator-min-microvolt = <500 146 regulator-min-microvolt = <5000000>; 180 regulator-max-microvolt = <500 147 regulator-max-microvolt = <5000000>; 181 vin-supply = <&vcc12v_dcin_bku 148 vin-supply = <&vcc12v_dcin_bkup>; 182 }; 149 }; 183 150 184 vcc5v0_sys: vcc5v0-sys { 151 vcc5v0_sys: vcc5v0-sys { 185 compatible = "regulator-fixed" 152 compatible = "regulator-fixed"; 186 regulator-name = "vcc5v0_sys"; 153 regulator-name = "vcc5v0_sys"; 187 regulator-always-on; 154 regulator-always-on; 188 regulator-boot-on; 155 regulator-boot-on; 189 regulator-min-microvolt = <500 156 regulator-min-microvolt = <5000000>; 190 regulator-max-microvolt = <500 157 regulator-max-microvolt = <5000000>; 191 vin-supply = <&vcc12v_dcin_bku 158 vin-supply = <&vcc12v_dcin_bkup>; 192 159 193 regulator-state-mem { 160 regulator-state-mem { 194 regulator-on-in-suspen 161 regulator-on-in-suspend; 195 }; 162 }; 196 }; 163 }; 197 164 198 vcc5v0_usb: vcc5v0-usb { 165 vcc5v0_usb: vcc5v0-usb { 199 compatible = "regulator-fixed" 166 compatible = "regulator-fixed"; 200 enable-active-high; 167 enable-active-high; 201 gpio = <&gpio1 RK_PC6 GPIO_ACT 168 gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>; 202 pinctrl-names = "default"; 169 pinctrl-names = "default"; 203 pinctrl-0 = <&vcc5v0_usb_en>; 170 pinctrl-0 = <&vcc5v0_usb_en>; 204 regulator-name = "vcc5v0_usb"; 171 regulator-name = "vcc5v0_usb"; 205 regulator-always-on; 172 regulator-always-on; 206 regulator-boot-on; 173 regulator-boot-on; 207 regulator-min-microvolt = <500 174 regulator-min-microvolt = <5000000>; 208 regulator-max-microvolt = <500 175 regulator-max-microvolt = <5000000>; 209 vin-supply = <&vcc5v0_perdev>; 176 vin-supply = <&vcc5v0_perdev>; 210 }; 177 }; 211 178 212 vcc12v_dcin: vcc12v-dcin { 179 vcc12v_dcin: vcc12v-dcin { 213 compatible = "regulator-fixed" 180 compatible = "regulator-fixed"; 214 regulator-name = "vcc12v_dcin" 181 regulator-name = "vcc12v_dcin"; 215 regulator-always-on; 182 regulator-always-on; 216 regulator-boot-on; 183 regulator-boot-on; 217 regulator-min-microvolt = <120 184 regulator-min-microvolt = <12000000>; 218 regulator-max-microvolt = <120 185 regulator-max-microvolt = <12000000>; 219 }; 186 }; 220 187 221 vcc12v_dcin_bkup: vcc12v-dcin-bkup { 188 vcc12v_dcin_bkup: vcc12v-dcin-bkup { 222 compatible = "regulator-fixed" 189 compatible = "regulator-fixed"; 223 regulator-name = "vcc12v_dcin_ 190 regulator-name = "vcc12v_dcin_bkup"; 224 regulator-always-on; 191 regulator-always-on; 225 regulator-boot-on; 192 regulator-boot-on; 226 regulator-min-microvolt = <120 193 regulator-min-microvolt = <12000000>; 227 regulator-max-microvolt = <120 194 regulator-max-microvolt = <12000000>; 228 vin-supply = <&vcc12v_dcin>; 195 vin-supply = <&vcc12v_dcin>; 229 }; 196 }; 230 }; 197 }; 231 198 232 /* 199 /* 233 * The system doesn't run stable with cpu freq 200 * The system doesn't run stable with cpu freq enabled, so disallow the lower 234 * frequencies until this problem is properly 201 * frequencies until this problem is properly understood and resolved. 235 */ 202 */ 236 &cluster0_opp { 203 &cluster0_opp { 237 /delete-node/ opp00; 204 /delete-node/ opp00; 238 /delete-node/ opp01; 205 /delete-node/ opp01; 239 /delete-node/ opp02; 206 /delete-node/ opp02; 240 /delete-node/ opp03; 207 /delete-node/ opp03; 241 /delete-node/ opp04; 208 /delete-node/ opp04; 242 }; 209 }; 243 210 244 &cluster1_opp { 211 &cluster1_opp { 245 /delete-node/ opp00; 212 /delete-node/ opp00; 246 /delete-node/ opp01; 213 /delete-node/ opp01; 247 /delete-node/ opp02; 214 /delete-node/ opp02; 248 /delete-node/ opp03; 215 /delete-node/ opp03; 249 /delete-node/ opp04; 216 /delete-node/ opp04; 250 /delete-node/ opp05; 217 /delete-node/ opp05; 251 /delete-node/ opp06; 218 /delete-node/ opp06; 252 }; 219 }; 253 220 254 &cpu_b0 { 221 &cpu_b0 { 255 cpu-supply = <&vdd_cpu_b>; 222 cpu-supply = <&vdd_cpu_b>; 256 }; 223 }; 257 224 258 &cpu_b1 { 225 &cpu_b1 { 259 cpu-supply = <&vdd_cpu_b>; 226 cpu-supply = <&vdd_cpu_b>; 260 }; 227 }; 261 228 262 &cpu_l0 { 229 &cpu_l0 { 263 cpu-supply = <&vdd_cpu_l>; 230 cpu-supply = <&vdd_cpu_l>; 264 }; 231 }; 265 232 266 &cpu_l1 { 233 &cpu_l1 { 267 cpu-supply = <&vdd_cpu_l>; 234 cpu-supply = <&vdd_cpu_l>; 268 }; 235 }; 269 236 270 &cpu_l2 { 237 &cpu_l2 { 271 cpu-supply = <&vdd_cpu_l>; 238 cpu-supply = <&vdd_cpu_l>; 272 }; 239 }; 273 240 274 &cpu_l3 { 241 &cpu_l3 { 275 cpu-supply = <&vdd_cpu_l>; 242 cpu-supply = <&vdd_cpu_l>; 276 }; 243 }; 277 244 278 &emmc_phy { 245 &emmc_phy { 279 status = "okay"; 246 status = "okay"; 280 }; 247 }; 281 248 282 &gmac { 249 &gmac { 283 assigned-clock-parents = <&clkin_gmac> 250 assigned-clock-parents = <&clkin_gmac>; 284 assigned-clocks = <&cru SCLK_RMII_SRC> 251 assigned-clocks = <&cru SCLK_RMII_SRC>; 285 clock_in_out = "input"; 252 clock_in_out = "input"; 286 phy-mode = "rgmii"; 253 phy-mode = "rgmii"; 287 phy-supply = <&vcc_lan>; 254 phy-supply = <&vcc_lan>; 288 pinctrl-names = "default"; 255 pinctrl-names = "default"; 289 pinctrl-0 = <&rgmii_pins &gphy_reset>; 256 pinctrl-0 = <&rgmii_pins &gphy_reset>; 290 rx_delay = <0x20>; 257 rx_delay = <0x20>; 291 tx_delay = <0x28>; 258 tx_delay = <0x28>; 292 snps,reset-active-low; 259 snps,reset-active-low; 293 snps,reset-delays-us = <0 10000 50000> 260 snps,reset-delays-us = <0 10000 50000>; 294 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ 261 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 295 status = "okay"; 262 status = "okay"; 296 }; 263 }; 297 264 298 &i2c0 { 265 &i2c0 { 299 clock-frequency = <400000>; 266 clock-frequency = <400000>; 300 i2c-scl-rising-time-ns = <168>; 267 i2c-scl-rising-time-ns = <168>; 301 i2c-scl-falling-time-ns = <4>; 268 i2c-scl-falling-time-ns = <4>; 302 status = "okay"; 269 status = "okay"; 303 270 304 rk808: pmic@1b { 271 rk808: pmic@1b { 305 compatible = "rockchip,rk808"; 272 compatible = "rockchip,rk808"; 306 reg = <0x1b>; 273 reg = <0x1b>; 307 interrupt-parent = <&gpio0>; 274 interrupt-parent = <&gpio0>; 308 interrupts = <10 IRQ_TYPE_LEVE 275 interrupts = <10 IRQ_TYPE_LEVEL_LOW>; 309 clock-output-names = "xin32k", 276 clock-output-names = "xin32k", "rk808-clkout2"; 310 pinctrl-names = "default"; 277 pinctrl-names = "default"; 311 pinctrl-0 = <&pmic_int_l>; 278 pinctrl-0 = <&pmic_int_l>; 312 rockchip,system-power-controll 279 rockchip,system-power-controller; 313 vcc1-supply = <&vcc5v0_sys>; 280 vcc1-supply = <&vcc5v0_sys>; 314 vcc2-supply = <&vcc5v0_sys>; 281 vcc2-supply = <&vcc5v0_sys>; 315 vcc3-supply = <&vcc5v0_sys>; 282 vcc3-supply = <&vcc5v0_sys>; 316 vcc4-supply = <&vcc5v0_sys>; 283 vcc4-supply = <&vcc5v0_sys>; 317 vcc6-supply = <&vcc5v0_sys>; 284 vcc6-supply = <&vcc5v0_sys>; 318 vcc7-supply = <&vcc5v0_sys>; 285 vcc7-supply = <&vcc5v0_sys>; 319 vcc8-supply = <&vcc3v3_sys_s3> 286 vcc8-supply = <&vcc3v3_sys_s3>; 320 vcc9-supply = <&vcc5v0_sys>; 287 vcc9-supply = <&vcc5v0_sys>; 321 vcc10-supply = <&vcc5v0_sys>; 288 vcc10-supply = <&vcc5v0_sys>; 322 vcc11-supply = <&vcc5v0_sys>; 289 vcc11-supply = <&vcc5v0_sys>; 323 vcc12-supply = <&vcc3v3_sys_s3 290 vcc12-supply = <&vcc3v3_sys_s3>; 324 vddio-supply = <&vcc3v0_s3>; 291 vddio-supply = <&vcc3v0_s3>; 325 wakeup-source; 292 wakeup-source; 326 #clock-cells = <1>; 293 #clock-cells = <1>; 327 294 328 regulators { 295 regulators { 329 vdd_cpu_l: DCDC_REG2 { 296 vdd_cpu_l: DCDC_REG2 { 330 regulator-name 297 regulator-name = "vdd_cpu_l"; 331 regulator-alwa 298 regulator-always-on; 332 regulator-boot 299 regulator-boot-on; 333 regulator-min- 300 regulator-min-microvolt = <750000>; 334 regulator-max- 301 regulator-max-microvolt = <1350000>; 335 regulator-ramp 302 regulator-ramp-delay = <6001>; 336 303 337 regulator-stat 304 regulator-state-mem { 338 regula 305 regulator-off-in-suspend; 339 }; 306 }; 340 }; 307 }; 341 308 342 vcc1v8_sys_s3: DCDC_RE 309 vcc1v8_sys_s3: DCDC_REG4 { 343 regulator-name 310 regulator-name = "vcc1v8_sys_s3"; 344 regulator-alwa 311 regulator-always-on; 345 regulator-boot 312 regulator-boot-on; 346 regulator-min- 313 regulator-min-microvolt = <1800000>; 347 regulator-max- 314 regulator-max-microvolt = <1800000>; 348 315 349 regulator-stat 316 regulator-state-mem { 350 regula 317 regulator-on-in-suspend; 351 regula 318 regulator-suspend-microvolt = <1800000>; 352 }; 319 }; 353 }; 320 }; 354 321 355 vcc_sdio_s0: LDO_REG4 322 vcc_sdio_s0: LDO_REG4 { 356 regulator-name 323 regulator-name = "vcc_sdio_s0"; 357 regulator-alwa 324 regulator-always-on; 358 regulator-boot 325 regulator-boot-on; 359 regulator-min- 326 regulator-min-microvolt = <1800000>; 360 regulator-max- 327 regulator-max-microvolt = <3000000>; 361 328 362 regulator-stat 329 regulator-state-mem { 363 regula 330 regulator-on-in-suspend; 364 regula 331 regulator-suspend-microvolt = <3000000>; 365 }; 332 }; 366 }; 333 }; 367 334 368 vcc3v0_s3: LDO_REG8 { 335 vcc3v0_s3: LDO_REG8 { 369 regulator-name 336 regulator-name = "vcc3v0_s3"; 370 regulator-alwa 337 regulator-always-on; 371 regulator-boot 338 regulator-boot-on; 372 regulator-min- 339 regulator-min-microvolt = <3000000>; 373 regulator-max- 340 regulator-max-microvolt = <3000000>; 374 341 375 regulator-stat 342 regulator-state-mem { 376 regula 343 regulator-on-in-suspend; 377 regula 344 regulator-suspend-microvolt = <3000000>; 378 }; 345 }; 379 }; 346 }; 380 }; 347 }; 381 }; 348 }; 382 349 383 vdd_cpu_b: regulator@40 { 350 vdd_cpu_b: regulator@40 { 384 compatible = "silergy,syr827"; 351 compatible = "silergy,syr827"; 385 reg = <0x40>; 352 reg = <0x40>; 386 fcs,suspend-voltage-selector = 353 fcs,suspend-voltage-selector = <1>; 387 regulator-name = "vdd_cpu_b"; 354 regulator-name = "vdd_cpu_b"; 388 regulator-always-on; 355 regulator-always-on; 389 regulator-boot-on; 356 regulator-boot-on; 390 regulator-min-microvolt = <712 357 regulator-min-microvolt = <712500>; 391 regulator-max-microvolt = <150 358 regulator-max-microvolt = <1500000>; 392 regulator-ramp-delay = <1000>; 359 regulator-ramp-delay = <1000>; 393 vin-supply = <&vcc5v0_sys>; 360 vin-supply = <&vcc5v0_sys>; 394 361 395 regulator-state-mem { 362 regulator-state-mem { 396 regulator-off-in-suspe 363 regulator-off-in-suspend; 397 }; 364 }; 398 }; 365 }; 399 }; 366 }; 400 367 401 &i2c2 { 368 &i2c2 { 402 clock-frequency = <400000>; 369 clock-frequency = <400000>; 403 i2c-scl-rising-time-ns = <160>; 370 i2c-scl-rising-time-ns = <160>; 404 i2c-scl-falling-time-ns = <30>; 371 i2c-scl-falling-time-ns = <30>; 405 status = "okay"; 372 status = "okay"; 406 373 407 temp@4c { 374 temp@4c { 408 compatible = "national,lm75"; 375 compatible = "national,lm75"; 409 reg = <0x4c>; 376 reg = <0x4c>; 410 }; 377 }; 411 }; 378 }; 412 379 413 &io_domains { 380 &io_domains { 414 audio-supply = <&vcc1v8_sys_s0>; 381 audio-supply = <&vcc1v8_sys_s0>; 415 bt656-supply = <&vcc1v8_sys_s0>; 382 bt656-supply = <&vcc1v8_sys_s0>; 416 gpio1830-supply = <&vcc3v0_s3>; 383 gpio1830-supply = <&vcc3v0_s3>; 417 sdmmc-supply = <&vcc_sdio_s0>; 384 sdmmc-supply = <&vcc_sdio_s0>; 418 status = "okay"; 385 status = "okay"; 419 }; 386 }; 420 387 421 &pcie_phy { 388 &pcie_phy { 422 status = "okay"; 389 status = "okay"; 423 }; 390 }; 424 391 425 &pcie0 { 392 &pcie0 { 426 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_ << 427 max-link-speed = <2>; << 428 num-lanes = <2>; 393 num-lanes = <2>; 429 pinctrl-names = "default"; << 430 status = "okay"; 394 status = "okay"; 431 395 432 vpcie12v-supply = <&vcc12v_dcin>; 396 vpcie12v-supply = <&vcc12v_dcin>; 433 vpcie3v3-supply = <&pcie_power>; 397 vpcie3v3-supply = <&pcie_power>; 434 vpcie1v8-supply = <&avdd_1v8_s0>; 398 vpcie1v8-supply = <&avdd_1v8_s0>; 435 vpcie0v9-supply = <&avdd_0v9_s0>; 399 vpcie0v9-supply = <&avdd_0v9_s0>; 436 }; 400 }; 437 401 438 &pinctrl { 402 &pinctrl { 439 gmac { 403 gmac { 440 gphy_reset: gphy-reset { 404 gphy_reset: gphy-reset { 441 rockchip,pins = <3 RK_ 405 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>; 442 }; 406 }; 443 }; 407 }; 444 408 445 leds { 409 leds { 446 sys_grn_led_on: sys-grn-led-on 410 sys_grn_led_on: sys-grn-led-on { 447 rockchip,pins = <0 RK_ 411 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; 448 }; 412 }; 449 413 450 sys_red_led_on: sys-red-led-on 414 sys_red_led_on: sys-red-led-on { 451 rockchip,pins = <0 RK_ 415 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>; 452 }; 416 }; 453 }; 417 }; 454 418 455 pcie { 419 pcie { 456 pcie_pwr: pcie-pwr { 420 pcie_pwr: pcie-pwr { 457 rockchip,pins = 421 rockchip,pins = 458 <1 RK_PD0 RK_F 422 <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 459 }; 423 }; 460 }; 424 }; 461 425 462 pmic { 426 pmic { 463 pmic_int_l: pmic-int-l { 427 pmic_int_l: pmic-int-l { 464 rockchip,pins = <0 RK_ 428 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 465 }; 429 }; 466 }; 430 }; 467 431 468 power { 432 power { 469 hdd_a_power_en: hdd-a-power-en << 470 rockchip,pins = <1 RK_ << 471 }; << 472 << 473 hdd_b_power_en: hdd-b-power-en << 474 rockchip,pins = <1 RK_ << 475 }; << 476 << 477 vcc5v0_usb_en: vcc5v0-usb-en { 433 vcc5v0_usb_en: vcc5v0-usb-en { 478 rockchip,pins = <1 RK_ 434 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 479 }; 435 }; 480 << 481 usb_lan_en: usb-lan-en { << 482 rockchip,pins = <1 RK_ << 483 }; << 484 }; 436 }; 485 437 486 vcc3v0-sd { 438 vcc3v0-sd { 487 sdmmc0_pwr_h: sdmmc0-pwr-h { 439 sdmmc0_pwr_h: sdmmc0-pwr-h { 488 rockchip,pins = <0 RK_ 440 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; 489 }; 441 }; 490 }; 442 }; 491 }; 443 }; 492 444 493 &pmu_io_domains { 445 &pmu_io_domains { 494 pmu1830-supply = <&vcc3v0_s3>; 446 pmu1830-supply = <&vcc3v0_s3>; 495 status = "okay"; 447 status = "okay"; 496 }; 448 }; 497 449 498 &pwm0 { 450 &pwm0 { 499 /* pwm-fan on P7 */ 451 /* pwm-fan on P7 */ 500 status = "okay"; 452 status = "okay"; 501 }; 453 }; 502 454 503 &pwm1 { 455 &pwm1 { 504 /* pwm-fan on P6 */ 456 /* pwm-fan on P6 */ 505 status = "okay"; 457 status = "okay"; 506 }; 458 }; 507 459 508 &sdhci { 460 &sdhci { 509 bus-width = <8>; 461 bus-width = <8>; 510 mmc-hs200-1_8v; 462 mmc-hs200-1_8v; 511 non-removable; 463 non-removable; 512 vqmmc-supply = <&vcc1v8_sys_s0>; 464 vqmmc-supply = <&vcc1v8_sys_s0>; 513 status = "okay"; 465 status = "okay"; 514 }; 466 }; 515 467 516 &sdmmc { 468 &sdmmc { 517 bus-width = <4>; 469 bus-width = <4>; 518 cap-sd-highspeed; 470 cap-sd-highspeed; 519 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_ 471 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; 520 disable-wp; 472 disable-wp; 521 pinctrl-names = "default"; 473 pinctrl-names = "default"; 522 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sd 474 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 523 vmmc-supply = <&vcc3v0_sd>; 475 vmmc-supply = <&vcc3v0_sd>; 524 vqmmc-supply = <&vcc_sdio_s0>; 476 vqmmc-supply = <&vcc_sdio_s0>; 525 status = "okay"; 477 status = "okay"; 526 }; 478 }; 527 479 528 &spi1 { 480 &spi1 { 529 status = "okay"; 481 status = "okay"; 530 482 531 spiflash: flash@0 { 483 spiflash: flash@0 { 532 compatible = "jedec,spi-nor"; 484 compatible = "jedec,spi-nor"; 533 reg = <0x0>; 485 reg = <0x0>; 534 spi-max-frequency = <25000000> 486 spi-max-frequency = <25000000>; 535 status = "okay"; 487 status = "okay"; 536 m25p,fast-read; 488 m25p,fast-read; 537 }; 489 }; 538 }; 490 }; 539 491 540 /* UEXT connector */ 492 /* UEXT connector */ 541 &spi2 { 493 &spi2 { 542 status = "okay"; 494 status = "okay"; 543 }; 495 }; 544 496 545 &spi5 { 497 &spi5 { 546 status = "okay"; 498 status = "okay"; 547 }; 499 }; 548 500 549 &tcphy1 { 501 &tcphy1 { 550 /* phy for &usbdrd_dwc3_1 */ 502 /* phy for &usbdrd_dwc3_1 */ 551 status = "okay"; 503 status = "okay"; 552 }; 504 }; 553 505 554 &tsadc { 506 &tsadc { 555 /* tshut mode 0:CRU 1:GPIO */ 507 /* tshut mode 0:CRU 1:GPIO */ 556 rockchip,hw-tshut-mode = <1>; 508 rockchip,hw-tshut-mode = <1>; 557 /* tshut polarity 0:LOW 1:HIGH */ 509 /* tshut polarity 0:LOW 1:HIGH */ 558 rockchip,hw-tshut-polarity = <1>; 510 rockchip,hw-tshut-polarity = <1>; 559 status = "okay"; 511 status = "okay"; 560 }; 512 }; 561 513 562 &u2phy1 { 514 &u2phy1 { 563 status = "okay"; 515 status = "okay"; 564 516 565 otg-port { 517 otg-port { 566 /* phy for &usbdrd_dwc3_1 */ 518 /* phy for &usbdrd_dwc3_1 */ 567 phy-supply = <&vcc5v0_usb>; 519 phy-supply = <&vcc5v0_usb>; 568 status = "okay"; 520 status = "okay"; 569 }; 521 }; 570 }; 522 }; 571 523 572 &uart2 { 524 &uart2 { 573 status = "okay"; 525 status = "okay"; 574 }; 526 }; 575 527 576 &usbdrd3_1 { 528 &usbdrd3_1 { 577 status = "okay"; 529 status = "okay"; 578 530 579 usb@fe900000 { 531 usb@fe900000 { 580 dr_mode = "host"; 532 dr_mode = "host"; 581 status = "okay"; 533 status = "okay"; 582 #address-cells = <1>; << 583 #size-cells = <0>; << 584 << 585 hub@1 { << 586 compatible = "usb2109, << 587 reg = <1>; << 588 #address-cells = <1>; << 589 #size-cells = <0>; << 590 << 591 port@1 { << 592 reg = <1>; << 593 #trigger-sourc << 594 }; << 595 << 596 port@2 { << 597 reg = <2>; << 598 #trigger-sourc << 599 }; << 600 << 601 port@3 { << 602 reg = <3>; << 603 #trigger-sourc << 604 }; << 605 << 606 device@4 { << 607 compatible = " << 608 reg = <4>; << 609 #address-cells << 610 #size-cells = << 611 << 612 interface@0 { << 613 compat << 614 reg = << 615 }; << 616 }; << 617 }; << 618 }; 534 }; 619 }; 535 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.