0001 Motorola CPCAP PMIC device tree binding
0002
0003 Required properties:
0004 - compatible : One or both of "motorola,cpcap" or "ste,6556002"
0005 - reg : SPI chip select
0006 - interrupts : The interrupt line the device is connected to
0007 - interrupt-controller : Marks the device node as an interrupt controller
0008 - #interrupt-cells : The number of cells to describe an IRQ, should be 2
0009 - #address-cells : Child device offset number of cells, should be 1
0010 - #size-cells : Child device size number of cells, should be 0
0011 - spi-max-frequency : Typically set to 3000000
0012 - spi-cs-high : SPI chip select direction
0013
0014 Optional subnodes:
0015
0016 The sub-functions of CPCAP get their own node with their own compatible values,
0017 which are described in the following files:
0018
0019 - Documentation/devicetree/bindings/power/supply/cpcap-battery.yaml
0020 - Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml
0021 - Documentation/devicetree/bindings/regulator/cpcap-regulator.txt
0022 - Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt
0023 - Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt
0024 - Documentation/devicetree/bindings/rtc/cpcap-rtc.txt
0025 - Documentation/devicetree/bindings/leds/leds-cpcap.txt
0026 - Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml
0027
0028 The only exception is the audio codec. Instead of a compatible value its
0029 node must be named "audio-codec".
0030
0031 Required properties for the audio-codec subnode:
0032
0033 - #sound-dai-cells = <1>;
0034
0035 The audio-codec provides two DAIs. The first one is connected to the
0036 Stereo HiFi DAC and the second one is connected to the Voice DAC.
0037
0038 Example:
0039
0040 &mcspi1 {
0041 cpcap: pmic@0 {
0042 compatible = "motorola,cpcap", "ste,6556002";
0043 reg = <0>; /* cs0 */
0044 interrupt-parent = <&gpio1>;
0045 interrupts = <7 IRQ_TYPE_EDGE_RISING>;
0046 interrupt-controller;
0047 #interrupt-cells = <2>;
0048 #address-cells = <1>;
0049 #size-cells = <0>;
0050 spi-max-frequency = <3000000>;
0051 spi-cs-high;
0052
0053 audio-codec {
0054 #sound-dai-cells = <1>;
0055
0056 /* HiFi */
0057 port@0 {
0058 endpoint {
0059 remote-endpoint = <&cpu_dai1>;
0060 };
0061 };
0062
0063 /* Voice */
0064 port@1 {
0065 endpoint {
0066 remote-endpoint = <&cpu_dai2>;
0067 };
0068 };
0069 };
0070 };
0071 };
0072