xref: /freebsd/sys/contrib/device-tree/Bindings/input/goodix,gt7375p.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/input/goodix,gt7375p.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Goodix GT7375P touchscreen
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Douglas Anderson <dianders@chromium.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription:
135def4c47SEmmanuel Vadot  Supports the Goodix GT7375P touchscreen.
145def4c47SEmmanuel Vadot  This touchscreen uses the i2c-hid protocol but has some non-standard
155def4c47SEmmanuel Vadot  power sequencing required.
165def4c47SEmmanuel Vadot
17*aa1a8ff2SEmmanuel VadotallOf:
18*aa1a8ff2SEmmanuel Vadot  - $ref: /schemas/input/touchscreen/touchscreen.yaml#
19*aa1a8ff2SEmmanuel Vadot
205def4c47SEmmanuel Vadotproperties:
215def4c47SEmmanuel Vadot  compatible:
227ef62cebSEmmanuel Vadot    oneOf:
237ef62cebSEmmanuel Vadot      - const: goodix,gt7375p
247ef62cebSEmmanuel Vadot      - items:
257ef62cebSEmmanuel Vadot          - const: goodix,gt7986u
265def4c47SEmmanuel Vadot          - const: goodix,gt7375p
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot  reg:
295def4c47SEmmanuel Vadot    enum:
305def4c47SEmmanuel Vadot      - 0x5d
315def4c47SEmmanuel Vadot      - 0x14
325def4c47SEmmanuel Vadot
335def4c47SEmmanuel Vadot  interrupts:
345def4c47SEmmanuel Vadot    maxItems: 1
355def4c47SEmmanuel Vadot
36*aa1a8ff2SEmmanuel Vadot  panel: true
37*aa1a8ff2SEmmanuel Vadot
385def4c47SEmmanuel Vadot  reset-gpios:
395def4c47SEmmanuel Vadot    true
405def4c47SEmmanuel Vadot
415def4c47SEmmanuel Vadot  vdd-supply:
425def4c47SEmmanuel Vadot    description: The 3.3V supply to the touchscreen.
435def4c47SEmmanuel Vadot
44cb7aa33aSEmmanuel Vadot  mainboard-vddio-supply:
45cb7aa33aSEmmanuel Vadot    description:
46cb7aa33aSEmmanuel Vadot      The supply on the main board needed to power up IO signals going
47cb7aa33aSEmmanuel Vadot      to the touchscreen. This supply need not go to the touchscreen
48cb7aa33aSEmmanuel Vadot      itself as long as it allows the main board to make signals compatible
49cb7aa33aSEmmanuel Vadot      with what the touchscreen is expecting for its IO rails.
50cb7aa33aSEmmanuel Vadot
51f126890aSEmmanuel Vadot  goodix,no-reset-during-suspend:
52f126890aSEmmanuel Vadot    description:
53f126890aSEmmanuel Vadot      Set this to true to enforce the driver to not assert the reset GPIO
54f126890aSEmmanuel Vadot      during suspend.
55f126890aSEmmanuel Vadot      Due to potential touchscreen hardware flaw, back-powering could happen in
56f126890aSEmmanuel Vadot      suspend if the power supply is on and with active-low reset GPIO asserted.
57f126890aSEmmanuel Vadot      This property is used to avoid the back-powering issue.
58f126890aSEmmanuel Vadot    type: boolean
59f126890aSEmmanuel Vadot
605def4c47SEmmanuel Vadotrequired:
615def4c47SEmmanuel Vadot  - compatible
625def4c47SEmmanuel Vadot  - reg
635def4c47SEmmanuel Vadot  - interrupts
645def4c47SEmmanuel Vadot  - reset-gpios
655def4c47SEmmanuel Vadot  - vdd-supply
665def4c47SEmmanuel Vadot
675def4c47SEmmanuel VadotadditionalProperties: false
685def4c47SEmmanuel Vadot
695def4c47SEmmanuel Vadotexamples:
705def4c47SEmmanuel Vadot  - |
715def4c47SEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
725def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
735def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
745def4c47SEmmanuel Vadot
755def4c47SEmmanuel Vadot    i2c {
765def4c47SEmmanuel Vadot      #address-cells = <1>;
775def4c47SEmmanuel Vadot      #size-cells = <0>;
785def4c47SEmmanuel Vadot
795def4c47SEmmanuel Vadot      ap_ts: touchscreen@5d {
805def4c47SEmmanuel Vadot        compatible = "goodix,gt7375p";
815def4c47SEmmanuel Vadot        reg = <0x5d>;
825def4c47SEmmanuel Vadot
835def4c47SEmmanuel Vadot        interrupt-parent = <&tlmm>;
845def4c47SEmmanuel Vadot        interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
855def4c47SEmmanuel Vadot
865def4c47SEmmanuel Vadot        reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
875def4c47SEmmanuel Vadot        vdd-supply = <&pp3300_ts>;
885def4c47SEmmanuel Vadot      };
895def4c47SEmmanuel Vadot    };
90