Correct WL-355608-A8 panel compatible
Subsystems (4)
v2 cover Correct WL-355608-A8 panel compatible
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%)Signature · 1 line
2.45.2
PATCH v2 1/3 dt-bindings: display: panel: Rename WL-355608-A8 panel
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.
--
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/[email protected]/#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%)Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml renamed from Documentation/devicetree/bindings/display/panel/wl-355608-a8.yaml +4 -4
@@ -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 <[email protected]>
@@ -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;
Signature · 1 line
2.45.2
Re: [PATCH v2 1/3] dt-bindings: display: panel: Rename WL-355608-A8 panel
Quoted 10 lines · 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 <[email protected]>
PATCH v2 2/3 drm: panel: nv3052c: Correct WL-355608-A8 panel compatible
In reply to Ryan WalklinAs per the previous dt-binding commit, update the WL-355608-A8 panel compatible to reflect the the integrating device vendor.
--- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-newvision-nv3052c.c +1 -1
@@ -925,7 +925,7 @@ MODULE_DEVICE_TABLE(spi, nv3052c_ids);static const struct of_device_id nv3052c_of_match[] = { { .compatible ="leadtek,ltk035c5444t" , .data = <k035c5444t_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);
Signature · 1 line
2.45.2
Re: [PATCH v2 2/3] drm: panel: nv3052c: Correct WL-355608-A8 panel compatible
Quoted 8 lines · 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 <[email protected]>--- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes Dmitry
PATCH v2 3/3 dt-bindings: display: panel: correct Anbernic RG35XX panel example
In reply to Ryan Walklinmake dt_bindings_check reports that sck-gpios and num-chipselects are required for spi nodes, therefore add these to the example.
--- .../bindings/display/panel/anbernic,wl-355608-a8.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml +3 -0
@@ -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>;
Signature · 1 line
2.45.2
Re: [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example
Quoted 4 lines · Ryan Walklin
make
dt_bindings_checkreports that sck-gpios and num-chipselects are required for spi nodes, therefore add these to the example.Signed-off-by Ryan Walklin <[email protected]>
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.
Quoted 21 lines
--- .../bindings/display/panel/anbernic,wl-355608-a8.yaml | 3 +++ 1 file changed, 3 insertions(+)Documentation/devicetree/bindings/display/panel/anbernic,wl-355608-a8.yaml +3
-0@@ -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>;Signature · 1 line
2.45.2
Re: [PATCH v2 3/3] dt-bindings: display: panel: correct Anbernic RG35XX panel example
Quoted 8 lines · Conor Dooley
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