| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
|
| 3 |
/dts-v1/; |
| 4 |
|
| 5 |
#include "rk3588-rock-5b.dtsi" |
| 6 |
|
| 7 |
/ { |
| 8 |
model = "Radxa ROCK 5B+"; |
| 9 |
compatible = "radxa,rock-5b-plus", "rockchip,rk3588"; |
| 10 |
|
| 11 |
rfkill-wwan { |
| 12 |
compatible = "rfkill-gpio"; |
| 13 |
label = "rfkill-m2-wwan"; |
| 14 |
radio-type = "wwan"; |
| 15 |
shutdown-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 16 |
}; |
| 17 |
|
| 18 |
vcc3v3_4g: regulator-vcc3v3-4g { |
| 19 |
compatible = "regulator-fixed"; |
| 20 |
enable-active-high; |
| 21 |
gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 22 |
/* pinctrl for the GPIO is requested by vcc3v3_pcie2x1l0 */ |
| 23 |
regulator-name = "vcc3v3_4g"; |
| 24 |
regulator-always-on; |
| 25 |
regulator-boot-on; |
| 26 |
regulator-min-microvolt = <3300000>; |
| 27 |
regulator-max-microvolt = <3300000>; |
| 28 |
startup-delay-us = <50000>; |
| 29 |
vin-supply = <&vcc5v0_sys>; |
| 30 |
}; |
| 31 |
|
| 32 |
vcc3v3_wwan_pwr: regulator-vcc3v3-wwan { |
| 33 |
compatible = "regulator-fixed"; |
| 34 |
enable-active-high; |
| 35 |
gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>; |
| 36 |
pinctrl-names = "default"; |
| 37 |
pinctrl-0 = <&wwan_power_en>; |
| 38 |
regulator-name = "vcc3v3_wwan_pwr"; |
| 39 |
regulator-always-on; |
| 40 |
regulator-boot-on; |
| 41 |
regulator-min-microvolt = <3300000>; |
| 42 |
regulator-max-microvolt = <3300000>; |
| 43 |
vin-supply = <&vcc3v3_4g>; |
| 44 |
}; |
| 45 |
}; |
| 46 |
|
| 47 |
&gpio0 { |
| 48 |
wwan-disable2-n-hog { |
| 49 |
gpios = <RK_PB2 GPIO_ACTIVE_LOW>; |
| 50 |
output-low; |
| 51 |
line-name = "M.2 B-key W_DISABLE2#"; |
| 52 |
gpio-hog; |
| 53 |
}; |
| 54 |
}; |
| 55 |
|
| 56 |
&gpio2 { |
| 57 |
wwan-reset-n-hog { |
| 58 |
gpios = <RK_PB3 GPIO_ACTIVE_LOW>; |
| 59 |
output-low; |
| 60 |
line-name = "M.2 B-key RESET#"; |
| 61 |
gpio-hog; |
| 62 |
}; |
| 63 |
|
| 64 |
wwan-wake-n-hog { |
| 65 |
gpios = <RK_PB2 GPIO_ACTIVE_LOW>; |
| 66 |
input; |
| 67 |
line-name = "M.2 B-key WoWWAN#"; |
| 68 |
gpio-hog; |
| 69 |
}; |
| 70 |
}; |
| 71 |
|
| 72 |
&i2c1 { |
| 73 |
eeprom@50 { |
| 74 |
compatible = "belling,bl24c16a", "atmel,24c16"; |
| 75 |
reg = <0x50>; |
| 76 |
pagesize = <16>; |
| 77 |
read-only; |
| 78 |
vcc-supply = <&vcc_3v3_s3>; |
| 79 |
}; |
| 80 |
}; |
| 81 |
|
| 82 |
&pcie30phy { |
| 83 |
data-lanes = <1 1 2 2>; |
| 84 |
}; |
| 85 |
|
| 86 |
&pcie3x2 { |
| 87 |
pinctrl-names = "default"; |
| 88 |
pinctrl-0 = <&pcie3x2_rst>; |
| 89 |
reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 90 |
vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 91 |
status = "okay"; |
| 92 |
}; |
| 93 |
|
| 94 |
&pcie3x4 { |
| 95 |
num-lanes = <2>; |
| 96 |
}; |
| 97 |
|
| 98 |
&pinctrl { |
| 99 |
wwan { |
| 100 |
wwan_power_en: wwan-pwr-en { |
| 101 |
rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 102 |
}; |
| 103 |
}; |
| 104 |
|
| 105 |
pcie3 { |
| 106 |
pcie3x2_rst: pcie3x2-rst { |
| 107 |
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 108 |
}; |
| 109 |
}; |
| 110 |
|
| 111 |
usb { |
| 112 |
usbc_sbu_dc: usbc-sbu-dc { |
| 113 |
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, |
| 114 |
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 115 |
}; |
| 116 |
|
| 117 |
vcc5v0_host_en: vcc5v0-host-en { |
| 118 |
rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 119 |
}; |
| 120 |
}; |
| 121 |
}; |
| 122 |
|
| 123 |
&usb_con { |
| 124 |
power-role = "dual"; |
| 125 |
try-power-role = "sink"; |
| 126 |
}; |
| 127 |
|
| 128 |
&usbdp_phy0 { |
| 129 |
pinctrl-names = "default"; |
| 130 |
pinctrl-0 = <&usbc_sbu_dc>; |
| 131 |
sbu1-dc-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
| 132 |
sbu2-dc-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
| 133 |
}; |
| 134 |
|
| 135 |
&vcc5v0_host { |
| 136 |
enable-active-high; |
| 137 |
gpio = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; |
| 138 |
pinctrl-names = "default"; |
| 139 |
pinctrl-0 = <&vcc5v0_host_en>; |
| 140 |
}; |