adi,adgs1408.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Bindings for Analog Devices ADGS1408/1409 8:1/Dual 4:1 Mux
  2. Required properties:
  3. - compatible : Should be one of
  4. * "adi,adgs1408"
  5. * "adi,adgs1409"
  6. * Standard mux-controller bindings as described in mux-controller.txt
  7. Optional properties for ADGS1408/1409:
  8. - gpio-controller : if present, #gpio-cells is required.
  9. - #gpio-cells : should be <2>
  10. - First cell is the GPO line number, i.e. 0 to 3
  11. for ADGS1408 and 0 to 4 for ADGS1409
  12. - Second cell is used to specify active high (0)
  13. or active low (1)
  14. Optional properties:
  15. - idle-state : if present, the state that the mux controller will have
  16. when idle. The special state MUX_IDLE_AS_IS is the default and
  17. MUX_IDLE_DISCONNECT is also supported.
  18. States 0 through 7 correspond to signals S1 through S8 in the datasheet.
  19. For ADGS1409 only states 0 to 3 are available.
  20. Example:
  21. /*
  22. * One mux controller.
  23. * Mux state set to idle as is (no idle-state declared)
  24. */
  25. &spi0 {
  26. mux: mux-controller@0 {
  27. compatible = "adi,adgs1408";
  28. reg = <0>;
  29. spi-max-frequency = <1000000>;
  30. #mux-control-cells = <0>;
  31. };
  32. }
  33. adc-mux {
  34. compatible = "io-channel-mux";
  35. io-channels = <&adc 1>;
  36. io-channel-names = "parent";
  37. mux-controls = <&mux>;
  38. channels = "out_a0", "out_a1", "test0", "test1",
  39. "out_b0", "out_b1", "testb0", "testb1";
  40. };