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.
57 $ref: /schemas/types.yaml#/definitions/phandle
59 Syscon which contains the 5th bit of the TSC (temperature sensor
60 coefficient) on Meson8b and Meson8m2 (which used to calibrate the
64 description: phandle to the temperature_calib eFuse cells
68 const: temperature_calib
76 - amlogic,meson8-saradc
77 - amlogic,meson8b-saradc
78 - amlogic,meson8m2-saradc
88 mvmem-cel-names: false
99 - amlogic,meson8b-saradc
100 - amlogic,meson8m2-saradc
103 amlogic,hhi-sysctrl: true
106 amlogic,hhi-sysctrl: false
114 - "#io-channel-cells"
116 additionalProperties: false
120 #include <dt-bindings/interrupt-controller/irq.h>
121 #include <dt-bindings/clock/gxbb-clkc.h>
122 #include <dt-bindings/interrupt-controller/arm-gic.h>
124 #address-cells = <2>;
127 compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
128 #io-channel-cells = <1>;
129 reg = <0x0 0x8680 0x0 0x34>;
130 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
132 <&clkc CLKID_SAR_ADC>,
133 <&clkc CLKID_SAR_ADC_CLK>,
134 <&clkc CLKID_SAR_ADC_SEL>;
135 clock-names = "clkin", "core", "adc_clk", "adc_sel";
138 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
139 #io-channel-cells = <1>;
140 reg = <0x0 0x9680 0x0 0x34>;
141 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
142 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
143 clock-names = "clkin", "core";
144 nvmem-cells = <&tsens_caldata>;
145 nvmem-cell-names = "temperature_calib";
146 amlogic,hhi-sysctrl = <&hhi>;