From: Lorenzo Bianconi <lorenzo@kernel.org>
To: linux-pwm@vger.kernel.org
Cc: ukleinek@kernel.org, lorenzo.bianconi83@gmail.com,
krzk+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, upstream@airoha.com,
angelogioacchino.delregno@collabora.com,
benjamin.larsson@genexis.eu, conor+dt@kernel.org,
ansuelsmth@gmail.com
Subject: [PATCH v2 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM
Date: Sun, 11 Aug 2024 18:34:31 +0200 [thread overview]
Message-ID: <bd0528c45c2e2efb799b59ce503ab8fed196df07.1723393857.git.lorenzo@kernel.org> (raw)
In-Reply-To: <cover.1723393857.git.lorenzo@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.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@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@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-11 16:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-11 16:34 [PATCH v2 0/2] Add PWM support to EN7581 Lorenzo Bianconi
2024-08-11 16:34 ` Lorenzo Bianconi [this message]
2024-08-12 9:23 ` [PATCH v2 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM Krzysztof Kozlowski
2024-08-12 9:58 ` Lorenzo Bianconi
2024-08-12 13:26 ` Krzysztof Kozlowski
2024-08-11 16:34 ` [PATCH v2 2/2] pwm: airoha: Add support for EN7581 SoC Lorenzo Bianconi
2024-08-12 9:42 ` kernel test robot
2024-08-12 14:45 ` kernel test robot
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=bd0528c45c2e2efb799b59ce503ab8fed196df07.1723393857.git.lorenzo@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=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