linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.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>,
	andy.shevchenko@gmail.com, "Philip Howard" <phil@gadgetoid.com>,
	"Sean Young" <sean@mess.org>,
	"Chris Morgan" <macromorgan@hotmail.com>,
	"Stefan Wahren" <wahrenst@gmx.net>,
	linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org,
	devicetree@vger.kernel.org
Cc: Linus Walleij <linus.walleij@linaro.org>,
	 Nicola Di Lieto <nicola.dilieto@gmail.com>,
	 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	 Dhruva Gole <d-gole@ti.com>
Subject: [PATCH v6 1/2] dt-bindings: pwm: Add pwm-gpio
Date: Sun, 02 Jun 2024 22:33:08 +0200	[thread overview]
Message-ID: <20240602-pwm-gpio-v6-1-e8f6ec9cc783@linaro.org> (raw)
In-Reply-To: <20240602-pwm-gpio-v6-0-e8f6ec9cc783@linaro.org>

From: Nicola Di Lieto <nicola.dilieto@gmail.com>

Add bindings for PWM modulated by GPIO.

Signed-off-by: Nicola Di Lieto <nicola.dilieto@gmail.com>
Co-developed-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 .../devicetree/bindings/pwm/pwm-gpio.yaml          | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml b/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml
new file mode 100644
index 000000000000..1a1281e0fbd7
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/pwm-gpio.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/pwm-gpio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Generic software PWM for modulating GPIOs
+
+maintainers:
+  - Stefan Wahren <wahrenst@gmx.net>
+
+allOf:
+  - $ref: pwm.yaml#
+
+properties:
+  compatible:
+    const: pwm-gpio
+
+  "#pwm-cells":
+    const: 3
+
+  gpios:
+    description:
+      GPIO to be modulated
+    maxItems: 1
+
+required:
+  - compatible
+  - "#pwm-cells"
+  - gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    pwm {
+        #pwm-cells = <3>;
+        compatible = "pwm-gpio";
+        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+    };

-- 
2.45.1


  reply	other threads:[~2024-06-02 20:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-02 20:33 [PATCH v6 0/2] pwm: Add GPIO PWM driver Linus Walleij
2024-06-02 20:33 ` Linus Walleij [this message]
2024-06-04  2:51   ` [PATCH v6 1/2] dt-bindings: pwm: Add pwm-gpio Kent Gibson
2024-06-04  6:21     ` Krzysztof Kozlowski
2024-06-04  7:34       ` Kent Gibson
2024-06-04  7:42         ` Krzysztof Kozlowski
2024-06-04  8:16           ` Kent Gibson
2024-06-04  8:26             ` Krzysztof Kozlowski
2024-06-04 13:38   ` Linus Walleij
2024-06-04 14:14     ` Conor Dooley
2024-06-04 20:54       ` Linus Walleij
2024-06-05 17:23         ` Conor Dooley
2024-06-02 20:33 ` [PATCH v6 2/2] pwm: Add GPIO PWM driver Linus Walleij
2024-06-03 20:34   ` Andy Shevchenko

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=20240602-pwm-gpio-v6-1-e8f6ec9cc783@linaro.org \
    --to=linus.walleij@linaro.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=d-gole@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=macromorgan@hotmail.com \
    --cc=nicola.dilieto@gmail.com \
    --cc=phil@gadgetoid.com \
    --cc=robh@kernel.org \
    --cc=sean@mess.org \
    --cc=ukleinek@kernel.org \
    --cc=wahrenst@gmx.net \
    /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).