Skip to contentSkip to conversation

dt-bindings: input: touchscreen: edt-ft5x06: add edt,edt-ft5x06 for legacy platforms

PATCH In review Frank Li 2 participants 3 messages Mar 5 – Mar 6

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: input: touchscreen: edt-ft5x06: add edt,edt-ft5x06 for legacy platforms

The compatible string "edt,edt-ft5x06" has been used for more than a decade on older platforms such as i.MX6 and OMAP. However, it is currently missing from the binding documentation.

Add it to the binding to document existing usage and fix the following
CHECK_DTBS warnings.
arch/arm/boot/dts/nxp/imx/imx6dl-nit6xlite.dtb: /soc/bus@2100000/i2c@21a8000/touchscreen@38: failed to match any schema with compatible: ['edt,edt-ft5x06'

---
 .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml        | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +1 -0
index 6f90522de8c0a..213451f823369 100644
@@ -38,6 +38,7 @@ properties:
       - edt,edt-ft5306
       - edt,edt-ft5406
       - edt,edt-ft5506
+      - edt,edt-ft5x06 # Deprecated, not use for new platform.
       - evervision,ev-ft5726
       - focaltech,ft3518
       - focaltech,ft5426
Signature · 1 line
2.43.0
#1 lore raw
Quoted 18 lines · Frank Li

The compatible string "edt,edt-ft5x06" has been used for more than a decade on older platforms such as i.MX6 and OMAP. However, it is currently missing from the binding documentation.

Add it to the binding to document existing usage and fix the following
CHECK_DTBS warnings.
arch/arm/boot/dts/nxp/imx/imx6dl-nit6xlite.dtb: /soc/bus@2100000/i2c@21a8000/touchscreen@38: failed to match any schema with compatible: ['edt,edt-ft5x06'

---
 .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml        | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +0 -0
index 6f90522de8c0a..213451f823369 100644

Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml properties: · line 41

Quoted 4 lines
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +1 -0
@@ -38,6 +38,7 @@ properties:
       - edt,edt-ft5306
       - edt,edt-ft5406
       - edt,edt-ft5506
+      - edt,edt-ft5x06 # Deprecated, not use for new platform.

Then document it as deprecated one.

OTOH, this above is clearly not correct because we also have "edt,edt-ft5506", "edt,edt-ft5x06". Just use git grep.

I don't understand, though, what is the point of documenting it if there is no ABI implemented (nothing in the driver) and it cannot work.

Best regards,
Krzysztof

author maintainer
#2 lore raw
Quoted 26 lines · Krzysztof Kozlowski
Quoted 18 lines · Frank Li

The compatible string "edt,edt-ft5x06" has been used for more than a decade on older platforms such as i.MX6 and OMAP. However, it is currently missing from the binding documentation.

Add it to the binding to document existing usage and fix the following
CHECK_DTBS warnings.
arch/arm/boot/dts/nxp/imx/imx6dl-nit6xlite.dtb: /soc/bus@2100000/i2c@21a8000/touchscreen@38: failed to match any schema with compatible: ['edt,edt-ft5x06'

---
 .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml        | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +0 -0
index 6f90522de8c0a..213451f823369 100644

Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml properties: · line 41

Quoted 4 lines
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +1 -0
@@ -38,6 +38,7 @@ properties:
       - edt,edt-ft5306
       - edt,edt-ft5406
       - edt,edt-ft5506
+      - edt,edt-ft5x06 # Deprecated, not use for new platform.

Then document it as deprecated one.

Quoted 5 lines

OTOH, this above is clearly not correct because we also have "edt,edt-ft5506", "edt,edt-ft5x06". Just use git grep.

I don't understand, though, what is the point of documenting it if there is no ABI implemented (nothing in the driver) and it cannot work.

binding only define ABI. Many compatible string is not existed at driver code, especially legacy platform.

Go back this case, edt,edt-ft5(2,3,4,5)06 to use the same drvdata linux kernel. Touchscreen is off board periphial, no spec said use which one.

Two option,
- change binding to allow edt,edt-ft5x06
- change dts to use edt,edt-ft5206 (I guess), which broken ABI. like previous fsl,imx28-lcdif case.

Which one do you like?

Frank

Quoted 4 lines

Best regards,
Krzysztof