0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Motorola CPCAP PMIC ADC binding
0008
0009 maintainers:
0010 - Tony Lindgren <tony@atomide.com>
0011
0012 description:
0013 On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC
0014 has ADCs that are used for battery charging and USB PHY VBUS and ID pin
0015 detection.
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - motorola,cpcap-adc
0021 - motorola,mapphone-cpcap-adc
0022
0023 interrupts:
0024 maxItems: 1
0025
0026 interrupt-names:
0027 const: adcdone
0028
0029 "#io-channel-cells":
0030 const: 1
0031
0032 required:
0033 - compatible
0034 - interrupts
0035 - "#io-channel-cells"
0036
0037 additionalProperties: false
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/interrupt-controller/irq.h>
0042 pmic {
0043 #address-cells = <1>;
0044 #size-cells = <0>;
0045 adc {
0046 compatible = "motorola,mapphone-cpcap-adc";
0047 interrupt-parent = <&cpcap>;
0048 interrupts = <8 IRQ_TYPE_NONE>;
0049 interrupt-names = "adcdone";
0050 #io-channel-cells = <1>;
0051 };
0052 };
0053 ...