1205 lines
27 KiB
Plaintext
1205 lines
27 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
#include <dt-bindings/usb/pd.h>
|
|
#include "rk3576.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pwm/pwm.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
#include <dt-bindings/input/rk-input.h>
|
|
#include <dt-bindings/display/drm_mipi_dsi.h>
|
|
#include <dt-bindings/display/rockchip_vop.h>
|
|
#include <dt-bindings/sensor-dev.h>
|
|
#include "rk3576-rk806.dtsi"
|
|
|
|
/ {
|
|
adc_keys: adc-keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 1>;
|
|
io-channel-names = "buttons";
|
|
keyup-threshold-microvolt = <1800000>;
|
|
poll-interval = <100>;
|
|
|
|
vol-up-key {
|
|
label = "volume up";
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
press-threshold-microvolt = <17000>;
|
|
};
|
|
|
|
vol-down-key {
|
|
label = "volume down";
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
press-threshold-microvolt = <417000>;
|
|
};
|
|
|
|
menu-key {
|
|
label = "menu";
|
|
linux,code = <KEY_MENU>;
|
|
press-threshold-microvolt = <890000>;
|
|
};
|
|
|
|
back-key {
|
|
label = "back";
|
|
linux,code = <KEY_BACK>;
|
|
press-threshold-microvolt = <1235000>;
|
|
};
|
|
};
|
|
|
|
backlight: backlight {
|
|
compatible = "pwm-backlight";
|
|
pwms = <&pwm0_2ch_0 0 25000 0>;
|
|
brightness-levels = <
|
|
0 20 20 21 21 22 22 23
|
|
23 24 24 25 25 26 26 27
|
|
27 28 28 29 29 30 30 31
|
|
31 32 32 33 33 34 34 35
|
|
35 36 36 37 37 38 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>;
|
|
};
|
|
|
|
dp0_sound: dp0-sound {
|
|
status = "disabled";
|
|
compatible = "rockchip,hdmi";
|
|
rockchip,mclk-fs = <512>;
|
|
rockchip,card-name = "rockchip-dp0";
|
|
rockchip,cpu = <&spdif_tx3>;
|
|
rockchip,codec = <&dp0 1>;
|
|
rockchip,jack-det;
|
|
};
|
|
|
|
dp1_sound: dp1-sound {
|
|
status = "disabled";
|
|
compatible = "rockchip,hdmi";
|
|
rockchip,mclk-fs = <512>;
|
|
rockchip,card-name = "rockchip-dp1";
|
|
rockchip,cpu = <&spdif_tx3>;
|
|
rockchip,codec = <&dp1 1>;
|
|
rockchip,jack-det;
|
|
};
|
|
|
|
dp2_sound: dp2-sound {
|
|
status = "disabled";
|
|
compatible = "rockchip,hdmi";
|
|
rockchip,mclk-fs = <512>;
|
|
rockchip,card-name = "rockchip-dp2";
|
|
rockchip,cpu = <&spdif_tx3>;
|
|
rockchip,codec = <&dp2 1>;
|
|
rockchip,jack-det;
|
|
};
|
|
|
|
hdmi_sound: hdmi-sound {
|
|
compatible = "rockchip,hdmi";
|
|
rockchip,mclk-fs = <128>;
|
|
rockchip,card-name = "rockchip-hdmi";
|
|
rockchip,cpu = <&sai6>;
|
|
rockchip,codec = <&hdmi>;
|
|
rockchip,jack-det;
|
|
};
|
|
|
|
nau8822_sound: nau8822-sound {
|
|
status = "okay";
|
|
compatible = "rockchip,multicodecs-card";
|
|
rockchip,card-name = "rockchip-nau8822";
|
|
hp-det-gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
io-channels = <&saradc 3>;
|
|
io-channel-names = "adc-detect";
|
|
keyup-threshold-microvolt = <1800000>;
|
|
poll-interval = <100>;
|
|
rockchip,format = "i2s";
|
|
rockchip,mclk-fs = <256>;
|
|
rockchip,cpu = <&sai1>;
|
|
rockchip,codec = <&nau8822>;
|
|
rockchip,audio-routing =
|
|
"Headphone", "RHP",
|
|
"Headphone", "LHP",
|
|
"Speaker", "LSPK",
|
|
"Speaker", "RSPK",
|
|
"RMICP", "Main Mic",
|
|
"RMICN", "Main Mic",
|
|
"RMICP", "Headset Mic",
|
|
"RMICN", "Headset Mic",
|
|
"LMICP", "Main Mic",
|
|
"LMICN", "Main Mic",
|
|
"LMICP", "Headset Mic",
|
|
"LMICN", "Headset Mic";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hp_det>;
|
|
play-pause-key {
|
|
label = "playpause";
|
|
linux,code = <KEY_PLAYPAUSE>;
|
|
press-threshold-microvolt = <2000>;
|
|
poll-interval = <1000>;
|
|
};
|
|
};
|
|
|
|
pdmics: dummy-codec {
|
|
status = "disabled";
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
pdm_mic_array: pdm-mic-array {
|
|
status = "disabled";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rockchip,pdm-mic-array";
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&pdm1>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&pdmics>;
|
|
};
|
|
};
|
|
|
|
leds: leds {
|
|
compatible = "gpio-leds";
|
|
work_led: work {
|
|
gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "heartbeat";
|
|
};
|
|
};
|
|
|
|
test-power {
|
|
status = "okay";
|
|
};
|
|
|
|
vcc12v_dcin: vcc12v-dcin {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc12v_dcin";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <12000000>;
|
|
regulator-max-microvolt = <12000000>;
|
|
};
|
|
|
|
/* Fixed 1.8V regulator for SARADC reference voltage */
|
|
vcc_saradc_1v8: vcc-saradc-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_saradc_1v8";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
};
|
|
|
|
vcc_sys: vcc5v0-sys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc12v_dcin>;
|
|
};
|
|
|
|
vcc5v0_device: vcc5v0-device {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_device";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc12v_dcin>;
|
|
};
|
|
|
|
vcc_2v0_pldo_s3: vcc-2v0-pldo-s3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_2v0_pldo_s3";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <2000000>;
|
|
regulator-max-microvolt = <2000000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_1v1_nldo_s3";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1100000>;
|
|
regulator-max-microvolt = <1100000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vcc3v3_rtc_s5: vcc3v3-rtc-s5 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_rtc_s5";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vcc_1v8_s0: vcc-1v8-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_1v8_s0";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vcc_1v8_s3>;
|
|
};
|
|
|
|
vcc_3v3_s0: vcc-3v3-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_3v3_s0";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_3v3_s3>;
|
|
};
|
|
|
|
vcc_5v: vcc-5v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_5v";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc12v_dcin>;
|
|
};
|
|
|
|
vcc_ufs_s0: vcc-ufs-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_ufs_s0";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vcc1v8_ufs_vccq2_s0: vcc1v8-ufs-vccq2-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc1v8_ufs_vccq2_s0";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vcc_1v8_s3>;
|
|
};
|
|
|
|
vcc1v2_ufs_vccq_s0: vcc1v2-ufs-vccq-s0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc1v2_ufs_vccq_s0";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
vin-supply = <&vcc_sys>;
|
|
};
|
|
|
|
vcc3v3_lcd_n: vcc3v3-lcd0-n {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_lcd0_n";
|
|
regulator-boot-on;
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc_3v3_s0>;
|
|
};
|
|
|
|
|
|
vcc5v0_host: vcc5v0-host {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_host";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc5v0_device>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb_host_pwren>;
|
|
};
|
|
|
|
vbus5v0_typec: vbus5v0-typec {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vbus5v0_typec";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PD1 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc5v0_device>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb_otg0_pwren>;
|
|
};
|
|
|
|
vcc_mipicsi0: vcc-mipicsi0-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_mipicsi0";
|
|
enable-active-high;
|
|
};
|
|
|
|
vcc_mipicsi1: vcc-mipicsi1-regulator {
|
|
compatible = "regulator-fixed";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mipicsi1_pwr>;
|
|
regulator-name = "vcc_mipicsi1";
|
|
enable-active-high;
|
|
};
|
|
|
|
vcc_mipidcphy0: vcc-mipidcphy0-regulator {
|
|
compatible = "regulator-fixed";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mipidcphy0_pwr>;
|
|
regulator-name = "vcc_mipidcphy0";
|
|
enable-active-high;
|
|
};
|
|
|
|
wireless_bluetooth: wireless-bluetooth {
|
|
compatible = "bluetooth-platdata";
|
|
uart_rts_gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default", "rts_gpio";
|
|
pinctrl-0 = <&uart4m1_rtsn>;
|
|
pinctrl-1 = <&uart4_gpios>;
|
|
BT,reset_gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
|
BT,wake_gpio = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
|
|
BT,wake_host_irq = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
wireless_wlan: wireless-wlan {
|
|
compatible = "wlan-platdata";
|
|
wifi_chip_type = "mvl88w8987";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_host_wake_irq>;
|
|
WIFI,host_wake_irq = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
WIFI,poweren_gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_poweren_gpio>;
|
|
|
|
/*
|
|
* 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)
|
|
*/
|
|
post-power-on-delay-ms = <200>;
|
|
reset-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
status = "okay";
|
|
};
|
|
|
|
wifi_ext_clk: wifi_ext_clk {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "wifi_ext_clk";
|
|
#clock-cells = <0>;
|
|
};
|
|
|
|
5g-pwr {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "5g-pwr";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
gpio = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&net_5g_pwr_gpio>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&can0 {
|
|
assigned-clocks = <&cru CLK_CAN0>;
|
|
assigned-clock-rates = <200000000>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&can0m2_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&can1 {
|
|
assigned-clocks = <&cru CLK_CAN1>;
|
|
assigned-clock-rates = <200000000>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&can1m3_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&combphy0_ps {
|
|
status = "okay";
|
|
};
|
|
|
|
&combphy1_psu {
|
|
status = "okay";
|
|
};
|
|
|
|
&dp {
|
|
status = "okay";
|
|
};
|
|
|
|
&dp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dp0_in_vp2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dp0_sound {
|
|
status = "okay";
|
|
};
|
|
|
|
&cpu_l0 {
|
|
cpu-supply = <&vdd_cpu_lit_s0>;
|
|
};
|
|
|
|
&cpu_b0 {
|
|
cpu-supply = <&vdd_cpu_big_s0>;
|
|
};
|
|
|
|
&display_subsystem {
|
|
clocks = <&hdptxphy_hdmi>;
|
|
clock-names = "hdmi0_phy_pll";
|
|
};
|
|
|
|
&hdmi {
|
|
status = "okay";
|
|
enable-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
rockchip,sda-falling-delay-ns = <360>;
|
|
};
|
|
|
|
&hdmi_in_vp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdptxphy_hdmi {
|
|
status = "okay";
|
|
};
|
|
|
|
&route_hdmi {
|
|
status = "okay";
|
|
connect = <&vp0_out_hdmi>;
|
|
};
|
|
&bus_a72 {
|
|
bus-supply = <&vdd_logic_s0>;
|
|
pvtm-supply = <&vdd_logic_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
/*
|
|
* mipidcphy0 needs to be enabled
|
|
* when dsi is enabled
|
|
*/
|
|
&mipidcphy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi {
|
|
status = "okay";
|
|
//rockchip,lane-rate = <1000>;
|
|
dsi_panel: panel@0 {
|
|
status = "okay";
|
|
compatible = "simple-panel-dsi";
|
|
reg = <0>;
|
|
power-supply = <&vcc3v3_lcd_n>;
|
|
backlight = <&backlight>;
|
|
reset-delay-ms = <10>;
|
|
enable-delay-ms = <10>;
|
|
prepare-delay-ms = <10>;
|
|
unprepare-delay-ms = <10>;
|
|
disable-delay-ms = <60>;
|
|
width-mm = <68>;
|
|
height-mm = <121>;
|
|
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
|
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET )>;
|
|
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
|
dsi,lanes = <4>;
|
|
panel-init-sequence = [
|
|
];
|
|
|
|
panel-exit-sequence = [
|
|
05 00 01 28
|
|
05 00 01 10
|
|
];
|
|
|
|
disp_timings0: display-timings {
|
|
native-mode = <&dsi_timing0>;
|
|
dsi_timing0: timing0 {
|
|
clock-frequency = <45000000>;
|
|
hactive = <1024>;
|
|
vactive = <600>;
|
|
hfront-porch = <40>;
|
|
hsync-len = <48>;
|
|
hback-porch = <48>;
|
|
vfront-porch = <40>;
|
|
vsync-len = <4>;
|
|
vback-porch = <48>;
|
|
hsync-active = <0>;
|
|
vsync-active = <0>;
|
|
de-active = <0>;
|
|
pixelclk-active = <0>;
|
|
};
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
panel_in_dsi: endpoint {
|
|
remote-endpoint = <&dsi_out_panel>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
dsi_out_panel: endpoint {
|
|
remote-endpoint = <&panel_in_dsi>;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&dsi_in_vp0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&dsi_in_vp1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi_in_vp2 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&dsi_in_vopl {
|
|
status = "disabled";
|
|
};
|
|
|
|
&gpu {
|
|
mali-supply = <&vdd_gpu_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "okay";
|
|
|
|
gpio99: gpio@23 {
|
|
compatible = "nxp,pcal6524";
|
|
reg = <0x23>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* gpio6_161 */
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
status = "okay";
|
|
};
|
|
|
|
ft5x06: ft5x06@38{
|
|
power-supply = <&vcc3v3_lcd_n>;
|
|
compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
|
|
reg = <0x38>;
|
|
pinctrl-names = "defaults";
|
|
pinctrl-0 = <&ft5x06_int>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <RK_PC5 IRQ_TYPE_EDGE_FALLING>;
|
|
touchscreen-size-x = <1024>;
|
|
touchscreen-size-y = <600>;
|
|
status = "okay";
|
|
};
|
|
|
|
usbc0: fusb302@22 {
|
|
compatible = "fcs,fusb302";
|
|
reg = <0x22>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usbc0_int>;
|
|
vbus-supply = <&vbus5v0_typec>;
|
|
status = "okay";
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
usbc0_role_sw: endpoint {
|
|
remote-endpoint = <&usb_drd0_role_switch>;
|
|
};
|
|
};
|
|
};
|
|
|
|
usb_con: connector {
|
|
compatible = "usb-c-connector";
|
|
label = "USB-C";
|
|
data-role = "dual";
|
|
power-role = "dual";
|
|
try-power-role = "sink";
|
|
op-sink-microwatt = <1000000>;
|
|
sink-pdos =
|
|
<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
|
|
source-pdos =
|
|
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
|
|
displayport = <&dp>;
|
|
|
|
altmodes {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
altmode@0 {
|
|
reg = <0>;
|
|
svid = <0xff01>;
|
|
vdo = <0xffffffff>;
|
|
};
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
usbc0_orien_sw: endpoint {
|
|
remote-endpoint = <&usbdp_phy_orientation_switch>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
dp_altmode_mux: endpoint {
|
|
remote-endpoint = <&usbdp_phy_dp_altmode_mux>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c5 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c5m3_xfer>;
|
|
|
|
nau8822: nau8822@1a {
|
|
#sound-dai-cells = <0>;
|
|
compatible = "nuvoton,nau8822";
|
|
reg = <0x1a>;
|
|
clocks = <&mclkout_sai1>;
|
|
clock-names = "mclk";
|
|
assigned-clocks = <&mclkout_sai1>;
|
|
assigned-clock-rates = <12288000>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sai1m0_mclk>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&i2c7 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c7m1_xfer>;
|
|
|
|
rx8010:rx8010@32 {
|
|
compatible = "epson,rx8010";
|
|
reg = <0x32>;
|
|
status = "okay";
|
|
};
|
|
|
|
icm42607_acc: icm_acc@68 {
|
|
status = "okay";
|
|
compatible = "icm42607_acc";
|
|
reg = <0x68>;
|
|
irq-gpio = <&gpio1 RK_PD5 IRQ_TYPE_EDGE_RISING>;
|
|
irq_enable = <0>;
|
|
poll_delay_ms = <30>;
|
|
type = <SENSOR_TYPE_ACCEL>;
|
|
layout = <4>;
|
|
};
|
|
|
|
icm42607_gyro: icm_gyro@68 {
|
|
status = "okay";
|
|
compatible = "icm42607_gyro";
|
|
reg = <0x68>;
|
|
poll_delay_ms = <30>;
|
|
type = <SENSOR_TYPE_GYROSCOPE>;
|
|
layout = <4>;
|
|
};
|
|
};
|
|
|
|
&iep {
|
|
status = "okay";
|
|
};
|
|
|
|
&iep_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&jpegd {
|
|
status = "okay";
|
|
};
|
|
|
|
&jpege {
|
|
status = "okay";
|
|
};
|
|
|
|
&jpeg_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&mpp_srv {
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
touch {
|
|
ft5x06_int: ft5x06-int {
|
|
rockchip,pins =
|
|
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
uart4_gpios: uart4-gpios {
|
|
rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
wireless-wlan {
|
|
wifi_host_wake_irq: wifi-host-wake-irq {
|
|
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
|
|
wifi_poweren_gpio: wifi-poweren-gpio {
|
|
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
5g {
|
|
net_5g_rst_gpio: net_5g_rst_gpio {
|
|
rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
net_5g_pwr_gpio: net_5g_pwr_gpio {
|
|
rockchip,pins = <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
cam {
|
|
|
|
mipicsi1_pwr: mipicsi1-pwr {
|
|
rockchip,pins =
|
|
/* camera power en */
|
|
<3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
mipidcphy0_pwr: mipidcphy0-pwr {
|
|
rockchip,pins =
|
|
/* camera power en */
|
|
<3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
headphone {
|
|
hp_det: hp-det {
|
|
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
|
|
usb {
|
|
usb_host_pwren: usb-host-pwren {
|
|
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
usb_otg0_pwren: usb-otg0-pwren {
|
|
rockchip,pins = <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
usbc0_int: usbc0-int {
|
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pwm0_2ch_0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rga2_core0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rga2_core0_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rga2_core1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rga2_core1_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rknpu {
|
|
rknpu-supply = <&vdd_npu_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&rknpu_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc_ccu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc0_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc1_mmu {
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
&rkvdec {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvdec_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rockchip_suspend {
|
|
status = "okay";
|
|
rockchip,sleep-debug-en = <1>;
|
|
|
|
rockchip,sleep-io-ret-config = <
|
|
(0
|
|
| RKPM_VCCIO3_RET_EN
|
|
)
|
|
>;
|
|
rockchip,regulator-on-before-mem = <&vdd_npu_s0>;
|
|
};
|
|
|
|
&route_dsi {
|
|
status = "okay";
|
|
};
|
|
|
|
&sai6 {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc {
|
|
status = "okay";
|
|
vref-supply = <&vcc_saradc_1v8>;
|
|
};
|
|
|
|
&sdhci {
|
|
bus-width = <8>;
|
|
no-sdio;
|
|
no-sd;
|
|
non-removable;
|
|
max-frequency = <200000000>;
|
|
mmc-hs400-1_8v;
|
|
mmc-hs400-enhanced-strobe;
|
|
full-pwr-cycle-in-suspend;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc {
|
|
max-frequency = <200000000>;
|
|
no-sdio;
|
|
no-mmc;
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
disable-wp;
|
|
sd-uhs-sdr104;
|
|
/delete-property/ rockchip,use-v2-tuning;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdio {
|
|
max-frequency = <200000000>;
|
|
no-sd;
|
|
no-mmc;
|
|
bus-width = <4>;
|
|
disable-wp;
|
|
cap-sd-highspeed;
|
|
cap-sdio-irq;
|
|
keep-power-in-suspend;
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
non-removable;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc1m0_bus4 &sdmmc1m0_clk &sdmmc1m0_cmd>;
|
|
sd-uhs-sdr104;
|
|
status = "okay";
|
|
};
|
|
|
|
&tsadc {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy0_otg {
|
|
status = "okay";
|
|
rockchip,typec-vbus-det;
|
|
};
|
|
|
|
&u2phy1_otg {
|
|
status = "okay";
|
|
phy-supply = <&vcc5v0_host>;
|
|
};
|
|
|
|
&uart4 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart4m1_xfer &uart4m1_ctsn>;
|
|
};
|
|
|
|
&uart5 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart5m1_xfer>;
|
|
};
|
|
|
|
&uart6 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart6m3_xfer>;
|
|
};
|
|
|
|
&uart8 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn &uart8m0_rtsn>;
|
|
};
|
|
|
|
&ufs {
|
|
status = "okay";
|
|
reset-gpios = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
&usbdp_phy {
|
|
status = "okay";
|
|
orientation-switch;
|
|
svid = <0xff01>;
|
|
sbu1-dc-gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
sbu2-dc-gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
usbdp_phy_orientation_switch: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&usbc0_orien_sw>;
|
|
};
|
|
|
|
usbdp_phy_dp_altmode_mux: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&dp_altmode_mux>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&usbdp_phy_dp {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdp_phy_u3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_drd0_dwc3 {
|
|
status = "okay";
|
|
dr_mode = "otg";
|
|
usb-role-switch;
|
|
port {
|
|
usb_drd0_role_switch: endpoint {
|
|
remote-endpoint = <&usbc0_role_sw>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&usb_drd1_dwc3 {
|
|
dr_mode = "host";
|
|
status = "okay";
|
|
};
|
|
|
|
&vdpp {
|
|
status = "okay";
|
|
};
|
|
|
|
&vop {
|
|
status = "okay";
|
|
/* vop-supply = <&vdd_logic_s0>; */
|
|
};
|
|
|
|
&vop_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&vp2 {
|
|
assigned-clocks = <&cru DCLK_VP2_SRC>;
|
|
assigned-clock-parents = <&cru PLL_VPLL>;
|
|
};
|
|
|
|
&gmac0 {
|
|
/* Use rgmii-rxid mode to disable rx delay inside Soc */
|
|
phy-mode = "rgmii-rxid";
|
|
clock_in_out = "output";
|
|
|
|
snps,reset-gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_LOW>;
|
|
snps,reset-active-low;
|
|
/* Reset time is 20ms, 100ms for rtl8211f */
|
|
snps,reset-delays-us = <0 20000 100000>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <ð0m0_miim
|
|
ð0m0_tx_bus2
|
|
ð0m0_rx_bus2
|
|
ð0m0_rgmii_clk
|
|
ð0m0_rgmii_bus
|
|
ðm0_clk0_25m_out>;
|
|
|
|
tx_delay = <0x21>;
|
|
/* rx_delay = <0x3f>; */
|
|
|
|
phy-handle = <&rgmii_phy0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&gmac1 {
|
|
/* Use rgmii-rxid mode to disable rx delay inside Soc */
|
|
phy-mode = "rgmii-rxid";
|
|
clock_in_out = "output";
|
|
|
|
snps,reset-gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
|
|
snps,reset-active-low;
|
|
/* Reset time is 20ms, 100ms for rtl8211f */
|
|
snps,reset-delays-us = <0 20000 100000>;
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <ð1m0_miim
|
|
ð1m0_tx_bus2
|
|
ð1m0_rx_bus2
|
|
ð1m0_rgmii_clk
|
|
ð1m0_rgmii_bus
|
|
ðm0_clk1_25m_out>;
|
|
|
|
tx_delay = <0x20>;
|
|
/* rx_delay = <0x3f>; */
|
|
|
|
phy-handle = <&rgmii_phy1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio0 {
|
|
rgmii_phy0: phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1>;
|
|
clocks = <&cru REFCLKO25M_GMAC0_OUT>;
|
|
};
|
|
};
|
|
|
|
&mdio1 {
|
|
rgmii_phy1: phy@2 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x2>;
|
|
clocks = <&cru REFCLKO25M_GMAC1_OUT>;
|
|
};
|
|
};
|
|
|
|
&pcie0 {
|
|
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
rockchip,skip-scan-in-resume;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&pdm1 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pdm1m1_clk0
|
|
&pdm1m1_clk1
|
|
&pdm1m1_sdi0
|
|
&pdm1m1_sdi1
|
|
&pdm1m1_sdi2
|
|
&pdm1m1_sdi3>;
|
|
};
|
|
|
|
&sai1 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sai1m0_lrck
|
|
&sai1m0_sclk
|
|
&sai1m0_sdi0
|
|
&sai1m0_sdo0>;
|
|
};
|
|
|
|
&spdif_tx3 {
|
|
status = "okay";
|
|
};
|