1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/adc/amlogic,meson-saradc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic Meson SAR (Successive Approximation Register) A/D converter
10 - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
13 Binding covers a range of ADCs found on Amlogic Meson SoCs.
18 - const: amlogic,meson-saradc
21 - amlogic,meson8-saradc
22 - amlogic,meson8b-saradc
23 - amlogic,meson8m2-saradc
24 - amlogic,meson-gxbb-saradc
25 - amlogic,meson-gxl-saradc
26 - amlogic,meson-gxm-saradc
27 - amlogic,meson-axg-saradc
28 - amlogic,meson-g12a-saradc
29 - const: amlogic,meson-saradc
35 description: Interrupt indicates end of sampling.
56 $ref: /schemas/types.yaml#/definitions/phandle
58 Syscon which contains the 5th bit of the TSC (temperature sensor
59 coefficient) on Meson8b and Meson8m2 (which used to calibrate the
63 description: phandle to the temperature_calib eFuse cells
67 const: temperature_calib
75 - amlogic,meson8-saradc
76 - amlogic,meson8b-saradc
77 - amlogic,meson8m2-saradc
87 mvmem-cel-names: false
98 - amlogic,meson8b-saradc
99 - amlogic,meson8m2-saradc
102 amlogic,hhi-sysctrl: true
105 amlogic,hhi-sysctrl: false
113 - "#io-channel-cells"
115 additionalProperties: false
119 #include <dt-bindings/interrupt-controller/irq.h>
120 #include <dt-bindings/clock/gxbb-clkc.h>
121 #include <dt-bindings/interrupt-controller/arm-gic.h>
123 #address-cells = <2>;
126 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
127 #io-channel-cells = <1>;
128 reg = <0x0 0x8680 0x0 0x34>;
129 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
131 <&clkc CLKID_SAR_ADC>,
132 <&clkc CLKID_SAR_ADC_CLK>,
133 <&clkc CLKID_SAR_ADC_SEL>;
134 clock-names = "clkin", "core", "adc_clk", "adc_sel";
137 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
138 #io-channel-cells = <1>;
139 reg = <0x0 0x9680 0x0 0x34>;
140 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
141 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
142 clock-names = "clkin", "core";
143 nvmem-cells = <&tsens_caldata>;
144 nvmem-cell-names = "temperature_calib";
145 amlogic,hhi-sysctrl = <&hhi>;