Rockchip Successive Approximation Register (SAR) A/D Converter

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rockchip-saradc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,saradc"

Rule 2

Exact value (const): "rockchip,rk3066-tsadc"

Rule 3

Exact value (const): "rockchip,rk3399-saradc"

Rule 4

Exact value (const): "rockchip,rk3528-saradc"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3506-saradc"

Item 2

Exact value (const): "rockchip,rk3528-saradc"

Rule 6

Exact value (const): "rockchip,rk3562-saradc"

Rule 7

Exact value (const): "rockchip,rk3588-saradc"

Rule 8

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3576-saradc"

Item 2

Exact value (const): "rockchip,rk3588-saradc"

Rule 9

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-saradc", "rockchip,rk3308-saradc", "rockchip,rk3328-saradc", "rockchip,rk3568-saradc", "rockchip,rv1108-saradc", "rockchip,rv1126-saradc"

Item 2

Exact value (const): "rockchip,rk3399-saradc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

converter clock

Item 2

peripheral clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "saradc"

Item 2

Exact value (const): "apb_pclk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "saradc-apb"

vref-supply — required here #

The regulator supply for the ADC reference voltage.

#io-channel-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply", "#io-channel-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
saradc: saradc@2006c000 {
  compatible = "rockchip,saradc";
  reg = <0x2006c000 0x100>;
  interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
  clock-names = "saradc", "apb_pclk";
  resets = <&cru SRST_SARADC>;
  reset-names = "saradc-apb";
  vref-supply = <&vcc18>;
  #io-channel-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page