Path: blob/master/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/amlogic,meson-saradc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Amlogic Meson SAR (Successive Approximation Register) A/D converter78maintainers:9- Martin Blumenstingl <martin.blumenstingl@googlemail.com>1011description:12Binding covers a range of ADCs found on Amlogic Meson SoCs.1314properties:15compatible:16oneOf:17- const: amlogic,meson-saradc18- items:19- enum:20- amlogic,meson8-saradc21- amlogic,meson8b-saradc22- amlogic,meson8m2-saradc23- amlogic,meson-gxbb-saradc24- amlogic,meson-gxl-saradc25- amlogic,meson-gxlx-saradc26- amlogic,meson-gxm-saradc27- amlogic,meson-axg-saradc28- amlogic,meson-g12a-saradc29- const: amlogic,meson-saradc3031reg:32maxItems: 13334interrupts:35description: Interrupt indicates end of sampling.36maxItems: 13738clocks:39minItems: 240maxItems: 44142clock-names:43minItems: 244items:45- const: clkin46- const: core47- const: adc_clk48- const: adc_sel4950vref-supply: true5152"#io-channel-cells":53const: 15455amlogic,hhi-sysctrl:56$ref: /schemas/types.yaml#/definitions/phandle57description:58Syscon which contains the 5th bit of the TSC (temperature sensor59coefficient) on Meson8b and Meson8m2 (which used to calibrate the60temperature sensor)6162nvmem-cells:63description: phandle to the temperature_calib eFuse cells64maxItems: 16566nvmem-cell-names:67const: temperature_calib6869power-domains:70maxItems: 17172allOf:73- if:74properties:75compatible:76contains:77enum:78- amlogic,meson8-saradc79- amlogic,meson8b-saradc80- amlogic,meson8m2-saradc81then:82properties:83clocks:84maxItems: 285clock-names:86maxItems: 287else:88properties:89nvmem-cells: false90mvmem-cel-names: false91clocks:92minItems: 493clock-names:94minItems: 49596- if:97properties:98compatible:99contains:100enum:101- amlogic,meson8-saradc102- amlogic,meson8b-saradc103- amlogic,meson8m2-saradc104then:105properties:106amlogic,hhi-sysctrl: true107else:108properties:109amlogic,hhi-sysctrl: false110111required:112- compatible113- reg114- interrupts115- clocks116- clock-names117- "#io-channel-cells"118119additionalProperties: false120121examples:122- |123#include <dt-bindings/interrupt-controller/irq.h>124#include <dt-bindings/clock/gxbb-clkc.h>125#include <dt-bindings/interrupt-controller/arm-gic.h>126soc {127#address-cells = <2>;128#size-cells = <2>;129adc@8680 {130compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";131#io-channel-cells = <1>;132reg = <0x0 0x8680 0x0 0x34>;133interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;134clocks = <&xtal>,135<&clkc CLKID_SAR_ADC>,136<&clkc CLKID_SAR_ADC_CLK>,137<&clkc CLKID_SAR_ADC_SEL>;138clock-names = "clkin", "core", "adc_clk", "adc_sel";139};140adc@9680 {141compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";142#io-channel-cells = <1>;143reg = <0x0 0x9680 0x0 0x34>;144interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;145clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;146clock-names = "clkin", "core";147nvmem-cells = <&tsens_caldata>;148nvmem-cell-names = "temperature_calib";149amlogic,hhi-sysctrl = <&hhi>;150};151};152...153154155