radxa-pkg / radxa-overlays

Additional device tree overlays to support different hardwares on Radxa products
GNU General Public License v2.0
27 stars 24 forks source link

rock-5b-raspi-7inch-touchscreen display 4,3" Waveshare MIPI DSI #308

Open victorserbu2709 opened 2 months ago

victorserbu2709 commented 2 months ago

hello I am trying to get a 4,3" Waveshare MIPI DSI display work on a Rock 5B with the same issue. The Rock boots into the logon screen, touch is working to. But after 10 seconds the display turns black. I tried applying changes from https://github.com/radxa-pkg/radxa-overlays/commit/bb5ca6f7941f4ccffb997d9db5d39bced7b1ba9c to 5b overlay, like

diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5b-raspi-7inch-touchscreen.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5b-raspi-7inch-touchscreen.dts
index 05499cc..0478dcd 100644
--- a/arch/arm64/boot/dts/rockchip/overlays/rock-5b-raspi-7inch-touchscreen.dts
+++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5b-raspi-7inch-touchscreen.dts
@@ -33,12 +33,36 @@
        status = "okay";
        #address-cells = <1>;
        #size-cells = <0>;
-       rockchip,lane-rate = <605>;
+       rockchip,lane-rate = <600>;

        dsi1_panel: dsi-panel@0 {
                compatible = "raspits,tc358762";
                reg = <0x0>;
                status = "okay";
+                rockchip,lane-rate = <600>;
+
+               display_timings1: display-timings {
+                       native-mode = <&dsi1_timing>;
+
+                       dsi1_timing: timing0 {
+                               clock-frequency = <26000000>;
+                               hactive = <800>;
+                               vactive = <480>;
+
+                               hsync-len = <90>;
+                               hback-porch = <55>;
+                               hfront-porch = <40>;
+
+                               vsync-len = <12>;
+                               vback-porch = <7>;
+                               vfront-porch = <10>;
+
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <0>;
+                               pixelclk-active = <0>;
+                       };
+               };

but nothing changes.

In dmesg i see

[   38.644051] vcc_lcd_mipi1: disabling
[   38.764134] rk3x-i2c fec80000.i2c: timeout, ipd: 0x00, state: 3
[   38.764194] raspits-ft5426: fts_i2c_read: i2c read error, -110
[   38.764208] raspits-ft5426: fts_read_td_status: get reg td_status failed, -110
[   38.894152] rk3x-i2c fec80000.i2c: timeout, ipd: 0x00, state: 3
[   38.894206] raspits-ft5426: fts_i2c_read: i2c read error, -110
[   38.894222] raspits-ft5426: fts_read_td_status: get reg td_status failed, -110
[   39.024133] rk3x-i2c fec80000.i2c: timeout, ipd: 0x00, state: 3
[   39.024185] raspits-ft5426: fts_i2c_read: i2c read error, -110
[   39.024199] raspits-ft5426: fts_read_td_status: get reg td_status failed, -110

full dmesg.txt

I saw that others encountered similar problem: https://forum.radxa.com/t/rock-5b-enabling-rpi-7-inch-for-radxa-5-inch/19213/10

Thanks, Victor

RadxaYuntian commented 2 months ago

Overlays are hardware specific. You need to check if the touch IC and the display IC is the same as the one from the overlay first.