1*c66ec88fSEmmanuel Vadot* Amlogic Meson SAR (Successive Approximation Register) A/D converter
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible:	depending on the SoC this should be one of:
5*c66ec88fSEmmanuel Vadot			- "amlogic,meson8-saradc" for Meson8
6*c66ec88fSEmmanuel Vadot			- "amlogic,meson8b-saradc" for Meson8b
7*c66ec88fSEmmanuel Vadot			- "amlogic,meson8m2-saradc" for Meson8m2
8*c66ec88fSEmmanuel Vadot			- "amlogic,meson-gxbb-saradc" for GXBB
9*c66ec88fSEmmanuel Vadot			- "amlogic,meson-gxl-saradc" for GXL
10*c66ec88fSEmmanuel Vadot			- "amlogic,meson-gxm-saradc" for GXM
11*c66ec88fSEmmanuel Vadot			- "amlogic,meson-axg-saradc" for AXG
12*c66ec88fSEmmanuel Vadot			- "amlogic,meson-g12a-saradc" for AXG
13*c66ec88fSEmmanuel Vadot		along with the generic "amlogic,meson-saradc"
14*c66ec88fSEmmanuel Vadot- reg:		the physical base address and length of the registers
15*c66ec88fSEmmanuel Vadot- interrupts:	the interrupt indicating end of sampling
16*c66ec88fSEmmanuel Vadot- clocks:	phandle and clock identifier (see clock-names)
17*c66ec88fSEmmanuel Vadot- clock-names:	mandatory clocks:
18*c66ec88fSEmmanuel Vadot			- "clkin" for the reference clock (typically XTAL)
19*c66ec88fSEmmanuel Vadot			- "core" for the SAR ADC core clock
20*c66ec88fSEmmanuel Vadot		optional clocks:
21*c66ec88fSEmmanuel Vadot			- "adc_clk" for the ADC (sampling) clock
22*c66ec88fSEmmanuel Vadot			- "adc_sel" for the ADC (sampling) clock mux
23*c66ec88fSEmmanuel Vadot- vref-supply:	the regulator supply for the ADC reference voltage
24*c66ec88fSEmmanuel Vadot- #io-channel-cells: must be 1, see ../iio-bindings.txt
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel VadotOptional properties:
27*c66ec88fSEmmanuel Vadot- amlogic,hhi-sysctrl:	phandle to the syscon which contains the 5th bit
28*c66ec88fSEmmanuel Vadot			of the TSC (temperature sensor coefficient) on
29*c66ec88fSEmmanuel Vadot			Meson8b and Meson8m2 (which used to calibrate the
30*c66ec88fSEmmanuel Vadot			temperature sensor)
31*c66ec88fSEmmanuel Vadot- nvmem-cells:		phandle to the temperature_calib eFuse cells
32*c66ec88fSEmmanuel Vadot- nvmem-cell-names:	if present (to enable the temperature sensor
33*c66ec88fSEmmanuel Vadot			calibration) this must contain "temperature_calib"
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel VadotExample:
37*c66ec88fSEmmanuel Vadot	saradc: adc@8680 {
38*c66ec88fSEmmanuel Vadot		compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
39*c66ec88fSEmmanuel Vadot		#io-channel-cells = <1>;
40*c66ec88fSEmmanuel Vadot		reg = <0x0 0x8680 0x0 0x34>;
41*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
42*c66ec88fSEmmanuel Vadot		clocks = <&xtal>,
43*c66ec88fSEmmanuel Vadot			 <&clkc CLKID_SAR_ADC>,
44*c66ec88fSEmmanuel Vadot			 <&clkc CLKID_SANA>,
45*c66ec88fSEmmanuel Vadot			 <&clkc CLKID_SAR_ADC_CLK>,
46*c66ec88fSEmmanuel Vadot			 <&clkc CLKID_SAR_ADC_SEL>;
47*c66ec88fSEmmanuel Vadot		clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
48*c66ec88fSEmmanuel Vadot	};
49