[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210427102247.822-2-fenglinw@codeaurora.org>
Date: Tue, 27 Apr 2021 18:22:09 +0800
From: Fenglin Wu <fenglinw@...eaurora.org>
To: linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
Thierry Reding <thierry.reding@...il.com>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, Lee Jones <lee.jones@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Fenglin Wu <fenglinw@...eaurora.org>,
linux-pwm@...r.kernel.org, devicetree@...r.kernel.org
Cc: subbaram@...eaurora.org, collinsd@...eaurora.org,
aghayal@...eaurora.org
Subject: [PATCH 1/2] dt-bindings: pwm: add bindings for PWM modules inside QCOM PMICs
Add bindings for QCOM PMIC PWM modules which are accessed through SPMI
bus.
Signed-off-by: Fenglin Wu <fenglinw@...eaurora.org>
---
.../devicetree/bindings/pwm/pwm-qcom.yaml | 51 ++++++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pwm/pwm-qcom.yaml
diff --git a/Documentation/devicetree/bindings/pwm/pwm-qcom.yaml b/Documentation/devicetree/bindings/pwm/pwm-qcom.yaml
new file mode 100644
index 0000000..e8d8ed6
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/pwm-qcom.yaml
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/pwm-qcom.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Technologies, Inc. PMIC PWM bindings
+
+maintainers:
+ - Fenglin Wu <fenglinw@...eaurora.org>
+
+description:
+ PWM modules inside Qualcomm Technologies, Inc. PMICs can be accessed through
+ SPMI bus and normally one PMIC would have multiple PWM modules with adjacent
+ SPMI address space.
+
+Properties:
+ compatible:
+ const: qcom,pwm
+
+ reg:
+ description:
+ The SPMI address base of the PWM module, if there are multiple PWM
+ modules present with adjacent SPMI address space, only need to specify
+ the address base of the 1st PWM module.
+
+ "#pwm-cells":
+ # See pwm.yaml in this directory for a description of the cells format.
+ const: 2
+
+ qcom,num-channels:
+ description:
+ The number of the PWM channels (modules) with the adjacent SPMI address
+ space following the address base in "reg" property.
+
+required:
+ - compatible
+ - reg
+ - "#pwm-cells"
+ - qcom,num-channels
+
+additionalProperties: false
+
+examples:
+ - |
+ pm8350c_pwm: pwms@...0 {
+ compatible = "qcom,pwm";
+ reg = <0xe800>;
+ #pwm-cells = <2>;
+ qcom,num-channels = <4>;
+ };
--
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.
Powered by blists - more mailing lists