Debian Codegraph @

Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml

raw symbols SCIP
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Motorola CPCAP PMIC ADC
8
9 maintainers:
10 - Tony Lindgren <[email protected]>
11
12 description:
13 On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC
14 has ADCs that are used for battery charging and USB PHY VBUS and ID pin
15 detection.
16
17 properties:
18 compatible:
19 enum:
20 - motorola,cpcap-adc
21 - motorola,mapphone-cpcap-adc
22 - motorola,mot-cpcap-adc
23
24 interrupts:
25 maxItems: 1
26
27 interrupt-names:
28 const: adcdone
29
30 "#io-channel-cells":
31 const: 1
32
33 required:
34 - compatible
35 - interrupts
36 - "#io-channel-cells"
37
38 additionalProperties: false
39
40 examples:
41 - |
42 #include <dt-bindings/interrupt-controller/irq.h>
43 pmic {
44 #address-cells = <1>;
45 #size-cells = <0>;
46 adc {
47 compatible = "motorola,mapphone-cpcap-adc";
48 interrupt-parent = <&cpcap>;
49 interrupts = <8 IRQ_TYPE_NONE>;
50 interrupt-names = "adcdone";
51 #io-channel-cells = <1>;
52 };
53 };
54 ...