| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
|
| 3 |
/dts-v1/; |
| 4 |
|
| 5 |
#include "rk3588-rock-5b-5bp-5t.dtsi" |
| 6 |
|
| 7 |
/ { |
| 8 |
model = "Radxa ROCK 5T"; |
| 9 |
compatible = "radxa,rock-5t", "rockchip,rk3588"; |
| 10 |
|
| 11 |
analog-sound { |
| 12 |
compatible = "audio-graph-card"; |
| 13 |
label = "rk3588-es8316"; |
| 14 |
|
| 15 |
widgets = "Microphone", "Mic Jack", |
| 16 |
"Headphone", "Headphones"; |
| 17 |
|
| 18 |
routing = "MIC2", "Mic Jack", |
| 19 |
"Headphones", "HPOL", |
| 20 |
"Headphones", "HPOR"; |
| 21 |
|
| 22 |
dais = <&i2s0_8ch_p0>; |
| 23 |
hp-det-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; |
| 24 |
pinctrl-names = "default"; |
| 25 |
pinctrl-0 = <&hp_detect>; |
| 26 |
}; |
| 27 |
|
| 28 |
leds { |
| 29 |
compatible = "gpio-leds"; |
| 30 |
pinctrl-names = "default"; |
| 31 |
pinctrl-0 = <&led_rgb_b>; |
| 32 |
|
| 33 |
led_rgb_b { |
| 34 |
function = LED_FUNCTION_STATUS; |
| 35 |
color = <LED_COLOR_ID_BLUE>; |
| 36 |
gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; |
| 37 |
linux,default-trigger = "heartbeat"; |
| 38 |
}; |
| 39 |
}; |
| 40 |
|
| 41 |
rfkill { |
| 42 |
compatible = "rfkill-gpio"; |
| 43 |
label = "rfkill-m2-wlan"; |
| 44 |
radio-type = "wlan"; |
| 45 |
shutdown-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 46 |
}; |
| 47 |
|
| 48 |
vcc3v3_pcie2x1l1: regulator-vcc3v3-pcie2x1l2 { |
| 49 |
compatible = "regulator-fixed"; |
| 50 |
regulator-name = "vcc3v3_pcie2x1l1"; |
| 51 |
regulator-min-microvolt = <3300000>; |
| 52 |
regulator-max-microvolt = <3300000>; |
| 53 |
startup-delay-us = <5000>; |
| 54 |
vin-supply = <&vcc_3v3_s3>; |
| 55 |
}; |
| 56 |
}; |
| 57 |
|
| 58 |
&hdmi_receiver { |
| 59 |
hpd-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>; |
| 60 |
status = "okay"; |
| 61 |
}; |
| 62 |
|
| 63 |
&i2c1 { |
| 64 |
eeprom@50 { |
| 65 |
compatible = "belling,bl24c16a", "atmel,24c16"; |
| 66 |
reg = <0x50>; |
| 67 |
pagesize = <16>; |
| 68 |
read-only; |
| 69 |
vcc-supply = <&vcc_3v3_s3>; |
| 70 |
}; |
| 71 |
}; |
| 72 |
|
| 73 |
&pcie2x1l1 { |
| 74 |
pinctrl-names = "default"; |
| 75 |
pinctrl-0 = <&pcie2_1_rst>; |
| 76 |
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 77 |
vpcie3v3-supply = <&vcc3v3_pcie2x1l1>; |
| 78 |
status = "okay"; |
| 79 |
}; |
| 80 |
|
| 81 |
&pcie30phy { |
| 82 |
data-lanes = <1 1 2 2>; |
| 83 |
}; |
| 84 |
|
| 85 |
&pcie3x2 { |
| 86 |
pinctrl-names = "default"; |
| 87 |
pinctrl-0 = <&pcie3x2_rst>; |
| 88 |
reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 89 |
vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 90 |
status = "okay"; |
| 91 |
}; |
| 92 |
|
| 93 |
&pcie3x4 { |
| 94 |
num-lanes = <2>; |
| 95 |
}; |
| 96 |
|
| 97 |
&pinctrl { |
| 98 |
hdmirx { |
| 99 |
hdmirx_hpd: hdmirx-5v-detection { |
| 100 |
rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 101 |
}; |
| 102 |
}; |
| 103 |
|
| 104 |
leds { |
| 105 |
led_rgb_b: led-rgb-b { |
| 106 |
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 107 |
}; |
| 108 |
}; |
| 109 |
|
| 110 |
pcie2 { |
| 111 |
pcie2_1_rst: pcie2-1-rst { |
| 112 |
rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 113 |
}; |
| 114 |
pcie2_0_vcc3v3_en: pcie2-0-vcc-en { |
| 115 |
rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 116 |
}; |
| 117 |
}; |
| 118 |
|
| 119 |
pcie3 { |
| 120 |
pcie3x2_rst: pcie3x2-rst { |
| 121 |
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 122 |
}; |
| 123 |
}; |
| 124 |
|
| 125 |
sound { |
| 126 |
hp_detect: hp-detect { |
| 127 |
rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 128 |
}; |
| 129 |
}; |
| 130 |
|
| 131 |
usb { |
| 132 |
vcc5v0_host_en: vcc5v0-host-en { |
| 133 |
rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 134 |
}; |
| 135 |
|
| 136 |
usbc_sbu_dc: usbc-sbu-dc { |
| 137 |
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, |
| 138 |
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 139 |
}; |
| 140 |
}; |
| 141 |
}; |
| 142 |
|
| 143 |
&usb_con { |
| 144 |
power-role = "source"; |
| 145 |
}; |
| 146 |
|
| 147 |
&usbdp_phy0 { |
| 148 |
pinctrl-names = "default"; |
| 149 |
pinctrl-0 = <&usbc_sbu_dc>; |
| 150 |
sbu1-dc-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
| 151 |
sbu2-dc-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
| 152 |
}; |
| 153 |
|
| 154 |
&vcc3v3_pcie2x1l0 { |
| 155 |
gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
| 156 |
pinctrl-names = "default"; |
| 157 |
pinctrl-0 = <&pcie2_0_vcc3v3_en>; |
| 158 |
status = "okay"; |
| 159 |
}; |
| 160 |
|
| 161 |
&vcc5v0_host { |
| 162 |
enable-active-high; |
| 163 |
gpio = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; |
| 164 |
pinctrl-names = "default"; |
| 165 |
pinctrl-0 = <&vcc5v0_host_en>; |
| 166 |
}; |