tdo_panel: bcm27xx-gpu: Add dsi panel driver;#7318
tdo_panel: bcm27xx-gpu: Add dsi panel driver;#7318flash-fea wants to merge 3 commits intoraspberrypi:rpi-6.18.yfrom
Conversation
flash-fea
commented
Apr 16, 2026
7a2e2f8 to
840f6f9
Compare
|
whether the addition was successful? |
|
The partitioning of the code looks good, and checkpatch is happy. This isn't my field of expertise so there is limited input I can give regarding the driver itself - perhaps @6by9 has some comments - but there are a few things I have spotted:
|
panel-tdo-dsi-v1.c as module to driver tdo panel. Signed-off-by: kun_liu <kun_liu@shtdo.com>
__overrides__ parameter can be add in config.txt for customers. README describe the dts config info. Signed-off-by: kun_liu <kun_liu@shtdo.com>
Share panel drivers to bcmxxx_defconfig as module to use in all. Signed-off-by: kun_liu <kun_liu@shtdo.com>
|
Sorry I had all my review comments pending on the 6.12 version. Now posted. Largely the same as pelwell has commented with regard pr_err debugging and authorship, but also a couple of other points. |
|
yes,some informations need to change,about two dev_err() only use in debug to find by text easyier,but forget to recover. |
| @@ -0,0 +1,69 @@ | |||
| /* | |||
| * Device Tree overlay for Waveshare DSI Touchscreens | |||
| compatible = "tdo,4.0-dsi-tl040wvs17"; | ||
| status = "okay"; | ||
| reg = <0>; | ||
| reset-gpios = <&gpio 47 1>; // Dummy GPIO , Unused or change |
| struct drm_display_mode *mode; | ||
|
|
||
| mode = drm_mode_duplicate(connector->dev, ctx->desc->mode); | ||
| dev_info(&ctx->dsi->dev, "%ux,%ux,%ux\n", ctx->desc->mode->hdisplay, |
There was a problem hiding this comment.
No user needs to see this - dev_dbg or delete.
| struct tdo_panel *ctx; | ||
| int ret; | ||
|
|
||
| dev_info(&dsi->dev, "dsi panel: %s\n", |
There was a problem hiding this comment.
It is preferred for successful probing to generate minimal output. Perhaps defer this line to after the number of lanes is available and combine the two?
| struct tdo_panel *ctx = mipi_dsi_get_drvdata(dsi); | ||
|
|
||
| if (ctx->reset) { | ||
| dev_info(&dsi->dev, "shutdown\n"); |
There was a problem hiding this comment.
You really don't need this.