cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rk3399-roc-pc.dtsi (16905B)


      1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
      2/*
      3 * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd
      4 */
      5
      6/dts-v1/;
      7#include <dt-bindings/input/linux-event-codes.h>
      8#include <dt-bindings/pwm/pwm.h>
      9#include "rk3399.dtsi"
     10#include "rk3399-opp.dtsi"
     11
     12/ {
     13	model = "Firefly ROC-RK3399-PC Board";
     14	compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399";
     15
     16	aliases {
     17		mmc0 = &sdmmc;
     18		mmc1 = &sdhci;
     19	};
     20
     21	chosen {
     22		stdout-path = "serial2:1500000n8";
     23	};
     24
     25	backlight: backlight {
     26		compatible = "pwm-backlight";
     27		pwms = <&pwm0 0 25000 0>;
     28	};
     29
     30	clkin_gmac: external-gmac-clock {
     31		compatible = "fixed-clock";
     32		clock-frequency = <125000000>;
     33		clock-output-names = "clkin_gmac";
     34		#clock-cells = <0>;
     35	};
     36
     37	adc-keys {
     38		compatible = "adc-keys";
     39		io-channels = <&saradc 1>;
     40		io-channel-names = "buttons";
     41		keyup-threshold-microvolt = <1500000>;
     42		poll-interval = <100>;
     43
     44		recovery {
     45			label = "Recovery";
     46			linux,code = <KEY_VENDOR>;
     47			press-threshold-microvolt = <18000>;
     48		};
     49	};
     50
     51	gpio-keys {
     52		compatible = "gpio-keys";
     53		autorepeat;
     54		pinctrl-names = "default";
     55		pinctrl-0 = <&pwr_key_l>;
     56
     57		power {
     58			debounce-interval = <100>;
     59			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
     60			label = "GPIO Key Power";
     61			linux,code = <KEY_POWER>;
     62			wakeup-source;
     63		};
     64	};
     65
     66	ir-receiver {
     67		compatible = "gpio-ir-receiver";
     68		gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
     69		pinctrl-names = "default";
     70		pinctrl-0 = <&ir_int>;
     71	};
     72
     73	leds {
     74		compatible = "gpio-leds";
     75		pinctrl-names = "default";
     76		pinctrl-0 = <&work_led_pin>, <&diy_led_pin>, <&yellow_led_pin>;
     77
     78		work_led: led-0 {
     79			label = "green:work";
     80			gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
     81			default-state = "on";
     82			linux,default-trigger = "heartbeat";
     83		};
     84
     85		diy_led: led-1 {
     86			label = "red:diy";
     87			gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
     88			default-state = "off";
     89			linux,default-trigger = "mmc2";
     90		};
     91
     92		yellow_led: led-2 {
     93			label = "yellow:yellow-led";
     94			gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
     95			default-state = "off";
     96			linux,default-trigger = "mmc1";
     97		};
     98	};
     99
    100	sdio_pwrseq: sdio-pwrseq {
    101		compatible = "mmc-pwrseq-simple";
    102		clocks = <&rk808 1>;
    103		clock-names = "ext_clock";
    104		pinctrl-names = "default";
    105		pinctrl-0 = <&wifi_enable_h>;
    106
    107		/*
    108		 * On the module itself this is one of these (depending
    109		 * on the actual card populated):
    110		 * - SDIO_RESET_L_WL_REG_ON
    111		 * - PDN (power down when low)
    112		 */
    113		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
    114	};
    115
    116	vcc_vbus_typec0: vcc-vbus-typec0 {
    117		compatible = "regulator-fixed";
    118		regulator-name = "vcc_vbus_typec0";
    119		regulator-always-on;
    120		regulator-boot-on;
    121		regulator-min-microvolt = <5000000>;
    122		regulator-max-microvolt = <5000000>;
    123	};
    124
    125	sys_12v: sys-12v {
    126		compatible = "regulator-fixed";
    127		regulator-name = "sys_12v";
    128		regulator-always-on;
    129		regulator-boot-on;
    130		vin-supply = <&dc_12v>;
    131	};
    132
    133	/* switched by pmic_sleep */
    134	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
    135		compatible = "regulator-fixed";
    136		regulator-name = "vcc1v8_s3";
    137		regulator-always-on;
    138		regulator-boot-on;
    139		regulator-min-microvolt = <1800000>;
    140		regulator-max-microvolt = <1800000>;
    141		vin-supply = <&vcc_1v8>;
    142	};
    143
    144	vcc3v0_sd: vcc3v0-sd {
    145		compatible = "regulator-fixed";
    146		enable-active-high;
    147		gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
    148		pinctrl-names = "default";
    149		pinctrl-0 = <&vcc3v0_sd_en>;
    150		regulator-name = "vcc3v0_sd";
    151		regulator-boot-on;
    152		regulator-min-microvolt = <3000000>;
    153		regulator-max-microvolt = <3000000>;
    154		vin-supply = <&vcc3v3_sys>;
    155	};
    156
    157	vcc3v3_sys: vcc3v3-sys {
    158		compatible = "regulator-fixed";
    159		regulator-name = "vcc3v3_sys";
    160		regulator-always-on;
    161		regulator-boot-on;
    162		regulator-min-microvolt = <3300000>;
    163		regulator-max-microvolt = <3300000>;
    164		vin-supply = <&sys_12v>;
    165	};
    166
    167	vcca_0v9: vcca-0v9 {
    168		compatible = "regulator-fixed";
    169		regulator-name = "vcca_0v9";
    170		regulator-always-on;
    171		regulator-boot-on;
    172		regulator-min-microvolt = <900000>;
    173		regulator-max-microvolt = <900000>;
    174		vin-supply = <&vcc3v3_sys>;
    175	};
    176
    177	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
    178	vcc5v0_host: vcc5v0-host-regulator {
    179		compatible = "regulator-fixed";
    180		enable-active-high;
    181		gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
    182		pinctrl-names = "default";
    183		pinctrl-0 = <&vcc5v0_host_en &hub_rst>;
    184		regulator-name = "vcc5v0_host";
    185		vin-supply = <&vcc_sys>;
    186	};
    187
    188	vcc_vbus_typec1: vcc-vbus-typec1 {
    189		compatible = "regulator-fixed";
    190		enable-active-high;
    191		gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
    192		pinctrl-names = "default";
    193		pinctrl-0 = <&vcc_vbus_typec1_en>;
    194		regulator-name = "vcc_vbus_typec1";
    195		regulator-always-on;
    196		vin-supply = <&vcc_sys>;
    197	};
    198
    199	vcc_sys: vcc-sys {
    200		compatible = "regulator-fixed";
    201		enable-active-high;
    202		gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
    203		pinctrl-names = "default";
    204		pinctrl-0 = <&vcc_sys_en>;
    205		regulator-name = "vcc_sys";
    206		regulator-boot-on;
    207		regulator-min-microvolt = <5000000>;
    208		regulator-max-microvolt = <5000000>;
    209		vin-supply = <&sys_12v>;
    210	};
    211
    212	vdd_log: vdd-log {
    213		compatible = "pwm-regulator";
    214		pwms = <&pwm2 0 25000 1>;
    215		regulator-name = "vdd_log";
    216		regulator-always-on;
    217		regulator-boot-on;
    218		regulator-min-microvolt = <450000>;
    219		regulator-max-microvolt = <1400000>;
    220		pwm-supply = <&vcc3v3_sys>;
    221	};
    222};
    223
    224&cpu_l0 {
    225	cpu-supply = <&vdd_cpu_l>;
    226};
    227
    228&cpu_l1 {
    229	cpu-supply = <&vdd_cpu_l>;
    230};
    231
    232&cpu_l2 {
    233	cpu-supply = <&vdd_cpu_l>;
    234};
    235
    236&cpu_l3 {
    237	cpu-supply = <&vdd_cpu_l>;
    238};
    239
    240&cpu_b0 {
    241	cpu-supply = <&vdd_cpu_b>;
    242};
    243
    244&cpu_b1 {
    245	cpu-supply = <&vdd_cpu_b>;
    246};
    247
    248&emmc_phy {
    249	status = "okay";
    250};
    251
    252&gmac {
    253	assigned-clocks = <&cru SCLK_RMII_SRC>;
    254	assigned-clock-parents = <&clkin_gmac>;
    255	clock_in_out = "input";
    256	phy-supply = <&vcc_lan>;
    257	phy-mode = "rgmii";
    258	pinctrl-names = "default";
    259	pinctrl-0 = <&rgmii_pins>;
    260	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
    261	snps,reset-active-low;
    262	snps,reset-delays-us = <0 10000 50000>;
    263	tx_delay = <0x28>;
    264	rx_delay = <0x11>;
    265	status = "okay";
    266};
    267
    268&gpu {
    269	mali-supply = <&vdd_gpu>;
    270	status = "okay";
    271};
    272
    273&hdmi {
    274	ddc-i2c-bus = <&i2c3>;
    275	pinctrl-names = "default";
    276	pinctrl-0 = <&hdmi_cec>;
    277	status = "okay";
    278};
    279
    280&hdmi_sound {
    281	status = "okay";
    282};
    283
    284&i2c0 {
    285	clock-frequency = <400000>;
    286	i2c-scl-rising-time-ns = <168>;
    287	i2c-scl-falling-time-ns = <4>;
    288	status = "okay";
    289
    290	rk808: pmic@1b {
    291		compatible = "rockchip,rk808";
    292		reg = <0x1b>;
    293		interrupt-parent = <&gpio1>;
    294		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
    295		#clock-cells = <1>;
    296		clock-output-names = "xin32k", "rk808-clkout2";
    297		pinctrl-names = "default";
    298		pinctrl-0 = <&pmic_int_l>;
    299		rockchip,system-power-controller;
    300		wakeup-source;
    301
    302		vcc1-supply = <&vcc3v3_sys>;
    303		vcc2-supply = <&vcc3v3_sys>;
    304		vcc3-supply = <&vcc3v3_sys>;
    305		vcc4-supply = <&vcc3v3_sys>;
    306		vcc6-supply = <&vcc3v3_sys>;
    307		vcc7-supply = <&vcc3v3_sys>;
    308		vcc8-supply = <&vcc3v3_sys>;
    309		vcc9-supply = <&vcc3v3_sys>;
    310		vcc10-supply = <&vcc3v3_sys>;
    311		vcc11-supply = <&vcc3v3_sys>;
    312		vcc12-supply = <&vcc3v3_sys>;
    313		vddio-supply = <&vcc_3v0>;
    314
    315		regulators {
    316			vdd_center: DCDC_REG1 {
    317				regulator-name = "vdd_center";
    318				regulator-always-on;
    319				regulator-boot-on;
    320				regulator-min-microvolt = <750000>;
    321				regulator-max-microvolt = <1350000>;
    322				regulator-ramp-delay = <6001>;
    323				regulator-state-mem {
    324					regulator-off-in-suspend;
    325				};
    326			};
    327
    328			vdd_cpu_l: DCDC_REG2 {
    329				regulator-name = "vdd_cpu_l";
    330				regulator-always-on;
    331				regulator-boot-on;
    332				regulator-min-microvolt = <750000>;
    333				regulator-max-microvolt = <1350000>;
    334				regulator-ramp-delay = <6001>;
    335				regulator-state-mem {
    336					regulator-off-in-suspend;
    337				};
    338			};
    339
    340			vcc_ddr: DCDC_REG3 {
    341				regulator-name = "vcc_ddr";
    342				regulator-always-on;
    343				regulator-boot-on;
    344				regulator-state-mem {
    345					regulator-on-in-suspend;
    346				};
    347			};
    348
    349			vcc_1v8: DCDC_REG4 {
    350				regulator-name = "vcc_1v8";
    351				regulator-always-on;
    352				regulator-boot-on;
    353				regulator-min-microvolt = <1800000>;
    354				regulator-max-microvolt = <1800000>;
    355				regulator-state-mem {
    356					regulator-on-in-suspend;
    357					regulator-suspend-microvolt = <1800000>;
    358				};
    359			};
    360
    361			vcca1v8_codec: LDO_REG1 {
    362				regulator-name = "vcca1v8_codec";
    363				regulator-always-on;
    364				regulator-boot-on;
    365				regulator-min-microvolt = <1800000>;
    366				regulator-max-microvolt = <1800000>;
    367				regulator-state-mem {
    368					regulator-off-in-suspend;
    369				};
    370			};
    371
    372			vcc1v8_hdmi: LDO_REG2 {
    373				regulator-name = "vcc1v8_hdmi";
    374				regulator-always-on;
    375				regulator-boot-on;
    376				regulator-min-microvolt = <1800000>;
    377				regulator-max-microvolt = <1800000>;
    378				regulator-state-mem {
    379					regulator-off-in-suspend;
    380				};
    381			};
    382
    383			vcc1v8_pmu: LDO_REG3 {
    384				regulator-name = "vcc1v8_pmu";
    385				regulator-always-on;
    386				regulator-boot-on;
    387				regulator-min-microvolt = <1800000>;
    388				regulator-max-microvolt = <1800000>;
    389				regulator-state-mem {
    390					regulator-on-in-suspend;
    391					regulator-suspend-microvolt = <1800000>;
    392				};
    393			};
    394
    395			vcc_sdio: LDO_REG4 {
    396				regulator-name = "vcc_sdio";
    397				regulator-always-on;
    398				regulator-boot-on;
    399				regulator-min-microvolt = <1800000>;
    400				regulator-max-microvolt = <3000000>;
    401				regulator-state-mem {
    402					regulator-on-in-suspend;
    403					regulator-suspend-microvolt = <3000000>;
    404				};
    405			};
    406
    407			vcca3v0_codec: LDO_REG5 {
    408				regulator-name = "vcca3v0_codec";
    409				regulator-always-on;
    410				regulator-boot-on;
    411				regulator-min-microvolt = <3000000>;
    412				regulator-max-microvolt = <3000000>;
    413				regulator-state-mem {
    414					regulator-off-in-suspend;
    415				};
    416			};
    417
    418			vcc_1v5: LDO_REG6 {
    419				regulator-name = "vcc_1v5";
    420				regulator-always-on;
    421				regulator-boot-on;
    422				regulator-min-microvolt = <1500000>;
    423				regulator-max-microvolt = <1500000>;
    424				regulator-state-mem {
    425					regulator-on-in-suspend;
    426					regulator-suspend-microvolt = <1500000>;
    427				};
    428			};
    429
    430			vcca0v9_hdmi: LDO_REG7 {
    431				regulator-name = "vcca0v9_hdmi";
    432				regulator-always-on;
    433				regulator-boot-on;
    434				regulator-min-microvolt = <900000>;
    435				regulator-max-microvolt = <900000>;
    436				regulator-state-mem {
    437					regulator-off-in-suspend;
    438				};
    439			};
    440
    441			vcc_3v0: LDO_REG8 {
    442				regulator-name = "vcc_3v0";
    443				regulator-always-on;
    444				regulator-boot-on;
    445				regulator-min-microvolt = <3000000>;
    446				regulator-max-microvolt = <3000000>;
    447				regulator-state-mem {
    448					regulator-on-in-suspend;
    449					regulator-suspend-microvolt = <3000000>;
    450				};
    451			};
    452
    453			vcc3v3_s3: vcc_lan: SWITCH_REG1 {
    454				regulator-name = "vcc3v3_s3";
    455				regulator-always-on;
    456				regulator-boot-on;
    457				regulator-state-mem {
    458					regulator-off-in-suspend;
    459				};
    460			};
    461
    462			vcc3v3_s0: SWITCH_REG2 {
    463				regulator-name = "vcc3v3_s0";
    464				regulator-always-on;
    465				regulator-boot-on;
    466				regulator-state-mem {
    467					regulator-off-in-suspend;
    468				};
    469			};
    470		};
    471	};
    472
    473	vdd_cpu_b: regulator@40 {
    474		compatible = "silergy,syr827";
    475		reg = <0x40>;
    476		fcs,suspend-voltage-selector = <1>;
    477		pinctrl-names = "default";
    478		pinctrl-0 = <&vsel1_pin>;
    479		regulator-name = "vdd_cpu_b";
    480		regulator-min-microvolt = <712500>;
    481		regulator-max-microvolt = <1500000>;
    482		regulator-ramp-delay = <1000>;
    483		regulator-always-on;
    484		regulator-boot-on;
    485		vin-supply = <&vcc3v3_sys>;
    486
    487		regulator-state-mem {
    488			regulator-off-in-suspend;
    489		};
    490	};
    491
    492	vdd_gpu: regulator@41 {
    493		compatible = "silergy,syr828";
    494		reg = <0x41>;
    495		fcs,suspend-voltage-selector = <1>;
    496		pinctrl-names = "default";
    497		pinctrl-0 = <&vsel2_pin>;
    498		regulator-name = "vdd_gpu";
    499		regulator-min-microvolt = <712500>;
    500		regulator-max-microvolt = <1500000>;
    501		regulator-ramp-delay = <1000>;
    502		regulator-always-on;
    503		regulator-boot-on;
    504		vin-supply = <&vcc3v3_sys>;
    505
    506		regulator-state-mem {
    507			regulator-off-in-suspend;
    508		};
    509	};
    510};
    511
    512&i2c1 {
    513	i2c-scl-rising-time-ns = <300>;
    514	i2c-scl-falling-time-ns = <15>;
    515	status = "okay";
    516};
    517
    518&i2c3 {
    519	i2c-scl-rising-time-ns = <450>;
    520	i2c-scl-falling-time-ns = <15>;
    521	status = "okay";
    522};
    523
    524&i2c4 {
    525	i2c-scl-rising-time-ns = <600>;
    526	i2c-scl-falling-time-ns = <20>;
    527	status = "okay";
    528
    529	fusb1: usb-typec@22 {
    530		compatible = "fcs,fusb302";
    531		reg = <0x22>;
    532		interrupt-parent = <&gpio1>;
    533		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
    534		pinctrl-names = "default";
    535		pinctrl-0 = <&fusb1_int>;
    536		vbus-supply = <&vcc_vbus_typec1>;
    537		status = "okay";
    538	};
    539};
    540
    541&i2c7 {
    542	i2c-scl-rising-time-ns = <600>;
    543	i2c-scl-falling-time-ns = <20>;
    544	status = "okay";
    545
    546	fusb0: usb-typec@22 {
    547		compatible = "fcs,fusb302";
    548		reg = <0x22>;
    549		interrupt-parent = <&gpio1>;
    550		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
    551		pinctrl-names = "default";
    552		pinctrl-0 = <&fusb0_int>;
    553		vbus-supply = <&vcc_vbus_typec0>;
    554		status = "okay";
    555	};
    556
    557	mp8859: regulator@66 {
    558		compatible = "mps,mp8859";
    559		reg = <0x66>;
    560		dc_12v: mp8859_dcdc {
    561			regulator-name = "dc_12v";
    562			regulator-min-microvolt = <12000000>;
    563			regulator-max-microvolt = <12000000>;
    564			regulator-always-on;
    565			regulator-boot-on;
    566			vin-supply = <&vcc_vbus_typec0>;
    567
    568			regulator-state-mem {
    569				regulator-on-in-suspend;
    570				regulator-suspend-microvolt = <12000000>;
    571			};
    572		};
    573	};
    574};
    575
    576&i2s0 {
    577	rockchip,playback-channels = <8>;
    578	rockchip,capture-channels = <8>;
    579	status = "okay";
    580};
    581
    582&i2s1 {
    583	rockchip,playback-channels = <2>;
    584	rockchip,capture-channels = <2>;
    585	status = "okay";
    586};
    587
    588&i2s2 {
    589	status = "okay";
    590};
    591
    592&io_domains {
    593	audio-supply = <&vcca1v8_codec>;
    594	bt656-supply = <&vcc_3v0>;
    595	gpio1830-supply = <&vcc_3v0>;
    596	sdmmc-supply = <&vcc_sdio>;
    597	status = "okay";
    598};
    599
    600&pmu_io_domains {
    601	pmu1830-supply = <&vcc_3v0>;
    602	status = "okay";
    603};
    604
    605&pinctrl {
    606	buttons {
    607		pwr_key_l: pwr-key-l {
    608			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
    609		};
    610	};
    611
    612	ir {
    613		ir_int: ir-int {
    614			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
    615		};
    616	};
    617
    618	lcd-panel {
    619		lcd_panel_reset: lcd-panel-reset {
    620			rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
    621		};
    622	};
    623
    624	leds {
    625		diy_led_pin: diy-led-pin {
    626			rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
    627		};
    628
    629		work_led_pin: work-led-pin {
    630			rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
    631		};
    632
    633		yellow_led_pin: yellow-led-pin {
    634			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
    635		};
    636	};
    637
    638	pmic {
    639		vsel1_pin: vsel1-pin {
    640			rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
    641		};
    642
    643		vsel2_pin: vsel2-pin {
    644			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
    645		};
    646	};
    647
    648	sdio-pwrseq {
    649		wifi_enable_h: wifi-enable-h {
    650			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
    651		};
    652	};
    653
    654	sdmmc {
    655		vcc3v0_sd_en: vcc3v0-sd-en {
    656			rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
    657		};
    658	};
    659
    660	pmic {
    661		pmic_int_l: pmic-int-l {
    662			rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
    663		};
    664	};
    665
    666	usb2 {
    667		vcc5v0_host_en: vcc5v0-host-en {
    668			rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
    669		};
    670
    671		vcc_sys_en: vcc-sys-en {
    672			rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
    673		};
    674
    675		hub_rst: hub-rst {
    676			rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_output_high>;
    677		};
    678	};
    679
    680	usb-typec {
    681		vcc_vbus_typec1_en: vcc-vbus-typec1-en {
    682			rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
    683		};
    684	};
    685
    686	fusb30x {
    687		fusb0_int: fusb0-int {
    688			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
    689		};
    690
    691		fusb1_int: fusb1-int {
    692			rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
    693		};
    694	};
    695};
    696
    697&pwm0 {
    698	status = "okay";
    699};
    700
    701&pwm2 {
    702	status = "okay";
    703};
    704
    705&saradc {
    706	vref-supply = <&vcca1v8_s3>;
    707	status = "okay";
    708};
    709
    710&sdmmc {
    711	bus-width = <4>;
    712	cap-sd-highspeed;
    713	cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
    714	disable-wp;
    715	max-frequency = <150000000>;
    716	pinctrl-names = "default";
    717	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
    718	sd-uhs-sdr104;
    719	vmmc-supply = <&vcc3v0_sd>;
    720	vqmmc-supply = <&vcc_sdio>;
    721	status = "okay";
    722};
    723
    724&sdhci {
    725	bus-width = <8>;
    726	non-removable;
    727	status = "okay";
    728};
    729
    730&spi1 {
    731	status = "okay";
    732
    733	flash@0 {
    734		compatible = "jedec,spi-nor";
    735		reg = <0>;
    736		spi-max-frequency = <10000000>;
    737	};
    738};
    739
    740&tcphy0 {
    741	status = "okay";
    742};
    743
    744&tcphy1 {
    745	status = "okay";
    746};
    747
    748&tsadc {
    749	/* tshut mode 0:CRU 1:GPIO */
    750	rockchip,hw-tshut-mode = <1>;
    751	/* tshut polarity 0:LOW 1:HIGH */
    752	rockchip,hw-tshut-polarity = <1>;
    753	status = "okay";
    754};
    755
    756&u2phy0 {
    757	status = "okay";
    758
    759	u2phy0_otg: otg-port {
    760		phy-supply = <&vcc_vbus_typec0>;
    761		status = "okay";
    762	};
    763
    764	u2phy0_host: host-port {
    765		phy-supply = <&vcc5v0_host>;
    766		status = "okay";
    767	};
    768};
    769
    770&u2phy1 {
    771	status = "okay";
    772
    773	u2phy1_otg: otg-port {
    774		phy-supply = <&vcc_vbus_typec1>;
    775		status = "okay";
    776	};
    777
    778	u2phy1_host: host-port {
    779		phy-supply = <&vcc5v0_host>;
    780		status = "okay";
    781	};
    782};
    783
    784&uart0 {
    785	pinctrl-names = "default";
    786	pinctrl-0 = <&uart0_xfer &uart0_cts>;
    787	status = "okay";
    788};
    789
    790&uart2 {
    791	status = "okay";
    792};
    793
    794&usb_host0_ehci {
    795	status = "okay";
    796};
    797
    798&usb_host0_ohci {
    799	status = "okay";
    800};
    801
    802&usb_host1_ehci {
    803	status = "okay";
    804};
    805
    806&usb_host1_ohci {
    807	status = "okay";
    808};
    809
    810&usbdrd3_0 {
    811	status = "okay";
    812};
    813
    814&usbdrd_dwc3_0 {
    815	status = "okay";
    816};
    817
    818&usbdrd3_1 {
    819	status = "okay";
    820};
    821
    822&usbdrd_dwc3_1 {
    823	status = "okay";
    824	dr_mode = "host";
    825};
    826
    827&vopb {
    828	status = "okay";
    829};
    830
    831&vopb_mmu {
    832	status = "okay";
    833};
    834
    835&vopl {
    836	status = "okay";
    837};
    838
    839&vopl_mmu {
    840	status = "okay";
    841};