Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp320107pxb; Wed, 11 Nov 2020 04:41:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFeLKyhnd7ywsidViQlVxjg49JalgjfjC066HTpBFFXEjYpZlkgNn4WezY1WWlxlnT2/Mk X-Received: by 2002:a05:6402:3066:: with SMTP id bs6mr4687816edb.79.1605098491245; Wed, 11 Nov 2020 04:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605098491; cv=none; d=google.com; s=arc-20160816; b=imr4D0h8BlD5R6KThqAsk6xnp/kI7w6l+trOnHtnc21o5JlllZBGCyd6jJn8B3CdDJ QO18/4WNtJcqwGsu9hMWHcH6/xpyjFa5Hkkta0pm4xlAj2qmneAVDRv4BlOrAwz6MFPK ELq6NLzXQWvuyBHQyf2NT9Xb7hLjUYAbGh+KUTwcUJvZSd31owKahRIn2S2U1idZRJgE w8qExRpBYjaZlfA4aETtYfbDnWT/ym1dyt2QK47ZIhzHfrZS5Q3SbDgzYM5k7bQVBcWK EjIijOm7aD7uKZRw68WxNPfJn/DcPAX3j+VfyMJTwAXYIrcNXV1DEHGJHhWbNLIfFX3V yr7g== 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; bh=uk9TuDWQ+5C+1g/Knl070oK3Ruiw8cg5/g0IHS49Yww=; b=dWxive90sZdGEwf4ScfEYwsDOyCor6Nab6lc9LrYC38ZEcB/FHJHg5i0KIzGb2UEMs /q0K7SJZlexAHTm13mCl5L+ZTFtR85BH0/R5yF5f7y6xEZS+KAtGBlecaerkuYOBoGsR FCJ+uSh60k1DwEFkaqldpoXEQ6YyEj2IJAELOS4xQEVGEFkU+gA7CeuRr8/mSGRrSGw4 Heir5FgInc3lfgyxJmhtXHSv6/epF3r16jdaaJwQo+jHKyQrXb7i+43Il+KUhVXfTEa1 pdDK7UULuDdHvjDg6jUTrn0b5MA4Zbg0mL97jRqS/kf+GQ/JSetHr7T47gGUFeoH0llk 36yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt10si1392736edb.503.2020.11.11.04.41.07; Wed, 11 Nov 2020 04:41:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgKKMjX (ORCPT + 99 others); Wed, 11 Nov 2020 07:39:23 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:56816 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726207AbgKKMjR (ORCPT ); Wed, 11 Nov 2020 07:39:17 -0500 X-UUID: f1c7121ff4494829acbaf4cd1e9f27bf-20201111 X-UUID: f1c7121ff4494829acbaf4cd1e9f27bf-20201111 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1660985978; Wed, 11 Nov 2020 20:39:15 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 11 Nov 2020 20:39:13 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 11 Nov 2020 20:39:12 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Will Deacon , Robin Murphy CC: Krzysztof Kozlowski , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , Greg Kroah-Hartman , Subject: [PATCH v4 03/24] dt-bindings: memory: mediatek: Extend LARB_NR_MAX to 32 Date: Wed, 11 Nov 2020 20:38:17 +0800 Message-ID: <20201111123838.15682-4-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201111123838.15682-1-yong.wu@mediatek.com> References: <20201111123838.15682-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend the max larb number definition as mt8192 has larb_nr over 16. Signed-off-by: Yong Wu Acked-by: Rob Herring --- Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 2 +- include/dt-bindings/memory/mtk-smi-larb-port.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml index b9946809fc2b..ba6626347381 100644 --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml @@ -99,7 +99,7 @@ properties: mediatek,larbs: $ref: /schemas/types.yaml#/definitions/phandle-array minItems: 1 - maxItems: 16 + maxItems: 32 description: | List of phandle to the local arbiters in the current Socs. Refer to bindings/memory-controllers/mediatek,smi-larb.yaml. It must sort diff --git a/include/dt-bindings/memory/mtk-smi-larb-port.h b/include/dt-bindings/memory/mtk-smi-larb-port.h index 2ec7fe5ce4e9..f4d8e3aed0bc 100644 --- a/include/dt-bindings/memory/mtk-smi-larb-port.h +++ b/include/dt-bindings/memory/mtk-smi-larb-port.h @@ -6,10 +6,10 @@ #ifndef __DTS_MTK_IOMMU_PORT_H_ #define __DTS_MTK_IOMMU_PORT_H_ -#define MTK_LARB_NR_MAX 16 +#define MTK_LARB_NR_MAX 32 #define MTK_M4U_ID(larb, port) (((larb) << 5) | (port)) -#define MTK_M4U_TO_LARB(id) (((id) >> 5) & 0xf) +#define MTK_M4U_TO_LARB(id) (((id) >> 5) & 0x1f) #define MTK_M4U_TO_PORT(id) ((id) & 0x1f) #endif -- 2.18.0