mxs-lradc.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. * Freescale MXS LRADC device driver
  2. Required properties:
  3. - compatible: Should be "fsl,imx23-lradc" for i.MX23 SoC and "fsl,imx28-lradc"
  4. for i.MX28 SoC
  5. - reg: Address and length of the register set for the device
  6. - interrupts: Should contain the LRADC interrupts
  7. Optional properties:
  8. - fsl,lradc-touchscreen-wires: Number of wires used to connect the touchscreen
  9. to LRADC. Valid value is either 4 or 5. If this
  10. property is not present, then the touchscreen is
  11. disabled. 5 wires is valid for i.MX28 SoC only.
  12. - fsl,ave-ctrl: number of samples per direction to calculate an average value.
  13. Allowed value is 1 ... 32, default is 4
  14. - fsl,ave-delay: delay between consecutive samples. Allowed value is
  15. 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at
  16. 2 kHz and its default is 2 (= 1 ms)
  17. - fsl,settling: delay between plate switch to next sample. Allowed value is
  18. 1 ... 2047. It counts at 2 kHz and its default is
  19. 10 (= 5 ms)
  20. Example for i.MX23 SoC:
  21. lradc@80050000 {
  22. compatible = "fsl,imx23-lradc";
  23. reg = <0x80050000 0x2000>;
  24. interrupts = <36 37 38 39 40 41 42 43 44>;
  25. fsl,lradc-touchscreen-wires = <4>;
  26. fsl,ave-ctrl = <4>;
  27. fsl,ave-delay = <2>;
  28. fsl,settling = <10>;
  29. };
  30. Example for i.MX28 SoC:
  31. lradc@80050000 {
  32. compatible = "fsl,imx28-lradc";
  33. reg = <0x80050000 0x2000>;
  34. interrupts = <10 14 15 16 17 18 19 20 21 22 23 24 25>;
  35. fsl,lradc-touchscreen-wires = <5>;
  36. fsl,ave-ctrl = <4>;
  37. fsl,ave-delay = <2>;
  38. fsl,settling = <10>;
  39. };