Skip to contentSkip to conversation

dt-bindings: touchscreen: move ar1021.txt to maxim,max11801.yaml

PATCH In review Frank Li 2 participants 4 messages Sep 25, 2025

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 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
deleted file mode 100644
index 82019bd6094ee..0000000000000
@@ -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
index 4f528d2201992..288c7e6e1b3b7 100644
@@ -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
#1 lore raw
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
---
 .../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
deleted file mode 100644
index 82019bd6094ee..0000000000000
@@ -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
index 4f528d2201992..288c7e6e1b3b7 100644
@@ -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
author maintainer
#2 lore raw
Quoted 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
---
 .../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
deleted file mode 100644
index 82019bd6094ee..0000000000000
@@ -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
index 4f528d2201992..288c7e6e1b3b7 100644
@@ -11,7 +11,9 @@ maintainers:
 
 properties:
   compatible:
-    const: maxim,max11801
+    enum:
+      - maxim,max11801
+      - microchip,ar1021-i2c
 
   reg:
     maxItems: 1
--

2.34.1

#3 lore raw
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 with trivial-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.