From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F22EC64990 for ; Thu, 25 Aug 2022 13:41:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240817AbiHYNlH (ORCPT ); Thu, 25 Aug 2022 09:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239774AbiHYNlG (ORCPT ); Thu, 25 Aug 2022 09:41:06 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47ADDA2619; Thu, 25 Aug 2022 06:41:04 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id m17-20020a7bce11000000b003a5bedec07bso2729275wmc.0; Thu, 25 Aug 2022 06:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=P62ueRssPRWFG3vaYmpYNrxNqu1MLhdwYO9xXHU3Eok=; b=o5f4hFjZI45NTZlz/j+gp1PsNXot+ZFmfK1pjCF3c/ZkKON5KO2U/U4z3qjDJ5pKHh CfMu6+BUgs0fadkrXr33bOXYs5nZcCUNtREG1btzb00TRe5IV0Fw2MLKDbobygsbSmv+ ulmFWzsKO1LCy7kZMuRaScxVZX/sSB2Q1tOelifSdAS+YWR/Dfk2+lsEoaDrc5WOpa8s +ALI41zvnNIBFnNZ3Y4wAAIGxZ9es+16UZ//ZoLewVyBXhkaVmHAnoKsi1PE0YD7jzTi +TLD7NKMIzJAoYCRfdP2kxriS9Khnex1VnPO48BPSWgzf7BXhICyZIiRB72cN/l9tpvT 6VXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=P62ueRssPRWFG3vaYmpYNrxNqu1MLhdwYO9xXHU3Eok=; b=IwBL15BB0QmbRPxTuN8tS/5qxL48hJLmDHNH2QFtaOr1eBA37H2v4TQnWvL13ScKMM 6lvqdNOzNgOtW4B5IsEtc4kg3boRIFWIV+uYuSwmEZPS1zJ2hz4byNUCdovQ+P4Z012Z kaFHC9hEmPePWcbDMcOHVH5ilvjGvzyUFPJEEhhExlbqr0AXoVl9QRTY7slVf2OQlipj ZqIPD0WgUbKhuuuPEL9CIJ1xTNAdNu4UsAXY15NvXDv3+D0wJF1UCFrt2GasWmn1kvp8 vjrPWk7iEg4Hf241thNzvR2XWwPvQ8a10EQ3JG/aSHpm/g564uZyndahDLa+QyE8q11S Ntng== X-Gm-Message-State: ACgBeo2yXRSA417Y7g2bAa6gFKZZqWVNJ9AlARas5vb8GuwzBF63SxbX styFOg1upDTjY7Y333I4Akg= X-Google-Smtp-Source: AA6agR6HwtACnz86Wj1DGMwmnKmttU1V08jHhgJSrlxz8gPmsiWwe1E9CpRcuRMT3D/r04OwZIh6QA== X-Received: by 2002:a05:600c:3508:b0:3a6:10a9:8115 with SMTP id h8-20020a05600c350800b003a610a98115mr8721228wmq.164.1661434862814; Thu, 25 Aug 2022 06:41:02 -0700 (PDT) Received: from [192.168.2.177] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id g8-20020adffc88000000b002258619d342sm641503wrr.2.2022.08.25.06.41.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 06:41:01 -0700 (PDT) Message-ID: Date: Thu, 25 Aug 2022 15:41:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH v6 01/20] dt-bindings: iommu: mediatek: Increase max interrupt number Content-Language: en-US To: Tinghan Shen , Yong Wu , Joerg Roedel , Will Deacon , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Lee Jones , AngeloGioacchino Del Regno , MandyJH Liu Cc: iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20220811025813.21492-1-tinghan.shen@mediatek.com> <20220811025813.21492-2-tinghan.shen@mediatek.com> From: Matthias Brugger In-Reply-To: <20220811025813.21492-2-tinghan.shen@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 11/08/2022 04:57, Tinghan Shen wrote: > mt8195 infra iommu uses 5 interrupts. > > Signed-off-by: Tinghan Shen > Reviewed-by: Krzysztof Kozlowski > Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger Joerg, will you take this through your tree or shall I take care of it? Regards, Matthias > --- > .../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..f5634c1642e20 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: # For the MM IOMMU > + properties: > + interrupts: > + maxItems: 1 > + > required: > - mediatek,larbs >