lkml.org 
[lkml]   [2021]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] dt-bindings: pwm: add bindings for PWM modules inside QCOM PMICs
Date
Add bindings for QCOM PMIC PWM modules which are accessed through SPMI
bus.

Signed-off-by: Fenglin Wu <fenglinw@codeaurora.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@codeaurora.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@e800 {
+ 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.
\
 
 \ /
  Last update: 2021-04-27 12:25    [W:0.123 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site