From: Lorenzo Bianconi <lorenzo@kernel.org>
To: "Uwe Kleine-König" <ukleinek@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Christian Marangi" <ansuelsmth@gmail.com>
Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
lorenzo.bianconi83@gmail.com,
linux-arm-kernel@lists.infradead.org, upstream@airoha.com,
angelogioacchino.delregno@collabora.com, ansuelsmth@gmail.com,
benjamin.larsson@genexis.eu,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Lorenzo Bianconi <lorenzo@kernel.org>
Subject: [PATCH v4 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM
Date: Tue, 20 Aug 2024 14:12:15 +0200 [thread overview]
Message-ID: <20240820-airoha-pwm-drv-v4-1-2b1c2b760744@kernel.org> (raw)
In-Reply-To: <20240820-airoha-pwm-drv-v4-0-2b1c2b760744@kernel.org>
From: Christian Marangi <ansuelsmth@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@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
.../devicetree/bindings/pwm/airoha,en7581-pwm.yaml | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
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@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@1fbf0224 {
+ compatible = "airoha,en7581-pwm";
+ reg = <0x1fbf0224 0x10>,
+ <0x1fbf0238 0x28>,
+ <0x1fbf0298 0x8>;
+ #pwm-cells = <3>;
+ };
--
2.46.0
next prev parent reply other threads:[~2024-08-20 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 12:12 [PATCH v4 0/2] Add PWM support to EN7581 Lorenzo Bianconi
2024-08-20 12:12 ` Lorenzo Bianconi [this message]
2024-08-20 12:12 ` [PATCH v4 2/2] pwm: airoha: Add support for EN7581 SoC Lorenzo Bianconi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240820-airoha-pwm-drv-v4-1-2b1c2b760744@kernel.org \
--to=lorenzo@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=ansuelsmth@gmail.com \
--cc=benjamin.larsson@genexis.eu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=robh@kernel.org \
--cc=ukleinek@kernel.org \
--cc=upstream@airoha.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).