mirror of
https://github.com/armbian/build.git
synced 2025-08-20 22:11:20 +02:00
1083 lines
22 KiB
Plaintext
1083 lines
22 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
|
* Copyright (c) 2019 Radxa Limited
|
|
* Copyright (c) 2019 Amarula Solutions(India)
|
|
* Copyright (c) 2024 ARCW <wmx129674@126.com> rk3399pro-tinker_edge_r
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <dt-bindings/input/linux-event-codes.h>
|
|
#include <dt-bindings/pwm/pwm.h>
|
|
#include "rk3399.dtsi"
|
|
|
|
/ {
|
|
model = "ASUS Tinker Edge R";
|
|
compatible = "ASUS,rk3399-tinker_edge_r", "rockchip,rk3399pro";
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
// bootargs = "earlycon=uart8250,mmio32,0xff180000 swiotlb=1 coherent_pool=1m";
|
|
};
|
|
|
|
clkin_gmac: external-gmac-clock {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <125000000>;
|
|
clock-output-names = "clkin_gmac";
|
|
#clock-cells = <0>;
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
act-led {
|
|
label = "led-activity";
|
|
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "activity";
|
|
retain-state-suspended = <1>;
|
|
};
|
|
|
|
eth-led {
|
|
label = "led-eth";
|
|
default-state = "off";
|
|
gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger="netdev";
|
|
};
|
|
|
|
oneshot-led {
|
|
label = "led-oneshot";
|
|
gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger="oneshot";
|
|
};
|
|
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
clocks = <&rk809 1>;
|
|
clock-names = "ext_clock";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_enable_h>;
|
|
|
|
/*
|
|
* On the module itself this is one of these (depending
|
|
* on the actual card populated):
|
|
* - SDIO_RESET_L_WL_REG_ON
|
|
* - PDN (power down when low)
|
|
*/
|
|
reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
rk_headset {
|
|
compatible = "rockchip_headset";
|
|
headset_gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hp_det>;
|
|
io-channels = <&saradc 3>;
|
|
};
|
|
|
|
sdhci_pwrseq: sdhci-pwrseq {
|
|
compatible = "mmc-pwrseq-emmc";
|
|
pinctrl-0 = <&sdhci_reset>;
|
|
pinctrl-names = "default";
|
|
reset-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
display-subsystem{
|
|
status = "okay";
|
|
};
|
|
|
|
vcc1v8_s0: vcc1v8-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc1v8_s0";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vdd_3v3_reg: fixedregulator_3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "3v3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vcc_phy: vcc-phy-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_phy";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vcc5v0_sys: vccsys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
|
|
vbus_typec: vbus-typec {
|
|
compatible = "regulator-fixed";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
regulator-name = "vbus_typec";
|
|
};
|
|
|
|
vcca0v9_s3: vcca0v9-s3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <900000>;
|
|
regulator-name = "vcca0v9_s3";
|
|
vin-supply = <&vcc1v8_s0>;
|
|
};
|
|
|
|
/* As above, actually supplied by vcc3v3_sys */
|
|
vcca1v8_s3: vcca1v8-s3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-name = "vcca1v8_s3";
|
|
vin-supply = <&vcc1v8_s0>;
|
|
};
|
|
|
|
backlight: backlight {
|
|
status = "disabled";
|
|
compatible = "pwm-backlight";
|
|
pwms = <&pwm0 0 400000 0>;//f=2500 t=400,000ns
|
|
brightness-levels = <
|
|
0 1 2 3 4 5 6 7
|
|
8 9 10 11 12 13 14 15
|
|
16 17 18 19 20 21 22 23
|
|
24 25 26 27 28 29 30 31
|
|
32 33 34 35 36 37 38 39
|
|
40 41 42 43 44 45 46 47
|
|
48 49 50 51 52 53 54 55
|
|
56 57 58 59 60 61 62 63
|
|
64 65 66 67 68 69 70 71
|
|
72 73 74 75 76 77 78 79
|
|
80 81 82 83 84 85 86 87
|
|
88 89 90 91 92 93 94 95
|
|
96 97 98 99 100 101 102 103
|
|
104 105 106 107 108 109 110 111
|
|
112 113 114 115 116 117 118 119
|
|
120 121 122 123 124 125 126 127
|
|
128 129 130 131 132 133 134 135
|
|
136 137 138 139 140 141 142 143
|
|
144 145 146 147 148 149 150 151
|
|
152 153 154 155 156 157 158 159
|
|
160 161 162 163 164 165 166 167
|
|
168 169 170 171 172 173 174 175
|
|
176 177 178 179 180 181 182 183
|
|
184 185 186 187 188 189 190 191
|
|
192 193 194 195 196 197 198 199
|
|
200 201 202 203 204 205 206 207
|
|
208 209 210 211 212 213 214 215
|
|
216 217 218 219 220 221 222 223
|
|
224 225 226 227 228 229 230 231
|
|
232 233 234 235 236 237 238 239
|
|
240 241 242 243 244 245 246 247
|
|
248 249 250 251 252 253 254 255
|
|
>;
|
|
default-brightness-level = <200>;
|
|
minimal-brightness-level = <26>;
|
|
soc_enablekl-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
enable_delay = <15>;
|
|
disable_delay = <5>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_lvds_bl_en>;
|
|
};
|
|
|
|
rk809-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,name = "rockchip,rk809";
|
|
simple-audio-card,mclk-fs = <256>;
|
|
simple-audio-card,widgets =
|
|
"Microphone", "Mic Jack",
|
|
"Headphone", "Headphone Jack";
|
|
simple-audio-card,routing =
|
|
"Mic Jack", "MICBIAS1",
|
|
"IN1P", "Mic Jack",
|
|
"Headphone Jack", "HPOL",
|
|
"Headphone Jack", "HPOR";
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s1>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&rk809_codec>;
|
|
};
|
|
};
|
|
|
|
spdif-sound {
|
|
status = "okay";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rockchip,spdif";
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&spdif>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&spdif_out>;
|
|
};
|
|
};
|
|
|
|
spdif_out: spdif-out {
|
|
status = "okay";
|
|
compatible = "linux,spdif-dit";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
hdmi_dp_sound: hdmi-dp-sound {
|
|
status = "okay";
|
|
compatible = "rockchip,rk3399-hdmi-dp";
|
|
rockchip,cpu = <&i2s2>;
|
|
rockchip,codec = <&hdmi>, <&cdn_dp>;
|
|
};
|
|
|
|
route_hdmi: route-hdmi {
|
|
status = "okay";
|
|
logo,mode = "center";
|
|
charge_logo,mode = "center";
|
|
connect = <&vopb_out_hdmi>;
|
|
};
|
|
};
|
|
|
|
&cpu_l0 {
|
|
cpu-supply = <&vdd_cpu_l>;
|
|
};
|
|
|
|
&cpu_l1 {
|
|
cpu-supply = <&vdd_cpu_l>;
|
|
};
|
|
|
|
&cpu_l2 {
|
|
cpu-supply = <&vdd_cpu_l>;
|
|
};
|
|
|
|
&cpu_l3 {
|
|
cpu-supply = <&vdd_cpu_l>;
|
|
};
|
|
|
|
&cpu_b0 {
|
|
cpu-supply = <&vdd_cpu_b>;
|
|
};
|
|
|
|
&cpu_b1 {
|
|
cpu-supply = <&vdd_cpu_b>;
|
|
};
|
|
|
|
&emmc_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&gmac {
|
|
assigned-clocks = <&cru SCLK_RMII_SRC>;
|
|
assigned-clock-parents = <&clkin_gmac>;
|
|
clock_in_out = "input";
|
|
phy-supply = <&vcc_phy>;
|
|
phy-mode = "rgmii";
|
|
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
|
|
snps,reset-active-low;
|
|
snps,reset-delays-us = <0 16000 72000>;
|
|
wolirq-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rgmii_pins>;
|
|
tx_delay = <0x23>;
|
|
rx_delay = <0x22>;
|
|
wakeup-enable = "0";
|
|
status = "okay";
|
|
};
|
|
|
|
&gpu {
|
|
mali-supply = <&vdd_gpu>;
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmi {
|
|
/* remove the hdmi_i2c_xfer */
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
ddc-i2c-bus = <&i2c3>;
|
|
pinctrl-0 = <&hdmi_cec>;
|
|
#sound-dai-cells = <0>;
|
|
rockchip,phy-table =
|
|
<74250000 0x8009 0x0004 0x0272>,
|
|
<165000000 0x802b 0x0004 0x0209>,
|
|
<297000000 0x8039 0x0005 0x028d>,
|
|
<594000000 0x8039 0x0000 0x019d>,
|
|
<000000000 0x0000 0x0000 0x0000>;
|
|
};
|
|
|
|
&hdmi_in_vopb {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmi_in_vopl {
|
|
status = "disabled";
|
|
};
|
|
|
|
&dp_in_vopb {
|
|
status = "disable";
|
|
};
|
|
|
|
&dp_in_vopl {
|
|
status = "disable";
|
|
};
|
|
|
|
&vopb {
|
|
status = "okay";
|
|
// assigned-clocks = <&cru DCLK_VOP0_DIV>;
|
|
// assigned-clock-parents = <&cru PLL_VPLL>;
|
|
};
|
|
|
|
&vopb_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vopl {
|
|
status = "disable";
|
|
// assigned-clocks = <&cru DCLK_VOP1_DIV>;
|
|
// assigned-clock-parents = <&cru PLL_CPLL>;
|
|
};
|
|
|
|
&vopl_mmu {
|
|
status = "disable";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
i2c-scl-rising-time-ns = <180>;
|
|
i2c-scl-falling-time-ns = <30>;
|
|
clock-frequency = <400000>;
|
|
|
|
rk809: pmic@20 {
|
|
compatible = "rockchip,rk809";
|
|
reg = <0x20>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <RK_PC2 IRQ_TYPE_LEVEL_LOW>;
|
|
pinctrl-names = "default", "pmic-sleep",
|
|
"pmic-power-off", "pmic-reset";
|
|
pinctrl-0 = <&pmic_int_l>;
|
|
pinctrl-1 = <&soc_slppin_slp>, <&rk809_slppin_slp>;
|
|
pinctrl-2 = <&soc_slppin_gpio>, <&rk809_slppin_pwrdn>;
|
|
pinctrl-3 = <&soc_slppin_gpio>, <&rk809_slppin_null>;
|
|
rockchip,system-power-controller;
|
|
pmic-reset-func = <0>;
|
|
wakeup-source;
|
|
#clock-cells = <1>;
|
|
clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
|
|
|
vcc1-supply = <&vcc5v0_sys>;
|
|
vcc2-supply = <&vcc5v0_sys>;
|
|
vcc3-supply = <&vcc5v0_sys>;
|
|
vcc4-supply = <&vcc5v0_sys>;
|
|
vcc5-supply = <&vcc_buck5>;
|
|
vcc6-supply = <&vcc_buck5>;
|
|
vcc7-supply = <&vcc3v3_sys>;
|
|
vcc8-supply = <&vcc3v3_sys>;
|
|
vcc9-supply = <&vcc5v0_sys>;
|
|
|
|
pwrkey {
|
|
status = "okay";
|
|
};
|
|
|
|
rtc {
|
|
status = "okay";
|
|
};
|
|
|
|
pinctrl_rk8xx: pinctrl_rk8xx {
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
|
|
rk809_slppin_null: rk809_slppin_null {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun0";
|
|
};
|
|
|
|
rk809_slppin_slp: rk809_slppin_slp {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun1";
|
|
};
|
|
|
|
rk809_slppin_pwrdn: rk809_slppin_pwrdn {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun2";
|
|
};
|
|
|
|
rk809_slppin_rst: rk809_slppin_rst {
|
|
pins = "gpio_slp";
|
|
function = "pin_fun3";
|
|
};
|
|
};
|
|
|
|
regulators {
|
|
vdd_center: DCDC_REG1 {
|
|
regulator-name = "vdd_center";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <925000>;
|
|
regulator-max-microvolt = <1025000>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
regulator-suspend-microvolt = <925000>;
|
|
};
|
|
};
|
|
|
|
vdd_cpu_l: DCDC_REG2 {
|
|
regulator-name = "vdd_cpu_l";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <925000>;
|
|
regulator-max-microvolt = <1225000>;
|
|
regulator-ramp-delay = <6001>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_ddr: DCDC_REG3 {
|
|
regulator-name = "vcc_ddr";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc3v3_sys: DCDC_REG4 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-initial-mode = <0x2>;
|
|
regulator-name = "vcc3v3_sys";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
};
|
|
};
|
|
|
|
vcc_buck5: DCDC_REG5 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-name = "vcc_buck5";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
};
|
|
};
|
|
|
|
vcca_0v9: LDO_REG1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <925000>;
|
|
regulator-max-microvolt = <925000>;
|
|
regulator-name = "vcca_0v9";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <925000>;
|
|
};
|
|
};
|
|
|
|
vcc_1v8: LDO_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1850000>;
|
|
regulator-max-microvolt = <1850000>;
|
|
|
|
regulator-name = "vcc_1v8";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1850000>;
|
|
};
|
|
};
|
|
|
|
vcc0v9_soc: LDO_REG3 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <950000>;
|
|
regulator-max-microvolt = <950000>;
|
|
|
|
regulator-name = "vcc0v9_soc";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <950000>;
|
|
};
|
|
};
|
|
|
|
vcca_1v8: LDO_REG4 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1850000>;
|
|
regulator-max-microvolt = <1850000>;
|
|
|
|
regulator-name = "vcca_1v8";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1850000>;
|
|
};
|
|
};
|
|
|
|
vdd1v5_dvp: LDO_REG5 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1850000>;
|
|
regulator-max-microvolt = <1850000>;
|
|
|
|
regulator-name = "vdd1v5_dvp";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_1v5: LDO_REG6 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1550000>;
|
|
regulator-max-microvolt = <1550000>;
|
|
|
|
regulator-name = "vcc_1v5";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_3v0: LDO_REG7 {
|
|
regulator-name = "vcc_3v0";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3075000>;
|
|
regulator-max-microvolt = <3075000>;
|
|
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vccio_sd: LDO_REG8 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1850000>;
|
|
regulator-max-microvolt = <3375000>;
|
|
|
|
regulator-name = "vccio_sd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_sd: LDO_REG9 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3375000>;
|
|
regulator-max-microvolt = <3375000>;
|
|
|
|
regulator-name = "vcc_sd";
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc5v0_usb: SWITCH_REG1 {
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
regulator-name = "vcc5v0_usb";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <5000000>;
|
|
};
|
|
};
|
|
|
|
vccio_3v3: SWITCH_REG2 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-name = "vccio_3v3";
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <3300000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
rk809_codec: codec {
|
|
#sound-dai-cells = <0>;
|
|
compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
|
|
clocks = <&cru SCLK_I2S_8CH_OUT>;
|
|
clock-names = "mclk";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2s_8ch_mclk>;
|
|
hp-volume = <20>;
|
|
spk-volume = <3>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
vdd_cpu_b: fan53555@60 {
|
|
compatible = "fcs,fan53555";
|
|
reg = <0x60>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
regulator-compatible = "fan53555-reg";
|
|
pinctrl-0 = <&vsel1_gpio>;
|
|
vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
regulator-name = "vdd_cpu_b";
|
|
regulator-min-microvolt = <925000>;
|
|
regulator-max-microvolt = <1275000>;
|
|
regulator-ramp-delay = <1000>;
|
|
fcs,suspend-voltage-selector = <1>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-initial-state = <3>;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
bq25700: bq25700@6b {
|
|
compatible = "ti,bq25703";
|
|
reg = <0x6b>;
|
|
extcon = <&fusb0>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&charger_ok_int>;
|
|
ti,charge-current = <1500000>;
|
|
ti,max-charge-voltage = <8704000>;
|
|
ti,max-input-voltage = <20000000>;
|
|
ti,max-input-current = <6000000>;
|
|
ti,input-current-sdp = <500000>;
|
|
ti,input-current-dcp = <2000000>;
|
|
ti,input-current-cdp = <2000000>;
|
|
ti,input-current-dc = <2000000>;
|
|
ti,minimum-sys-voltage = <6700000>;
|
|
ti,otg-voltage = <5000000>;
|
|
ti,otg-current = <500000>;
|
|
ti,input-current = <500000>;
|
|
pd-charge-only = <0>;
|
|
status = "disabled";
|
|
};
|
|
};
|
|
|
|
&spdif {
|
|
status = "disabled";
|
|
pinctrl-0 = <&spdif_bus>;
|
|
i2c-scl-rising-time-ns = <450>;
|
|
i2c-scl-falling-time-ns = <15>;
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
i2c-scl-rising-time-ns = <140>;
|
|
i2c-scl-falling-time-ns = <30>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "okay";
|
|
i2c-scl-rising-time-ns = <140>;
|
|
i2c-scl-falling-time-ns = <30>;
|
|
};
|
|
|
|
&i2c3 {
|
|
i2c-scl-rising-time-ns = <450>;
|
|
i2c-scl-falling-time-ns = <15>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c4 {
|
|
i2c-scl-rising-time-ns = <345>;
|
|
i2c-scl-falling-time-ns = <11>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c8 {
|
|
status = "okay";
|
|
i2c-scl-rising-time-ns = <345>;
|
|
i2c-scl-falling-time-ns = <11>;
|
|
clock-frequency = <100000>;
|
|
|
|
fusb0: typec-portc@22 {
|
|
compatible = "fcs,fusb302";
|
|
reg = <0x22>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&fusb0_int>;
|
|
int-n-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
vbus-5v-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
|
|
vbus2-5v-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
vdd_gpu: fan53555@60 {
|
|
compatible = "fcs,fan53555";
|
|
reg = <0x60>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
regulator-compatible = "fan53555-reg";
|
|
pinctrl-0 = <&vsel2_gpio>;
|
|
vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
|
|
regulator-name = "vdd_gpu";
|
|
regulator-min-microvolt = <925000>;
|
|
regulator-max-microvolt = <1225000>;
|
|
regulator-ramp-delay = <1000>;
|
|
fcs,suspend-voltage-selector = <1>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-initial-state = <3>;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&i2s0 {
|
|
i2s_8ch_mclk: i2s-8ch-mclk {
|
|
rockchip,pins = <4 RK_PA0 1 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
&i2s1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&io_domains {
|
|
status = "okay";
|
|
bt656-supply = <&vcca_1v8>;
|
|
audio-supply = <&vcca_1v8>;
|
|
sdmmc-supply = <&vccio_sd>;
|
|
gpio1830-supply = <&vcc_3v0>;
|
|
};
|
|
|
|
&isp0_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&isp1_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
ep-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
num-lanes = <4>;
|
|
pinctrl-0 = <&pcie_clkreqnb_cpm>;
|
|
bus-scan-delay-ms = <0>;
|
|
pinctrl-names = "default";
|
|
vpcie0v9-supply = <&vcca0v9_s3>; /* VCC_0V9_S0 */
|
|
vpcie1v8-supply = <&vcc1v8_s0>; /* VCC_1V8_S0 */
|
|
vpcie3v3-supply = <&vccio_3v3>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pmu_io_domains {
|
|
status = "okay";
|
|
pmu1830-supply = <&vcc_1v8>;
|
|
};
|
|
|
|
&pwm2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc {
|
|
status = "okay";
|
|
vref-supply = <&vcc_1v8>;
|
|
};
|
|
|
|
&sdio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc {
|
|
status = "okay";
|
|
supports-emmc;
|
|
sd-uhs-sdr12;
|
|
sd-uhs-sdr25;
|
|
sd-uhs-sdr50;
|
|
sd-uhs-sdr104;
|
|
};
|
|
|
|
&sdhci {
|
|
mmc-pwrseq = <&sdhci_pwrseq>;
|
|
bus-width = <8>;
|
|
mmc-hs200-1_8v;
|
|
non-removable;
|
|
status = "okay";
|
|
};
|
|
|
|
&spi1 {
|
|
status = "disable";
|
|
max-freq = <48000000>; /* spi internal clk, don't modify */
|
|
spi_dev@0 {
|
|
compatible = "rockchip,spidev";
|
|
reg = <0>;
|
|
spi-max-frequency = <48000000>;
|
|
};
|
|
};
|
|
|
|
&spi5 {
|
|
status = "disable";
|
|
max-freq = <48000000>; //spi internal clk, don't modify
|
|
spi_dev@0 {
|
|
compatible = "rockchip,spidev";
|
|
reg = <0>; //chip select 0:cs0 1:cs1
|
|
id = <0>;
|
|
spi-max-frequency = <48000000>; //spi output clock
|
|
};
|
|
};
|
|
|
|
&tcphy0 {
|
|
extcon = <&fusb0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&tcphy1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&tsadc {
|
|
/* tshut mode 0:CRU 1:GPIO */
|
|
rockchip,hw-tshut-mode = <1>;
|
|
/* tshut polarity 0:LOW 1:HIGH */
|
|
rockchip,hw-tshut-polarity = <1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy0 {
|
|
status = "okay";
|
|
extcon = <&fusb0>;
|
|
|
|
u2phy0_otg: otg-port {
|
|
status = "okay";
|
|
};
|
|
|
|
u2phy0_host: host-port {
|
|
phy-supply = <&vcc5v0_usb>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&u2phy1 {
|
|
status = "okay";
|
|
|
|
u2phy1_otg: otg-port {
|
|
status = "okay";
|
|
};
|
|
|
|
u2phy1_host: host-port {
|
|
phy-supply = <&vcc5v0_usb>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
// &uart4 {
|
|
// status = "disable";
|
|
// };
|
|
|
|
&usb_host0_ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host1_ehci {
|
|
status = "okay";
|
|
};
|
|
&usb_host0_ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host1_ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd3_0 {
|
|
extcon = <&fusb0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd3_1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3_0 {
|
|
dr_mode = "otg";
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3_1 {
|
|
status = "okay";
|
|
dr_mode = "host";
|
|
};
|
|
|
|
&vpu {
|
|
status = "okay";
|
|
/* 0 means ion, 1 means drm */
|
|
//allocator = <0>;
|
|
};
|
|
|
|
&pinctrl {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&npu_ref_clk &gpio_init>;
|
|
|
|
mipi_to_lvds {
|
|
/*pinctrl_lvds_hdmi_sel: lvds_hdmi_sel {
|
|
rockchip,pins = <0 5 0 &pcfg_pull_none>;
|
|
};*/
|
|
|
|
pinctrl_sn65dsi84_irq: sn65dsi84_irq{
|
|
rockchip,pins = <1 RK_PB2 0 &pcfg_pull_none>;
|
|
};
|
|
|
|
pinctrl_lvds_bl_en: lvds_bl_en {
|
|
rockchip,pins = <1 RK_PB0 0 &pcfg_pull_none>;
|
|
};
|
|
|
|
pinctrl_sn65dsi84_en: sn65dsi84_en {
|
|
rockchip,pins = <1 RK_PA7 0 &pcfg_pull_none>;
|
|
};
|
|
|
|
pinctrl_lvds_vdd_en: lvds_vdd_en {
|
|
rockchip,pins = <1 RK_PB1 0 &pcfg_pull_none>;
|
|
};
|
|
|
|
pinctrl_pwr_source: pwr_source {
|
|
rockchip,pins = <0 RK_PA6 0 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
bq2570 {
|
|
charger_ok_int: charger-ok-int {
|
|
rockchip,pins = <1 RK_PA1 0 &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
fusb30x {
|
|
fusb0_int: fusb0-int {
|
|
rockchip,pins = <1 RK_PA2 0 &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
headphone {
|
|
hp_det: hp-det {
|
|
rockchip,pins = <0 RK_PB5 0 &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
lcd_rst {
|
|
lcd_rst_gpio: lcd-rst-gpio {
|
|
rockchip,pins = <3 RK_PA4 0 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
gpio_init_config {
|
|
gpio_init: gpio_init {
|
|
rockchip,pins =
|
|
<1 9 0 &pcfg_pull_none>,
|
|
<1 10 0 &pcfg_pull_none>,
|
|
<1 7 0 &pcfg_pull_none>,
|
|
<1 8 0 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
npu_clk {
|
|
npu_ref_clk: npu-ref-clk {
|
|
rockchip,pins =
|
|
<0 RK_PA2 1 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
pmic {
|
|
pmic_int_l: pmic-int-l {
|
|
rockchip,pins =
|
|
<1 RK_PC2 0 &pcfg_pull_up>;
|
|
};
|
|
vsel1_gpio: vsel1-gpio {
|
|
rockchip,pins =
|
|
<1 RK_PC1 0 &pcfg_pull_down>;
|
|
};
|
|
vsel2_gpio: vsel2-gpio {
|
|
rockchip,pins =
|
|
<1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
|
|
soc_slppin_gpio: soc-slppin-gpio {
|
|
rockchip,pins =
|
|
<1 RK_PA5 0 &pcfg_output_low>;
|
|
};
|
|
|
|
soc_slppin_slp: soc-slppin-slp {
|
|
rockchip,pins =
|
|
<1 RK_PA5 1 &pcfg_pull_down>;
|
|
};
|
|
|
|
soc_slppin_rst: soc-slppin-rst {
|
|
rockchip,pins =
|
|
<1 RK_PA5 2 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
sdhci-pwrseq {
|
|
sdhci_reset: sdhci-reset {
|
|
rockchip,pins = <2 4 0 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
sdio-pwrseq {
|
|
wifi_enable_h: wifi-enable-h {
|
|
rockchip,pins =
|
|
<2 RK_PD3 0 &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
sdmmc {
|
|
sdmmc_bus1: sdmmc-bus1 {
|
|
rockchip,pins =
|
|
<4 RK_PB0 1 &pcfg_pull_up>;
|
|
};
|
|
|
|
sdmmc_bus4: sdmmc-bus4 {
|
|
rockchip,pins =
|
|
<4 RK_PB0 1 &pcfg_pull_up>,
|
|
<4 RK_PB1 1 &pcfg_pull_up>,
|
|
<4 RK_PB2 1 &pcfg_pull_up>,
|
|
<4 RK_PB3 1 &pcfg_pull_up>;
|
|
};
|
|
|
|
sdmmc_clk: sdmmc-clk {
|
|
rockchip,pins =
|
|
<4 RK_PB4 1 &pcfg_pull_none>;
|
|
};
|
|
|
|
sdmmc_cmd: sdmmc-cmd {
|
|
rockchip,pins =
|
|
<4 RK_PB5 1 &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
tp_irq {
|
|
tp_irq_gpio: tp-irq-gpio {
|
|
rockchip,pins =
|
|
<3 RK_PB0 0 &pcfg_pull_up>;
|
|
};
|
|
};
|
|
};
|