Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1160268imi; Fri, 1 Jul 2022 04:29:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1udSYd3RMF/3ivJ0cm+tNUnzTXoZgRrpVJg7UlhuWktHNHvbaG3wabv27yyBqAKx31BxN9a X-Received: by 2002:aa7:cf87:0:b0:435:65c0:f59b with SMTP id z7-20020aa7cf87000000b0043565c0f59bmr18126072edx.214.1656674985357; Fri, 01 Jul 2022 04:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656674985; cv=none; d=google.com; s=arc-20160816; b=MQ3f0nANh4H8ZnBMX1m702PcLLIWdjMZBNo4+mzvlUYwCTqWDfyZnS9xMwBbXnXSyI 3HT5y6NqxEFq+ChG68leI3/R3JJno6jqPNx25YSwU32Kv55jhEB6ZgSZEW7K42k05eER rzsoI/fLXebDYnsgE7Wj6V88X+RgxGA6qVkImlCVqpUzOgZwpwRUQoK40wrE2omQty4G plhCS3PTfEDHNfT7fH2ht8EfyhhZQya/9Dv1IgsglGrF/PkbL/NwO48XB1EPqXMVe6wt EtcZCv/tsa62/JVTUoA6tagceDsSGMvg8JxCFOZbzsgRzJHvx7PJBFs5jwEu8VAWZsyQ FDyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/6LcKwLSkOglN6BHv7Ed/rwEECd3sAJaZ700G0S3hPk=; b=uhd7ZDFIMlo4MVYOicpenlpDfnalF1PG0IXFty1naI+7flkexmAJ9So/5fRCoRmT1q +NV+OtISG3KvRozySnfWfX/IJRKaKoP21I9WYzTucs8IjZ9+CgG7XWrV4NAAlAO1rbfa XVQxhbidXXVacrb+1fBN1DX7wV5QgLmJq9Q5cqTHLqFZ9cqW9RGTuPSuvRtdk64d8S8n Jw1LYRFNIRHBlmpSxbv67ymcz4Vqdt620sdlzzMz/XMh2piJjaUIhTbTagUByrt7X+W3 02io0ziizW3OsYYndROuzoxkWw5VrGF3yVjGG80znGC55WWejx0O/IQPMNOdChiMis8Z WpbQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk35-20020a1709077fa300b007262d1f0dd0si3540304ejc.485.2022.07.01.04.29.19; Fri, 01 Jul 2022 04:29:45 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234368AbiGALZP (ORCPT + 99 others); Fri, 1 Jul 2022 07:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbiGALZI (ORCPT ); Fri, 1 Jul 2022 07:25:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A3897E02E; Fri, 1 Jul 2022 04:25:08 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 38D54143D; Fri, 1 Jul 2022 04:25:08 -0700 (PDT) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E5F063F66F; Fri, 1 Jul 2022 04:25:05 -0700 (PDT) From: Andre Przywara To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski Cc: 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 Subject: [PATCH v12 2/7] dt-bindings: pinctrl: sunxi: Make interrupts optional Date: Fri, 1 Jul 2022 12:24:48 +0100 Message-Id: <20220701112453.2310722-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220701112453.2310722-1-andre.przywara@arm.com> References: <20220701112453.2310722-1-andre.przywara@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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 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 --- .../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: + required: + - "#interrupt-cells" + - interrupts + - interrupt-controller + - if: properties: compatible: -- 2.25.1