From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33A82A2C for ; Mon, 14 Feb 2022 17:13:09 +0000 (UTC) Received: by mail-ej1-f44.google.com with SMTP id gb39so4173484ejc.1 for ; Mon, 14 Feb 2022 09:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=3Fk8twNCDj+wvRPPnauS0r1tDhPrGepWuPsXEFLTKTk=; b=NDAe7fCLf6sA/zxhNxQ77owR34T8UGjUGbAzZikk4FcorqiCJK7lWuW/PEigNr6TDZ tT+BBY45s4+cKDEYBWfD61KxSAsdIsalAEo26xD37BJMrWH8ichvKOaVbNtpNSG3e+O1 OFP+uRStpbszEyHXQH4E7zmSB5F1o/g9/1OcJ1LJVXVSMwfpJC+Z7QdB7457m+aeGtss eVwivFzm1n31yfxocGOGwnuiv73LrZIksNQx/Ko+HDM3JZihJpE08XV1/n7RXrZzlXG2 2RZ0Gc0PSH9UXf5IY4wI7xqoRzyIs1C6YZXHdi7T1aQs2LLpwFGUkRVN5dA09LDjTVQJ 7gVA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3Fk8twNCDj+wvRPPnauS0r1tDhPrGepWuPsXEFLTKTk=; b=X9XG2BlUtg44JbudYO3GPpuvmc70Ak7Yu/7gt5z7PUKnx6GTRSXbep1YfN7OVb9VRA 75A11UuwVZ5ApnjW5hiE/9aIl7VSKm1EFxbjdDDZGRj57V1jYp+5XfBXA0RaFOWIvpH7 ppTJumIQdfAWfmRqwG7xH6GVu98SW55Augf/G4mRBYsr01yR24qzAgO6CoktN0VB9pe7 trD8Bao1pmqVevmwIx/1j4WGl5yigCdOpiSzjTJldHUpP698zW179PFrPtP0l2FtvU4S 4IsA0hqECdNSPQ3b+hSko3/srWX+Woz0zeR/k2cDbzmVRRQb/gfaM4eBT3QFmK7Xthbx i/EQ== X-Gm-Message-State: AOAM530nDtfNDc1zOQRpQaCC3zWn0MXhzJ5PlRhHiVK5kzKPEmyv/g82 PhVQz85Sy8gAGslGLrJzbXo= X-Google-Smtp-Source: ABdhPJzg4slRDT/mw7ZOBMAOQzMQYAcNt8auS9xTWhsl5NDb/5V8h4eVpjx6YXnsY8ve32KgLbEa+A== X-Received: by 2002:a17:907:a428:: with SMTP id sg40mr512036ejc.128.1644858784198; Mon, 14 Feb 2022 09:13:04 -0800 (PST) Received: from kista.localnet (cpe-86-58-32-107.static.triera.net. [86.58.32.107]) by smtp.gmail.com with ESMTPSA id 23sm2427068ejg.209.2022.02.14.09.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 09:13:03 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Lee Jones , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , Chen-Yu Tsai , 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: Re: [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Date: Mon, 14 Feb 2022 18:13:01 +0100 Message-ID: <3485219.R56niFO833@kista> In-Reply-To: <20220214081605.161394-1-krzysztof.kozlowski@canonical.com> References: <20220214081605.161394-1-krzysztof.kozlowski@canonical.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Dne ponedeljek, 14. februar 2022 ob 09:15:51 CET je Krzysztof Kozlowski napisal(a): > Include generic pwm.yaml schema, which enforces PWM node naming and > brings pwm-cells requirement. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Jernej Skrabec Best regards, Jernej > --- > .../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 > >