Skip to content

Commit 6e07a8d

Browse files
Ken-VamrsRadxaYuntian
authored andcommitted
overlay: update some overlay
modify cm4 pin27 pin28 just i2c6m3 Signed-off-by: Ken Wang <[email protected]>
1 parent 452fd76 commit 6e07a8d

File tree

8 files changed

+129
-20
lines changed

8 files changed

+129
-20
lines changed

arch/arm64/boot/dts/rockchip/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ dtb-$(CONFIG_CPU_RK3576) += \
400400
radxa-cm4-io-radxa-display-8hd.dtbo \
401401
radxa-cm4-io-radxa-display-10fhd.dtbo \
402402
radxa-cm4-io-radxa-display-10hd.dtbo \
403+
radxa-cm4-io-raspberrypi-7inch-touchscreen.dtbo \
403404
radxa-cm4-io-rpi-camera-v1p3-on-cam1.dtbo \
404405
radxa-cm4-io-rpi-camera-v1p3-on-cam2.dtbo \
405406
radxa-cm4-io-rpi-camera-v2-on-cam1.dtbo \
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
metadata {
6+
title = "Enable Raspiberry Pi 7-inch Touchscreen";
7+
compatible = "radxa,cm4-io";
8+
category = "display";
9+
exclusive = "dsi";
10+
description = "Enable Raspiberry Pi 7-inch Touchscreen.";
11+
};
12+
};
13+
14+
&dsi {
15+
status = "okay";
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
rockchip,lane-rate = <605>;
19+
20+
dsi0_panel: dsi-panel@0 {
21+
compatible = "raspits,tc358762";
22+
reg = <0x0>;
23+
status = "okay";
24+
25+
ports {
26+
#address-cells = <1>;
27+
#size-cells = <0>;
28+
29+
port@0 {
30+
reg = <0>;
31+
panel_in_dsi: endpoint {
32+
remote-endpoint = <&dsi_out_panel>;
33+
};
34+
};
35+
};
36+
};
37+
38+
ports {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
port@1 {
43+
reg = <1>;
44+
dsi_out_panel: endpoint {
45+
remote-endpoint = <&panel_in_dsi>;
46+
};
47+
};
48+
};
49+
};
50+
51+
&mipidcphy0 {
52+
status = "okay";
53+
};
54+
55+
&route_dsi {
56+
status = "okay";
57+
connect = <&vp2_out_dsi>;
58+
};
59+
60+
&vp2_out_dsi {
61+
status = "okay";
62+
};
63+
64+
&dsi_in_vp2 {
65+
status = "okay";
66+
};
67+
68+
&vp1_out_dsi {
69+
status = "disabled";
70+
};
71+
72+
&dsi_in_vp1 {
73+
status = "disabled";
74+
};
75+
76+
&i2c0 {
77+
status = "okay";
78+
pinctrl-names = "default";
79+
pinctrl-0 = <&i2c0m1_xfer>;
80+
#address-cells = <1>;
81+
#size-cells = <0>;
82+
83+
raspits_ft5426: raspits_ft5426@38 {
84+
compatible = "raspits_ft5426";
85+
reg = <0x38>;
86+
};
87+
88+
rockpi_mcu: rockpi-mcu@45 {
89+
compatible = "rockpi_mcu";
90+
reg = <0x45>;
91+
};
92+
};

arch/arm64/boot/dts/rockchip/overlays/radxa-cm4-rpi-cm4-io-raspberrypi-7inch-touchscreen.dts

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
/ {
55
metadata {
6-
title = "Enable Raspiberry Pi 7-inch Touchscreen";
6+
title = "Enable Raspiberry Pi 7-inch Touchscreen on DISP1";
77
compatible = "radxa,cm4-rpi-cm4-io";
88
category = "display";
99
exclusive = "dsi";
10-
description = "Enable Raspiberry Pi 7-inch Touchscreen.";
10+
description = "Enable Raspiberry Pi 7-inch Touchscreen on DISP1.";
1111
};
1212
};
1313

@@ -21,6 +21,30 @@
2121
compatible = "raspits,tc358762";
2222
reg = <0x0>;
2323
status = "okay";
24+
rockchip,lane-rate = <600>;
25+
26+
display_timings0: display-timings {
27+
native-mode = <&dsi0_timing>;
28+
29+
dsi0_timing: timing0 {
30+
clock-frequency = <26000000>;
31+
hactive = <800>;
32+
vactive = <480>;
33+
34+
hsync-len = <85>;
35+
hback-porch = <55>;
36+
hfront-porch = <42>;
37+
38+
vsync-len = <12>;
39+
vback-porch = <7>;
40+
vfront-porch = <10>;
41+
42+
hsync-active = <0>;
43+
vsync-active = <0>;
44+
de-active = <0>;
45+
pixelclk-active = <0>;
46+
};
47+
};
2448

2549
ports {
2650
#address-cells = <1>;
@@ -75,6 +99,8 @@
7599

76100
&i2c0 {
77101
status = "okay";
102+
pinctrl-names = "default";
103+
pinctrl-0 = <&i2c0m1_xfer>;
78104
#address-cells = <1>;
79105
#size-cells = <0>;
80106

arch/arm64/boot/dts/rockchip/overlays/rk3576-can1-m1.dts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
/ {
77
metadata {
88
title = "Enable CAN1-M1";
9-
compatible = "radxa,cm4-rpi-cm4-io", "radxa,cm4-io", "radxa,rock-4d";
9+
compatible = "radxa,rock-4d";
1010
category = "misc";
1111
exclusive = "GPIO4_C6", "GPIO4_C7", "can1";
1212
description = "Enable CAN1-M1.
13-
On Radxa CM4 IO this is TX pin 28 and RX pin 27.
14-
On Radxa CM4 RPI CM4 IO this is TX pin 28 and RX pin 27.
1513
On Radxa ROCK 4D this is TX pin 28 and RX pin 27.
1614
";
1715
};

arch/arm64/boot/dts/rockchip/overlays/rk3576-i2c6-m1.dts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
/ {
55
metadata {
66
title = "Enable I2C6-M1";
7-
compatible = "radxa,cm4-io", "radxa,rock-4d";
7+
compatible = "radxa,rock-4d";
88
category = "misc";
99
exclusive = "GPIO1_C2", "GPIO1_C3", "i2c6";
1010
description = "Enable I2C6-M1.
11-
On Radxa CM4 IO this is SDA pin 7 and SCL pin 33.
1211
On Radxa ROCK 4D this is SDA pin 7 and SCL pin 33.
1312
";
1413
};

arch/arm64/boot/dts/rockchip/overlays/rk3576-pwm2-ch2-m1.dts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
/ {
55
metadata {
66
title = "Enable PWM2-CH2-M1";
7-
compatible = "radxa,cm4-rpi-cm4-io", "radxa,cm4-io", "radxa,rock-4d";
7+
compatible = "unknown";
88
category = "misc";
99
exclusive = "GPIO4_C6", "pwm2_8ch_2";
10-
description = "Enable PWM2-CH2-M1.
11-
On Radxa CM4 RPI CM4 IO this is pin 28.
12-
On Radxa CM4 IO this is pin 28.
13-
On Radxa ROCK 4D this is pin 28.
14-
";
10+
description = "Enable PWM2-CH2-M1.";
1511
};
1612
};
1713

arch/arm64/boot/dts/rockchip/overlays/rk3576-pwm2-ch3-m1.dts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
/ {
55
metadata {
66
title = "Enable PWM2-CH3-M1";
7-
compatible = "radxa,cm4-rpi-cm4-io", "radxa,cm4-io", "radxa,rock-4d";
7+
compatible = "unknown";
88
category = "misc";
99
exclusive = "GPIO4_C7", "pwm2_8ch_3";
10-
description = "Enable PWM2-CH3-M1.
11-
On Radxa CM4 RPI CM4 IO this is pin 27.
12-
On Radxa CM4 IO this is pin 27.
13-
On Radxa ROCK 4D this is pin 27.
14-
";
10+
description = "Enable PWM2-CH3-M1.";
1511
};
1612
};
1713

arch/arm64/boot/dts/rockchip/overlays/rk3576-uart10-m1.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
/ {
55
metadata {
66
title = "Enable UART10-M1";
7-
compatible = "radxa,cm4-io", "radxa,rock-4d";
7+
compatible = "radxa,cm4-rpi-cm4-io", "radxa,cm4-io", "radxa,rock-4d";
88
category = "misc";
99
exclusive = "GPIO1_D0", "GPIO1_D1", "uart10";
1010
description = "Enable UART10-M1.
1111
On Radxa CM4 IO this is TX pin 40 and RX pin 12.
12+
On Radxa CM4 RPI CM4 IO this is TX pin 40 and RX pin 12.
1213
On Radxa ROCK 4D this is TX pin 40 and RX pin 12.
1314
";
1415
};

0 commit comments

Comments
 (0)