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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A6F8C433F5 for ; Mon, 14 Feb 2022 11:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LIZOyb5fzRv002iFyH4KtRSBRyM/rBdrXFTBYDrJeKI=; b=QW1eW7vFXPCiv/ ck5yOLHjt5etaduOqNQJvEO1tH1nSzHhcR+ho9AvI+3z1+PvK4uIsy0WroHbVirAon6Cpl5vlUzC9 5k5194WVkt+Q9M+IFTzmb0ZMWRKEyUwi+jEg1CH5cBgViZ4zhvsU/wyE2HkWi6YrsLQQnZ8K/TTop ICyvQnYmUuVZ6Gq3rUPWxfFFbO6HSiuqqaCN7XeqQjpH5VwWl7esuZz0UNPg9SnY63MXsIiDjCu0s A6S6qQPPW+2U/FjN5Gs3vo+rlrdL0Jnxut2+TzU7IK/opiNYVtWuPemQMI8vV/enPUr4hNo6o1GC8 34GdXPoBjAXQ47o7+/bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJZzA-00EyoD-Do; Mon, 14 Feb 2022 11:57:41 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJZ4i-00Ef54-J6; Mon, 14 Feb 2022 10:59:22 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220214_025920_692097_86B684AA X-CRM114-Status: GOOD ( 17.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel