devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Correct WL-355608-A8 panel compatible
@ 2024-07-03 10:31 Ryan Walklin
  2024-07-03 10:31 ` [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel Ryan Walklin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ryan Walklin @ 2024-07-03 10:31 UTC (permalink / raw)
  To: dri-devel, devicetree
  Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, David Airlie,
	Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Hironori KIKUCHI, Chris Morgan, Ryan Walklin

Hi All,

V2 of this patch for this LCD panel used in Anbernic handheld devices, with updated compatible string as agreed, in the format <device vendor>,<component serial>.

Original blurb below:

The previous patch adding support for this panel [1] referred to previously by its serial number only. As discussed after the patch was committed, the preference is to use the integrating device vendor and name in this circumstance.

This series corrects the panel compatible to reflect the vendor (Anbernic, already in the vendor prefix table), updates the NV3052C panel driver with the new compatible, and lastly adds num-chipselects and sck-gpios to the DT binding example, identified by make dt_bindings_check as required for bit-banged SPI over GPIO lines.

Ryan Walklin (3):
  dt-bindings: display: panel: Rename WL-355608-A8 panel
  drm: panel: nv3052c: Correct WL-355608-A8 panel compatible
  dt-bindings: display: panel: correct Anbernic RG35XX panel example

 .../{wl-355608-a8.yaml => anbernic,wl-355608-a8.yaml} | 11 +++++++----
 drivers/gpu/drm/panel/panel-newvision-nv3052c.c       |  2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)
 rename Documentation/devicetree/bindings/display/panel/{wl-355608-a8.yaml => anbernic,wl-355608-a8.yaml} (76%)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel
  2024-07-03 10:31 [PATCH v2 0/3] Correct WL-355608-A8 panel compatible Ryan Walklin
@ 2024-07-03 10:31 ` Ryan Walklin
  2024-07-03 15:38   ` Conor Dooley
  2024-07-03 10:31 ` [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible Ryan Walklin
  2024-07-03 10:31 ` [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example Ryan Walklin
  2 siblings, 1 reply; 8+ messages in thread
From: Ryan Walklin @ 2024-07-03 10:31 UTC (permalink / raw)
  To: dri-devel, devicetree
  Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, David Airlie,
	Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Hironori KIKUCHI, Chris Morgan, Ryan Walklin

The WL-355608-A8 is a 3.5" 640x480@60Hz RGB LCD display from an unknown
OEM used in a number of handheld gaming devices made by Anbernic.
Previously committed using the OEM serial without a vendor prefix,
however following subsequent discussion the preference is to use the
integrating device vendor and name where the OEM is unknown.

Alter the filename and compatible string to reflect the convention.

Fixes: f08aac40639c ("drm: panel: nv3052c: Add WL-355608-A8 panel")
Signed-off-by: Ryan Walklin <ryan@testtoast.com>

--
Changelog v1..v2:
- Use known panel serial for compatible name rather than referencing
  integrating devices as per feedback [1] from DT maintainers.

 [1] https://lore.kernel.org/linux-devicetree/8b4519fc-0fba-48fe-bfb4-318818b47a65@app.fastmail.com/#t
---
 .../{wl-355608-a8.yaml => anbernic,wl-355608-a8.yaml}     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename Documentation/devicetree/bindings/display/panel/{wl-355608-a8.yaml => anbernic,wl-355608-a8.yaml} (82%)

diff --git a/Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml b/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
similarity index 82%
rename from Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml
rename to Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
index 397c26be9bda5..dde3600f0189c 100644
--- a/Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml
+++ b/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 %YAML 1.2
 ---
-$id: http://devicetree.org/schemas/display/panel/wl-355608-a8.yaml#
+$id: http://devicetree.org/schemas/display/panel/anbernic,wl-355608-a8.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: WL-355608-A8 3.5" (640x480 pixels) 24-bit IPS LCD panel
+title: Anbernic WL-355608-A8 3.5" 640x480 24-bit IPS LCD panel
 
 maintainers:
   - Ryan Walklin <ryan@testtoast.com>
@@ -15,7 +15,7 @@ allOf:
 
 properties:
   compatible:
-    const: wl-355608-a8
+    const: anbernic,wl-355608-a8
 
   reg:
     maxItems: 1
@@ -41,7 +41,7 @@ examples:
         #size-cells = <0>;
 
         panel@0 {
-            compatible = "wl-355608-a8";
+            compatible = "anbernic,wl-355608-a8";
             reg = <0>;
 
             spi-3wire;
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible
  2024-07-03 10:31 [PATCH v2 0/3] Correct WL-355608-A8 panel compatible Ryan Walklin
  2024-07-03 10:31 ` [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel Ryan Walklin
@ 2024-07-03 10:31 ` Ryan Walklin
  2024-07-03 12:18   ` Dmitry Baryshkov
  2024-07-03 10:31 ` [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example Ryan Walklin
  2 siblings, 1 reply; 8+ messages in thread
From: Ryan Walklin @ 2024-07-03 10:31 UTC (permalink / raw)
  To: dri-devel, devicetree
  Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, David Airlie,
	Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Hironori KIKUCHI, Chris Morgan, Ryan Walklin

As per the previous dt-binding commit, update the WL-355608-A8 panel
compatible to reflect the the integrating device vendor.

Signed-off-by: Ryan Walklin <ryan@testtoast.com>
---
 drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c
index ee0ce271205e3..6d119776f8bee 100644
--- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c
+++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c
@@ -925,7 +925,7 @@ MODULE_DEVICE_TABLE(spi, nv3052c_ids);
 static const struct of_device_id nv3052c_of_match[] = {
 	{ .compatible = "leadtek,ltk035c5444t", .data = &ltk035c5444t_panel_info },
 	{ .compatible = "fascontek,fs035vg158", .data = &fs035vg158_panel_info },
-	{ .compatible = "wl-355608-a8", .data = &wl_355608_a8_panel_info },
+	{ .compatible = "anbernic,wl-355608-a8", .data = &wl_355608_a8_panel_info },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, nv3052c_of_match);
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example
  2024-07-03 10:31 [PATCH v2 0/3] Correct WL-355608-A8 panel compatible Ryan Walklin
  2024-07-03 10:31 ` [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel Ryan Walklin
  2024-07-03 10:31 ` [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible Ryan Walklin
@ 2024-07-03 10:31 ` Ryan Walklin
  2024-07-03 15:38   ` Conor Dooley
  2 siblings, 1 reply; 8+ messages in thread
From: Ryan Walklin @ 2024-07-03 10:31 UTC (permalink / raw)
  To: dri-devel, devicetree
  Cc: Neil Armstrong, Jessica Zhang, Sam Ravnborg, David Airlie,
	Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Hironori KIKUCHI, Chris Morgan, Ryan Walklin

make dt_bindings_check reports that sck-gpios and num-chipselects are
required for spi nodes, therefore add these to the example.

Signed-off-by: Ryan Walklin <ryan@testtoast.com>
---
 .../bindings/display/panel/anbernic,wl-355608-a8.yaml          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml b/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
index dde3600f0189c..bbe016453c9b2 100644
--- a/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
+++ b/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
@@ -40,6 +40,9 @@ examples:
         #address-cells = <1>;
         #size-cells = <0>;
 
+        sck-gpios = <&pio 8 9 GPIO_ACTIVE_HIGH>; // PI9
+        num-chipselects = <1>;
+
         panel@0 {
             compatible = "anbernic,wl-355608-a8";
             reg = <0>;
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible
  2024-07-03 10:31 ` [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible Ryan Walklin
@ 2024-07-03 12:18   ` Dmitry Baryshkov
  0 siblings, 0 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-07-03 12:18 UTC (permalink / raw)
  To: Ryan Walklin
  Cc: dri-devel, devicetree, Neil Armstrong, Jessica Zhang,
	Sam Ravnborg, David Airlie, Daniel Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Hironori KIKUCHI, Chris Morgan

On Wed, Jul 03, 2024 at 10:31:45PM GMT, Ryan Walklin wrote:
> As per the previous dt-binding commit, update the WL-355608-A8 panel
> compatible to reflect the the integrating device vendor.
> 
> Signed-off-by: Ryan Walklin <ryan@testtoast.com>
> ---
>  drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example
  2024-07-03 10:31 ` [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example Ryan Walklin
@ 2024-07-03 15:38   ` Conor Dooley
  2024-07-05  8:41     ` Ryan Walklin
  0 siblings, 1 reply; 8+ messages in thread
From: Conor Dooley @ 2024-07-03 15:38 UTC (permalink / raw)
  To: Ryan Walklin
  Cc: dri-devel, devicetree, Neil Armstrong, Jessica Zhang,
	Sam Ravnborg, David Airlie, Daniel Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Hironori KIKUCHI, Chris Morgan

[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]

On Wed, Jul 03, 2024 at 10:31:46PM +1200, Ryan Walklin wrote:
> make dt_bindings_check reports that sck-gpios and num-chipselects are
> required for spi nodes, therefore add these to the example.
> 
> Signed-off-by: Ryan Walklin <ryan@testtoast.com>

I forgot to reply to, or somehow didn't notice your reply to my comments
on this patch. I would just drop this change as I think it's a tooling
issue. I checked the version of dt-schema etc that I have here locally
and there were no complaints with the binding prior to your patches.

Sorry for missing your reply,
Conor.

> ---
>  .../bindings/display/panel/anbernic,wl-355608-a8.yaml          | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml b/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
> index dde3600f0189c..bbe016453c9b2 100644
> --- a/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml
> @@ -40,6 +40,9 @@ examples:
>          #address-cells = <1>;
>          #size-cells = <0>;
>  
> +        sck-gpios = <&pio 8 9 GPIO_ACTIVE_HIGH>; // PI9
> +        num-chipselects = <1>;
> +
>          panel@0 {
>              compatible = "anbernic,wl-355608-a8";
>              reg = <0>;
> -- 
> 2.45.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel
  2024-07-03 10:31 ` [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel Ryan Walklin
@ 2024-07-03 15:38   ` Conor Dooley
  0 siblings, 0 replies; 8+ messages in thread
From: Conor Dooley @ 2024-07-03 15:38 UTC (permalink / raw)
  To: Ryan Walklin
  Cc: dri-devel, devicetree, Neil Armstrong, Jessica Zhang,
	Sam Ravnborg, David Airlie, Daniel Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Hironori KIKUCHI, Chris Morgan

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

On Wed, Jul 03, 2024 at 10:31:44PM +1200, Ryan Walklin wrote:
> The WL-355608-A8 is a 3.5" 640x480@60Hz RGB LCD display from an unknown
> OEM used in a number of handheld gaming devices made by Anbernic.
> Previously committed using the OEM serial without a vendor prefix,
> however following subsequent discussion the preference is to use the
> integrating device vendor and name where the OEM is unknown.
> 
> Alter the filename and compatible string to reflect the convention.
> 
> Fixes: f08aac40639c ("drm: panel: nv3052c: Add WL-355608-A8 panel")
> Signed-off-by: Ryan Walklin <ryan@testtoast.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example
  2024-07-03 15:38   ` Conor Dooley
@ 2024-07-05  8:41     ` Ryan Walklin
  0 siblings, 0 replies; 8+ messages in thread
From: Ryan Walklin @ 2024-07-05  8:41 UTC (permalink / raw)
  To: Conor Dooley
  Cc: dri-devel, devicetree, Neil Armstrong, Jessica Zhang,
	Sam Ravnborg, David Airlie, Daniel Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Hironori KIKUCHI, Chris Morgan

On Thu, 4 Jul 2024, at 3:38 AM, Conor Dooley wrote:
> I forgot to reply to, or somehow didn't notice your reply to my comments
> on this patch. I would just drop this change as I think it's a tooling
> issue. I checked the version of dt-schema etc that I have here locally
> and there were no complaints with the binding prior to your patches.
>
> Sorry for missing your reply,
> Conor.
>
Thanks Conor, no worries. Happy to resend without this patch in that case, or just have it dropped.

Regards,

Ryan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-05  8:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 10:31 [PATCH v2 0/3] Correct WL-355608-A8 panel compatible Ryan Walklin
2024-07-03 10:31 ` [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel Ryan Walklin
2024-07-03 15:38   ` Conor Dooley
2024-07-03 10:31 ` [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible Ryan Walklin
2024-07-03 12:18   ` Dmitry Baryshkov
2024-07-03 10:31 ` [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example Ryan Walklin
2024-07-03 15:38   ` Conor Dooley
2024-07-05  8:41     ` Ryan Walklin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).