From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: "Thierry Reding" <thierry.reding@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Lee Jones" <lee.jones@linaro.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@canonical.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Chen-Yu Tsai" <wens@csie.org>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Florian Fainelli" <f.fainelli@gmail.com>,
bcm-kernel-feedback-list@broadcom.com,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"NXP Linux Team" <linux-imx@nxp.com>,
"Heiko Stuebner" <heiko@sntech.de>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Paul Walmsley" <paul.walmsley@sifive.com>,
"Nobuhiro Iwamatsu" <nobuhiro1.iwamatsu@toshiba.co.jp>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Anson Huang" <anson.huang@nxp.com>,
"Vijayakannan Ayyathurai" <vijayakannan.ayyathurai@intel.com>,
"Rahul Tanwar" <rtanwar@maxlinear.com>,
"Jeff LaBundy" <jeff@labundy.com>,
"Yash Shah" <yash.shah@sifive.com>,
"Sagar Kadam" <sagar.kadam@sifive.com>,
"Vignesh R" <vigneshr@ti.com>,
"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
"Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-rockchip@lists.infradead.org,
linux-riscv@lists.infradead.org
Subject: [PATCH v2 01/15] dt-bindings: pwm: allwinner,sun4i-a10: Include generic pwm schema
Date: Mon, 14 Feb 2022 22:21:40 +0100 [thread overview]
Message-ID: <20220214212154.8853-2-krzysztof.kozlowski@canonical.com> (raw)
In-Reply-To: <20220214212154.8853-1-krzysztof.kozlowski@canonical.com>
Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
---
.../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 53 ++++++++++---------
1 file changed, 28 insertions(+), 25 deletions(-)
diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
index 800d511502c4..e93e935564fb 100644
--- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
@@ -52,33 +52,36 @@ properties:
resets:
maxItems: 1
-if:
- properties:
- compatible:
- contains:
- const: allwinner,sun50i-h6-pwm
-
-then:
- properties:
- clocks:
- maxItems: 2
-
- clock-names:
- items:
- - const: mod
- - const: bus
-
- required:
- - clock-names
- - resets
-
-else:
- properties:
- clocks:
- maxItems: 1
+
+allOf:
+ - $ref: pwm.yaml#
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: allwinner,sun50i-h6-pwm
+
+ then:
+ properties:
+ clocks:
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: mod
+ - const: bus
+
+ required:
+ - clock-names
+ - resets
+
+ else:
+ properties:
+ clocks:
+ maxItems: 1
required:
- - "#pwm-cells"
- compatible
- reg
- clocks
--
2.32.0
next prev parent reply other threads:[~2022-02-14 21:22 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-14 21:21 [PATCH v2 00/15] pwm: dt-bindings: Include generic pwm schema Krzysztof Kozlowski
2022-02-14 21:21 ` Krzysztof Kozlowski [this message]
2022-02-14 21:21 ` [PATCH v2 02/15] dt-bindings: pwm: imx: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 03/15] dt-bindings: pwm: intel,lgm: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 04/15] dt-bindings: pwm: iqs620a: " Krzysztof Kozlowski
2022-02-14 23:23 ` Jeff LaBundy
2022-02-14 21:21 ` [PATCH v2 05/15] dt-bindings: pwm: mxs: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 06/15] dt-bindings: pwm: rockchip: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 07/15] dt-bindings: pwm: sifive: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 08/15] dt-bindings: pwm: renesas,pwm: " Krzysztof Kozlowski
2022-02-15 1:50 ` Yoshihiro Shimoda
2022-02-14 21:21 ` [PATCH v2 09/15] dt-bindings: pwm: toshiba,visconti: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 10/15] dt-bindings: pwm: brcm,bcm7038: Do not require pwm-cells twice Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 11/15] dt-bindings: pwm: intel,keembay: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 12/15] dt-bindings: pwm: samsung: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 13/15] dt-bindings: pwm: tiecap: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 14/15] dt-bindings: pwm: tiehrpwm: " Krzysztof Kozlowski
2022-02-14 21:21 ` [PATCH v2 15/15] dt-bindings: pwm: renesas,tpu: " Krzysztof Kozlowski
2022-02-15 1:51 ` Yoshihiro Shimoda
2022-02-15 7:40 ` [PATCH v2 00/15] pwm: dt-bindings: Include generic pwm schema Uwe Kleine-König
2022-02-15 7:59 ` Krzysztof Kozlowski
2022-02-15 8:02 ` Krzysztof Kozlowski
2022-02-15 9:41 ` Uwe Kleine-König
2022-02-15 10:49 ` Uwe Kleine-König
2022-02-15 12:41 ` Krzysztof Kozlowski
2022-02-15 12:58 ` Uwe Kleine-König
2022-02-15 18:08 ` Uwe Kleine-König
2022-02-15 22:54 ` Rob Herring
2022-03-02 19:04 ` Krzysztof Kozlowski
2022-03-03 6:41 ` Uwe Kleine-König
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=20220214212154.8853-2-krzysztof.kozlowski@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--cc=anson.huang@nxp.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=festevam@gmail.com \
--cc=heiko@sntech.de \
--cc=jeff@labundy.com \
--cc=jernej.skrabec@gmail.com \
--cc=kernel@pengutronix.de \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mripard@kernel.org \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh+dt@kernel.org \
--cc=rtanwar@maxlinear.com \
--cc=s.hauer@pengutronix.de \
--cc=sagar.kadam@sifive.com \
--cc=shawnguo@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=vigneshr@ti.com \
--cc=vijayakannan.ayyathurai@intel.com \
--cc=wens@csie.org \
--cc=yash.shah@sifive.com \
--cc=yoshihiro.shimoda.uh@renesas.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).