dt-bindings: input: Add bindings for TouchNetix axiom touchscreen
Hello Krzysztof,
Le 2023-10-09 17:05, Krzysztof Kozlowski a écrit :
Quoted 7 lines · Kamel Bouhara
Quoted 2 lines
Add the TouchNetix axiom I2C touchscreen device tree bindings documentation.
A nit, subject: drop second/last, redundant "bindings for". The "dt-bindings" prefix is already stating that these are bindings.
OK.
Quoted 35 lines
Quoted 35 lines
Signed-off-by Kamel Bouhara <[email protected]>--- .../touchscreen/touchnetix,axiom-ax54a.yaml | 51 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 57 insertions(+) create mode 100644
Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom-ax54a.yaml(quoted diff) +0
-0
b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom-ax54a.yaml(quoted diff) +4
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id:http://devicetree.org/schemas/input/touchscreen/touchnetix,axiom-ax54a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#(quoted diff) +13
-0+ +title: TouchNetix Axiom series touchscreen controller + +maintainers: + - Kamel Bouhara <[email protected]> + +properties: + compatible: + const: touchnetix,axiom-ax54a + + reg: + const: 0x66 +
Quoted 9 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+ interrupts: + maxItems: 1 + + irq-gpios: + maxItems: 1Why these are GPIOs? Interrupts are usually just interrupts... You need to clearly describe this.
I've been using this for some specific acpi stuff hence it need to be removed.
Quoted 18 lines
Review
Quoted 6 lines
(quoted diff) +5
-0+ + reset-gpios: + maxItems: 1 + +additionalProperties: falseThis goes after required: block.
Quoted 9 lines
(quoted diff) +9
-0+ +required: + - compatible + - reg + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h>
Quoted 9 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ i2c { + #address-cells = <1>; + #size-cells = <0>; + axiom@66 {Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Ack.
Quoted 9 lines
Review
Quoted 7 lines
(quoted diff) +5
-0+ compatible = "touchnetix,axiom-ax54a"; + reg = <0x66>; + interrupt-parent = <&gpio2>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;Eh? This looks really wrong.
OK let's clean that as well.
Thanks
Quoted 4 lines
Best regards,
Krzysztof