Path: blob/main/sys/contrib/device-tree/Bindings/iio/multiplexer/io-channel-mux.txt
48523 views
I/O channel multiplexer bindings12If a multiplexer is used to select which hardware signal is fed to3e.g. an ADC channel, these bindings describe that situation.45Required properties:6- compatible : "io-channel-mux"7- io-channels : Channel node of the parent channel that has multiplexed8input.9- io-channel-names : Should be "parent".10- #address-cells = <1>;11- #size-cells = <0>;12- mux-controls : Mux controller node to use for operating the mux13- channels : List of strings, labeling the mux controller states.1415For each non-empty string in the channels property, an io-channel will16be created. The number of this io-channel is the same as the index into17the list of strings in the channels property, and also matches the mux18controller state. The mux controller state is described in19../mux/mux-controller.txt2021Example:22mux: mux-controller {23compatible = "gpio-mux";24#mux-control-cells = <0>;2526mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,27<&pioA 1 GPIO_ACTIVE_HIGH>;28};2930adc-mux {31compatible = "io-channel-mux";32io-channels = <&adc 0>;33io-channel-names = "parent";3435mux-controls = <&mux>;3637channels = "sync", "in", "system-regulator";38};394041