io-channel-mux.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. I/O channel multiplexer bindings
  2. If a multiplexer is used to select which hardware signal is fed to
  3. e.g. an ADC channel, these bindings describe that situation.
  4. Required properties:
  5. - compatible : "io-channel-mux"
  6. - io-channels : Channel node of the parent channel that has multiplexed
  7. input.
  8. - io-channel-names : Should be "parent".
  9. - #address-cells = <1>;
  10. - #size-cells = <0>;
  11. - mux-controls : Mux controller node to use for operating the mux
  12. - channels : List of strings, labeling the mux controller states.
  13. For each non-empty string in the channels property, an io-channel will
  14. be created. The number of this io-channel is the same as the index into
  15. the list of strings in the channels property, and also matches the mux
  16. controller state. The mux controller state is described in
  17. ../mux/mux-controller.txt
  18. Example:
  19. mux: mux-controller {
  20. compatible = "gpio-mux";
  21. #mux-control-cells = <0>;
  22. mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
  23. <&pioA 1 GPIO_ACTIVE_HIGH>;
  24. };
  25. adc-mux {
  26. compatible = "io-channel-mux";
  27. io-channels = <&adc 0>;
  28. io-channel-names = "parent";
  29. mux-controls = <&mux>;
  30. channels = "sync", "in", "system-regulator";
  31. };