Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
victorserbu2709 opened this issue Apr 29, 2024 · 1 comment
Open

Comments

@victorserbu2709
Copy link

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 bb5ca6f
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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants