xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/aspeed_adc.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotAspeed ADC
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis device is a 10-bit converter for 16 voltage channels.  All inputs are
4*c66ec88fSEmmanuel Vadotsingle ended.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: Should be "aspeed,ast2400-adc" or "aspeed,ast2500-adc"
8*c66ec88fSEmmanuel Vadot- reg: memory window mapping address and length
9*c66ec88fSEmmanuel Vadot- clocks: Input clock used to derive the sample clock. Expected to be the
10*c66ec88fSEmmanuel Vadot          SoC's APB clock.
11*c66ec88fSEmmanuel Vadot- resets: Reset controller phandle
12*c66ec88fSEmmanuel Vadot- #io-channel-cells: Must be set to <1> to indicate channels are selected
13*c66ec88fSEmmanuel Vadot                     by index.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadot	adc@1e6e9000 {
17*c66ec88fSEmmanuel Vadot		compatible = "aspeed,ast2400-adc";
18*c66ec88fSEmmanuel Vadot		reg = <0x1e6e9000 0xb0>;
19*c66ec88fSEmmanuel Vadot		clocks = <&syscon ASPEED_CLK_APB>;
20*c66ec88fSEmmanuel Vadot		resets = <&syscon ASPEED_RESET_ADC>;
21*c66ec88fSEmmanuel Vadot		#io-channel-cells = <1>;
22*c66ec88fSEmmanuel Vadot	};
23