qcom-pm8xxx.yaml 2.12 KB
Newer Older
1 2 3 4 5 6 7 8 9
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/qcom-pm8xxx.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm PM8xxx PMIC multi-function devices

maintainers:
10
  - Satya Priya <quic_c_skakit@quicinc.com>
11 12 13 14 15 16 17

description: |
  The PM8xxx family of Power Management ICs are used to provide regulated
  voltages and other various functionality to Qualcomm SoCs.

properties:
  compatible:
18 19 20 21
    oneOf:
      - enum:
          - qcom,pm8058
          - qcom,pm8821
22
          - qcom,pm8901
23 24 25 26 27
          - qcom,pm8921
      - items:
          - enum:
              - qcom,pm8018
          - const: qcom,pm8921
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

  reg:
    maxItems: 1

  '#address-cells':
    const: 1

  '#size-cells':
    const: 0

  interrupts:
    maxItems: 1

  '#interrupt-cells':
    const: 2

  interrupt-controller: true

patternProperties:
47 48 49 50 51 52 53 54
  "gpio@[0-9a-f]+$":
    type: object
    $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#

  "keypad@[0-9a-f]+$":
    type: object
    $ref: /schemas/input/qcom,pm8921-keypad.yaml#

55 56 57 58
  "led@[0-9a-f]+$":
    type: object
    $ref: /schemas/leds/qcom,pm8058-led.yaml#

59 60 61 62 63 64 65 66
  "mpps@[0-9a-f]+$":
    type: object
    $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#

  "pwrkey@[0-9a-f]+$":
    type: object
    $ref: /schemas/input/qcom,pm8921-pwrkey.yaml#

67 68
  "rtc@[0-9a-f]+$":
    type: object
69 70 71 72 73 74 75 76 77
    $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#

  "vibrator@[0-9a-f]+$":
    type: object
    $ref: /schemas/input/qcom,pm8xxx-vib.yaml#

  "xoadc@[0-9a-f]+$":
    type: object
    $ref: /schemas/iio/adc/qcom,pm8018-adc.yaml#
78 79 80 81 82 83 84 85 86 87

required:
  - compatible
  - '#address-cells'
  - '#size-cells'
  - interrupts
  - '#interrupt-cells'
  - interrupt-controller

additionalProperties: false
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    ssbi {
      #address-cells = <1>;
      #size-cells = <0>;
      pmic@0 {
        compatible = "qcom,pm8921";
        reg = <0>;
        #address-cells = <1>;
        #size-cells = <0>;
        interrupt-controller;
        #interrupt-cells = <2>;

        interrupt-parent = <&tlmm>;
        interrupts = <32 IRQ_TYPE_EDGE_RISING>;
      };
    };
107
...