Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp647853imw; Mon, 4 Jul 2022 17:03:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sGfldEEnmTb2OdeOPDJ2MPGH6kzY8enAhlc7AcFR+PC7byJjiSyWGrcM36CtXa7jErStm6 X-Received: by 2002:a63:301:0:b0:411:442b:bb7d with SMTP id 1-20020a630301000000b00411442bbb7dmr28316820pgd.112.1656979389389; Mon, 04 Jul 2022 17:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656979389; cv=none; d=google.com; s=arc-20160816; b=S2bO+eW+vNe6QIC1X9lbOEO43VCw5CiVH9K4htdTep5v7Oa+uZP+/ar01wjOGlszRC 1AM+tMrTnQVqZ1gvnan1XzT+YixqFDmVVYZ2/YUON+l2c5xMmyeTPqmCPTCGBzJ33sTW aL/U5kDFWwcB7VtS/fG9oti2mC/N1A/jrS4p++QvyfkXFFhtBK/04TpyU8uLzAHjTGdh IcLtpjitYibIHpJjpl9JvtqE6Sr7RanISz/ROmsO6EbqJvqdNrtx+10Z059ZGvrmGcit 39OqhcqR8Wzz5nCIHQLcMMt1vKWhjqwmwKk7EK1rtP3I8vFCZR4KKd1d5N6Nn6Eq8AIU jL/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:feedback-id:dkim-signature:dkim-signature; bh=VjjCNK/QUJQgIUTHTpMOStvQY2cL+8rDq3LhVbeEC1Q=; b=kIL+QDkAnpB4/s3cLVuVF7rErhuV0rSttNoifheFZbaC9y9uXPQGDmCUtWhDckV8tU nirip+NSGd+AcUKO0G6DPq3xyn3QfPV3aQaZg60WGP5oLo9c+wElsAkpO1c5nh3CjgR4 0zhFbtlGgzBenaChyTYoGGd03EyC0tBKBk58MNAqtq5T8SWRmYiTi3pJ+NgI7fZg0eP0 On/oDcczEttihMLOfASMfTO8jy4xNpokXBFNfhV86b3tDoHoDHpY1XFnB4VHx6TFVx4n DM9/TxasCnmggoaA80be6aiQNDXk0SwLFTyjU616FBazu+Q0Ou/DRQNuBAGUj9WU6oyP CTvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=hifwV1yY; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=RTfYJfkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a6551c1000000b0040ce4d9cc20si22230985pgq.253.2022.07.04.17.02.57; Mon, 04 Jul 2022 17:03:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=hifwV1yY; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=RTfYJfkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbiGDX4E (ORCPT + 99 others); Mon, 4 Jul 2022 19:56:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbiGDX4C (ORCPT ); Mon, 4 Jul 2022 19:56:02 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62D577650; Mon, 4 Jul 2022 16:56:01 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B8C1D5C00DD; Mon, 4 Jul 2022 19:56:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 04 Jul 2022 19:56:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1656978960; x= 1657065360; bh=VjjCNK/QUJQgIUTHTpMOStvQY2cL+8rDq3LhVbeEC1Q=; b=h ifwV1yYFNvbZC/udgowFCmTOSmQ/qcy2IOL1cTA8TMdVqjZhB9dnAHZSMTvDZej/ 7f8JVANCeh2WkC4Gx0lbISJquIb/EYAsH7G+w8Avw7tNbG5EEsbqIfWOoo/Kl1Sl zDDUUR3a1495DQ8KQ1ZqlMKQbCX4XRvdu1sQ02OsaubVt/TKq0bSXc82t7MwFmgf 8wVwLk/tjIlZh17NInWC6o7T1WLeQqmpI7JPhjqQ2Of0VhpP22i1VHBakOFpl8n+ PFHBG6oyN6QnLzMkGMKeedBjw11r1R82EvLyFHXFGgxTaiTeMfGDWu5oIRyEh1F6 nkjqcLWNH15X0/5FF43Jg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656978960; x= 1657065360; bh=VjjCNK/QUJQgIUTHTpMOStvQY2cL+8rDq3LhVbeEC1Q=; b=R TfYJfkvawaWXek+h6Zjyz4SYSCyrOlatEV2aVVi3K9KE/5JO2sTjVWLnHJse8zGu y1vw8jIt8HuiyyAsxt4HDpGiZGaBFE8H0KSxkyzIP0Uu/hpLQx29qo3hqXFQhCJy oIm3OoqjzqREaxG73SbcUYjbl1XSOKzuzKy9dv9/OGLu5CR0HYWK/o4AZQylbbeH m24CjKkXDGhEyDulJjs9krZlEUhSOj9D3WO4GVPqYr3+AscUSw7sDSIafmTWeHfy OVlPrKR2kGddRUQdIR9In8KqUNbrghtgCDLsXi4zpyqVknimZCYWIpg+vBR+6IKb ZPZjr30lTUAXID68e5X7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeitddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpefftdevkedvgeekueeutefgteffieelvedukeeuhfehledvhfei tdehudfhudehhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Jul 2022 19:55:59 -0400 (EDT) Subject: Re: [PATCH v12 2/7] dt-bindings: pinctrl: sunxi: Make interrupts optional To: Andre Przywara , Chen-Yu Tsai , Jernej Skrabec Cc: Rob Herring , Krzysztof Kozlowski , Linus Walleij , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org References: <20220701112453.2310722-1-andre.przywara@arm.com> <20220701112453.2310722-3-andre.przywara@arm.com> From: Samuel Holland Message-ID: <74a5466c-a84b-57fa-79ad-96155c1324a0@sholland.org> Date: Mon, 4 Jul 2022 18:55:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20220701112453.2310722-3-andre.przywara@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/1/22 6:24 AM, Andre Przywara wrote: > The R_PIO pinctrl device on the Allwinner H616 SoC does not have an > interrupt (it features only two pins). > However the binding requires at least naming one upstream interrupt, > plus the #interrupt-cells and interrupt-controller properties. > > Drop the unconditional requirement for the interrupt properties, and > make them dependent on being not this particular pinctrl device. > > Signed-off-by: Andre Przywara Acked-by: Samuel Holland > --- > .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml > index bfce850c20351..0bd903954195b 100644 > --- a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinctrl.yaml > @@ -133,14 +133,11 @@ patternProperties: > > required: > - "#gpio-cells" > - - "#interrupt-cells" > - compatible > - reg > - - interrupts > - clocks > - clock-names > - gpio-controller > - - interrupt-controller > > allOf: > # FIXME: We should have the pin bank supplies here, but not a lot of > @@ -148,6 +145,18 @@ allOf: > # warnings. > > - $ref: "pinctrl.yaml#" > + - if: > + not: > + properties: > + compatible: > + enum: > + - allwinner,sun50i-h616-r-pinctrl > + then: Nit: all of the existing ifs and thens have blank lines between them. > + required: > + - "#interrupt-cells" > + - interrupts > + - interrupt-controller > + > - if: > properties: > compatible: >