mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
Instead of trying to map INT GPIO to interrupt, let's use one supplied by I2C client. If there is none - bail. This will also allow us to treat INT GPIO as optional, as per the binding. Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
* Rohm BU21013 Touch Screen
|
|
|
|
Required properties:
|
|
- compatible : "rohm,bu21013_tp"
|
|
- reg : I2C device address
|
|
- reset-gpios : GPIO pin enabling (selecting) chip (CS)
|
|
- interrupt-parent : the phandle for the gpio controller
|
|
- interrupts : (gpio) interrupt to which the chip is connected
|
|
|
|
Optional properties:
|
|
- touch-gpios : GPIO pin registering a touch event
|
|
- <supply_name>-supply : Phandle to a regulator supply
|
|
- rohm,touch-max-x : Maximum outward permitted limit in the X axis
|
|
- rohm,touch-max-y : Maximum outward permitted limit in the Y axis
|
|
- rohm,flip-x : Flip touch coordinates on the X axis
|
|
- rohm,flip-y : Flip touch coordinates on the Y axis
|
|
|
|
Example:
|
|
|
|
i2c@80110000 {
|
|
bu21013_tp@5c {
|
|
compatible = "rohm,bu21013_tp";
|
|
reg = <0x5c>;
|
|
interrupt-parent = <&gpio2>;
|
|
interrupts <&20 IRQ_TYPE_LEVEL_LOW>;
|
|
touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>;
|
|
avdd-supply = <&ab8500_ldo_aux1_reg>;
|
|
|
|
rohm,touch-max-x = <384>;
|
|
rohm,touch-max-y = <704>;
|
|
rohm,flip-y;
|
|
};
|
|
};
|