Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/input/goodix,gt7375p.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Goodix GT7375P touchscreen
0008 
0009 maintainers:
0010   - Douglas Anderson <dianders@chromium.org>
0011 
0012 description:
0013   Supports the Goodix GT7375P touchscreen.
0014   This touchscreen uses the i2c-hid protocol but has some non-standard
0015   power sequencing required.
0016 
0017 properties:
0018   compatible:
0019     items:
0020       - const: goodix,gt7375p
0021 
0022   reg:
0023     enum:
0024       - 0x5d
0025       - 0x14
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   reset-gpios:
0031     true
0032 
0033   vdd-supply:
0034     description: The 3.3V supply to the touchscreen.
0035 
0036 required:
0037   - compatible
0038   - reg
0039   - interrupts
0040   - reset-gpios
0041   - vdd-supply
0042 
0043 additionalProperties: false
0044 
0045 examples:
0046   - |
0047     #include <dt-bindings/clock/qcom,rpmh.h>
0048     #include <dt-bindings/gpio/gpio.h>
0049     #include <dt-bindings/interrupt-controller/irq.h>
0050 
0051     i2c {
0052       #address-cells = <1>;
0053       #size-cells = <0>;
0054 
0055       ap_ts: touchscreen@5d {
0056         compatible = "goodix,gt7375p";
0057         reg = <0x5d>;
0058 
0059         interrupt-parent = <&tlmm>;
0060         interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
0061 
0062         reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
0063         vdd-supply = <&pp3300_ts>;
0064       };
0065     };