From patchwork Mon Feb 14 08:15:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12745116 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 87585C433F5 for ; Mon, 14 Feb 2022 08:18:17 +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: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:In-Reply-To:References: List-Owner; bh=Q3Yts0X9ylgtNTR682R0yfXHA7Dpj3upBgBTwdYs+VQ=; b=uhxE9xKkGlxyLI ASaXpPN/09aAnwb87M6waA0w28kpgIUwVaXr+/1VEUdad/GqMOMxg7bT5DiOHDyzzmpH/EmxIovc+ QDI/8h3mqC/KQPdG0TPYKaCSl817q+9VTAej7JybvQ/Pj7u8e/qaVz2WiuIYMuyRS+lCnpf+eRjsS 48EJVzVB0wSk19jdhMmdd1ZMjVNFD1VUXrv5dLLgUXiCsMaXGMNT3av73aEa/UrMCf4AHykSIsTUg erEhOlqbvgyRKB+3TiqrRY2H2phJNTm8jGCUW9Spiz6iIugpLfHozAQShOMXXGkkFELIoleKe9xh7 gzs7+YIcbYHGlrvhKxRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJWYn-00Dq7J-54; Mon, 14 Feb 2022 08:18:13 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJWXW-00DpKB-WB for linux-rockchip@lists.infradead.org; Mon, 14 Feb 2022 08:16:59 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4227A40259 for ; Mon, 14 Feb 2022 08:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644826612; bh=3IKrMG5sgA9nuG1n0JrwWMFi9IjPyF8pWWijGFM2qQk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=DV3KkaSYfsO3cAAfVGKc40Wv6M2LF96d6rSz9gyiW22/n2GQz2F4zib2wMinIpDrF 7NhE+DOBL7TUi8GjCs+q/7nGGqPAnBC29NjaqMcP1Kq5/f5maNLyrGw1XWdPByE9aq J+KbI+nT6HvKAuFRhWqiOmNNatBP5+EpIXUJIkRORIvCPG3oy6tvrJhgK85P6wrpYe uZLwATbiBtsJ8qB1OBeQr+zKRs8DIWmYh3qQgLtg2oWilpzkv3mL4j7MJGkJ5zWh1x SYPU1u7KPq1WYcrP5hmp4hwLmjD2A/cvawP9ocUWU8yxdcUSPy6j9pyP0Nax/vyZag tLfF+UlREXrdg== Received: by mail-ej1-f69.google.com with SMTP id mp5-20020a1709071b0500b0069f2ba47b20so5415346ejc.19 for ; Mon, 14 Feb 2022 00:16:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=3IKrMG5sgA9nuG1n0JrwWMFi9IjPyF8pWWijGFM2qQk=; b=WSsb64bsyLAc+W1a6eet2kEKVWeBnO3Vu9y72qVw1jGHhkboGtxYdWVfYmvCcF1l7j mzjt8gV7SMgr55sr/8zPTsjT6RbXwT3TjU71NkKXd0/v6sioShzj3ocASzxmUE5Hv0VZ poqo51sMaj7qZnNGx/K8F2qhC53ON87ls3BcWXPXY2ylFiAvR/wyI3nzU2mSgAYAoB4Z yXUfwrdAKf7VpEk4M3qY6Nk24dyl+rExUNU5K35pYLw9CwoWyqovDkvbMHCZobA6hYOk jcXZbBgcNTBzAqLjCP89l8ZsKKwVzUPR/6mTNavqVrW4/3WgtzhWRMcZv9Moo0lNDZb+ 7j8g== X-Gm-Message-State: AOAM533dU3iCfFT8m10HQbta7sZo+A7B4pzz+LCL69wycpzcE/GUKSVj kUi56epxL63/iX5554m4xg/1RPj1AP4/hUYP+ugA5uN0Zjf81m6Og84EOsTDn2pkQbUQq700Rop pvMPBdY6gnVqjHnkKmlNHX1d/3U5+1e0Dez+lrk4WGkkFHhtwdw== X-Received: by 2002:aa7:c90b:: with SMTP id b11mr13704775edt.378.1644826601980; Mon, 14 Feb 2022 00:16:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgHjuUJhQbPl50s1KVPp6UQx9W5/7E84exEe5joEuH25s16vRC22QO8sTEVBDCljC9Ui8TEg== X-Received: by 2002:aa7:c90b:: with SMTP id b11mr13704730edt.378.1644826601747; Mon, 14 Feb 2022 00:16:41 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id t21sm3363642edd.74.2022.02.14.00.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 00:16:41 -0800 (PST) From: Krzysztof Kozlowski To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , 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 , Heiko Stuebner , 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 Subject: [PATCH 01/15] dt-bindings: pwm: allwinner, sun4i-a10: include generic pwm schema Date: Mon, 14 Feb 2022 09:15:51 +0100 Message-Id: <20220214081605.161394-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220214_001655_176668_C2BE9418 X-CRM114-Status: GOOD ( 11.33 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Include generic pwm.yaml schema, which enforces PWM node naming and brings pwm-cells requirement. Signed-off-by: Krzysztof Kozlowski Acked-by: Jernej Skrabec --- .../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