xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/gpio-muxadc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1GPIO-controlled Multiplexers (MUX) A/D Converter bindings
2
3Required properties:
4- compatible: should be "gpio-muxadc" or others like below
5   - "sgm3699": for a quad, bidirectional, single-pole/double-throw (SPDT) CMOS analog switch.
6   - "sgm48752": for a dual, bidirectional, double-pole/double-throw (DPDT) CMOS analog switch.
7- io-channels: Channel node of the parent channel that has multiplexed input.
8- switch-gpios: Digital control pins to connect the parent adc channel(saradc) to the input adc channel(muxadc).
9- labels: The string list for each muxadc channel that should be placed in order.
10
11Example:
12        muxadc {
13                compatible = "sgm48752";
14                io-channels = <&saradc 4>, <&saradc 5>;
15                switch-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>,
16                               <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
17                labels = "wheel_vpropi_r_adc", "wheel_vpropi_l_adc",
18                         "fan_opa_adc", "mid_opa_adc",
19                         "pump_opa_adc", "side_opa_adc",
20                         "dc24vdet_adc", "collision_det_adc_lidar";
21                pinctrl-names = "default";
22                pinctrl-0 = <&switch_gpios>;
23                status = "okay";
24        };
25