[PATCH 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM
Lorenzo Bianconi
lorenzo at kernel.org
Fri Aug 9 21:48:42 PDT 2024
From: Christian Marangi <ansuelsmth at gmail.com>
Document required property for the Airoha EN7581 PWM. The device
requires 3 different address for the sgpio, flash and cycle config.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
---
.../bindings/pwm/airoha,en7581-pwm.yaml | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml
diff --git a/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml b/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml
new file mode 100644
index 000000000000..52470668f90e
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/airoha,en7581-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha EN7581 PWM
+
+maintainers:
+ - Christian Marangi <ansuelsmth at gmail.com>
+
+allOf:
+ - $ref: pwm.yaml#
+
+properties:
+ compatible:
+ const: airoha,en7581-pwm
+
+ reg:
+ items:
+ - description: sgpio config address
+ - description: flash config address
+ - description: cycle config address
+
+ "#pwm-cells":
+ const: 3
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ pwm at 1fbf0224 {
+ compatible = "airoha,en7581-pwm";
+ reg = <0x1fbf0224 0x10>,
+ <0x1fbf0238 0x28>,
+ <0x1fbf0298 0x8>;
+ #pwm-cells = <3>;
+ };
--
2.46.0
More information about the linux-arm-kernel
mailing list