0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/qcom,pm8008.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Qualcomm Technologies, Inc. PM8008 PMIC bindings
0008
0009 maintainers:
0010 - Guru Das Srinagesh <gurus@codeaurora.org>
0011
0012 description: |
0013 Qualcomm Technologies, Inc. PM8008 is a dedicated camera PMIC that integrates
0014 all the necessary power management, housekeeping, and interface support
0015 functions into a single IC.
0016
0017 properties:
0018 compatible:
0019 const: qcom,pm8008
0020
0021 reg:
0022 description:
0023 I2C slave address.
0024
0025 maxItems: 1
0026
0027 interrupts:
0028 maxItems: 1
0029
0030 description: Parent interrupt.
0031
0032 "#interrupt-cells":
0033 const: 2
0034
0035 description: |
0036 The first cell is the IRQ number, the second cell is the IRQ trigger
0037 flag. All interrupts are listed in include/dt-bindings/mfd/qcom-pm8008.h.
0038
0039 interrupt-controller: true
0040
0041 "#address-cells":
0042 const: 1
0043
0044 "#size-cells":
0045 const: 0
0046
0047 patternProperties:
0048 "^gpio@[0-9a-f]+$":
0049 type: object
0050
0051 description: |
0052 The GPIO peripheral. This node may be specified twice, one for each GPIO.
0053
0054 properties:
0055 compatible:
0056 items:
0057 - const: qcom,pm8008-gpio
0058 - const: qcom,spmi-gpio
0059
0060 reg:
0061 description: Peripheral address of one of the two GPIO peripherals.
0062 maxItems: 1
0063
0064 gpio-controller: true
0065
0066 gpio-ranges:
0067 maxItems: 1
0068
0069 interrupt-controller: true
0070
0071 "#interrupt-cells":
0072 const: 2
0073
0074 "#gpio-cells":
0075 const: 2
0076
0077 required:
0078 - compatible
0079 - reg
0080 - gpio-controller
0081 - interrupt-controller
0082 - "#gpio-cells"
0083 - gpio-ranges
0084 - "#interrupt-cells"
0085
0086 additionalProperties: false
0087
0088 required:
0089 - compatible
0090 - reg
0091 - interrupts
0092 - "#address-cells"
0093 - "#size-cells"
0094 - "#interrupt-cells"
0095
0096 additionalProperties: false
0097
0098 examples:
0099 - |
0100 #include <dt-bindings/mfd/qcom-pm8008.h>
0101 #include <dt-bindings/interrupt-controller/irq.h>
0102 qupv3_se13_i2c {
0103 #address-cells = <1>;
0104 #size-cells = <0>;
0105 pm8008i@8 {
0106 compatible = "qcom,pm8008";
0107 reg = <0x8>;
0108 #address-cells = <1>;
0109 #size-cells = <0>;
0110 interrupt-controller;
0111 #interrupt-cells = <2>;
0112
0113 interrupt-parent = <&tlmm>;
0114 interrupts = <32 IRQ_TYPE_EDGE_RISING>;
0115
0116 pm8008_gpios: gpio@c000 {
0117 compatible = "qcom,pm8008-gpio", "qcom,spmi-gpio";
0118 reg = <0xc000>;
0119 gpio-controller;
0120 gpio-ranges = <&pm8008_gpios 0 0 2>;
0121 #gpio-cells = <2>;
0122 interrupt-controller;
0123 #interrupt-cells = <2>;
0124 };
0125 };
0126 };
0127
0128 ...