Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/amlogic,meson-saradc.txt
48406 views
* Amlogic Meson SAR (Successive Approximation Register) A/D converter12Required properties:3- compatible: depending on the SoC this should be one of:4- "amlogic,meson8-saradc" for Meson85- "amlogic,meson8b-saradc" for Meson8b6- "amlogic,meson8m2-saradc" for Meson8m27- "amlogic,meson-gxbb-saradc" for GXBB8- "amlogic,meson-gxl-saradc" for GXL9- "amlogic,meson-gxm-saradc" for GXM10- "amlogic,meson-axg-saradc" for AXG11- "amlogic,meson-g12a-saradc" for AXG12along with the generic "amlogic,meson-saradc"13- reg: the physical base address and length of the registers14- interrupts: the interrupt indicating end of sampling15- clocks: phandle and clock identifier (see clock-names)16- clock-names: mandatory clocks:17- "clkin" for the reference clock (typically XTAL)18- "core" for the SAR ADC core clock19optional clocks:20- "adc_clk" for the ADC (sampling) clock21- "adc_sel" for the ADC (sampling) clock mux22- vref-supply: the regulator supply for the ADC reference voltage23- #io-channel-cells: must be 1, see ../iio-bindings.txt2425Optional properties:26- amlogic,hhi-sysctrl: phandle to the syscon which contains the 5th bit27of the TSC (temperature sensor coefficient) on28Meson8b and Meson8m2 (which used to calibrate the29temperature sensor)30- nvmem-cells: phandle to the temperature_calib eFuse cells31- nvmem-cell-names: if present (to enable the temperature sensor32calibration) this must contain "temperature_calib"333435Example:36saradc: adc@8680 {37compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";38#io-channel-cells = <1>;39reg = <0x0 0x8680 0x0 0x34>;40interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;41clocks = <&xtal>,42<&clkc CLKID_SAR_ADC>,43<&clkc CLKID_SANA>,44<&clkc CLKID_SAR_ADC_CLK>,45<&clkc CLKID_SAR_ADC_SEL>;46clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";47};484950