mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
dt-bindings: mfd: pm8008: Add bindings
Add bindings for the Qualcomm Technologies, Inc. PM8008 MFD driver. Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
d10a83bf86
commit
b0572a9b23
1 changed files with 121 additions and 0 deletions
121
Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
Normal file
121
Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
Normal file
|
@ -0,0 +1,121 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/mfd/qcom,pm8008.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Qualcomm Technologies, Inc. PM8008 PMIC bindings
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Guru Das Srinagesh <gurus@codeaurora.org>
|
||||||
|
|
||||||
|
description: |
|
||||||
|
Qualcomm Technologies, Inc. PM8008 is a dedicated camera PMIC that integrates
|
||||||
|
all the necessary power management, housekeeping, and interface support
|
||||||
|
functions into a single IC.
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: qcom,pm8008
|
||||||
|
|
||||||
|
reg:
|
||||||
|
description:
|
||||||
|
I2C slave address.
|
||||||
|
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
interrupts:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
description: Parent interrupt.
|
||||||
|
|
||||||
|
"#interrupt-cells":
|
||||||
|
const: 2
|
||||||
|
|
||||||
|
description: |
|
||||||
|
The first cell is the IRQ number, the second cell is the IRQ trigger
|
||||||
|
flag. All interrupts are listed in include/dt-bindings/mfd/qcom-pm8008.h.
|
||||||
|
|
||||||
|
interrupt-controller: true
|
||||||
|
|
||||||
|
"#address-cells":
|
||||||
|
const: 1
|
||||||
|
|
||||||
|
"#size-cells":
|
||||||
|
const: 0
|
||||||
|
|
||||||
|
patternProperties:
|
||||||
|
"^gpio@[0-9a-f]+$":
|
||||||
|
type: object
|
||||||
|
|
||||||
|
description: |
|
||||||
|
The GPIO peripheral. This node may be specified twice, one for each GPIO.
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: qcom,pm8008-gpio
|
||||||
|
|
||||||
|
reg:
|
||||||
|
description: Peripheral address of one of the two GPIO peripherals.
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
gpio-controller: true
|
||||||
|
|
||||||
|
interrupt-controller: true
|
||||||
|
|
||||||
|
"#interrupt-cells":
|
||||||
|
const: 2
|
||||||
|
|
||||||
|
"#gpio-cells":
|
||||||
|
const: 2
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
- gpio-controller
|
||||||
|
- interrupt-controller
|
||||||
|
- "#gpio-cells"
|
||||||
|
- "#interrupt-cells"
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
- interrupts
|
||||||
|
- "#address-cells"
|
||||||
|
- "#size-cells"
|
||||||
|
- "#interrupt-cells"
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
#include <dt-bindings/mfd/qcom-pm8008.h>
|
||||||
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
|
qupv3_se13_i2c {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
pm8008i@8 {
|
||||||
|
compatible = "qcom,pm8008";
|
||||||
|
reg = <0x8>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
|
||||||
|
interrupt-parent = <&tlmm>;
|
||||||
|
interrupts = <32 IRQ_TYPE_EDGE_RISING>;
|
||||||
|
|
||||||
|
gpio@c000 {
|
||||||
|
compatible = "qcom,pm8008-gpio";
|
||||||
|
reg = <0xc000>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
...
|
Loading…
Add table
Reference in a new issue