dt-bindings: touchscreen: move ar1021.txt to maxim,max11801.yaml
Subsystems (4)
Frank Li
maintainerPATCH 1/1 dt-bindings: touchscreen: move ar1021.txt to maxim,max11801.yaml
ar1021 have only reg and interrupts property beside touch common properties. So move context of ar1021.txt into maxim,max11801.yaml.
--- .../bindings/input/touchscreen/ar1021.txt | 15 --------------- .../input/touchscreen/maxim,max11801.yaml | 4 +++- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/ar1021.txt
Documentation/devicetree/bindings/input/touchscreen/ar1021.txt deleted +0 -15
@@ -1,15 +0,0 @@ -* Microchip AR1020 and AR1021 touchscreen interface (I2C) - -Required properties: -- compatible : "microchip,ar1021-i2c" -- reg : I2C slave address -- interrupts : touch controller interrupt - -Example: - - touchscreen@4d { - compatible = "microchip,ar1021-i2c"; - reg = <0x4d>; - interrupt-parent = <&gpio3>; - interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; - };
Documentation/devicetree/bindings/input/touchscreen/maxim,max11801.yaml +3 -1
@@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: maxim,max11801 + enum: + - maxim,max11801 + - microchip,ar1021-i2c reg: maxItems: 1
Signature · 1 line
2.34.1
Quoted 2 lines · Frank Li
ar1021 have only reg and interrupts property beside touch common properties. So move context of ar1021.txt into maxim,max11801.yaml.
Are these devices even remotely related, other than both being touch devices?
Quoted 47 lines
Signed-off-by Frank Li <[email protected]>--- .../bindings/input/touchscreen/ar1021.txt | 15 --------------- .../input/touchscreen/maxim,max11801.yaml | 4 +++- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/ar1021.txtDocumentation/devicetree/bindings/input/touchscreen/ar1021.txt deleted +0
-15@@ -1,15 +0,0 @@ -* Microchip AR1020 and AR1021 touchscreen interface (I2C) - -Required properties: -- compatible : "microchip,ar1021-i2c" -- reg : I2C slave address -- interrupts : touch controller interrupt - -Example: - - touchscreen@4d { - compatible = "microchip,ar1021-i2c"; - reg = <0x4d>; - interrupt-parent = <&gpio3>; - interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; - };Documentation/devicetree/bindings/input/touchscreen/maxim,max11801.yaml +3
-1@@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: maxim,max11801 + enum: + - maxim,max11801 + - microchip,ar1021-i2c reg: maxItems: 1Signature · 1 line
2.34.1
Frank Li
maintainerQuoted 6 lines · Conor Dooley
Quoted 2 lines · Frank Li
ar1021 have only reg and interrupts property beside touch common properties. So move context of ar1021.txt into maxim,max11801.yaml.
Are these devices even remotely related, other than both being touch devices?
No, just properties is the same. There are many binding files, which bundle similar properties's yaml to one file.
we may create trivial-touch.yaml, which similar with trivial-rtc.yaml.
Frank
Quoted 48 lines
Quoted 48 lines
Signed-off-by Frank Li <[email protected]>--- .../bindings/input/touchscreen/ar1021.txt | 15 --------------- .../input/touchscreen/maxim,max11801.yaml | 4 +++- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/ar1021.txtDocumentation/devicetree/bindings/input/touchscreen/ar1021.txt deleted +0
-15@@ -1,15 +0,0 @@ -* Microchip AR1020 and AR1021 touchscreen interface (I2C) - -Required properties: -- compatible : "microchip,ar1021-i2c" -- reg : I2C slave address -- interrupts : touch controller interrupt - -Example: - - touchscreen@4d { - compatible = "microchip,ar1021-i2c"; - reg = <0x4d>; - interrupt-parent = <&gpio3>; - interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; - };Documentation/devicetree/bindings/input/touchscreen/maxim,max11801.yaml +3
-2@@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: maxim,max11801 + enum: + - maxim,max11801 + - microchip,ar1021-i2c reg: maxItems: 1 --2.34.1
Quoted 5 lines · Frank Li
Quoted 4 lines · Conor Dooley
Quoted 2 lines · Frank Li
ar1021 have only reg and interrupts property beside touch common properties. So move context of ar1021.txt into maxim,max11801.yaml.
Quoted 7 lines
Quoted 2 lines
Are these devices even remotely related, other than both being touch devices?
No, just properties is the same. There are many binding files, which bundle similar properties's yaml to one file.
we may create
trivial-touch.yaml, which similar withtrivial-rtc.yaml.
I think putting trivial devices that are completely unrelated into one file is confusing. It makes it seem like these devices are similar in programming model etc.
Merging them into a explicitly designated trivial-touch binding would be an improvement, if there are lots of very similar devices that could also be merged in together.