sun4i-gpadc.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Allwinner SoCs' GPADC Device Tree bindings
  2. ------------------------------------------
  3. The Allwinner SoCs all have an ADC that can also act as a thermal sensor
  4. and sometimes as a touchscreen controller.
  5. Required properties:
  6. - compatible: "allwinner,sun8i-a33-ths",
  7. - reg: mmio address range of the chip,
  8. - #thermal-sensor-cells: shall be 0,
  9. - #io-channel-cells: shall be 0,
  10. Example:
  11. ths: ths@1c25000 {
  12. compatible = "allwinner,sun8i-a33-ths";
  13. reg = <0x01c25000 0x100>;
  14. #thermal-sensor-cells = <0>;
  15. #io-channel-cells = <0>;
  16. };
  17. sun4i, sun5i and sun6i SoCs are also supported via the older binding:
  18. sun4i resistive touchscreen controller
  19. --------------------------------------
  20. Required properties:
  21. - compatible: "allwinner,sun4i-a10-ts", "allwinner,sun5i-a13-ts" or
  22. "allwinner,sun6i-a31-ts"
  23. - reg: mmio address range of the chip
  24. - interrupts: interrupt to which the chip is connected
  25. - #thermal-sensor-cells: shall be 0
  26. Optional properties:
  27. - allwinner,ts-attached : boolean indicating that an actual touchscreen
  28. is attached to the controller
  29. - allwinner,tp-sensitive-adjust : integer (4 bits)
  30. adjust sensitivity of pen down detection
  31. between 0 (least sensitive) and 15
  32. (defaults to 15)
  33. - allwinner,filter-type : integer (2 bits)
  34. select median and averaging filter
  35. samples used for median / averaging filter
  36. 0: 4/2
  37. 1: 5/3
  38. 2: 8/4
  39. 3: 16/8
  40. (defaults to 1)
  41. Example:
  42. rtp: rtp@1c25000 {
  43. compatible = "allwinner,sun4i-a10-ts";
  44. reg = <0x01c25000 0x100>;
  45. interrupts = <29>;
  46. allwinner,ts-attached;
  47. #thermal-sensor-cells = <0>;
  48. /* sensitive/noisy touch panel */
  49. allwinner,tp-sensitive-adjust = <0>;
  50. allwinner,filter-type = <3>;
  51. };