From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6323CC433EF for ; Mon, 14 Feb 2022 11:47:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352409AbiBNLpo (ORCPT ); Mon, 14 Feb 2022 06:45:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353084AbiBNLna (ORCPT ); Mon, 14 Feb 2022 06:43:30 -0500 X-Greylist: delayed 2169 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 14 Feb 2022 03:35:27 PST Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CFFB5F49; Mon, 14 Feb 2022 03:35:27 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJZ4E-00080o-TO; Mon, 14 Feb 2022 11:58:50 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Thierry Reding , Uwe =?ISO-8859-1?Q?Kleine=2DK=F6nig?= , Lee Jones , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Philipp Zabel , Anson Huang , Vijayakannan Ayyathurai , Rahul Tanwar , Jeff LaBundy , Yash Shah , Sagar Kadam , Vignesh R , Yoshihiro Shimoda , Laurent Pinchart , 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, Krzysztof Kozlowski Subject: Re: [PATCH 06/15] dt-bindings: pwm: rockchip: include generic pwm schema Date: Mon, 14 Feb 2022 11:58:49 +0100 Message-ID: <2270696.mDkAqzPR1c@diego> In-Reply-To: <20220214081605.161394-6-krzysztof.kozlowski@canonical.com> References: <20220214081605.161394-1-krzysztof.kozlowski@canonical.com> <20220214081605.161394-6-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 14. Februar 2022, 09:15:56 CET schrieb Krzysztof Kozlowski: > Include generic pwm.yaml schema, which enforces PWM node naming and > brings pwm-cells requirement. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Heiko Stuebner > --- > .../devicetree/bindings/pwm/pwm-rockchip.yaml | 74 ++++++++++--------- > 1 file changed, 38 insertions(+), 36 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml > index 81a54a4e8e3e..a336ff9364a9 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml > +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml > @@ -51,42 +51,44 @@ properties: > required: > - compatible > - reg > - - "#pwm-cells" > - > -if: > - properties: > - compatible: > - contains: > - enum: > - - rockchip,rk3328-pwm > - - rockchip,rv1108-pwm > - > -then: > - properties: > - clocks: > - items: > - - description: Used to derive the functional clock for the device. > - - description: Used as the APB bus clock. > - > - clock-names: > - items: > - - const: pwm > - - const: pclk > - > - required: > - - clocks > - - clock-names > - > -else: > - properties: > - clocks: > - maxItems: 1 > - description: > - Used both to derive the functional clock > - for the device and as the bus clock. > - > - required: > - - clocks > + > +allOf: > + - $ref: pwm.yaml# > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - rockchip,rk3328-pwm > + - rockchip,rv1108-pwm > + > + then: > + properties: > + clocks: > + items: > + - description: Used to derive the functional clock for the device. > + - description: Used as the APB bus clock. > + > + clock-names: > + items: > + - const: pwm > + - const: pclk > + > + required: > + - clocks > + - clock-names > + > + else: > + properties: > + clocks: > + maxItems: 1 > + description: > + Used both to derive the functional clock > + for the device and as the bus clock. > + > + required: > + - clocks > > additionalProperties: false > >