Based on kernel version 6.18. Page generated on 2025-12-02 09:03 EST.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 --- $id: http://devicetree.org/schemas/iio/adc/rohm,bd79112.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ROHM BD79112 ADC/GPO maintainers: - Matti Vaittinen <mazziesaccount@gmail.com> description: | The ROHM BD79112 is a 12-bit, 32-channel, SAR ADC. ADC input pins can be also configured as general purpose inputs/outputs. SPI should use MODE 3. properties: compatible: const: rohm,bd79112 reg: maxItems: 1 spi-cpha: true spi-cpol: true gpio-controller: true "#gpio-cells": const: 2 vdd-supply: true iovdd-supply: true "#address-cells": const: 1 "#size-cells": const: 0 patternProperties: "^channel@([0-9]|[12][0-9]|3[01])$": type: object $ref: /schemas/iio/adc/adc.yaml# description: Represents ADC channel. Omitted channels' inputs are GPIOs. properties: reg: description: AIN pin number minimum: 0 maximum: 31 required: - reg additionalProperties: false required: - compatible - reg - iovdd-supply - vdd-supply - spi-cpha - spi-cpol additionalProperties: false examples: - | spi { #address-cells = <1>; #size-cells = <0>; adc: adc@0 { compatible = "rohm,bd79112"; reg = <0x0>; spi-cpha; spi-cpol; vdd-supply = <&dummyreg>; iovdd-supply = <&dummyreg>; #address-cells = <1>; #size-cells = <0>; gpio-controller; #gpio-cells = <2>; channel@0 { reg = <0>; }; channel@1 { reg = <1>; }; channel@2 { reg = <2>; }; channel@16 { reg = <16>; }; channel@20 { reg = <20>; }; }; }; |