dt-bindings: lcdif: Document a imx6sx-lcdif fallback
Subsystems (5)
Fabio Estevam
reviewerPATCH v2 1/3 dt-bindings: lcdif: Document a imx6sx-lcdif fallback
From: Fabio Estevam <[email protected]>
imx6sx.dtsi has the following lcdif entries:
compatible = "fsl,imx6sx-lcdif", "fsl,imx28-lcdif";
This causes the following dt-schema warning:
['fsl,imx6sx-lcdif', 'fsl,imx28-lcdif'] is too long
To keep DT compatibility, document 'fsl,imx28-lcdif' as a possible 'fsl,imx6sx-lcdif' fallback.
---
Changes since v1:
- Newly introduced.
Documentation/devicetree/bindings/display/fsl,lcdif.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/display/fsl,lcdif.yaml +4 -0
@@ -32,6 +32,10 @@ properties: - fsl,imx8mn-lcdif - fsl,imx8mq-lcdif - const: fsl,imx6sx-lcdif + - items: + - enum: + - fsl,imx6sx-lcdif + - const: fsl,imx28-lcdif reg: maxItems: 1
Signature · 1 line
2.34.1
Fabio Estevam
reviewerPATCH v2 2/3 dt-bindings: lcdif: Expand the imx6sl/imx6sll fallbacks
From: Fabio Estevam <[email protected]>
imx6sl.dtsi and imx6sll.dtsi have the following lcdif entries:
compatible = "fsl,imx6sl-lcdif", "fsl,imx28-lcdif";
This causes dt-schema warnings as the current binding only allow 'fsl,imx6sx-lcdif' as fallback.
['fsl,imx6sl-lcdif', 'fsl,imx28-lcdif'] is too long ['fsl,imx6sll-lcdif', 'fsl,imx28-lcdif'] is too long
The imx6sx-lcdif programming model has more advanced features, such as overlay plane and the CRC32 support than the imx28-lcdif IP.
Expand the imx6sl/imx6sll lcdif fallbacks to accept a less specific fsl,imx28-lcdif fallback:
compatible = "fsl,imx6sl-lcdif", "fsl,imx6sx-lcdif", "fsl,imx28-lcdif";
This helps keeping DT compatibility as well as using the more advanced lcdif features found on imx6sl and imx6sll.
---
Changes since v1:
- Newly introduced.
.../devicetree/bindings/display/fsl,lcdif.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/display/fsl,lcdif.yaml +13 -1
@@ -32,11 +32,23 @@ properties: - fsl,imx8mn-lcdif - fsl,imx8mq-lcdif - const: fsl,imx6sx-lcdif + - items: + - const: fsl,imx6sl-lcdif + - const: fsl,imx6sx-lcdif + - const: fsl,imx28-lcdif + - items: + - const: fsl,imx6sll-lcdif + - const: fsl,imx6sx-lcdif + - const: fsl,imx28-lcdif + - items: + - enum: + - fsl,imx6sl-lcdif + - fsl,imx6sll-lcdif + - const: fsl,imx28-lcdif - items: - enum: - fsl,imx6sx-lcdif - const: fsl,imx28-lcdif - reg: maxItems: 1
Signature · 1 line
2.34.1
Fabio Estevam
reviewerPATCH v2 3/3 ARM: dts: imx6sl: Provide a more specific lcdif compatible
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The LCDIF IP on i.MX6SL and i.MX6SLL is compatible with i.MX6SX.
Provide a more specific "fsl,imx6sx-lcdif" compatible and still keep "fsl,imx28-lcdif" for DT compatibility.
---
Changes since v1:
- Add 3 entries for keeping DT compatibility. (Ahmad, Andreas).
arch/arm/boot/dts/nxp/imx/imx6sl.dtsi | 3 ++- arch/arm/boot/dts/nxp/imx/imx6sll.dtsi | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nxp/imx/imx6sl.dtsi +2 -1
@@ -773,7 +773,8 @@ epdc: epdc@20f4000 { }; lcdif: lcdif@20f8000 { - compatible = "fsl,imx6sl-lcdif", "fsl,imx28-lcdif"; + compatible = "fsl,imx6sl-lcdif", "fsl,imx6sx-lcdif", + "fsl,imx28-lcdif"; reg = <0x020f8000 0x4000>; interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX6SL_CLK_LCDIF_PIX>,
arch/arm/boot/dts/nxp/imx/imx6sll.dtsi +2 -1
@@ -648,7 +648,8 @@ pxp: pxp@20f0000 { }; lcdif: lcd-controller@20f8000 { - compatible = "fsl,imx6sll-lcdif", "fsl,imx28-lcdif"; + compatible = "fsl,imx6sll-lcdif", "fsl,imx6sx-lcdif", + "fsl,imx28-lcdif"; reg = <0x020f8000 0x4000>; interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX6SLL_CLK_LCDIF_PIX>,
Signature · 1 line
2.34.1
Re: [PATCH v2 2/3] dt-bindings: lcdif: Expand the imx6sl/imx6sll fallbacks
In reply to Fabio EstevamAm Tue, 29 Oct 2024 09:02:35 -0300
schrieb Fabio Estevam <[email protected]>:
Quoted 44 lines
From: Fabio Estevam <[email protected]>
imx6sl.dtsiandimx6sll.dtsihave the following lcdif entries:compatible = "fsl,imx6sl-lcdif", "fsl,imx28-lcdif";
This causes dt-schema warnings as the current binding only allow 'fsl,imx6sx-lcdif' as fallback.
['fsl,imx6sl-lcdif', 'fsl,imx28-lcdif'] is too long ['fsl,imx6sll-lcdif', 'fsl,imx28-lcdif'] is too long
The imx6sx-lcdif programming model has more advanced features, such as overlay plane and the CRC32 support than the imx28-lcdif IP.
Expand the imx6sl/imx6sll lcdif fallbacks to accept a less specific fsl,imx28-lcdif fallback:
compatible = "fsl,imx6sl-lcdif", "fsl,imx6sx-lcdif", "fsl,imx28-lcdif";
This helps keeping DT compatibility as well as using the more advanced lcdif features found on imx6sl and imx6sll.
Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Newly introduced..../devicetree/bindings/display/fsl,lcdif.yaml | 14+++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
(quoted diff) +0
-0
b/Documentation/devicetree/bindings/display/fsl,lcdif.yamlindex836955de3bc9..08ce19638fbd100644 ---a/Documentation/devicetree/bindings/display/fsl,lcdif.yaml+++b/Documentation/devicetree/bindings/display/fsl,lcdif.yaml@@ -32,11 +32,23 @@ properties:
- fsl,imx8mn-lcdif
- fsl,imx8mq-lcdif
- const: fsl,imx6sx-lcdifDocumentation/devicetree/bindings/display/fsl,lcdif.yaml +3
-0+ - items: + - const: fsl,imx6sl-lcdif + - const: fsl,imx6sx-lcdif
Documentation/devicetree/bindings/display/fsl,lcdif.yaml properties: · line 47
Quoted 10 lines
Documentation/devicetree/bindings/display/fsl,lcdif.yaml +10
-0+ - const: fsl,imx28-lcdif + - items: + - const: fsl,imx6sll-lcdif + - const: fsl,imx6sx-lcdif + - const: fsl,imx28-lcdif + - items: + - enum: + - fsl,imx6sl-lcdif + - fsl,imx6sll-lcdif + - const: fsl,imx28-lcdif
What do we need this for? Either imx6sx-lcdif is a useful fallback compatible or not. But not sometimes. Looking at the kernel driver: It is. So IMHO only the three element variants should be allowed.
Regards,
Andreas