162306a36Sopenharmony_ciBindings for Analog Devices ADGS1408/1409 8:1/Dual 4:1 Mux 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible : Should be one of 562306a36Sopenharmony_ci * "adi,adgs1408" 662306a36Sopenharmony_ci * "adi,adgs1409" 762306a36Sopenharmony_ci* Standard mux-controller bindings as described in mux-controller.yaml 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciOptional properties for ADGS1408/1409: 1062306a36Sopenharmony_ci- gpio-controller : if present, #gpio-cells is required. 1162306a36Sopenharmony_ci- #gpio-cells : should be <2> 1262306a36Sopenharmony_ci - First cell is the GPO line number, i.e. 0 to 3 1362306a36Sopenharmony_ci for ADGS1408 and 0 to 4 for ADGS1409 1462306a36Sopenharmony_ci - Second cell is used to specify active high (0) 1562306a36Sopenharmony_ci or active low (1) 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ciOptional properties: 1862306a36Sopenharmony_ci- idle-state : if present, the state that the mux controller will have 1962306a36Sopenharmony_ci when idle. The special state MUX_IDLE_AS_IS is the default and 2062306a36Sopenharmony_ci MUX_IDLE_DISCONNECT is also supported. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciStates 0 through 7 correspond to signals S1 through S8 in the datasheet. 2362306a36Sopenharmony_ciFor ADGS1409 only states 0 to 3 are available. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciExample: 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci /* 2862306a36Sopenharmony_ci * One mux controller. 2962306a36Sopenharmony_ci * Mux state set to idle as is (no idle-state declared) 3062306a36Sopenharmony_ci */ 3162306a36Sopenharmony_ci &spi0 { 3262306a36Sopenharmony_ci mux: mux-controller@0 { 3362306a36Sopenharmony_ci compatible = "adi,adgs1408"; 3462306a36Sopenharmony_ci reg = <0>; 3562306a36Sopenharmony_ci spi-max-frequency = <1000000>; 3662306a36Sopenharmony_ci #mux-control-cells = <0>; 3762306a36Sopenharmony_ci }; 3862306a36Sopenharmony_ci } 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci adc-mux { 4162306a36Sopenharmony_ci compatible = "io-channel-mux"; 4262306a36Sopenharmony_ci io-channels = <&adc 1>; 4362306a36Sopenharmony_ci io-channel-names = "parent"; 4462306a36Sopenharmony_ci mux-controls = <&mux>; 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci channels = "out_a0", "out_a1", "test0", "test1", 4762306a36Sopenharmony_ci "out_b0", "out_b1", "testb0", "testb1"; 4862306a36Sopenharmony_ci }; 49