18c2ecf20Sopenharmony_ciBindings for Analog Devices ADGS1408/1409 8:1/Dual 4:1 Mux 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible : Should be one of 58c2ecf20Sopenharmony_ci * "adi,adgs1408" 68c2ecf20Sopenharmony_ci * "adi,adgs1409" 78c2ecf20Sopenharmony_ci* Standard mux-controller bindings as described in mux-controller.txt 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciOptional properties for ADGS1408/1409: 108c2ecf20Sopenharmony_ci- gpio-controller : if present, #gpio-cells is required. 118c2ecf20Sopenharmony_ci- #gpio-cells : should be <2> 128c2ecf20Sopenharmony_ci - First cell is the GPO line number, i.e. 0 to 3 138c2ecf20Sopenharmony_ci for ADGS1408 and 0 to 4 for ADGS1409 148c2ecf20Sopenharmony_ci - Second cell is used to specify active high (0) 158c2ecf20Sopenharmony_ci or active low (1) 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciOptional properties: 188c2ecf20Sopenharmony_ci- idle-state : if present, the state that the mux controller will have 198c2ecf20Sopenharmony_ci when idle. The special state MUX_IDLE_AS_IS is the default and 208c2ecf20Sopenharmony_ci MUX_IDLE_DISCONNECT is also supported. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciStates 0 through 7 correspond to signals S1 through S8 in the datasheet. 238c2ecf20Sopenharmony_ciFor ADGS1409 only states 0 to 3 are available. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciExample: 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci /* 288c2ecf20Sopenharmony_ci * One mux controller. 298c2ecf20Sopenharmony_ci * Mux state set to idle as is (no idle-state declared) 308c2ecf20Sopenharmony_ci */ 318c2ecf20Sopenharmony_ci &spi0 { 328c2ecf20Sopenharmony_ci mux: mux-controller@0 { 338c2ecf20Sopenharmony_ci compatible = "adi,adgs1408"; 348c2ecf20Sopenharmony_ci reg = <0>; 358c2ecf20Sopenharmony_ci spi-max-frequency = <1000000>; 368c2ecf20Sopenharmony_ci #mux-control-cells = <0>; 378c2ecf20Sopenharmony_ci }; 388c2ecf20Sopenharmony_ci } 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci adc-mux { 418c2ecf20Sopenharmony_ci compatible = "io-channel-mux"; 428c2ecf20Sopenharmony_ci io-channels = <&adc 1>; 438c2ecf20Sopenharmony_ci io-channel-names = "parent"; 448c2ecf20Sopenharmony_ci mux-controls = <&mux>; 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci channels = "out_a0", "out_a1", "test0", "test1", 478c2ecf20Sopenharmony_ci "out_b0", "out_b1", "testb0", "testb1"; 488c2ecf20Sopenharmony_ci }; 49