From: dongxuyang@eswincomputing.com
To: ukleinek@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, p.zabel@pengutronix.de,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
xuxiang@eswincomputing.com, wangguosheng@eswincomputing.com,
pinkesh.vaghela@einfochips.com,
Xuyang Dong <dongxuyang@eswincomputing.com>
Subject: [PATCH 1/2] dt-bindings: pwm: eswin: Add EIC7700 pwm controller
Date: Fri, 5 Dec 2025 17:04:50 +0800 [thread overview]
Message-ID: <20251205090450.1446-1-dongxuyang@eswincomputing.com> (raw)
In-Reply-To: <20251205090411.1388-1-dongxuyang@eswincomputing.com>
From: Xuyang Dong <dongxuyang@eswincomputing.com>
Introduce device-tree binding documentation for ESWIN EIC7700 pwm
controller.
Signed-off-by: Xiang Xu <xuxiang@eswincomputing.com>
Signed-off-by: Guosheng Wang <wangguosheng@eswincomputing.com>
Signed-off-by: Xuyang Dong <dongxuyang@eswincomputing.com>
---
.../bindings/pwm/eswin,eic7700-pwm.yaml | 73 +++++++++++++++++++
1 file changed, 73 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pwm/eswin,eic7700-pwm.yaml
diff --git a/Documentation/devicetree/bindings/pwm/eswin,eic7700-pwm.yaml b/Documentation/devicetree/bindings/pwm/eswin,eic7700-pwm.yaml
new file mode 100644
index 000000000000..8b7dc7d4dffe
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/eswin,eic7700-pwm.yaml
@@ -0,0 +1,73 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/eswin,eic7700-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ESWIN EIC7700 PWM controller
+
+maintainers:
+ - Xiang Xu <xuxiang@eswincomputing.com>
+ - Guosheng Wang <wangguosheng@eswincomputing.com>
+ - Xuyang Dong <dongxuyang@eswincomputing.com>
+
+description: |
+ The EIC7700 PWM used the DesignWare APB timers module. The PWM driver
+ supports a duty cycle range from 0% to 100%, with explicit support for
+ both 0% and 100% duty cycles.
+
+allOf:
+ - $ref: pwm.yaml#
+
+properties:
+ compatible:
+ const: eswin,eic7700-pwm
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ "#pwm-cells":
+ const: 3
+
+ pinctrl-0: true
+ pinctrl-1: true
+
+ pinctrl-names:
+ minItems: 1
+ items:
+ - const: default
+ - const: sleep
+
+ snps,pwm-full-range-enable:
+ type: boolean
+ description: |
+ Enable support for 0% and 100% duty cycle.
+ When present, the PWM controller can output 0% and 100% duty cycles.
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - resets
+ - snps,pwm-full-range-enable
+
+additionalProperties: false
+
+examples:
+ - |
+ pwm@50818000 {
+ compatible = "eswin,eic7700-pwm";
+ reg = <0x50818000 0x4000>;
+ clocks = <&clock 242>;
+ resets = <&reset 136>;
+ #pwm-cells = <3>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&fan_pwm>;
+ snps,pwm-full-range-enable;
+ };
--
2.34.1
next prev parent reply other threads:[~2025-12-05 9:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 9:04 [PATCH 0/2] Add driver support for ESWIN EIC7700 PWM controller dongxuyang
2025-12-05 9:04 ` dongxuyang [this message]
2025-12-08 6:45 ` [PATCH 1/2] dt-bindings: pwm: eswin: Add EIC7700 pwm controller Krzysztof Kozlowski
2025-12-09 10:20 ` Xuyang Dong
2025-12-09 21:40 ` Krzysztof Kozlowski
2025-12-05 9:05 ` [PATCH 2/2] pwm: eswin: Add EIC7700 pwm driver dongxuyang
2025-12-06 10:09 ` kernel test robot
2025-12-08 6:48 ` Krzysztof Kozlowski
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=20251205090450.1446-1-dongxuyang@eswincomputing.com \
--to=dongxuyang@eswincomputing.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linmin@eswincomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=ningyu@eswincomputing.com \
--cc=p.zabel@pengutronix.de \
--cc=pinkesh.vaghela@einfochips.com \
--cc=robh@kernel.org \
--cc=ukleinek@kernel.org \
--cc=wangguosheng@eswincomputing.com \
--cc=xuxiang@eswincomputing.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