Skip to content

Commit 5e1b651

Browse files
arm64: dts: rockchip: Radxa ROCK 5 ITX DTS patch (torvalds#146)
* arm64: dts: rock 5 itx: add power led and user led Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock 5 itx: modify vbus5v0_typec enable gpio Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock 5 itx: add pwm-fan node Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock 5 itx: modify bt gpio pinctrl Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock 5 itx: modify dp sound card name Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock5 itx: remove useless node Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock5 itx: add hdmi0_phy_pll Fix dp0 display abnormality when hdmi1 and dp0 are displayed at the same time. Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock 5 itx: modify hp_det pinctrl pull down Since F_AUDIO's headphones don't have a detect pin, force the detect pin low. Signed-off-by: Ken Wang <[email protected]> * arm64: dts: rock5itx: enable vdd_0v75_s0 when suspend Fix automatic wakeup after suspend. Signed-off-by: Ken Wang <[email protected]> --------- Signed-off-by: Ken Wang <[email protected]> Co-authored-by: Ken Wang <[email protected]>
1 parent bc873d6 commit 5e1b651

File tree

1 file changed

+62
-20
lines changed

1 file changed

+62
-20
lines changed

arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts

Lines changed: 62 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626

2727
/delete-node/ chosen;
2828

29+
fan0: pwm-fan {
30+
compatible = "pwm-fan";
31+
#cooling-cells = <2>;
32+
cooling-levels = <0 64 128 192 255>;
33+
pwms = <&pwm14 0 10000 0>;
34+
};
35+
2936
vcc12v_dcin: vcc12v-dcin {
3037
compatible = "regulator-fixed";
3138
regulator-name = "vcc12v_dcin";
@@ -114,7 +121,7 @@
114121
dp0_sound: dp0-sound {
115122
status = "okay";
116123
compatible = "rockchip,hdmi";
117-
rockchip,card-name = "rockchip-dp0";
124+
rockchip,card-name = "rockchip-hdmi0";
118125
rockchip,mclk-fs = <512>;
119126
rockchip,cpu = <&spdif_tx2>;
120127
rockchip,codec = <&dp0 1>;
@@ -124,7 +131,7 @@
124131
dp1_sound: dp1-sound {
125132
status = "okay";
126133
compatible = "rockchip,hdmi";
127-
rockchip,card-name = "rockchip-dp1";
134+
rockchip,card-name = "rockchip-hdmi2";
128135
rockchip,mclk-fs = <512>;
129136
rockchip,cpu = <&spdif_tx5>;
130137
rockchip,codec = <&dp1 1>;
@@ -175,7 +182,7 @@
175182
vbus5v0_typec: vbus5v0-typec {
176183
compatible = "regulator-fixed";
177184
regulator-name = "vbus5v0_typec";
178-
gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
185+
gpio = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
179186
pinctrl-names = "default";
180187
pinctrl-0 = <&vbus5v0_typec_en>;
181188
enable-active-high;
@@ -255,6 +262,21 @@
255262
rockchip,codec = <&hdmirx_ctrler 0>;
256263
rockchip,jack-det;
257264
};
265+
266+
gpio-leds {
267+
compatible = "gpio-leds";
268+
pinctrl-names = "default";
269+
270+
power-led1 {
271+
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
272+
linux,default-trigger = "default-on";
273+
};
274+
275+
user-led2 {
276+
gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
277+
linux,default-trigger = "heartbeat";
278+
};
279+
};
258280
};
259281

260282
&av1d {
@@ -552,7 +574,7 @@
552574
compatible = "brcm,bcm4345c5";
553575
clocks = <&hym8563>;
554576
clock-names = "ext_clock";
555-
host-wakeup-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
577+
host-wakeup-gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
556578
shutdown-gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>;
557579
max-speed = <1500000>;
558580
pinctrl-names = "default";
@@ -566,21 +588,24 @@
566588
};
567589

568590
&display_subsystem {
569-
clocks = <&hdptxphy_hdmi_clk1>;
570-
clock-names = "hdmi1_phy_pll";
571-
591+
clocks = <&hdptxphy_hdmi_clk0>, <&hdptxphy_hdmi_clk1>;
592+
clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
572593
route {
573594
route_hdmi1: route-hdmi1 {
574595
status = "okay";
575596
logo,uboot = "logo.bmp";
576597
logo,kernel = "logo_kernel.bmp";
577598
logo,mode = "center";
578599
charge_logo,mode = "center";
579-
connect = <&vp1_out_hdmi1>;
600+
connect = <&vp0_out_hdmi1>;
580601
};
581602
};
582603
};
583604

605+
&hdptxphy_hdmi_clk0 {
606+
status = "okay";
607+
};
608+
584609
&hdptxphy_hdmi_clk1 {
585610
status = "okay";
586611
};
@@ -621,6 +646,10 @@
621646
pinctrl-names = "default";
622647
};
623648

649+
&hdptxphy_hdmi0 {
650+
status = "okay";
651+
};
652+
624653
&hdptxphy_hdmi1 {
625654
status = "okay";
626655
};
@@ -706,14 +735,6 @@
706735
status = "okay";
707736
};
708737

709-
&usbhost3_0 {
710-
status = "okay";
711-
};
712-
713-
&usbhost_dwc3_0 {
714-
status = "okay";
715-
};
716-
717738
&combphy2_psu {
718739
status = "okay";
719740
};
@@ -986,6 +1007,20 @@
9861007

9871008
&soc_thermal {
9881009
sustainable-power = <5000>; /* milliwatts */
1010+
cooling-maps {
1011+
map3 {
1012+
trip = <&target>;
1013+
cooling-device =
1014+
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
1015+
contribution = <8192>;
1016+
};
1017+
map4 {
1018+
trip = <&threshold>;
1019+
cooling-device =
1020+
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
1021+
contribution = <8192>;
1022+
};
1023+
};
9891024
};
9901025

9911026
&i2c6 {
@@ -1085,6 +1120,13 @@
10851120
};
10861121
};
10871122

1123+
&vdd_0v75_s0 {
1124+
regulator-state-mem {
1125+
regulator-on-in-suspend;
1126+
regulator-suspend-microvolt = <750000>;
1127+
};
1128+
};
1129+
10881130
&avcc_1v8_s0 {
10891131
regulator-state-mem {
10901132
regulator-on-in-suspend;
@@ -1137,7 +1179,7 @@
11371179
};
11381180

11391181
vbus5v0_typec_en: vbus5v0-typec-en {
1140-
rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1182+
rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
11411183
};
11421184
};
11431185

@@ -1149,7 +1191,7 @@
11491191

11501192
headphone {
11511193
hp_det: hp-det {
1152-
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none_drv_level_8>;
1194+
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>;
11531195
};
11541196
};
11551197

@@ -1173,15 +1215,15 @@
11731215

11741216
bt {
11751217
bt_enable_h: bt-enable-h {
1176-
rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
1218+
rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
11771219
};
11781220

11791221
bt_host_wake_l: bt-host-wake-l {
11801222
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
11811223
};
11821224

11831225
bt_wake_l: bt-wake-l {
1184-
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
1226+
rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
11851227
};
11861228
};
11871229

0 commit comments

Comments
 (0)