bu21013.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. * Rohm BU21013 Touch Screen
  2. Required properties:
  3. - compatible : "rohm,bu21013_tp"
  4. - reg : I2C device address
  5. - reset-gpios : GPIO pin enabling (selecting) chip (CS)
  6. - interrupt-parent : the phandle for the gpio controller
  7. - interrupts : (gpio) interrupt to which the chip is connected
  8. Optional properties:
  9. - touch-gpios : GPIO pin registering a touch event
  10. - <supply_name>-supply : Phandle to a regulator supply
  11. - touchscreen-size-x : General touchscreen binding, see [1].
  12. - touchscreen-size-y : General touchscreen binding, see [1].
  13. - touchscreen-inverted-x : General touchscreen binding, see [1].
  14. - touchscreen-inverted-y : General touchscreen binding, see [1].
  15. - touchscreen-swapped-x-y : General touchscreen binding, see [1].
  16. [1] All general touchscreen properties are described in
  17. Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt.
  18. Deprecated properties:
  19. - rohm,touch-max-x : Maximum outward permitted limit in the X axis
  20. - rohm,touch-max-y : Maximum outward permitted limit in the Y axis
  21. - rohm,flip-x : Flip touch coordinates on the X axis
  22. - rohm,flip-y : Flip touch coordinates on the Y axis
  23. Example:
  24. i2c@80110000 {
  25. bu21013_tp@5c {
  26. compatible = "rohm,bu21013_tp";
  27. reg = <0x5c>;
  28. interrupt-parent = <&gpio2>;
  29. interrupts <&20 IRQ_TYPE_LEVEL_LOW>;
  30. touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>;
  31. avdd-supply = <&ab8500_ldo_aux1_reg>;
  32. touchscreen-size-x = <384>;
  33. touchscreen-size-y = <704>;
  34. touchscreen-inverted-y;
  35. };
  36. };