Skip to contentSkip to conversation

dt-bindings: display: panel-simple: Allow "data-mapping" for "auo,g104sn02"

PATCH Applied Primoz Fiser 3 participants 4 messages Oct 8 – Nov 2

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: display: panel-simple: Allow "data-mapping" for "auo,g104sn02"

As per the AUO G104SN02 datasheet, section 6.4.1 "SEL68", this panel's SEL68 pin selects between 6 bits (SEL68 low/NC) and 8 bits (SEL68 high) per color over LVDS, i.e. an 18-bit or a 24-bit input format.

Currently, the auo_g104sn02 panel_desc only allows for the 24-bit configuration by default. Boards wired for the 18-bit configuration need the override introduced by commit 1cd3ea3e4b12 ("drm/panel-simple: allow LVDS format override")) to describe that instead.

Thus allow "data-mapping" override for "auo,g104sn02" in the schema.

---
 .../devicetree/bindings/display/panel/panel-simple.yaml          | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +1 -0
index eb49832b26c4..11d4a8275ecd 100644
@@ -396,6 +396,7 @@ if:
       compatible:
         contains:
           enum:
+            - auo,g104sn02
             - innolux,g101ice-l01
             - yes-optoelectronics,ytc700tlag-05-201c
 then:
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 ARM: dts: imx6qdl-phytec-mira: Switch LVDS panel to 18-bit data mapping

The phyBOARD-Mira drives its LVDS panel at 18 bits per pixel. This was previously done by always overriding fsl,data-width on the LDB bridge alone and leaving the panel node's compatible, "auo,g104sn02", resulting in LDB and the panel disagreeing on the format actually in use.

Now, declare the override on the panel side too, via the data-mapping property and use "jeida-18" which resolves to RGB666_1X7X3_SPWG, exactly matching what fsl,data-mapping = "spwg" + fsl,data-width = <18> produces on the LDB side. Both ends of the link are now consistent instead of silently disagreeing.

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi +2 -1
index 8b2b4ed76328..50e5bb22b9f5 100644
@@ -121,6 +121,7 @@ panel {
 		power-supply = <&reg_panel>;
 		enable-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
 		backlight = <&backlight>;
+		data-mapping = "jeida-18";
 
 		port {
 			panel_in: endpoint {
@@ -204,7 +205,7 @@ &ldb {
 
 	lvds-channel@0 {
 		fsl,data-mapping = "spwg";
-		fsl,data-width = <24>;
+		fsl,data-width = <18>;
 		status = "disabled";
 
 		port@4 {
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/2
#2 lore raw
In reply to Primoz Fiser
Quoted 9 lines · Primoz Fiser

As per the AUO G104SN02 datasheet, section 6.4.1 "SEL68", this panel's SEL68 pin selects between 6 bits (SEL68 low/NC) and 8 bits (SEL68 high) per color over LVDS, i.e. an 18-bit or a 24-bit input format.

Currently, the auo_g104sn02 panel_desc only allows for the 24-bit configuration by default. Boards wired for the 18-bit configuration need the override introduced by commit 1cd3ea3e4b12 ("drm/panel-simple: allow LVDS format override")) to describe that instead.

Quoted 7 lines

Thus allow "data-mapping" override for "auo,g104sn02" in the schema.

---
 .../devicetree/bindings/display/panel/panel-simple.yaml          | 1 +
 1 file changed, 1 insertion(+)
maintainer Applied
#3 lore raw

Re: (subset) [PATCH 1/2] dt-bindings: display: panel-simple: Allow "data-mapping" for "auo,g104sn02"

In reply to Primoz Fiser

Hi,

Quoted 10 lines · Primoz Fiser

As per the AUO G104SN02 datasheet, section 6.4.1 "SEL68", this panel's SEL68 pin selects between 6 bits (SEL68 low/NC) and 8 bits (SEL68 high) per color over LVDS, i.e. an 18-bit or a 24-bit input format.

Currently, the auo_g104sn02 panel_desc only allows for the 24-bit configuration by default. Boards wired for the 18-bit configuration need the override introduced by commit 1cd3ea3e4b12 ("drm/panel-simple: allow LVDS format override")) to describe that instead.

[...]

Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)

[1/2] dt-bindings: display: panel-simple: Allow "data-mapping" for "auo,g104sn02"

      https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/47459027812c73d4826f5f78bc8291cb59a5de3e
Signature · 1 line
Neil