dt-bindings: touch: correct ST binding information

Correct binding information for ST touch, also add
st,irq-flags.

Change-Id: I5530caee923f6ea79844d1e8fac7c226513fa569
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
This commit is contained in:
Yu Wu
2024-05-08 19:08:54 +08:00
parent ac343beafa
commit c6bf0f818f

View File

@@ -9,33 +9,36 @@ coordinates.
Required properties: Required properties:
- compatible : must be "st,stmfts" OR "st,fts" OR "st,fts2" - compatible : must be "st,stmfts" OR "st,fts" OR "st,fts2"
- reg : I2C slave address, (e.g. 0x49) - reg : I2C slave address, (e.g. 0x49). Or 0 for SPI interface
- interrupts : interrupt specification - interrupts : interrupt specification
- avdd-supply : analogic power supply - avdd-supply : analogic power supply
- vdd-supply : power supply - vdd-supply : power supply
- touchscreen-size-x : see touchscreen.txt - st,irq-gpio : interrupt gpio.
- touchscreen-size-y : see touchscreen.txt - st,irq-flags : irq trigger type config, , value should be:
1 - rising edge,
Optional properties: 2 - falling edge,
- touch-key-connected : specifies whether the touchkey feature is connected 4 - high level,
- ledvdd-supply : power supply to the touch key leds 8 - low level.
- st,reset-gpio : reset gpio
- st,regulator_dvdd : dvdd regulator name
- st,regulator_avdd : avdd regulator name
Example: Example:
i2c@00000000 { &i2c_6 {
status = "ok";
/* ... */ st_fts@49 {
compatible = "st,fts";
touchscreen@49 {
compatible = "st,stmfts";
reg = <0x49>; reg = <0x49>;
interrupt-parent = <&gpa1>;
interrupts = <1 IRQ_TYPE_NONE>; interrupt-parent = <&tlmm>;
touchscreen-size-x = <1599>; interrupts = <162 0x2008>;
touchscreen-size-y = <2559>; vdd-supply = <&L4B>;
touch-key-connected; avdd-supply = <&L14B>;
avdd-supply = <&ldo30_reg>; st,irq-gpio = <&tlmm 162 0x2008>;
vdd-supply = <&ldo31_reg>; st,irq-flags = <8>;
ledvdd-supply = <&ldo33_reg>; st,reset-gpio = <&tlmm 161 0x00>;
st,regulator_dvdd = "vdd";
st,regulator_avdd = "avdd";
}; };
}; };