| .. | .. |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | Required properties: |
|---|
| 4 | 4 | - 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 |
|---|
| 6 | 9 | |
|---|
| 7 | 10 | Optional properties: |
|---|
| 8 | | - - touch-gpio : GPIO pin registering a touch event |
|---|
| 11 | + - touch-gpios : GPIO pin registering a touch event |
|---|
| 9 | 12 | - <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: |
|---|
| 10 | 23 | - rohm,touch-max-x : Maximum outward permitted limit in the X axis |
|---|
| 11 | 24 | - rohm,touch-max-y : Maximum outward permitted limit in the Y axis |
|---|
| 12 | 25 | - rohm,flip-x : Flip touch coordinates on the X axis |
|---|
| .. | .. |
|---|
| 18 | 31 | bu21013_tp@5c { |
|---|
| 19 | 32 | compatible = "rohm,bu21013_tp"; |
|---|
| 20 | 33 | 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>; |
|---|
| 22 | 37 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
|---|
| 23 | 38 | |
|---|
| 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; |
|---|
| 27 | 42 | }; |
|---|
| 28 | 43 | }; |
|---|