Skip to content

Commit 2925882

Browse files
authored
Merge pull request #422 from CodeChenL/tc358762
fix: rk356x: change raspits,tc358762 compatible and timings
2 parents c406c98 + e29491d commit 2925882

10 files changed

+148
-4
lines changed

arch/arm64/boot/dts/rockchip/overlays/radxa-5inch-touchscreen-on-cm3-sodimm-io.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#size-cells = <0>;
2323

2424
dsi0_panel: dsi-panel@0 {
25-
compatible = "raspits,tc358762";
25+
compatible = "raspits,tc358762-5inch", "raspits,tc358762";
2626
reg = <0x0>;
2727
status = "okay";
2828

arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-rpi-cm4-7inch-touchscreen-disp0.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,36 @@
3232
status = "okay";
3333
#address-cells = <1>;
3434
#size-cells = <0>;
35+
rockchip,lane-rate = <696>;
3536

3637
dsi0_panel: dsi-panel@0 {
3738
compatible = "raspits,tc358762";
3839
reg = <0x0>;
3940
status = "okay";
4041

42+
display_timings0: display-timings {
43+
native-mode = <&dsi0_timing>;
44+
45+
dsi0_timing: timing0 {
46+
clock-frequency = <26000000>;
47+
hactive = <800>;
48+
vactive = <480>;
49+
50+
hsync-len = <5>;
51+
hback-porch = <40>;
52+
hfront-porch = <1>;
53+
54+
vsync-len = <1>;
55+
vback-porch = <21>;
56+
vfront-porch = <7>;
57+
58+
hsync-active = <0>;
59+
vsync-active = <0>;
60+
de-active = <0>;
61+
pixelclk-active = <0>;
62+
};
63+
};
64+
4165
ports {
4266
#address-cells = <1>;
4367
#size-cells = <0>;

arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-rpi-cm4-7inch-touchscreen-disp1.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,36 @@
3232
status = "okay";
3333
#address-cells = <1>;
3434
#size-cells = <0>;
35+
rockchip,lane-rate = <696>;
3536

3637
dsi1_panel: dsi-panel@0 {
3738
compatible = "raspits,tc358762";
3839
reg = <0x0>;
3940
status = "okay";
4041

42+
display_timings0: display-timings {
43+
native-mode = <&dsi0_timing>;
44+
45+
dsi0_timing: timing0 {
46+
clock-frequency = <26000000>;
47+
hactive = <800>;
48+
vactive = <480>;
49+
50+
hsync-len = <5>;
51+
hback-porch = <40>;
52+
hfront-porch = <1>;
53+
54+
vsync-len = <1>;
55+
vback-porch = <21>;
56+
vfront-porch = <7>;
57+
58+
hsync-active = <0>;
59+
vsync-active = <0>;
60+
de-active = <0>;
61+
pixelclk-active = <0>;
62+
};
63+
};
64+
4165
ports {
4266
#address-cells = <1>;
4367
#size-cells = <0>;

arch/arm64/boot/dts/rockchip/overlays/radxa-cm3-sodimm-io-raspberrypi-7inch-touchscreen.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,36 @@
2020
status = "okay";
2121
#address-cells = <1>;
2222
#size-cells = <0>;
23+
rockchip,lane-rate = <696>;
2324

2425
dsi0_panel: dsi-panel@0 {
2526
compatible = "raspits,tc358762";
2627
reg = <0x0>;
2728
status = "okay";
2829

30+
display_timings0: display-timings {
31+
native-mode = <&dsi0_timing>;
32+
33+
dsi0_timing: timing0 {
34+
clock-frequency = <26000000>;
35+
hactive = <800>;
36+
vactive = <480>;
37+
38+
hsync-len = <5>;
39+
hback-porch = <40>;
40+
hfront-porch = <1>;
41+
42+
vsync-len = <1>;
43+
vback-porch = <21>;
44+
vfront-porch = <7>;
45+
46+
hsync-active = <0>;
47+
vsync-active = <0>;
48+
de-active = <0>;
49+
pixelclk-active = <0>;
50+
};
51+
};
52+
2953
ports {
3054
#address-cells = <1>;
3155
#size-cells = <0>;

arch/arm64/boot/dts/rockchip/overlays/rock-3a-radxa-5inch-touchscreen.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#size-cells = <0>;
3535

3636
dsi1_panel: dsi-panel@0 {
37-
compatible = "raspits,tc358762";
37+
compatible = "raspits,tc358762-5inch", "raspits,tc358762";
3838
reg = <0x0>;
3939
status = "okay";
4040

arch/arm64/boot/dts/rockchip/overlays/rock-3a-raspberrypi-7inch-touchscreen.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,36 @@
3232
status = "okay";
3333
#address-cells = <1>;
3434
#size-cells = <0>;
35+
rockchip,lane-rate = <696>;
3536

3637
dsi1_panel: dsi-panel@0 {
3738
compatible = "raspits,tc358762";
3839
reg = <0x0>;
3940
status = "okay";
4041

42+
display_timings0: display-timings {
43+
native-mode = <&dsi0_timing>;
44+
45+
dsi0_timing: timing0 {
46+
clock-frequency = <26000000>;
47+
hactive = <800>;
48+
vactive = <480>;
49+
50+
hsync-len = <5>;
51+
hback-porch = <40>;
52+
hfront-porch = <1>;
53+
54+
vsync-len = <1>;
55+
vback-porch = <21>;
56+
vfront-porch = <7>;
57+
58+
hsync-active = <0>;
59+
vsync-active = <0>;
60+
de-active = <0>;
61+
pixelclk-active = <0>;
62+
};
63+
};
64+
4165
ports {
4266
#address-cells = <1>;
4367
#size-cells = <0>;

arch/arm64/boot/dts/rockchip/overlays/rock-3b-radxa-5inch-touchscreen.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#size-cells = <0>;
3535

3636
dsi1_panel: dsi-panel@0 {
37-
compatible = "raspits,tc358762";
37+
compatible = "raspits,tc358762-5inch", "raspits,tc358762";
3838
reg = <0x0>;
3939
status = "okay";
4040

arch/arm64/boot/dts/rockchip/overlays/rock-3b-raspberrypi-7inch-touchscreen.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,36 @@
3232
status = "okay";
3333
#address-cells = <1>;
3434
#size-cells = <0>;
35+
rockchip,lane-rate = <696>;
3536

3637
dsi1_panel: dsi-panel@0 {
3738
compatible = "raspits,tc358762";
3839
reg = <0x0>;
3940
status = "okay";
4041

42+
display_timings0: display-timings {
43+
native-mode = <&dsi0_timing>;
44+
45+
dsi0_timing: timing0 {
46+
clock-frequency = <26000000>;
47+
hactive = <800>;
48+
vactive = <480>;
49+
50+
hsync-len = <5>;
51+
hback-porch = <40>;
52+
hfront-porch = <1>;
53+
54+
vsync-len = <1>;
55+
vback-porch = <21>;
56+
vfront-porch = <7>;
57+
58+
hsync-active = <0>;
59+
vsync-active = <0>;
60+
de-active = <0>;
61+
pixelclk-active = <0>;
62+
};
63+
};
64+
4165
ports {
4266
#address-cells = <1>;
4367
#size-cells = <0>;

arch/arm64/boot/dts/rockchip/overlays/rock-3c-radxa-5inch-touchscreen.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#size-cells = <0>;
3535

3636
dsi1_panel: dsi-panel@0 {
37-
compatible = "raspits,tc358762";
37+
compatible = "raspits,tc358762-5inch", "raspits,tc358762";
3838
reg = <0x0>;
3939
status = "okay";
4040

arch/arm64/boot/dts/rockchip/overlays/rock-3c-raspberrypi-7inch-touchscreen.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,36 @@
3232
status = "okay";
3333
#address-cells = <1>;
3434
#size-cells = <0>;
35+
rockchip,lane-rate = <696>;
3536

3637
dsi1_panel: dsi-panel@0 {
3738
compatible = "raspits,tc358762";
3839
reg = <0x0>;
3940
status = "okay";
4041

42+
display_timings0: display-timings {
43+
native-mode = <&dsi0_timing>;
44+
45+
dsi0_timing: timing0 {
46+
clock-frequency = <26000000>;
47+
hactive = <800>;
48+
vactive = <480>;
49+
50+
hsync-len = <5>;
51+
hback-porch = <40>;
52+
hfront-porch = <1>;
53+
54+
vsync-len = <1>;
55+
vback-porch = <21>;
56+
vfront-porch = <7>;
57+
58+
hsync-active = <0>;
59+
vsync-active = <0>;
60+
de-active = <0>;
61+
pixelclk-active = <0>;
62+
};
63+
};
64+
4165
ports {
4266
#address-cells = <1>;
4367
#size-cells = <0>;

0 commit comments

Comments
 (0)