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: 54009 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2971565wrn; Tue, 7 Feb 2023 09:18:29 -0800 (PST) X-Google-Smtp-Source: AK7set9ff5N5M7lYZKJWpu6sPRReAZGVkw96nUEwBIzXGf7DchYsRGp9h8n9Wf2X0btsecHPqh+x X-Received: by 2002:a17:90a:195a:b0:230:377e:b355 with SMTP id 26-20020a17090a195a00b00230377eb355mr3343915pjh.33.1675790309617; Tue, 07 Feb 2023 09:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675790309; cv=none; d=google.com; s=arc-20160816; b=l03kp78d2cGL44i1lggQImMyLsJRgCChYxhczPMi44ye/sDsoODr51xISB7vpSCYaS 2kaQ3qb97g4snydIN6dr7vwp9JIvd5B8cl56ZyNuWeSRWpAVg7W+EtH3L68iJa5Ln7gH 3I/zLQsGpjpztW4d4eu/qs17s3fQDks6bSZCCxQinzQsmGP2jx3HTlPqis950mxxhtWd bsaore3ZuCW4zIdbwQbYpJIvsTWD79Zze0sfcV+fMnl4AQ+VJEDJKJRUFs7ULflNjOQY Z5F/xJZEkKbSOizyR3aROVPLwN/xusd7eWBdxh8hIGmEl/7SmJ92hlPHMfEfBs4S9kRp Un6w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JLrL4iWympNnVNwAETpNE1kjBqSNjCEjKLn1CYJsz9g=; b=syt2T+CyYE6mgIzF0RWx5EdA/PhGGPAc/q4dx3aZZhmJLVYKSX7G7/BpZKSwyR+Fes vDg4Ysbsm3GsMgiaeGfRV8O9miQeDUMwromfYO0SQx8G5ye7qjcuNQD+gWpMgaF6EvdG /3Od6kYnUkhbdB/ur/Q/htS6Z1HOXPd7fvnUP0vzwa5MxEujKYKMmqUDsigz/p5O2/cz gxR1IHo9ilXlyVpAo6OjQGy62z1skXXNBabciKCekQ4f9YDp8jRgjx+8zNAZ6p6yP76H DOgYw0CfaVCuJKykFdFj3IUhnrMem8zsY5AX8MiJU1OEnUaSw4pmp1KVYhT7ruScQVZL uarA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="s8/mNx/3"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a656a01000000b00462a6f64703si21436323pgu.376.2023.02.07.09.18.15; Tue, 07 Feb 2023 09:18:29 -0800 (PST) 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=@mailerdienst.de header.s=20200217 header.b="s8/mNx/3"; 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 S230075AbjBGRQQ (ORCPT + 99 others); Tue, 7 Feb 2023 12:16:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232465AbjBGRPu (ORCPT ); Tue, 7 Feb 2023 12:15:50 -0500 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82BD3F281; Tue, 7 Feb 2023 09:15:20 -0800 (PST) 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757193499930228972?= X-GMAIL-MSGID: =?utf-8?q?1757193499930228972?= 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