xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/aspeed,ast2400-adc.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2400-adc.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: ADC that forms part of an ASPEED server management processor.
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Joel Stanley <joel@jms.id.au>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription:
136be33864SEmmanuel Vadot  This device is a 10-bit converter for 16 voltage channels.  All inputs are
146be33864SEmmanuel Vadot  single ended.
156be33864SEmmanuel Vadot
166be33864SEmmanuel Vadotproperties:
176be33864SEmmanuel Vadot  compatible:
186be33864SEmmanuel Vadot    enum:
196be33864SEmmanuel Vadot      - aspeed,ast2400-adc
206be33864SEmmanuel Vadot      - aspeed,ast2500-adc
216be33864SEmmanuel Vadot
226be33864SEmmanuel Vadot  reg:
236be33864SEmmanuel Vadot    maxItems: 1
246be33864SEmmanuel Vadot
256be33864SEmmanuel Vadot  clocks:
26*5def4c47SEmmanuel Vadot    maxItems: 1
276be33864SEmmanuel Vadot    description:
286be33864SEmmanuel Vadot      Input clock used to derive the sample clock. Expected to be the
296be33864SEmmanuel Vadot      SoC's APB clock.
306be33864SEmmanuel Vadot
316be33864SEmmanuel Vadot  resets:
326be33864SEmmanuel Vadot    maxItems: 1
336be33864SEmmanuel Vadot
346be33864SEmmanuel Vadot  "#io-channel-cells":
356be33864SEmmanuel Vadot    const: 1
366be33864SEmmanuel Vadot
376be33864SEmmanuel Vadotrequired:
386be33864SEmmanuel Vadot  - compatible
396be33864SEmmanuel Vadot  - reg
406be33864SEmmanuel Vadot  - clocks
416be33864SEmmanuel Vadot  - resets
426be33864SEmmanuel Vadot  - "#io-channel-cells"
436be33864SEmmanuel Vadot
446be33864SEmmanuel VadotadditionalProperties: false
456be33864SEmmanuel Vadot
466be33864SEmmanuel Vadotexamples:
476be33864SEmmanuel Vadot  - |
486be33864SEmmanuel Vadot    #include <dt-bindings/clock/aspeed-clock.h>
496be33864SEmmanuel Vadot    adc@1e6e9000 {
506be33864SEmmanuel Vadot        compatible = "aspeed,ast2400-adc";
516be33864SEmmanuel Vadot        reg = <0x1e6e9000 0xb0>;
526be33864SEmmanuel Vadot        clocks = <&syscon ASPEED_CLK_APB>;
536be33864SEmmanuel Vadot        resets = <&syscon ASPEED_RESET_ADC>;
546be33864SEmmanuel Vadot        #io-channel-cells = <1>;
556be33864SEmmanuel Vadot    };
566be33864SEmmanuel Vadot...
57