forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/Documentation/devicetree/bindings/input/touchscreen/bu21013.txt
....@@ -2,11 +2,24 @@
22
33 Required properties:
44 - compatible : "rohm,bu21013_tp"
5
- - reg : I2C device address
5
+ - reg : I2C device address
6
+ - reset-gpios : GPIO pin enabling (selecting) chip (CS)
7
+ - interrupt-parent : the phandle for the gpio controller
8
+ - interrupts : (gpio) interrupt to which the chip is connected
69
710 Optional properties:
8
- - touch-gpio : GPIO pin registering a touch event
11
+ - touch-gpios : GPIO pin registering a touch event
912 - <supply_name>-supply : Phandle to a regulator supply
13
+ - touchscreen-size-x : General touchscreen binding, see [1].
14
+ - touchscreen-size-y : General touchscreen binding, see [1].
15
+ - touchscreen-inverted-x : General touchscreen binding, see [1].
16
+ - touchscreen-inverted-y : General touchscreen binding, see [1].
17
+ - touchscreen-swapped-x-y : General touchscreen binding, see [1].
18
+
19
+[1] All general touchscreen properties are described in
20
+ Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt.
21
+
22
+Deprecated properties:
1023 - rohm,touch-max-x : Maximum outward permitted limit in the X axis
1124 - rohm,touch-max-y : Maximum outward permitted limit in the Y axis
1225 - rohm,flip-x : Flip touch coordinates on the X axis
....@@ -18,11 +31,13 @@
1831 bu21013_tp@5c {
1932 compatible = "rohm,bu21013_tp";
2033 reg = <0x5c>;
21
- touch-gpio = <&gpio2 20 0x4>;
34
+ interrupt-parent = <&gpio2>;
35
+ interrupts <&20 IRQ_TYPE_LEVEL_LOW>;
36
+ touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>;
2237 avdd-supply = <&ab8500_ldo_aux1_reg>;
2338
24
- rohm,touch-max-x = <384>;
25
- rohm,touch-max-y = <704>;
26
- rohm,flip-y;
39
+ touchscreen-size-x = <384>;
40
+ touchscreen-size-y = <704>;
41
+ touchscreen-inverted-y;
2742 };
2843 };