dt-bindings: display: panel-simple: Allow "data-mapping" for "auo,g104sn02"
Subsystems (5)
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
@@ -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
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
@@ -121,6 +121,7 @@ panel { power-supply = <®_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
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_g104sn02panel_desconly allows for the 24-bit configuration by default. Boards wired for the 18-bit configuration need the override introduced by commit1cd3ea3e4b12("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.
Signed-off-by Primoz Fiser <[email protected]>--- .../devicetree/bindings/display/panel/panel-simple.yaml | 1 + 1 file changed, 1 insertion(+)
Re: (subset) [PATCH 1/2] dt-bindings: display: panel-simple: Allow "data-mapping" for "auo,g104sn02"
In reply to Primoz FiserHi,
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_g104sn02panel_desconly allows for the 24-bit configuration by default. Boards wired for the 18-bit configuration need the override introduced by commit1cd3ea3e4b12("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