add Gopher 2b LCD panel
Subsystems (4)
v3 cover add Gopher 2b LCD panel
The Gopher 2b LCD panel is used in Gopher 2b handhelds. It's simple panel with NewVision NV3047 driver,
but SPI lines are not connected.
It has no specific name, since it's unique to that handhelds. lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB Interface
Changelog:
v2: remove .num_modes
v3: sort QiShenglong vendor prefix,
sort qishenglong_gopher2b_lcd_panel_modes struct
Artjom Vejsel (3):
dt-bindings: Add QiShenglong vendor prefix
dt-bindings: Add DT bindings for QiShenglong Gopher 2b panel drm/panel-simple: add Gopher 2b LCD panel
.../bindings/display/panel/panel-simple.yaml | 2 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/gpu/drm/panel/panel-simple.c | 43 +++++++++++++++++++ 3 files changed, 47 insertions(+)
--
2.32.0
PATCH v3 1/3 dt-bindings: Add QiShenglong vendor prefix
Add vendor prefix for Shenzhen QiShenglong Industrialist Co., Ltd. QiShenglong is a Chinese manufacturer of handheld gaming consoles, most of which run (very old) versions of Linux.
QiShenglong is known as Hamy.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -926,6 +926,8 @@ patternProperties: description: Chengdu Kaixuan Information Technology Co., Ltd. "^qiaodian,.*": description: QiaoDian XianShi Corporation + "^qishenglong,.*": + description: Shenzhen QiShenglong Industrialist Co., Ltd. "^qnap,.*": description: QNAP Systems, Inc. "^radxa,.*":
Signature · 1 line
2.32.0
Re: [PATCH v3 1/3] dt-bindings: Add QiShenglong vendor prefix
Hi Artjom,
Quoted 6 lines · Artjom Vejsel
Add vendor prefix for Shenzhen QiShenglong Industrialist Co., Ltd. QiShenglong is a Chinese manufacturer of handheld gaming consoles, most of which run (very old) versions of Linux.
QiShenglong is known as Hamy.Signed-off-by Artjom Vejsel <[email protected]>
Cheers,
-Paul
Quoted 20 lines
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-1@@ -926,6 +926,8 @@ patternProperties: description: Chengdu Kaixuan Information Technology Co., Ltd. "^qiaodian,.*": description: QiaoDian XianShi Corporation + "^qishenglong,.*": + description: Shenzhen QiShenglong Industrialist Co., Ltd. "^qnap,.*": description: QNAP Systems, Inc. "^radxa,.*": --2.32.0
Re: [PATCH v3 1/3] dt-bindings: Add QiShenglong vendor prefix
In reply to Artjom VejselQuoted 10 lines · Artjom Vejsel
Add vendor prefix for Shenzhen QiShenglong Industrialist Co., Ltd. QiShenglong is a Chinese manufacturer of handheld gaming consoles, most of which run (very old) versions of Linux.
QiShenglong is known as Hamy.Signed-off-by Artjom Vejsel <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
PATCH v3 2/3 dt-bindings: Add DT bindings for QiShenglong Gopher 2b panel
In reply to Artjom VejselAdd DT bindings for QiShenglong Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel.
--- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2 -0
@@ -244,6 +244,8 @@ properties: - powertip,ph800480t013-idf02 # QiaoDian XianShi Corporation 4"3 TFT LCD panel - qiaodian,qd43003c0-40 + # Shenzhen QiShenglong Industrialist Co., Ltd. Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel + - qishenglong,gopher2b-lcd-panel # Rocktech Displays Ltd. RK101II01D-CT 10.1" TFT 1280x800 - rocktech,rk101ii01d-ct # Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panel
Signature · 1 line
2.32.0
Re: [PATCH v3 2/3] dt-bindings: Add DT bindings for QiShenglong Gopher 2b panel
Hi Artjom,
Quoted 3 lines · Artjom Vejsel
Add DT bindings for QiShenglong Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel.
Signed-off-by Artjom Vejsel <[email protected]>
Cheers,
-Paul
Quoted 25 lines
--- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/display/panel/panel-simple.yaml +0
-1---
a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++b/Documentation/devicetree/bindings/display/panel/panel-simple.yamlDocumentation/devicetree/bindings/display/panel/panel-simple.yaml +1
-0@@ -244,6 +244,8 @@ properties: - powertip,ph800480t013-idf02 # QiaoDian XianShi Corporation 4"3 TFT LCD panel - qiaodian,qd43003c0-40 + # Shenzhen QiShenglong Industrialist Co., Ltd. Gopher 2b4.3" 480(RGB)x272 TFT LCD panel
+ - qishenglong,gopher2b-lcd-panel# Rocktech Displays Ltd. RK101II01D-CT 10.1" TFT 1280x800 - rocktech,rk101ii01d-ct # Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCDpanel
--
2.32.0
Rob Herring
maintainerRe: [PATCH v3 2/3] dt-bindings: Add DT bindings for QiShenglong Gopher 2b panel
In reply to Artjom VejselQuoted 12 lines · Artjom Vejsel
Add DT bindings for QiShenglong Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel.
Signed-off-by Artjom Vejsel <[email protected]>--- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/display/panel/panel-simple.yaml +0
-0
Documentation/devicetree/bindings/display/panel/panel-simple.yaml properties: · line 248
Quoted 5 lines
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2
-0@@ -244,6 +244,8 @@ properties: - powertip,ph800480t013-idf02 # QiaoDian XianShi Corporation 4"3 TFT LCD panel - qiaodian,qd43003c0-40 + # Shenzhen QiShenglong Industrialist Co., Ltd. Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel + - qishenglong,gopher2b-lcd-panel
Does 'gopher2b' refer to anything besides this panel? If not, then '-lcd-panel' is redundant. Otherwise, '-panel' is redundant. Every LCD is a panel.
Quoted 7 lines
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +0
-0# Rocktech Displays Ltd. RK101II01D-CT 10.1" TFT 1280x800 - rocktech,rk101ii01d-ct # Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panelSignature · 1 line
2.32.0
PATCH v3 3/3 drm/panel-simple: add Gopher 2b LCD panel
In reply to Artjom VejselThe Gopher 2b LCD panel is used in Gopher 2b handhelds.
It's simple panel with NewVision NV3047 driver, but SPI lines are not connected.
It has no specific name, since it's unique to that handhelds.
lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB Interface
--- drivers/gpu/drm/panel/panel-simple.c | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +43 -0
@@ -3563,6 +3563,46 @@ static const struct panel_desc qd43003c0_40 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode qishenglong_gopher2b_lcd_panel_modes[] = { + {/* 60 Hz */ + .clock =10800 , + .hdisplay =480 , + .hsync_start =480 +77 , + .hsync_end =480 +77 +41 , + .htotal =480 +77 +41 +2 , + .vdisplay =272 , + .vsync_start =272 +16 , + .vsync_end =272 +16 +10 , + .vtotal =272 +16 +10 +2 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , + }, + {/* 50 Hz */ + .clock =10800 , + .hdisplay =480 , + .hsync_start =480 +17 , + .hsync_end =480 +17 +41 , + .htotal =480 +17 +41 +2 , + .vdisplay =272 , + .vsync_start =272 +116 , + .vsync_end =272 +116 +10 , + .vtotal =272 +116 +10 +2 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , + }, +}; + +static const struct panel_desc qishenglong_gopher2b_lcd_panel = { + .modes = qishenglong_gopher2b_lcd_panel_modes, + .num_modes =ARRAY_SIZE (qishenglong_gopher2b_lcd_panel_modes), + .bpc =8 , + .size = { + .width =95 , + .height =54 , + }, + .bus_format =MEDIA_BUS_FMT_RGB888_1X24 , + .bus_flags =DRM_BUS_FLAG_DE_HIGH |DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE , + .connector_type =DRM_MODE_CONNECTOR_DPI , +}; +static const struct display_timing rocktech_rk070er9427_timing = { .pixelclock = {26400000 ,33300000 ,46800000 }, .hactive = {800 ,800 ,800 },
@@ -4651,6 +4691,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, + }, { + .compatible = "qishenglong,gopher2b-lcd-panel", + .data = &qishenglong_gopher2b_lcd_panel, }, { .compatible = "rocktech,rk070er9427", .data = &rocktech_rk070er9427,
Signature · 1 line
2.32.0
Re: [PATCH v3 3/3] drm/panel-simple: add Gopher 2b LCD panel
Quoted 6 lines · Artjom Vejsel
The Gopher 2b LCD panel is used in Gopher 2b handhelds.
It's simple panel with NewVision NV3047 driver, but SPI lines are not connected.
It has no specific name, since it's unique to that handhelds.
lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB InterfaceSigned-off-by Artjom Vejsel <[email protected]>
Cheers,
-Paul
Quoted 72 lines
--- drivers/gpu/drm/panel/panel-simple.c | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)drivers/gpu/drm/panel/panel-simple.c +40
-0@@ -3563,6 +3563,46 @@ static const struct panel_desc qd43003c0_40 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode qishenglong_gopher2b_lcd_panel_modes[] = { + {/* 60 Hz */ + .clock =10800 , + .hdisplay =480 , + .hsync_start =480 +77 , + .hsync_end =480 +77 +41 , + .htotal =480 +77 +41 +2 , + .vdisplay =272 , + .vsync_start =272 +16 , + .vsync_end =272 +16 +10 , + .vtotal =272 +16 +10 +2 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , + }, + {/* 50 Hz */ + .clock =10800 , + .hdisplay =480 , + .hsync_start =480 +17 , + .hsync_end =480 +17 +41 , + .htotal =480 +17 +41 +2 , + .vdisplay =272 , + .vsync_start =272 +116 , + .vsync_end =272 +116 +10 , + .vtotal =272 +116 +10 +2 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , + }, +}; + +static const struct panel_desc qishenglong_gopher2b_lcd_panel = { + .modes = qishenglong_gopher2b_lcd_panel_modes, + .num_modes =ARRAY_SIZE (qishenglong_gopher2b_lcd_panel_modes), + .bpc =8 , + .size = { + .width =95 , + .height =54 , + }, + .bus_format =MEDIA_BUS_FMT_RGB888_1X24 , + .bus_flags =DRM_BUS_FLAG_DE_HIGH |DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE , + .connector_type =DRM_MODE_CONNECTOR_DPI , +}; +static const struct display_timing rocktech_rk070er9427_timing = {drivers/gpu/drm/panel/panel-simple.c +3
-0.pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 },@@ -4651,6 +4691,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, + }, { + .compatible = "qishenglong,gopher2b-lcd-panel", + .data = &qishenglong_gopher2b_lcd_panel, }, { .compatible = "rocktech,rk070er9427",.data =
&rocktech_rk070er9427,
--
2.32.0
Re: [PATCH v3 3/3] drm/panel-simple: add Gopher 2b LCD panel
In reply to Artjom VejselHi Artjom,
Quoted 4 lines · Artjom Vejsel
The Gopher 2b LCD panel is used in Gopher 2b handhelds.
It's simple panel with NewVision NV3047 driver, but SPI lines are not connected.
It has no specific name, since it's unique to that handhelds.
lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB Interface
From what I gathered the Gopher2's LCD panel is the exact same that is inside the RS-07 handheld. According to the teardown (in [1]), the RS-07 panel is a Amelin AML043056B0-40 (see [2]).
Could you verify that? According to the photos, the product code is written on the flexible connector.
If that's the case, instead of using the "qishenglong,gopher2b-lcd-panel" compatible string, could you use "amelin,aml043056b0-40"?
Cheers,
-Paul
[1]: https://steward-fu.github.io/website/handheld/rs07/teardown.htm
[2]: http://www.amelin.com.cn/en/h-pd-355.html
Quoted 74 lines
Signed-off-by Artjom Vejsel <[email protected]>--- drivers/gpu/drm/panel/panel-simple.c | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)drivers/gpu/drm/panel/panel-simple.c +40
-0@@ -3563,6 +3563,46 @@ static const struct panel_desc qd43003c0_40 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode qishenglong_gopher2b_lcd_panel_modes[] = { + {/* 60 Hz */ + .clock =10800 , + .hdisplay =480 , + .hsync_start =480 +77 , + .hsync_end =480 +77 +41 , + .htotal =480 +77 +41 +2 , + .vdisplay =272 , + .vsync_start =272 +16 , + .vsync_end =272 +16 +10 , + .vtotal =272 +16 +10 +2 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , + }, + {/* 50 Hz */ + .clock =10800 , + .hdisplay =480 , + .hsync_start =480 +17 , + .hsync_end =480 +17 +41 , + .htotal =480 +17 +41 +2 , + .vdisplay =272 , + .vsync_start =272 +116 , + .vsync_end =272 +116 +10 , + .vtotal =272 +116 +10 +2 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , + }, +}; + +static const struct panel_desc qishenglong_gopher2b_lcd_panel = { + .modes = qishenglong_gopher2b_lcd_panel_modes, + .num_modes =ARRAY_SIZE (qishenglong_gopher2b_lcd_panel_modes), + .bpc =8 , + .size = { + .width =95 , + .height =54 , + }, + .bus_format =MEDIA_BUS_FMT_RGB888_1X24 , + .bus_flags =DRM_BUS_FLAG_DE_HIGH |DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE , + .connector_type =DRM_MODE_CONNECTOR_DPI , +}; +static const struct display_timing rocktech_rk070er9427_timing = {drivers/gpu/drm/panel/panel-simple.c +3
-0.pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 },@@ -4651,6 +4691,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, + }, { + .compatible = "qishenglong,gopher2b-lcd-panel", + .data = &qishenglong_gopher2b_lcd_panel, }, { .compatible = "rocktech,rk070er9427",.data =
&rocktech_rk070er9427,
--
2.32.0
Re: [PATCH v3 3/3] drm/panel-simple: add Gopher 2b LCD panel
Hello, Paul!
Thanks for your investigation.
But while this two panels are compatible with the timing set in the driver, their timing ranges are different ([1], [2]) and therefore should have different compatible strings.
[1]: https://wendangmao.net/doc/753b5635102de2bd960588e2-51.html
[2]: https://www.newhavendisplay.com/appnotes/datasheets/LCDs/ST7282.pdf
Artjom.
Quoted 95 lines · Paul Cercueil
Hi Artjom,
Quoted 4 lines · Artjom Vejsel
The Gopher 2b LCD panel is used in Gopher 2b handhelds.
It's simple panel with NewVision NV3047 driver, but SPI lines are not connected.
It has no specific name, since it's unique to that handhelds.
lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB InterfaceFrom what I gathered the Gopher2's LCD panel is the exact same that is inside the RS-07 handheld. According to the teardown (in [1]), the RS-07 panel is a Amelin AML043056B0-40 (see [2]).
Could you verify that? According to the photos, the product code is written on the flexible connector.
If that's the case, instead of using the "qishenglong,gopher2b-lcd-panel" compatible string, could you use "amelin,aml043056b0-40"?
Cheers,
-Paul[1]: https://steward-fu.github.io/website/handheld/rs07/teardown.htm
[2]: http://www.amelin.com.cn/en/h-pd-355.htmlQuoted 73 lines
Signed-off-by Artjom Vejsel <[email protected]>---
drivers/gpu/drm/panel/panel-simple.c | 43 ++++++++++++++++++++++++++++1 file changed, 43 insertions(+)drivers/gpu/drm/panel/panel-simple.c +40
-0@@ -3563,6 +3563,46 @@ static const struct panel_desc qd43003c0_40 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode qishenglong_gopher2b_lcd_panel_modes[] = { + { /* 60 Hz */ + .clock = 10800, + .hdisplay = 480, + .hsync_start = 480 + 77, + .hsync_end = 480 + 77 + 41, + .htotal = 480 + 77 + 41 + 2, + .vdisplay = 272, + .vsync_start = 272 + 16, + .vsync_end = 272 + 16 + 10, + .vtotal = 272 + 16 + 10 + 2, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + }, + { /* 50 Hz */ + .clock = 10800, + .hdisplay = 480, + .hsync_start = 480 + 17, + .hsync_end = 480 + 17 + 41, + .htotal = 480 + 17 + 41 + 2, + .vdisplay = 272, + .vsync_start = 272 + 116, + .vsync_end = 272 + 116 + 10, + .vtotal = 272 + 116 + 10 + 2, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + }, +}; + +static const struct panel_desc qishenglong_gopher2b_lcd_panel = { + .modes = qishenglong_gopher2b_lcd_panel_modes, + .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_panel_modes), + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH |DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE , + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct display_timing rocktech_rk070er9427_timing = {.pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 },
drivers/gpu/drm/panel/panel-simple.c +3
-0@@ -4651,6 +4691,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, + }, { + .compatible = "qishenglong,gopher2b-lcd-panel", + .data = &qishenglong_gopher2b_lcd_panel, }, { .compatible = "rocktech,rk070er9427",.data =
&rocktech_rk070er9427,Signature · 1 line
2.32.0
Re: [PATCH v3 3/3] drm/panel-simple: add Gopher 2b LCD panel
In reply to Paul CercueilHi Paul,
Quoted 15 lines · Paul Cercueil
Hi Artjom,
Quoted 6 lines · Artjom Vejsel
The Gopher 2b LCD panel is used in Gopher 2b handhelds. It's simple panel with NewVision NV3047 driver, but SPI lines are not connected.
It has no specific name, since it's unique to that handhelds. lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB InterfaceFrom what I gathered the Gopher2's LCD panel is the exact same that is inside the RS-07 handheld. According to the teardown (in [1]), the RS-07 panel is a Amelin AML043056B0-40 (see [2]).
Quoted 8 lines
Could you verify that? According to the photos, the product code is written on the flexible connector.
If that's the case, instead of using the "qishenglong,gopher2b-lcd-panel" compatible string, could you use "amelin,aml043056b0-40"?
Cheers,
-Paul
I assume you are going to apply this patch-set when you are happy with it. OK?
Sam