Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp613298rwn; Thu, 8 Sep 2022 06:32:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4pEhSzBtoVL9FiGk9gzbfOrD/fKVnK3zQ99kMp3sL+OFwpaqhkjnJR+Hg9aDbNVP5m+z5/ X-Received: by 2002:a17:907:1609:b0:73d:d2c7:8bc8 with SMTP id hb9-20020a170907160900b0073dd2c78bc8mr5745971ejc.417.1662643972217; Thu, 08 Sep 2022 06:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662643972; cv=none; d=google.com; s=arc-20160816; b=wtKbtjMz57k/8OwI//0+mzi4z4kD5lqBJRCwrNg3YcvbC+8yhrPshm04hGKW7M9FPb DTHAD5tM0ySH5hWF+6lqf+0djVdKRpCkwGC0okxl6l+oIe41quVu/kgsE9jv1NbZ3GF/ tLbhRd2pL4md7d2gRBNa0JP5A57gRX1SPUcOQoWv+e2slAaGvKBQbJ79Oc8x57Efvy7s vTb3DJB4GmCI9UJyTVCTN2coQ7R4jNjtfI+SYDLIwH5/YG2vJRUNTzNgonXzYQGoyhjf L0rPkAichZ6p4AF5XJDIY+U0/8iklgkQSecQmfCnIKczMy6Bsyim8y5DskhS4tt6DjRE zwKg== 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=d+GPskGRqjJsCPYthGHDYTsngcYMpnS6QMFp+zEL8vY=; b=WMTd1dRxGHoCt+8nFTWoXT1l/29Oyk8Noa0OcopkQDlvxSXEaT1eSRxu5An18N+Jlw icvQ0XRnD30DjoId0+jwRS9Et4jmidJYNin4yabMBKK2njisVW6GMhU009x2GLSABZTq DQZwFjwIMRNBWSi3m8HGZhRyvdbGHJmfrYl/+3qh84nAyk1Z9DN88v/OB1/m1pBBle54 uM6ibPE1sCPpl2H0RCxyvaCGBZL7mEg/t/NYHm0e6Cbp3yGzdNpKvP8GGiSvZTBhgUTT 4lnzr+eJ0bMeLY7lHdm/fNDKjZi1nr8pJEkRhNNPuNe+BC50+zmPBzZUuO3joinC8FOI bAWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QCBpWX3Y; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he38-20020a1709073da600b00772fe97b31esi1748134ejc.901.2022.09.08.06.32.25; Thu, 08 Sep 2022 06:32:52 -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=@kernel.org header.s=k20201202 header.b=QCBpWX3Y; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232375AbiIHN0g (ORCPT + 99 others); Thu, 8 Sep 2022 09:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232502AbiIHNZ4 (ORCPT ); Thu, 8 Sep 2022 09:25:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EDB011C145; Thu, 8 Sep 2022 06:25:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0FA97B82075; Thu, 8 Sep 2022 13:25:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10000C43470; Thu, 8 Sep 2022 13:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662643544; bh=vKmdZnSEqQsgGYqX0IyUeu5ecemFZS/PREfqX8Z3614=; h=From:To:Cc:Subject:Date:From; b=QCBpWX3Yd+k88zciOQ5QXOLEW9QXWpWmKrfzwp+BYl1BmLURpPXKrBbUGuxum5r/u NmXJ/oBKrOy864Aj0w4szD96VRM82oc6fGsmNeaOL/qY57Rl+zNldk85SvsFKnqxkY QSLaBRdaBlfMGPTBJrcMZTGoB9/SBrR1B6a5nKQEx9YZ1zj+nLXxuZRDnGA9hdgh1V S5g/fRHMEorYRXxx4Sd5bnxorRW0o7wNDjJ3jfWc+71Z+oWYNZUcuSprSWsd8QeRRR D4WLSTXtkVyE52HU8DLgIkylxcX2lplcdWryOJj0tMpY+m3ZguGlnqnCPWojBKNRBe zcA5kvua4pqLg== From: matthias.bgg@kernel.org To: Yong Wu , Joerg Roedel , Will Deacon Cc: devicetree@vger.kernel.org, Robin Murphy , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , iommu@lists.linux.dev, Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH v1] dt-bindings: iommu: mediatek: mt8195: Fix max interrupts Date: Thu, 8 Sep 2022 15:25:35 +0200 Message-Id: <20220908132535.9350-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 From: Matthias Brugger The mt8195-iommu-infra has five banks and one interrupt for each. Reflect that in the binding. Signed-off-by: Matthias Brugger --- .../bindings/iommu/mediatek,iommu.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml index fee0241b50988..621aca2adfb7f 100644 --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml @@ -91,7 +91,7 @@ properties: maxItems: 1 interrupts: - maxItems: 1 + description: each bank has one dedicated interrupt clocks: items: @@ -183,6 +183,19 @@ allOf: required: - mediatek,infracfg + - if: + properties: + compatible: + contains: + const: mediatek,mt8195-iommu-infra + + then: + properties: + interrupts: + maxItems: 5 + required: + - interrupts + - if: # The IOMMUs don't have larbs. not: properties: @@ -191,8 +204,12 @@ allOf: const: mediatek,mt8195-iommu-infra then: + properties: + interrupts: + maxItems: 1 required: - mediatek,larbs + - interrupts additionalProperties: false -- 2.37.3