Skip to content

Commit 9e445b8

Browse files
SuperKaliHeyMeco
authored andcommitted
Update radxa 5 itx from upstream (torvalds#263)
* Update radxa 5 itx from upstream * Revert clocks because not exist
1 parent c80ec5b commit 9e445b8

File tree

1 file changed

+37
-11
lines changed

1 file changed

+37
-11
lines changed

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

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22
/*
3-
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4-
* Copyright (c) 2022 Radxa Limited
3+
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
4+
* Copyright (c) 2024 Radxa Computer (Shenzhen) Co., Ltd.
55
*
66
*/
77

@@ -26,6 +26,21 @@
2626

2727
/delete-node/ chosen;
2828

29+
adc_keys: adc-keys {
30+
compatible = "adc-keys";
31+
io-channels = <&saradc 0>;
32+
io-channel-names = "buttons";
33+
keyup-threshold-microvolt = <1800000>;
34+
poll-interval = <100>;
35+
status = "okay";
36+
37+
maskrom-key {
38+
label = "macro";
39+
linux,code = <KEY_MACRO>;
40+
press-threshold-microvolt = <1750>;
41+
};
42+
};
43+
2944
fan0: pwm-fan {
3045
compatible = "pwm-fan";
3146
#cooling-cells = <2>;
@@ -251,7 +266,13 @@
251266
};
252267
};
253268

269+
hdmiin_dc: hdmiin-dc {
270+
compatible = "rockchip,dummy-codec";
271+
#sound-dai-cells = <0>;
272+
};
273+
254274
hdmiin-sound {
275+
status = "okay";
255276
compatible = "rockchip,hdmi";
256277
rockchip,mclk-fs = <128>;
257278
rockchip,format = "i2s";
@@ -604,7 +625,8 @@
604625
status = "okay";
605626
pinctrl-names = "default";
606627
pinctrl-0 = <&hdmim0_tx1_cec &hdmim0_tx1_hpd &hdmim1_tx1_scl &hdmim1_tx1_sda>;
607-
cec-enable = "true";
628+
cec-enable = "true";
629+
enable-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
608630
};
609631

610632
&hdmi1_in_vp0 {
@@ -627,13 +649,13 @@
627649
&hdmirx_ctrler {
628650
status = "okay";
629651

630-
#sound-dai-cells = <1>;
631652
/* Effective level used to trigger HPD: 0-low, 1-high */
632653
hpd-trigger-level = <1>;
633654
hdmirx-det-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
634655

635656
pinctrl-0 = <&hdmim1_rx_cec &hdmim1_rx_hpdin &hdmim1_rx_scl &hdmim1_rx_sda &hdmirx_det>;
636657
pinctrl-names = "default";
658+
#sound-dai-cells = <1>;
637659
};
638660

639661
&hdptxphy_hdmi0 {
@@ -671,22 +693,26 @@
671693
/* vp0 & vp1 splice for 8K output */
672694
&vp0 {
673695
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0)>;
674-
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART0>;
696+
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER0>;
697+
cursor-win-id = <ROCKCHIP_VOP2_ESMART0>;
675698
};
676699

677700
&vp1 {
678701
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>;
679-
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART1>;
702+
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER1>;
703+
cursor-win-id = <ROCKCHIP_VOP2_ESMART1>;
680704
};
681705

682706
&vp2 {
683707
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2)>;
684-
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART2>;
708+
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER2>;
709+
cursor-win-id = <ROCKCHIP_VOP2_ESMART2>;
685710
};
686711

687712
&vp3 {
688713
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>;
689-
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART3>;
714+
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER3>;
715+
cursor-win-id = <ROCKCHIP_VOP2_ESMART3>;
690716
};
691717

692718
&u2phy2 {
@@ -984,13 +1010,13 @@
9841010
&soc_thermal {
9851011
sustainable-power = <5000>; /* milliwatts */
9861012
cooling-maps {
987-
map3 {
1013+
map4 {
9881014
trip = <&target>;
9891015
cooling-device =
9901016
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
9911017
contribution = <8192>;
9921018
};
993-
map4 {
1019+
map5 {
9941020
trip = <&threshold>;
9951021
cooling-device =
9961022
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
@@ -1211,4 +1237,4 @@
12111237
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
12121238
};
12131239
};
1214-
};
1240+
};

0 commit comments

Comments
 (0)