1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2017 Fuzhou Rockchip Electron 3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. 4 * Copyright (c) 2018 Akash Gajjar <Akash_Gajja 4 * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com> 5 */ 5 */ 6 6 7 #include <dt-bindings/input/linux-event-codes. 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/pwm/pwm.h> 8 #include <dt-bindings/pwm/pwm.h> 9 #include "rk3399.dtsi" 9 #include "rk3399.dtsi" >> 10 #include "rk3399-opp.dtsi" 10 11 11 / { 12 / { 12 aliases { 13 aliases { 13 ethernet0 = &gmac; << 14 mmc0 = &sdio0; 14 mmc0 = &sdio0; 15 mmc1 = &sdmmc; 15 mmc1 = &sdmmc; 16 mmc2 = &sdhci; 16 mmc2 = &sdhci; 17 }; 17 }; 18 18 19 chosen { 19 chosen { 20 stdout-path = "serial2:1500000 20 stdout-path = "serial2:1500000n8"; 21 }; 21 }; 22 22 23 /* enable for panel backlight support << 24 backlight: backlight { << 25 compatible = "pwm-backlight"; << 26 brightness-levels = <0 4 8 16 << 27 default-brightness-level = <5> << 28 pwms = <&pwm0 0 1000000 0>; << 29 status = "disabled"; << 30 }; << 31 << 32 clkin_gmac: external-gmac-clock { 23 clkin_gmac: external-gmac-clock { 33 compatible = "fixed-clock"; 24 compatible = "fixed-clock"; 34 clock-frequency = <125000000>; 25 clock-frequency = <125000000>; 35 clock-output-names = "clkin_gm 26 clock-output-names = "clkin_gmac"; 36 #clock-cells = <0>; 27 #clock-cells = <0>; 37 }; 28 }; 38 29 39 gpio-keys { 30 gpio-keys { 40 compatible = "gpio-keys"; 31 compatible = "gpio-keys"; 41 autorepeat; 32 autorepeat; 42 pinctrl-names = "default"; 33 pinctrl-names = "default"; 43 pinctrl-0 = <&pwrbtn>; 34 pinctrl-0 = <&pwrbtn>; 44 35 45 key-power { !! 36 power { 46 debounce-interval = <1 37 debounce-interval = <100>; 47 gpios = <&gpio0 RK_PA5 38 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 48 label = "GPIO Key Powe 39 label = "GPIO Key Power"; 49 linux,code = <KEY_POWE 40 linux,code = <KEY_POWER>; 50 wakeup-source; 41 wakeup-source; 51 }; 42 }; 52 }; 43 }; 53 44 54 ir-receiver { 45 ir-receiver { 55 compatible = "gpio-ir-receiver 46 compatible = "gpio-ir-receiver"; 56 gpios = <&gpio0 RK_PA6 GPIO_AC 47 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; 57 pinctrl-0 = <&ir_int>; 48 pinctrl-0 = <&ir_int>; 58 pinctrl-names = "default"; 49 pinctrl-names = "default"; 59 }; 50 }; 60 51 61 leds { 52 leds { 62 compatible = "gpio-leds"; 53 compatible = "gpio-leds"; 63 pinctrl-names = "default"; 54 pinctrl-names = "default"; 64 pinctrl-0 = <&work_led_pin>, < 55 pinctrl-0 = <&work_led_pin>, <&diy_led_pin>; 65 56 66 work_led: led-0 { 57 work_led: led-0 { 67 label = "work"; 58 label = "work"; 68 default-state = "on"; 59 default-state = "on"; 69 gpios = <&gpio0 RK_PB3 60 gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; 70 }; 61 }; 71 62 72 diy_led: led-1 { 63 diy_led: led-1 { 73 label = "diy"; 64 label = "diy"; 74 default-state = "off"; 65 default-state = "off"; 75 gpios = <&gpio0 RK_PA2 66 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; 76 }; 67 }; 77 }; 68 }; 78 69 79 fan: pwm-fan { 70 fan: pwm-fan { 80 compatible = "pwm-fan"; 71 compatible = "pwm-fan"; 81 cooling-levels = <0 100 150 20 72 cooling-levels = <0 100 150 200 255>; 82 #cooling-cells = <2>; 73 #cooling-cells = <2>; 83 fan-supply = <&vcc12v_dcin>; 74 fan-supply = <&vcc12v_dcin>; 84 pwms = <&pwm1 0 50000 0>; 75 pwms = <&pwm1 0 50000 0>; 85 }; 76 }; 86 77 87 sdio_pwrseq: sdio-pwrseq { 78 sdio_pwrseq: sdio-pwrseq { 88 compatible = "mmc-pwrseq-simpl 79 compatible = "mmc-pwrseq-simple"; 89 clocks = <&rk808 1>; 80 clocks = <&rk808 1>; 90 clock-names = "ext_clock"; 81 clock-names = "ext_clock"; 91 pinctrl-names = "default"; 82 pinctrl-names = "default"; 92 pinctrl-0 = <&wifi_enable_h>; 83 pinctrl-0 = <&wifi_enable_h>; 93 reset-gpios = <&gpio0 RK_PB2 G 84 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 94 }; 85 }; 95 86 96 sound { 87 sound { 97 compatible = "audio-graph-card 88 compatible = "audio-graph-card"; 98 label = "Analog"; 89 label = "Analog"; 99 dais = <&i2s1_p0>; 90 dais = <&i2s1_p0>; 100 }; 91 }; 101 92 102 sound-dit { 93 sound-dit { 103 compatible = "audio-graph-card 94 compatible = "audio-graph-card"; 104 label = "SPDIF"; 95 label = "SPDIF"; 105 dais = <&spdif_p0>; 96 dais = <&spdif_p0>; 106 }; 97 }; 107 98 108 spdif-dit { 99 spdif-dit { 109 compatible = "linux,spdif-dit" 100 compatible = "linux,spdif-dit"; 110 #sound-dai-cells = <0>; 101 #sound-dai-cells = <0>; 111 102 112 port { 103 port { 113 dit_p0_0: endpoint { 104 dit_p0_0: endpoint { 114 remote-endpoin 105 remote-endpoint = <&spdif_p0_0>; 115 }; 106 }; 116 }; 107 }; 117 }; 108 }; 118 109 119 avdd: avdd-regulator { << 120 compatible = "regulator-fixed" << 121 regulator-name = "avdd"; << 122 regulator-min-microvolt = <110 << 123 regulator-max-microvolt = <110 << 124 vin-supply = <&vcc3v3_s0>; << 125 }; << 126 << 127 vcc12v_dcin: vcc12v-dcin { 110 vcc12v_dcin: vcc12v-dcin { 128 compatible = "regulator-fixed" 111 compatible = "regulator-fixed"; 129 regulator-name = "vcc12v_dcin" 112 regulator-name = "vcc12v_dcin"; 130 regulator-always-on; 113 regulator-always-on; 131 regulator-boot-on; 114 regulator-boot-on; 132 regulator-min-microvolt = <120 115 regulator-min-microvolt = <12000000>; 133 regulator-max-microvolt = <120 116 regulator-max-microvolt = <12000000>; 134 }; 117 }; 135 118 136 /* switched by pmic_sleep */ 119 /* switched by pmic_sleep */ 137 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { 120 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { 138 compatible = "regulator-fixed" 121 compatible = "regulator-fixed"; 139 regulator-name = "vcc1v8_s3"; 122 regulator-name = "vcc1v8_s3"; 140 regulator-always-on; 123 regulator-always-on; 141 regulator-boot-on; 124 regulator-boot-on; 142 regulator-min-microvolt = <180 125 regulator-min-microvolt = <1800000>; 143 regulator-max-microvolt = <180 126 regulator-max-microvolt = <1800000>; 144 vin-supply = <&vcc_1v8>; 127 vin-supply = <&vcc_1v8>; 145 }; 128 }; 146 129 147 /* micro SD card power */ 130 /* micro SD card power */ 148 vcc3v0_sd: vcc3v0-sd { 131 vcc3v0_sd: vcc3v0-sd { 149 compatible = "regulator-fixed" 132 compatible = "regulator-fixed"; 150 enable-active-high; 133 enable-active-high; 151 gpio = <&gpio0 RK_PA1 GPIO_ACT 134 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; 152 pinctrl-names = "default"; 135 pinctrl-names = "default"; 153 pinctrl-0 = <&sdmmc0_pwr_h>; 136 pinctrl-0 = <&sdmmc0_pwr_h>; 154 regulator-name = "vcc3v0_sd"; 137 regulator-name = "vcc3v0_sd"; 155 regulator-always-on; 138 regulator-always-on; 156 regulator-min-microvolt = <300 139 regulator-min-microvolt = <3000000>; 157 regulator-max-microvolt = <300 140 regulator-max-microvolt = <3000000>; 158 vin-supply = <&vcc3v3_sys>; 141 vin-supply = <&vcc3v3_sys>; 159 142 160 regulator-state-mem { 143 regulator-state-mem { 161 regulator-off-in-suspe 144 regulator-off-in-suspend; 162 }; 145 }; 163 }; 146 }; 164 147 165 vcc3v3_pcie: vcc3v3-pcie-regulator { 148 vcc3v3_pcie: vcc3v3-pcie-regulator { 166 compatible = "regulator-fixed" 149 compatible = "regulator-fixed"; 167 enable-active-high; 150 enable-active-high; 168 gpio = <&gpio1 RK_PD0 GPIO_ACT 151 gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; 169 pinctrl-names = "default"; 152 pinctrl-names = "default"; 170 pinctrl-0 = <&pcie_pwr_en>; 153 pinctrl-0 = <&pcie_pwr_en>; 171 regulator-name = "vcc3v3_pcie" 154 regulator-name = "vcc3v3_pcie"; 172 regulator-always-on; 155 regulator-always-on; 173 regulator-boot-on; 156 regulator-boot-on; 174 vin-supply = <&vcc12v_dcin>; 157 vin-supply = <&vcc12v_dcin>; 175 }; 158 }; 176 159 177 vcc3v3_sys: vcc3v3-sys { 160 vcc3v3_sys: vcc3v3-sys { 178 compatible = "regulator-fixed" 161 compatible = "regulator-fixed"; 179 regulator-name = "vcc3v3_sys"; 162 regulator-name = "vcc3v3_sys"; 180 regulator-always-on; 163 regulator-always-on; 181 regulator-boot-on; 164 regulator-boot-on; 182 regulator-min-microvolt = <330 165 regulator-min-microvolt = <3300000>; 183 regulator-max-microvolt = <330 166 regulator-max-microvolt = <3300000>; 184 vin-supply = <&vcc5v0_sys>; 167 vin-supply = <&vcc5v0_sys>; 185 }; 168 }; 186 169 187 /* Actually 3 regulators (host0, 1, 2) 170 /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */ 188 vcc5v0_host: vcc5v0-host-regulator { 171 vcc5v0_host: vcc5v0-host-regulator { 189 compatible = "regulator-fixed" 172 compatible = "regulator-fixed"; 190 enable-active-high; 173 enable-active-high; 191 gpio = <&gpio4 RK_PD2 GPIO_ACT 174 gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; 192 pinctrl-names = "default"; 175 pinctrl-names = "default"; 193 pinctrl-0 = <&vcc5v0_host_en>; 176 pinctrl-0 = <&vcc5v0_host_en>; 194 regulator-name = "vcc5v0_host" 177 regulator-name = "vcc5v0_host"; 195 regulator-always-on; 178 regulator-always-on; 196 vin-supply = <&vcc5v0_usb>; 179 vin-supply = <&vcc5v0_usb>; 197 }; 180 }; 198 181 199 vcc5v0_typec: vcc5v0-typec-regulator { 182 vcc5v0_typec: vcc5v0-typec-regulator { 200 compatible = "regulator-fixed" 183 compatible = "regulator-fixed"; 201 enable-active-high; 184 enable-active-high; 202 gpio = <&gpio1 RK_PA3 GPIO_ACT 185 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; 203 pinctrl-names = "default"; 186 pinctrl-names = "default"; 204 pinctrl-0 = <&vcc5v0_typec_en> 187 pinctrl-0 = <&vcc5v0_typec_en>; 205 regulator-name = "vcc5v0_typec 188 regulator-name = "vcc5v0_typec"; 206 regulator-always-on; 189 regulator-always-on; 207 vin-supply = <&vcc5v0_usb>; 190 vin-supply = <&vcc5v0_usb>; 208 }; 191 }; 209 192 210 vcc5v0_sys: vcc5v0-sys { 193 vcc5v0_sys: vcc5v0-sys { 211 compatible = "regulator-fixed" 194 compatible = "regulator-fixed"; 212 regulator-name = "vcc5v0_sys"; 195 regulator-name = "vcc5v0_sys"; 213 regulator-always-on; 196 regulator-always-on; 214 regulator-boot-on; 197 regulator-boot-on; 215 regulator-min-microvolt = <500 198 regulator-min-microvolt = <5000000>; 216 regulator-max-microvolt = <500 199 regulator-max-microvolt = <5000000>; 217 vin-supply = <&vcc12v_dcin>; 200 vin-supply = <&vcc12v_dcin>; 218 }; 201 }; 219 202 220 vcc5v0_usb: vcc5v0-usb { 203 vcc5v0_usb: vcc5v0-usb { 221 compatible = "regulator-fixed" 204 compatible = "regulator-fixed"; 222 regulator-name = "vcc5v0_usb"; 205 regulator-name = "vcc5v0_usb"; 223 regulator-always-on; 206 regulator-always-on; 224 regulator-boot-on; 207 regulator-boot-on; 225 regulator-min-microvolt = <500 208 regulator-min-microvolt = <5000000>; 226 regulator-max-microvolt = <500 209 regulator-max-microvolt = <5000000>; 227 vin-supply = <&vcc12v_dcin>; 210 vin-supply = <&vcc12v_dcin>; 228 }; 211 }; 229 212 230 vdd_log: vdd-log { 213 vdd_log: vdd-log { 231 compatible = "pwm-regulator"; 214 compatible = "pwm-regulator"; 232 pwms = <&pwm2 0 25000 1>; 215 pwms = <&pwm2 0 25000 1>; 233 pwm-supply = <&vcc5v0_sys>; << 234 regulator-name = "vdd_log"; 216 regulator-name = "vdd_log"; 235 regulator-always-on; 217 regulator-always-on; 236 regulator-boot-on; 218 regulator-boot-on; 237 regulator-min-microvolt = <800 219 regulator-min-microvolt = <800000>; 238 regulator-max-microvolt = <170 220 regulator-max-microvolt = <1700000>; >> 221 vin-supply = <&vcc5v0_sys>; 239 }; 222 }; 240 }; 223 }; 241 224 242 &cpu_l0 { 225 &cpu_l0 { 243 cpu-supply = <&vdd_cpu_l>; 226 cpu-supply = <&vdd_cpu_l>; 244 }; 227 }; 245 228 246 &cpu_l1 { 229 &cpu_l1 { 247 cpu-supply = <&vdd_cpu_l>; 230 cpu-supply = <&vdd_cpu_l>; 248 }; 231 }; 249 232 250 &cpu_l2 { 233 &cpu_l2 { 251 cpu-supply = <&vdd_cpu_l>; 234 cpu-supply = <&vdd_cpu_l>; 252 }; 235 }; 253 236 254 &cpu_l3 { 237 &cpu_l3 { 255 cpu-supply = <&vdd_cpu_l>; 238 cpu-supply = <&vdd_cpu_l>; 256 }; 239 }; 257 240 258 &cpu_b0 { 241 &cpu_b0 { 259 cpu-supply = <&vdd_cpu_b>; 242 cpu-supply = <&vdd_cpu_b>; 260 }; 243 }; 261 244 262 &cpu_b1 { 245 &cpu_b1 { 263 cpu-supply = <&vdd_cpu_b>; 246 cpu-supply = <&vdd_cpu_b>; 264 }; 247 }; 265 248 266 &cpu_thermal { 249 &cpu_thermal { 267 trips { 250 trips { 268 cpu_warm: cpu_warm { 251 cpu_warm: cpu_warm { 269 temperature = <55000>; 252 temperature = <55000>; 270 hysteresis = <2000>; 253 hysteresis = <2000>; 271 type = "active"; 254 type = "active"; 272 }; 255 }; 273 256 274 cpu_hot: cpu_hot { 257 cpu_hot: cpu_hot { 275 temperature = <65000>; 258 temperature = <65000>; 276 hysteresis = <2000>; 259 hysteresis = <2000>; 277 type = "active"; 260 type = "active"; 278 }; 261 }; 279 }; 262 }; 280 263 281 cooling-maps { 264 cooling-maps { 282 map2 { 265 map2 { 283 trip = <&cpu_warm>; 266 trip = <&cpu_warm>; 284 cooling-device = <&fan 267 cooling-device = <&fan THERMAL_NO_LIMIT 1>; 285 }; 268 }; 286 269 287 map3 { 270 map3 { 288 trip = <&cpu_hot>; 271 trip = <&cpu_hot>; 289 cooling-device = <&fan 272 cooling-device = <&fan 2 THERMAL_NO_LIMIT>; 290 }; 273 }; 291 }; 274 }; 292 }; 275 }; 293 276 294 &emmc_phy { 277 &emmc_phy { 295 status = "okay"; 278 status = "okay"; 296 }; 279 }; 297 280 298 &gmac { 281 &gmac { 299 assigned-clocks = <&cru SCLK_RMII_SRC> 282 assigned-clocks = <&cru SCLK_RMII_SRC>; 300 assigned-clock-parents = <&clkin_gmac> 283 assigned-clock-parents = <&clkin_gmac>; 301 clock_in_out = "input"; 284 clock_in_out = "input"; 302 phy-supply = <&vcc_lan>; 285 phy-supply = <&vcc_lan>; 303 phy-mode = "rgmii"; 286 phy-mode = "rgmii"; 304 pinctrl-names = "default"; 287 pinctrl-names = "default"; 305 pinctrl-0 = <&rgmii_pins>; 288 pinctrl-0 = <&rgmii_pins>; 306 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ 289 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 307 snps,reset-active-low; 290 snps,reset-active-low; 308 snps,reset-delays-us = <0 10000 50000> 291 snps,reset-delays-us = <0 10000 50000>; 309 tx_delay = <0x28>; 292 tx_delay = <0x28>; 310 rx_delay = <0x11>; 293 rx_delay = <0x11>; 311 status = "okay"; 294 status = "okay"; 312 }; 295 }; 313 296 314 &hdmi { 297 &hdmi { 315 ddc-i2c-bus = <&i2c3>; 298 ddc-i2c-bus = <&i2c3>; 316 pinctrl-names = "default"; 299 pinctrl-names = "default"; 317 pinctrl-0 = <&hdmi_cec>; 300 pinctrl-0 = <&hdmi_cec>; 318 status = "okay"; 301 status = "okay"; 319 }; 302 }; 320 303 321 &hdmi_sound { 304 &hdmi_sound { 322 status = "okay"; 305 status = "okay"; 323 }; 306 }; 324 307 325 &gpu { 308 &gpu { 326 mali-supply = <&vdd_gpu>; 309 mali-supply = <&vdd_gpu>; 327 status = "okay"; 310 status = "okay"; 328 }; 311 }; 329 312 330 &i2c0 { 313 &i2c0 { 331 clock-frequency = <400000>; 314 clock-frequency = <400000>; 332 i2c-scl-rising-time-ns = <168>; 315 i2c-scl-rising-time-ns = <168>; 333 i2c-scl-falling-time-ns = <4>; 316 i2c-scl-falling-time-ns = <4>; 334 status = "okay"; 317 status = "okay"; 335 318 336 rk808: pmic@1b { 319 rk808: pmic@1b { 337 compatible = "rockchip,rk808"; 320 compatible = "rockchip,rk808"; 338 reg = <0x1b>; 321 reg = <0x1b>; 339 interrupt-parent = <&gpio3>; 322 interrupt-parent = <&gpio3>; 340 interrupts = <10 IRQ_TYPE_LEVE 323 interrupts = <10 IRQ_TYPE_LEVEL_LOW>; 341 #clock-cells = <1>; 324 #clock-cells = <1>; 342 clock-output-names = "xin32k", 325 clock-output-names = "xin32k", "rk808-clkout2"; 343 pinctrl-names = "default"; 326 pinctrl-names = "default"; 344 pinctrl-0 = <&pmic_int_l>; 327 pinctrl-0 = <&pmic_int_l>; 345 rockchip,system-power-controll 328 rockchip,system-power-controller; 346 wakeup-source; 329 wakeup-source; 347 330 348 vcc1-supply = <&vcc5v0_sys>; 331 vcc1-supply = <&vcc5v0_sys>; 349 vcc2-supply = <&vcc5v0_sys>; 332 vcc2-supply = <&vcc5v0_sys>; 350 vcc3-supply = <&vcc5v0_sys>; 333 vcc3-supply = <&vcc5v0_sys>; 351 vcc4-supply = <&vcc5v0_sys>; 334 vcc4-supply = <&vcc5v0_sys>; 352 vcc6-supply = <&vcc5v0_sys>; 335 vcc6-supply = <&vcc5v0_sys>; 353 vcc7-supply = <&vcc5v0_sys>; 336 vcc7-supply = <&vcc5v0_sys>; 354 vcc8-supply = <&vcc3v3_sys>; 337 vcc8-supply = <&vcc3v3_sys>; 355 vcc9-supply = <&vcc5v0_sys>; 338 vcc9-supply = <&vcc5v0_sys>; 356 vcc10-supply = <&vcc5v0_sys>; 339 vcc10-supply = <&vcc5v0_sys>; 357 vcc11-supply = <&vcc5v0_sys>; 340 vcc11-supply = <&vcc5v0_sys>; 358 vcc12-supply = <&vcc3v3_sys>; 341 vcc12-supply = <&vcc3v3_sys>; 359 vddio-supply = <&vcca_1v8>; 342 vddio-supply = <&vcca_1v8>; 360 343 361 regulators { 344 regulators { 362 vdd_center: DCDC_REG1 345 vdd_center: DCDC_REG1 { 363 regulator-name 346 regulator-name = "vdd_center"; 364 regulator-alwa 347 regulator-always-on; 365 regulator-boot 348 regulator-boot-on; 366 regulator-min- 349 regulator-min-microvolt = <750000>; 367 regulator-max- 350 regulator-max-microvolt = <1350000>; 368 regulator-ramp 351 regulator-ramp-delay = <6001>; 369 regulator-stat 352 regulator-state-mem { 370 regula 353 regulator-off-in-suspend; 371 }; 354 }; 372 }; 355 }; 373 356 374 vdd_cpu_l: DCDC_REG2 { 357 vdd_cpu_l: DCDC_REG2 { 375 regulator-name 358 regulator-name = "vdd_cpu_l"; 376 regulator-alwa 359 regulator-always-on; 377 regulator-boot 360 regulator-boot-on; 378 regulator-min- 361 regulator-min-microvolt = <750000>; 379 regulator-max- 362 regulator-max-microvolt = <1350000>; 380 regulator-ramp 363 regulator-ramp-delay = <6001>; 381 regulator-stat 364 regulator-state-mem { 382 regula 365 regulator-off-in-suspend; 383 }; 366 }; 384 }; 367 }; 385 368 386 vcc_ddr: DCDC_REG3 { 369 vcc_ddr: DCDC_REG3 { 387 regulator-name 370 regulator-name = "vcc_ddr"; 388 regulator-alwa 371 regulator-always-on; 389 regulator-boot 372 regulator-boot-on; 390 regulator-stat 373 regulator-state-mem { 391 regula 374 regulator-on-in-suspend; 392 }; 375 }; 393 }; 376 }; 394 377 395 vcc_1v8: DCDC_REG4 { 378 vcc_1v8: DCDC_REG4 { 396 regulator-name 379 regulator-name = "vcc_1v8"; 397 regulator-alwa 380 regulator-always-on; 398 regulator-boot 381 regulator-boot-on; 399 regulator-min- 382 regulator-min-microvolt = <1800000>; 400 regulator-max- 383 regulator-max-microvolt = <1800000>; 401 regulator-stat 384 regulator-state-mem { 402 regula 385 regulator-on-in-suspend; 403 regula 386 regulator-suspend-microvolt = <1800000>; 404 }; 387 }; 405 }; 388 }; 406 389 407 vcc1v8_dvp: LDO_REG1 { 390 vcc1v8_dvp: LDO_REG1 { 408 regulator-name 391 regulator-name = "vcc1v8_dvp"; 409 regulator-alwa 392 regulator-always-on; 410 regulator-boot 393 regulator-boot-on; 411 regulator-min- 394 regulator-min-microvolt = <1800000>; 412 regulator-max- 395 regulator-max-microvolt = <1800000>; 413 regulator-stat 396 regulator-state-mem { 414 regula 397 regulator-off-in-suspend; 415 }; 398 }; 416 }; 399 }; 417 400 418 vcc3v0_touch: LDO_REG2 401 vcc3v0_touch: LDO_REG2 { 419 regulator-name 402 regulator-name = "vcc3v0_touch"; >> 403 regulator-always-on; >> 404 regulator-boot-on; 420 regulator-min- 405 regulator-min-microvolt = <3000000>; 421 regulator-max- 406 regulator-max-microvolt = <3000000>; 422 regulator-stat 407 regulator-state-mem { 423 regula 408 regulator-off-in-suspend; 424 }; 409 }; 425 }; 410 }; 426 411 427 vcca_1v8: LDO_REG3 { 412 vcca_1v8: LDO_REG3 { 428 regulator-name 413 regulator-name = "vcca_1v8"; 429 regulator-alwa 414 regulator-always-on; 430 regulator-boot 415 regulator-boot-on; 431 regulator-min- 416 regulator-min-microvolt = <1800000>; 432 regulator-max- 417 regulator-max-microvolt = <1800000>; 433 regulator-stat 418 regulator-state-mem { 434 regula 419 regulator-on-in-suspend; 435 regula 420 regulator-suspend-microvolt = <1800000>; 436 }; 421 }; 437 }; 422 }; 438 423 439 vcc_sdio: LDO_REG4 { 424 vcc_sdio: LDO_REG4 { 440 regulator-name 425 regulator-name = "vcc_sdio"; 441 regulator-alwa 426 regulator-always-on; 442 regulator-boot 427 regulator-boot-on; 443 regulator-min- 428 regulator-min-microvolt = <1800000>; 444 regulator-max- 429 regulator-max-microvolt = <3000000>; 445 regulator-stat 430 regulator-state-mem { 446 regula 431 regulator-on-in-suspend; 447 regula 432 regulator-suspend-microvolt = <3000000>; 448 }; 433 }; 449 }; 434 }; 450 435 451 vcca3v0_codec: LDO_REG 436 vcca3v0_codec: LDO_REG5 { 452 regulator-name 437 regulator-name = "vcca3v0_codec"; 453 regulator-alwa 438 regulator-always-on; 454 regulator-boot 439 regulator-boot-on; 455 regulator-min- 440 regulator-min-microvolt = <3000000>; 456 regulator-max- 441 regulator-max-microvolt = <3000000>; 457 regulator-stat 442 regulator-state-mem { 458 regula 443 regulator-off-in-suspend; 459 }; 444 }; 460 }; 445 }; 461 446 462 vcc_1v5: LDO_REG6 { 447 vcc_1v5: LDO_REG6 { 463 regulator-name 448 regulator-name = "vcc_1v5"; 464 regulator-alwa 449 regulator-always-on; 465 regulator-boot 450 regulator-boot-on; 466 regulator-min- 451 regulator-min-microvolt = <1500000>; 467 regulator-max- 452 regulator-max-microvolt = <1500000>; 468 regulator-stat 453 regulator-state-mem { 469 regula 454 regulator-on-in-suspend; 470 regula 455 regulator-suspend-microvolt = <1500000>; 471 }; 456 }; 472 }; 457 }; 473 458 474 vcca1v8_codec: LDO_REG 459 vcca1v8_codec: LDO_REG7 { 475 regulator-name 460 regulator-name = "vcca1v8_codec"; 476 regulator-alwa 461 regulator-always-on; 477 regulator-boot 462 regulator-boot-on; 478 regulator-min- 463 regulator-min-microvolt = <1800000>; 479 regulator-max- 464 regulator-max-microvolt = <1800000>; 480 regulator-stat 465 regulator-state-mem { 481 regula 466 regulator-off-in-suspend; 482 }; 467 }; 483 }; 468 }; 484 469 485 vcc_3v0: LDO_REG8 { 470 vcc_3v0: LDO_REG8 { 486 regulator-name 471 regulator-name = "vcc_3v0"; 487 regulator-alwa 472 regulator-always-on; 488 regulator-boot 473 regulator-boot-on; 489 regulator-min- 474 regulator-min-microvolt = <3000000>; 490 regulator-max- 475 regulator-max-microvolt = <3000000>; 491 regulator-stat 476 regulator-state-mem { 492 regula 477 regulator-on-in-suspend; 493 regula 478 regulator-suspend-microvolt = <3000000>; 494 }; 479 }; 495 }; 480 }; 496 481 497 vcc3v3_s3: vcc_lan: SW 482 vcc3v3_s3: vcc_lan: SWITCH_REG1 { 498 regulator-name 483 regulator-name = "vcc3v3_s3"; 499 regulator-alwa 484 regulator-always-on; 500 regulator-boot 485 regulator-boot-on; 501 regulator-stat 486 regulator-state-mem { 502 regula 487 regulator-off-in-suspend; 503 }; 488 }; 504 }; 489 }; 505 490 506 vcc3v3_s0: SWITCH_REG2 491 vcc3v3_s0: SWITCH_REG2 { 507 regulator-name 492 regulator-name = "vcc3v3_s0"; >> 493 regulator-always-on; >> 494 regulator-boot-on; 508 regulator-stat 495 regulator-state-mem { 509 regula 496 regulator-off-in-suspend; 510 }; 497 }; 511 }; 498 }; 512 }; 499 }; 513 }; 500 }; 514 501 515 vdd_cpu_b: regulator@40 { 502 vdd_cpu_b: regulator@40 { 516 compatible = "silergy,syr827"; 503 compatible = "silergy,syr827"; 517 reg = <0x40>; 504 reg = <0x40>; 518 fcs,suspend-voltage-selector = 505 fcs,suspend-voltage-selector = <1>; 519 pinctrl-names = "default"; 506 pinctrl-names = "default"; 520 pinctrl-0 = <&vsel1_pin>; 507 pinctrl-0 = <&vsel1_pin>; 521 regulator-name = "vdd_cpu_b"; 508 regulator-name = "vdd_cpu_b"; 522 regulator-min-microvolt = <712 509 regulator-min-microvolt = <712500>; 523 regulator-max-microvolt = <150 510 regulator-max-microvolt = <1500000>; 524 regulator-ramp-delay = <1000>; 511 regulator-ramp-delay = <1000>; 525 regulator-always-on; 512 regulator-always-on; 526 regulator-boot-on; 513 regulator-boot-on; 527 vin-supply = <&vcc5v0_sys>; 514 vin-supply = <&vcc5v0_sys>; 528 515 529 regulator-state-mem { 516 regulator-state-mem { 530 regulator-off-in-suspe 517 regulator-off-in-suspend; 531 }; 518 }; 532 }; 519 }; 533 520 534 vdd_gpu: regulator@41 { 521 vdd_gpu: regulator@41 { 535 compatible = "silergy,syr828"; 522 compatible = "silergy,syr828"; 536 reg = <0x41>; 523 reg = <0x41>; 537 fcs,suspend-voltage-selector = 524 fcs,suspend-voltage-selector = <1>; 538 pinctrl-names = "default"; 525 pinctrl-names = "default"; 539 pinctrl-0 = <&vsel2_pin>; 526 pinctrl-0 = <&vsel2_pin>; 540 regulator-name = "vdd_gpu"; 527 regulator-name = "vdd_gpu"; 541 regulator-min-microvolt = <712 528 regulator-min-microvolt = <712500>; 542 regulator-max-microvolt = <150 529 regulator-max-microvolt = <1500000>; 543 regulator-ramp-delay = <1000>; 530 regulator-ramp-delay = <1000>; 544 regulator-always-on; 531 regulator-always-on; 545 regulator-boot-on; 532 regulator-boot-on; 546 vin-supply = <&vcc5v0_sys>; 533 vin-supply = <&vcc5v0_sys>; 547 534 548 regulator-state-mem { 535 regulator-state-mem { 549 regulator-off-in-suspe 536 regulator-off-in-suspend; 550 }; 537 }; 551 }; 538 }; 552 }; 539 }; 553 540 554 &i2c1 { 541 &i2c1 { 555 i2c-scl-rising-time-ns = <300>; 542 i2c-scl-rising-time-ns = <300>; 556 i2c-scl-falling-time-ns = <15>; 543 i2c-scl-falling-time-ns = <15>; 557 status = "okay"; 544 status = "okay"; 558 }; 545 }; 559 546 560 &i2c3 { 547 &i2c3 { 561 i2c-scl-rising-time-ns = <450>; 548 i2c-scl-rising-time-ns = <450>; 562 i2c-scl-falling-time-ns = <15>; 549 i2c-scl-falling-time-ns = <15>; 563 status = "okay"; 550 status = "okay"; 564 }; 551 }; 565 552 566 &i2c4 { 553 &i2c4 { 567 i2c-scl-rising-time-ns = <600>; 554 i2c-scl-rising-time-ns = <600>; 568 i2c-scl-falling-time-ns = <20>; 555 i2c-scl-falling-time-ns = <20>; 569 status = "okay"; 556 status = "okay"; 570 557 571 fusb0: typec-portc@22 { 558 fusb0: typec-portc@22 { 572 compatible = "fcs,fusb302"; 559 compatible = "fcs,fusb302"; 573 reg = <0x22>; 560 reg = <0x22>; 574 interrupt-parent = <&gpio1>; 561 interrupt-parent = <&gpio1>; 575 interrupts = <RK_PA2 IRQ_TYPE_ 562 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 576 pinctrl-names = "default"; 563 pinctrl-names = "default"; 577 pinctrl-0 = <&fusb0_int>; 564 pinctrl-0 = <&fusb0_int>; 578 vbus-supply = <&vcc5v0_typec>; 565 vbus-supply = <&vcc5v0_typec>; 579 status = "okay"; 566 status = "okay"; 580 }; 567 }; 581 << 582 /* enable for pine64 touch screen supp << 583 touch: touchscreen@5d { << 584 compatible = "goodix,gt911"; << 585 reg = <0x5d>; << 586 interrupt-parent = <&gpio4>; << 587 interrupts = <RK_PD5 IRQ_TYPE_ << 588 AVDD28-supply = <&vcc3v0_touch << 589 VDDIO-supply = <&vcc3v0_touch> << 590 irq-gpios = <&gpio4 RK_PD5 GPI << 591 reset-gpios = <&gpio4 RK_PD6 G << 592 status = "disabled"; << 593 }; << 594 }; 568 }; 595 569 596 &i2s0 { 570 &i2s0 { 597 rockchip,playback-channels = <8>; 571 rockchip,playback-channels = <8>; 598 rockchip,capture-channels = <8>; 572 rockchip,capture-channels = <8>; 599 status = "okay"; 573 status = "okay"; 600 }; 574 }; 601 575 602 &i2s1 { 576 &i2s1 { 603 rockchip,playback-channels = <2>; 577 rockchip,playback-channels = <2>; 604 rockchip,capture-channels = <2>; 578 rockchip,capture-channels = <2>; 605 status = "okay"; 579 status = "okay"; 606 580 607 i2s1_p0: port { 581 i2s1_p0: port { 608 i2s1_p0_0: endpoint { 582 i2s1_p0_0: endpoint { 609 dai-format = "i2s"; 583 dai-format = "i2s"; 610 mclk-fs = <256>; 584 mclk-fs = <256>; 611 remote-endpoint = <&es 585 remote-endpoint = <&es8316_p0_0>; 612 }; 586 }; 613 }; 587 }; 614 }; 588 }; 615 589 616 &i2s2 { 590 &i2s2 { 617 status = "okay"; 591 status = "okay"; 618 }; 592 }; 619 593 620 &io_domains { 594 &io_domains { 621 status = "okay"; 595 status = "okay"; 622 596 623 bt656-supply = <&vcc1v8_dvp>; 597 bt656-supply = <&vcc1v8_dvp>; 624 audio-supply = <&vcc_3v0>; 598 audio-supply = <&vcc_3v0>; 625 sdmmc-supply = <&vcc_sdio>; 599 sdmmc-supply = <&vcc_sdio>; 626 gpio1830-supply = <&vcc_3v0>; 600 gpio1830-supply = <&vcc_3v0>; 627 }; << 628 << 629 /* enable for pine64 panel display support */ << 630 &mipi_dsi { << 631 clock-master; << 632 status = "disabled"; << 633 << 634 ports { << 635 mipi_out: port@1 { << 636 reg = <1>; << 637 << 638 mipi_out_panel: endpoi << 639 remote-endpoin << 640 }; << 641 }; << 642 }; << 643 << 644 mipi_panel: panel@0 { << 645 compatible = "feiyang,fy07024d << 646 reg = <0>; << 647 avdd-supply = <&avdd>; << 648 backlight = <&backlight>; << 649 dvdd-supply = <&vcc3v3_s0>; << 650 << 651 port { << 652 mipi_in_panel: endpoin << 653 remote-endpoin << 654 }; << 655 }; << 656 }; << 657 }; 601 }; 658 602 659 &pcie0 { 603 &pcie0 { 660 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_ 604 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; 661 num-lanes = <4>; 605 num-lanes = <4>; 662 pinctrl-names = "default"; 606 pinctrl-names = "default"; 663 pinctrl-0 = <&pcie_perst>; 607 pinctrl-0 = <&pcie_perst>; 664 vpcie12v-supply = <&vcc12v_dcin>; 608 vpcie12v-supply = <&vcc12v_dcin>; 665 vpcie3v3-supply = <&vcc3v3_pcie>; 609 vpcie3v3-supply = <&vcc3v3_pcie>; 666 status = "okay"; 610 status = "okay"; 667 }; 611 }; 668 612 669 &pcie_phy { 613 &pcie_phy { 670 status = "okay"; 614 status = "okay"; 671 }; 615 }; 672 616 673 &pmu_io_domains { 617 &pmu_io_domains { 674 pmu1830-supply = <&vcc_3v0>; 618 pmu1830-supply = <&vcc_3v0>; 675 status = "okay"; 619 status = "okay"; 676 }; 620 }; 677 621 678 &pinctrl { 622 &pinctrl { 679 bt { 623 bt { 680 bt_enable_h: bt-enable-h { 624 bt_enable_h: bt-enable-h { 681 rockchip,pins = <0 RK_ 625 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 682 }; 626 }; 683 627 684 bt_host_wake_l: bt-host-wake-l 628 bt_host_wake_l: bt-host-wake-l { 685 rockchip,pins = <0 RK_ 629 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>; 686 }; 630 }; 687 631 688 bt_wake_l: bt-wake-l { 632 bt_wake_l: bt-wake-l { 689 rockchip,pins = <2 RK_ 633 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 690 }; 634 }; 691 }; 635 }; 692 636 693 buttons { 637 buttons { 694 pwrbtn: pwrbtn { 638 pwrbtn: pwrbtn { 695 rockchip,pins = <0 RK_ 639 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 696 }; 640 }; 697 }; 641 }; 698 642 699 fusb302x { 643 fusb302x { 700 fusb0_int: fusb0-int { 644 fusb0_int: fusb0-int { 701 rockchip,pins = <1 RK_ 645 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 702 }; 646 }; 703 }; 647 }; 704 648 705 ir { 649 ir { 706 ir_int: ir-int { 650 ir_int: ir-int { 707 rockchip,pins = <0 RK_ 651 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 708 }; 652 }; 709 }; 653 }; 710 654 711 leds { 655 leds { 712 work_led_pin: work-led-pin { 656 work_led_pin: work-led-pin { 713 rockchip,pins = <0 RK_ 657 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 714 }; 658 }; 715 659 716 diy_led_pin: diy-led-pin { 660 diy_led_pin: diy-led-pin { 717 rockchip,pins = <0 RK_ 661 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 718 }; 662 }; 719 }; 663 }; 720 664 721 pcie { 665 pcie { 722 pcie_perst: pcie-perst { 666 pcie_perst: pcie-perst { 723 rockchip,pins = <2 RK_ 667 rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 724 }; 668 }; 725 669 726 pcie_pwr_en: pcie-pwr-en { 670 pcie_pwr_en: pcie-pwr-en { 727 rockchip,pins = <1 RK_ 671 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 728 }; 672 }; 729 }; 673 }; 730 674 731 pmic { 675 pmic { 732 pmic_int_l: pmic-int-l { 676 pmic_int_l: pmic-int-l { 733 rockchip,pins = <3 RK_ 677 rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; 734 }; 678 }; 735 679 736 vsel1_pin: vsel1-pin { 680 vsel1_pin: vsel1-pin { 737 rockchip,pins = <1 RK_ 681 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 738 }; 682 }; 739 683 740 vsel2_pin: vsel2-pin { 684 vsel2_pin: vsel2-pin { 741 rockchip,pins = <1 RK_ 685 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 742 }; 686 }; 743 }; 687 }; 744 688 745 sdcard { 689 sdcard { 746 sdmmc0_pwr_h: sdmmc0-pwr-h { 690 sdmmc0_pwr_h: sdmmc0-pwr-h { 747 rockchip,pins = <0 RK_ 691 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 748 }; 692 }; 749 693 750 }; 694 }; 751 695 752 sdio-pwrseq { 696 sdio-pwrseq { 753 wifi_enable_h: wifi-enable-h { 697 wifi_enable_h: wifi-enable-h { 754 rockchip,pins = <0 RK_ 698 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 755 }; 699 }; 756 }; 700 }; 757 701 758 usb-typec { 702 usb-typec { 759 vcc5v0_typec_en: vcc5v0_typec_ 703 vcc5v0_typec_en: vcc5v0_typec_en { 760 rockchip,pins = <1 RK_ 704 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 761 }; 705 }; 762 }; 706 }; 763 707 764 usb2 { 708 usb2 { 765 vcc5v0_host_en: vcc5v0-host-en 709 vcc5v0_host_en: vcc5v0-host-en { 766 rockchip,pins = <4 RK_ 710 rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 767 }; 711 }; 768 }; 712 }; 769 }; 713 }; 770 714 771 &pwm0 { 715 &pwm0 { 772 status = "okay"; 716 status = "okay"; 773 }; 717 }; 774 718 775 &pwm1 { 719 &pwm1 { 776 status = "okay"; 720 status = "okay"; 777 }; 721 }; 778 722 779 &pwm2 { 723 &pwm2 { 780 status = "okay"; 724 status = "okay"; 781 }; 725 }; 782 726 783 &saradc { 727 &saradc { 784 vref-supply = <&vcca1v8_s3>; 728 vref-supply = <&vcca1v8_s3>; 785 status = "okay"; 729 status = "okay"; 786 }; 730 }; 787 731 788 &sdio0 { 732 &sdio0 { 789 bus-width = <4>; 733 bus-width = <4>; 790 cap-sd-highspeed; 734 cap-sd-highspeed; 791 cap-sdio-irq; 735 cap-sdio-irq; 792 disable-wp; 736 disable-wp; 793 keep-power-in-suspend; 737 keep-power-in-suspend; 794 mmc-pwrseq = <&sdio_pwrseq>; 738 mmc-pwrseq = <&sdio_pwrseq>; 795 non-removable; 739 non-removable; 796 pinctrl-names = "default"; 740 pinctrl-names = "default"; 797 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &s 741 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 798 sd-uhs-sdr104; 742 sd-uhs-sdr104; 799 status = "okay"; 743 status = "okay"; 800 }; 744 }; 801 745 802 &sdmmc { 746 &sdmmc { 803 bus-width = <4>; 747 bus-width = <4>; 804 cap-sd-highspeed; 748 cap-sd-highspeed; 805 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 749 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 806 disable-wp; 750 disable-wp; 807 max-frequency = <150000000>; 751 max-frequency = <150000000>; 808 pinctrl-names = "default"; 752 pinctrl-names = "default"; 809 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sd 753 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; 810 vmmc-supply = <&vcc3v0_sd>; 754 vmmc-supply = <&vcc3v0_sd>; 811 vqmmc-supply = <&vcc_sdio>; 755 vqmmc-supply = <&vcc_sdio>; 812 status = "okay"; 756 status = "okay"; 813 }; 757 }; 814 758 815 &sdhci { 759 &sdhci { 816 bus-width = <8>; 760 bus-width = <8>; 817 mmc-hs200-1_8v; 761 mmc-hs200-1_8v; 818 non-removable; 762 non-removable; 819 status = "okay"; 763 status = "okay"; 820 }; 764 }; 821 765 822 &spdif { 766 &spdif { 823 pinctrl-0 = <&spdif_bus_1>; 767 pinctrl-0 = <&spdif_bus_1>; 824 768 825 spdif_p0: port { 769 spdif_p0: port { 826 spdif_p0_0: endpoint { 770 spdif_p0_0: endpoint { 827 remote-endpoint = <&di 771 remote-endpoint = <&dit_p0_0>; 828 }; 772 }; 829 }; 773 }; 830 }; 774 }; 831 775 832 &spi1 { 776 &spi1 { 833 status = "okay"; 777 status = "okay"; 834 778 835 flash@0 { 779 flash@0 { 836 compatible = "jedec,spi-nor"; 780 compatible = "jedec,spi-nor"; 837 reg = <0>; 781 reg = <0>; 838 spi-max-frequency = <10000000> 782 spi-max-frequency = <10000000>; 839 }; 783 }; 840 }; 784 }; 841 785 842 &tcphy0 { 786 &tcphy0 { 843 status = "okay"; 787 status = "okay"; 844 }; 788 }; 845 789 846 &tcphy1 { 790 &tcphy1 { 847 status = "okay"; 791 status = "okay"; 848 }; 792 }; 849 793 850 &tsadc { 794 &tsadc { 851 /* tshut mode 0:CRU 1:GPIO */ 795 /* tshut mode 0:CRU 1:GPIO */ 852 rockchip,hw-tshut-mode = <1>; 796 rockchip,hw-tshut-mode = <1>; 853 /* tshut polarity 0:LOW 1:HIGH */ 797 /* tshut polarity 0:LOW 1:HIGH */ 854 rockchip,hw-tshut-polarity = <1>; 798 rockchip,hw-tshut-polarity = <1>; 855 status = "okay"; 799 status = "okay"; 856 }; 800 }; 857 801 858 &u2phy0 { 802 &u2phy0 { 859 status = "okay"; 803 status = "okay"; 860 804 861 u2phy0_otg: otg-port { 805 u2phy0_otg: otg-port { 862 status = "okay"; 806 status = "okay"; 863 }; 807 }; 864 808 865 u2phy0_host: host-port { 809 u2phy0_host: host-port { 866 phy-supply = <&vcc5v0_host>; 810 phy-supply = <&vcc5v0_host>; 867 status = "okay"; 811 status = "okay"; 868 }; 812 }; 869 }; 813 }; 870 814 871 &u2phy1 { 815 &u2phy1 { 872 status = "okay"; 816 status = "okay"; 873 817 874 u2phy1_otg: otg-port { 818 u2phy1_otg: otg-port { 875 status = "okay"; 819 status = "okay"; 876 }; 820 }; 877 821 878 u2phy1_host: host-port { 822 u2phy1_host: host-port { 879 phy-supply = <&vcc5v0_host>; 823 phy-supply = <&vcc5v0_host>; 880 status = "okay"; 824 status = "okay"; 881 }; 825 }; 882 }; 826 }; 883 827 884 &uart0 { 828 &uart0 { 885 pinctrl-names = "default"; 829 pinctrl-names = "default"; 886 pinctrl-0 = <&uart0_xfer &uart0_cts &u 830 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 887 status = "okay"; 831 status = "okay"; 888 832 889 bluetooth { 833 bluetooth { 890 compatible = "brcm,bcm43438-bt 834 compatible = "brcm,bcm43438-bt"; 891 clocks = <&rk808 1>; 835 clocks = <&rk808 1>; 892 clock-names = "lpo"; 836 clock-names = "lpo"; 893 device-wakeup-gpios = <&gpio2 837 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; 894 host-wakeup-gpios = <&gpio0 RK 838 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 895 shutdown-gpios = <&gpio0 RK_PB 839 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 896 pinctrl-names = "default"; 840 pinctrl-names = "default"; 897 pinctrl-0 = <&bt_host_wake_l & 841 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; 898 vbat-supply = <&vcc3v3_sys>; 842 vbat-supply = <&vcc3v3_sys>; 899 vddio-supply = <&vcc_1v8>; 843 vddio-supply = <&vcc_1v8>; 900 }; 844 }; 901 }; 845 }; 902 846 903 &uart2 { 847 &uart2 { 904 status = "okay"; 848 status = "okay"; 905 }; 849 }; 906 850 907 &usb_host0_ehci { 851 &usb_host0_ehci { 908 status = "okay"; 852 status = "okay"; 909 }; 853 }; 910 854 911 &usb_host0_ohci { 855 &usb_host0_ohci { 912 status = "okay"; 856 status = "okay"; 913 }; 857 }; 914 858 915 &usb_host1_ehci { 859 &usb_host1_ehci { 916 status = "okay"; 860 status = "okay"; 917 }; 861 }; 918 862 919 &usb_host1_ohci { 863 &usb_host1_ohci { 920 status = "okay"; 864 status = "okay"; 921 }; 865 }; 922 866 923 &usbdrd3_0 { 867 &usbdrd3_0 { 924 status = "okay"; 868 status = "okay"; 925 }; 869 }; 926 870 927 &usbdrd_dwc3_0 { 871 &usbdrd_dwc3_0 { 928 status = "okay"; 872 status = "okay"; 929 dr_mode = "host"; 873 dr_mode = "host"; 930 }; 874 }; 931 875 932 &usbdrd3_1 { 876 &usbdrd3_1 { 933 status = "okay"; 877 status = "okay"; 934 }; 878 }; 935 879 936 &usbdrd_dwc3_1 { 880 &usbdrd_dwc3_1 { 937 status = "okay"; 881 status = "okay"; 938 dr_mode = "host"; 882 dr_mode = "host"; 939 }; 883 }; 940 884 941 &vopb { 885 &vopb { 942 status = "okay"; 886 status = "okay"; 943 }; 887 }; 944 888 945 &vopb_mmu { 889 &vopb_mmu { 946 status = "okay"; 890 status = "okay"; 947 }; 891 }; 948 892 949 &vopl { 893 &vopl { 950 status = "okay"; 894 status = "okay"; 951 }; 895 }; 952 896 953 &vopl_mmu { 897 &vopl_mmu { 954 status = "okay"; 898 status = "okay"; 955 }; 899 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.