exynos-adc.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Samsung Exynos Analog to Digital Converter bindings
  2. The devicetree bindings are for the new ADC driver written for
  3. Exynos4 and upward SoCs from Samsung.
  4. New driver handles the following
  5. 1. Supports ADC IF found on EXYNOS4412/EXYNOS5250
  6. and future SoCs from Samsung
  7. 2. Add ADC driver under iio/adc framework
  8. 3. Also adds the Documentation for device tree bindings
  9. Required properties:
  10. - compatible: Must be "samsung,exynos-adc-v1"
  11. for exynos4412/5250 controllers.
  12. Must be "samsung,exynos-adc-v2" for
  13. future controllers.
  14. - reg: Contains ADC register address range (base address and
  15. length) and the address of the phy enable register.
  16. - interrupts: Contains the interrupt information for the timer. The
  17. format is being dependent on which interrupt controller
  18. the Samsung device uses.
  19. - #io-channel-cells = <1>; As ADC has multiple outputs
  20. - clocks From common clock binding: handle to adc clock.
  21. - clock-names From common clock binding: Shall be "adc".
  22. - vdd-supply VDD input supply.
  23. Note: child nodes can be added for auto probing from device tree.
  24. Example: adding device info in dtsi file
  25. adc: adc@12D10000 {
  26. compatible = "samsung,exynos-adc-v1";
  27. reg = <0x12D10000 0x100>, <0x10040718 0x4>;
  28. interrupts = <0 106 0>;
  29. #io-channel-cells = <1>;
  30. io-channel-ranges;
  31. clocks = <&clock 303>;
  32. clock-names = "adc";
  33. vdd-supply = <&buck5_reg>;
  34. };
  35. Example: Adding child nodes in dts file
  36. adc@12D10000 {
  37. /* NTC thermistor is a hwmon device */
  38. ncp15wb473@0 {
  39. compatible = "ntc,ncp15wb473";
  40. pullup-uV = <1800000>;
  41. pullup-ohm = <47000>;
  42. pulldown-ohm = <0>;
  43. io-channels = <&adc 4>;
  44. };
  45. };
  46. Note: Does not apply to ADC driver under arch/arm/plat-samsung/
  47. Note: The child node can be added under the adc node or separately.