Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp58792imn; Wed, 3 Aug 2022 19:36:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR62FXWVx8W+UxPOzUAk4zXAuqGGHBeoljQdN16ln+Z/9SFGApNA/MAP7cijHOlviXnZNpqH X-Received: by 2002:a17:907:8a04:b0:730:baa1:ac82 with SMTP id sc4-20020a1709078a0400b00730baa1ac82mr2813597ejc.737.1659580619377; Wed, 03 Aug 2022 19:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659580619; cv=none; d=google.com; s=arc-20160816; b=VlshF1EOL6vTiqN+U0Xa7bfgUC7mJ2v2Fo9pXEHe6IXGLvspN0uAl3ZO0ONS8Yv+IU WX1+Jslrzm/5dR4VrMLXQENpIRy8ljncjxrAI6rGkGdG6VjqXgMtEI8cv0m+IF3DmoDJ 60SgiX5Af3i90hD0rSXxKuYPoDevALQzgRabOrl8Fsve+JcUwEQpserZjBGWZUsxvkxy nNCzEVR6sdUIJPD3baKmXsc0k8xMUkeJpF8syT4tl/1DV325akCOwb2wXn1mqNZhgVxF Ph9FJywubkiSTzHEwTzlfxi9L4m5tQ8xBMbEQdzqT0j9DIwHtn8O48s/bvZwaYnv3jNj crog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=uUnAQ8+VO+KSo5++5udCSf7bJEyj4UDAzmYdV8JOLBM=; b=BxR2wXOxid8OrY0bZ3W8GJXbHKnvlaHoa6caEUtfq9WmH8XDoz1SUhaZ8uJcwzS7Y/ UcQsGcvzmr+qi0zp8HW0LKxCDjAKz7/2eS92TwlQDjreWZxVN7I9VgF5DezyezSHG15W KU9ra2ZoZoUmn6YWPTwWJyVHZxZxDxCTZN9GLvjIU4NMSTb7LS5i+LS+3v/m46r2o9ON KIXG0n9TrlYqruLWQV3+PD/kapNtY+Dxs4/BeHXSf8HDk0NOi4WvlBj+qmZt9DrIrbhz X1hW0wpHQc6j6sHCYQ1+rtJFBpGkwmnXWSfif8TruDGBo6tTMSEP83o+PuK4Qz+pPwTQ TYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IbqfML3l; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc22-20020a1709071c1600b0072b66c5cdf0si3931260ejc.481.2022.08.03.19.36.32; Wed, 03 Aug 2022 19:36:59 -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=@mediatek.com header.s=dk header.b=IbqfML3l; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238948AbiHDCQI (ORCPT + 99 others); Wed, 3 Aug 2022 22:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238801AbiHDCQD (ORCPT ); Wed, 3 Aug 2022 22:16:03 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E7295F9A8; Wed, 3 Aug 2022 19:16:00 -0700 (PDT) X-UUID: 65d4213d94204fa2b3d091275f641ecf-20220804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=uUnAQ8+VO+KSo5++5udCSf7bJEyj4UDAzmYdV8JOLBM=; b=IbqfML3lHNTgiHk9f2W+8jvLdTdxr9l+CJBLRsVL1WN4+dIvcQxS8yJ+LdqbYZ9YejOjaxGayZ5CuCLGRVOGlFqzYF6ppFUgnBOBEZEv22I3vlmVIbT0qSd6wCC4DYR4XKFZq+iFv9/rBsMR9ZQvcKW6Hxbyftm3dTrfMX4+JfI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:93c8fde1-5a4b-4b42-ac9b-696d1d1a2d1f,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:0f94e32,CLOUDID:4b432cd1-841b-4e95-ad42-8f86e18f54fc,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:nil,BEC:nil,COL:0 X-UUID: 65d4213d94204fa2b3d091275f641ecf-20220804 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1858609253; Thu, 04 Aug 2022 10:15:56 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 4 Aug 2022 10:15:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 4 Aug 2022 10:15:55 +0800 From: Tinghan Shen To: Yong Wu , Joerg Roedel , "Will Deacon" , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Lee Jones , "Matthias Brugger" , AngeloGioacchino Del Regno , Tinghan Shen , MandyJH Liu CC: , , , , , Subject: [PATCH v5 01/20] dt-bindings: iommu: mediatek: Increase max interrupt number Date: Thu, 4 Aug 2022 10:15:34 +0800 Message-ID: <20220804021553.14867-2-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220804021553.14867-1-tinghan.shen@mediatek.com> References: <20220804021553.14867-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 mt8195 infra iommu uses 5 interrupts. Signed-off-by: Tinghan Shen Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../bindings/iommu/mediatek,iommu.yaml | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml index fee0241b50988..e3cf35e68d8d1 100644 --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml @@ -91,7 +91,8 @@ properties: maxItems: 1 interrupts: - maxItems: 1 + minItems: 1 + maxItems: 5 clocks: items: @@ -183,14 +184,28 @@ allOf: required: - mediatek,infracfg - - if: # The IOMMUs don't have larbs. - not: - properties: - compatible: - contains: - const: mediatek,mt8195-iommu-infra + - if: + properties: + compatible: + contains: + const: mediatek,mt8195-iommu-infra then: + properties: + interrupts: + description: The IOMMU has 5 banks. Each bank has its own interrupt. + items: + - description: The interrupt for IOMMU bank0 + - description: The interrupt for IOMMU bank1 + - description: The interrupt for IOMMU bank2 + - description: The interrupt for IOMMU bank3 + - description: The interrupt for IOMMU bank4 + + else: # The IOMMUs don't have larbs. + properties: + interrupts: + maxItems: 1 + required: - mediatek,larbs -- 2.18.0