diff mbox series

[RFC,RESEND,v1,2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings

Message ID 7a89811f36fe858756daa62f1162d18da7e79a73.1603148363.git.gurus@codeaurora.org
State New
Headers show
Series Add support for Qualcomm MFD PMIC register layout | expand

Commit Message

Guru Das Srinagesh Oct. 19, 2020, 11:17 p.m. UTC
Add device tree bindings for the driver for Qualcomm Technology Inc.'s
PM8008 MFD PMIC.

Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
---
 .../bindings/mfd/qcom,pm8008-irqchip.yaml          | 103 +++++++++++++++++++++
 1 file changed, 103 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml

Comments

Rob Herring Oct. 20, 2020, 1:05 p.m. UTC | #1
On Mon, Oct 19, 2020 at 6:17 PM Guru Das Srinagesh <gurus@codeaurora.org> wrote:
>

> Add device tree bindings for the driver for Qualcomm Technology Inc.'s

> PM8008 MFD PMIC.

>

> Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>

> ---

>  .../bindings/mfd/qcom,pm8008-irqchip.yaml          | 103 +++++++++++++++++++++

>  1 file changed, 103 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml


Please resend to DT list if you want this reviewed.
Guru Das Srinagesh Oct. 20, 2020, 9:47 p.m. UTC | #2
On Tue, Oct 20, 2020 at 08:05:01AM -0500, Rob Herring wrote:
> On Mon, Oct 19, 2020 at 6:17 PM Guru Das Srinagesh <gurus@codeaurora.org> wrote:

> >

> > Add device tree bindings for the driver for Qualcomm Technology Inc.'s

> > PM8008 MFD PMIC.

> >

> > Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>

> > ---

> >  .../bindings/mfd/qcom,pm8008-irqchip.yaml          | 103 +++++++++++++++++++++

> >  1 file changed, 103 insertions(+)

> >  create mode 100644 Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml

> 

> Please resend to DT list if you want this reviewed.


Thank you, will resend including the DT list.

Guru Das.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml
new file mode 100644
index 0000000..296ff85
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008-irqchip.yaml
@@ -0,0 +1,103 @@ 
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/qcom/qcom,pm8008-irqchip.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Technologies, Inc. PM8008 Multi-Function Device PMIC
+
+maintainers:
+  - Guru Das Srinagesh <gurus@codeaurora.org>
+
+description: |
+  PM8008 is a PMIC that contains 7 LDOs, 2 GPIOs, temperature monitoring, and
+  can be interfaced over I2C.
+
+properties:
+  compatible:
+    const: qcom,pm8008-irqchip
+
+  reg:
+    maxItems: 1
+
+  interrupt-names:
+    const: pm8008
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller:
+    type: boolean
+
+  "#address-cells":
+    const: 1
+    description:
+      Must be specified if child nodes are specified.
+
+  "#size-cells":
+    const: 0
+    description:
+      Must be specified if child nodes are specified.
+
+  "#interrupt-cells":
+    const: 2
+    description:
+      The first cell is the IRQ number, the second cell is the IRQ trigger flag.
+
+patternProperties:
+  "^.*[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$":
+    type: object
+    # Each peripheral in PM8008 must be represented as a child node with an
+    # optional label for referencing as phandle elsewhere. This is optional.
+    properties:
+      compatible:
+        description:
+          The compatible string for the peripheral's driver.
+
+      reg:
+        maxItems: 1
+
+      interrupts:
+        maxItems: 1
+
+    required:
+      - compatible
+      - reg
+      - interrupts
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - "#interrupt-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    &qupv3_se13_i2c {
+            #address-cells = <1>;
+            #size-cells = <0>;
+    
+            pm8008i@8 {
+                    compatible = "qcom,pm8008-irqchip";
+                    reg = <0x8>;
+                    #address-cells = <1>;
+                    #size-cells = <0>;
+                    interrupt-controller;
+                    #interrupt-cells = <2>;
+    
+                    interrupt-names = "pm8008";
+                    interrupt-parent = <&tlmm>;
+                    interrupts = <32 IRQ_TYPE_EDGE_RISING>;
+    
+                    pm8008_tz: qcom,temp-alarm@2400 {
+                            compatible = "qcom,spmi-temp-alarm";
+                            reg = <0x2400>;
+                            interrupts = <0x5 IRQ_TYPE_EDGE_BOTH>;
+                            #thermal-sensor-cells = <0>;
+                    };
+    	    };
+   };
+
+...