From patchwork Tue Feb 7 17:15:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13131914 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 5FEB5C636D3 for ; Tue, 7 Feb 2023 17:16:35 +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:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TKp5q2Qxr3B8LmaWdDKyKcym4XTSXFRIC2TlLAr2bec=; b=CPMafHQmq1su97 WzMVJRMfRCo39H2KYB7GfAWk2QwDEpIZ/uoBZCC2ktaAnsp8uf+mnvF57clqUdFdsTTnPPoRfM6O5 gc2bEBNK2HbMJ4f9rwSG2g8JiycVJRB5fB9Dg4YUznL636ghNlLqyE+JTDRInZwSM66aBpVhMZQiA x9/iju1lkiKI2WsJU4gxXwly/TtLAkh+MO4nns7+3oi0fhpwCT16h42CiM3dm/dO9dA7eNApsPSiR kW8zX1xTNKPrBDV30LirE0HZi6PxNEhvOchgX6sugtlLubQaY+akrildOXZ1gbwR+x3TZYUhPmWfa sZ9g5AZBLPKBhHnqSAVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPRYz-00Ctfh-MD; Tue, 07 Feb 2023 17:15:25 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPRYw-00Ctf1-L1; Tue, 07 Feb 2023 17:15:24 +0000 Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout1.routing.net (Postfix) with ESMTP id E42B441A6D; Tue, 7 Feb 2023 17:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1675790119; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JLrL4iWympNnVNwAETpNE1kjBqSNjCEjKLn1CYJsz9g=; b=s8/mNx/3hM5Z1BYZzXx5/GGPmL6fAfaQZV9DpVzN3oIYNqzMtl75EC9k/1Y8y/zd0bRaWX CgAB6WfedG3wqUIB5pJxKlSjm4keFwfeeYJvkRapmLtnr8O7fbAGOEpFdmDoag7+LkCu4U obWTm6EXVkSvv9RzF0AUXySe+yJj6g4= Received: from frank-G5.. (fttx-pool-217.61.159.155.bambit.de [217.61.159.155]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id 8A269802E7; Tue, 7 Feb 2023 17:15:17 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: mt76: allow up to 4 interrupts for mt7986 Date: Tue, 7 Feb 2023 18:15:12 +0100 Message-Id: <20230207171512.35425-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mail-ID: 335c7e56-e374-4379-9b78-55056f0c79f6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230207_091522_914113_2D008ED7 X-CRM114-Status: GOOD ( 11.04 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Mt7986 needs 4 interrupts which are already defined in mt7986a.dtsi. Update binding to reflect it This fixes this error in dtbs_check (here only bpi-r3 example): arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: wifi@18000000: interrupts: [[0, 213, 4], [0, 214, 4], [0, 215, 4], [0, 216, 4]] is too long From schema: Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: wifi@18000000: Unevaluated properties are not allowed ('interrupts' was unexpected) From schema: Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml Signed-off-by: Frank Wunderlich --- .../devicetree/bindings/net/wireless/mediatek,mt76.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml index 212508672979..222b657fe4ea 100644 --- a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +++ b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml @@ -38,7 +38,10 @@ properties: MT7986 should contain 3 regions consys, dcm, and sku, in this order. interrupts: - maxItems: 1 + minItems: 1 + maxItems: 4 + description: + MT7986 should contain 4 items. power-domains: maxItems: 1