Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2186827pxb; Mon, 11 Jan 2021 03:22:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKBFGKo5WkXhZXV0AAJUrgWmF7EtYtnka3xdN6Tz+pKO0GsyRdHlyI3S1r6cg+XiKG5ZkR X-Received: by 2002:aa7:d2d3:: with SMTP id k19mr13438694edr.28.1610364130888; Mon, 11 Jan 2021 03:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610364130; cv=none; d=google.com; s=arc-20160816; b=GKb4RYIDaatGPnhCA3WzVO9nIFAzlg761UR4fvGYQ2ZxsHs8TRLkInxrGbc/VaxViy AoI6fKmv09NRU6JD9l+iLQJBa8WPIUp6tll0UbkrnzRxlrimLpdw5TEPZFqSaO78E0y2 pUg2G0bqNilih3hPdGt5rSa9ejiovxbKAW3bibRbXofPMY3gqJKHEp64WYeIr9f1raOw lKSI533pirTO4pSK+A2ZyinLZpnkfrTZU+oB7HToBQhcwGt5Gx8Z9V653EX3d+eT56i9 m8WQ0atnTyBMNrq4lypkPYRlnXjy9YguAbom6g18t2kmM3OSyzaCP/L+Mg/+ciabd804 TGpQ== 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=wdcdtnAk0/s7YJZLxfQIr7Bh0crJrxAgl1MQnl3WucQ=; b=A5gqUTXcYuErNvskz2mWmvm8XLU8+j1Ez8qdb9yDGnCVPOe4JM/tQJWic8UW9yZ2QD i2X8ltMgNT/gDcImkPfeaNE2zwkunDYspsqbgzTH6e61RXNKTQ1lRoYE89BDIgaR7Fd4 I/fOm6BrMKSpgkzKC3hjmrEDx+QMSITa9rynLDXkjxA/jO9gzYqFwIxdELSO2BjrnbXb PvJybf+5VDN8xXOXMNkAuudIzsCGS6Qfyx6mMui19mk7PN3L70n+hQkznDKamCX5sZjj wMjdvBoAciMyVkK3uXuzXf7LNOIJ1kqiOsRk8VQDhOJn+kv1SN8MSS+v/dcNT8XN/Z/b kMyQ== 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 do7si3132382ejc.585.2021.01.11.03.21.46; Mon, 11 Jan 2021 03:22:10 -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 S1729638AbhAKLUq (ORCPT + 99 others); Mon, 11 Jan 2021 06:20:46 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:59200 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726753AbhAKLUq (ORCPT ); Mon, 11 Jan 2021 06:20:46 -0500 X-UUID: 35b96024b7634166a7c869d11ca5140e-20210111 X-UUID: 35b96024b7634166a7c869d11ca5140e-20210111 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.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 506617047; Mon, 11 Jan 2021 19:20:00 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 11 Jan 2021 19:19:58 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 11 Jan 2021 19:19:57 +0800 From: Yong Wu To: Joerg Roedel , Rob Herring , Matthias Brugger , Will Deacon , Robin Murphy CC: Krzysztof Kozlowski , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , Subject: [PATCH v6 03/33] dt-bindings: memory: mediatek: Extend LARB_NR_MAX to 32 Date: Mon, 11 Jan 2021 19:18:44 +0800 Message-ID: <20210111111914.22211-4-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210111111914.22211-1-yong.wu@mediatek.com> References: <20210111111914.22211-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 Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 2 +- include/dt-bindings/memory/mtk-memory-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-memory-port.h b/include/dt-bindings/memory/mtk-memory-port.h index 53354cf4f6e3..7d64103209af 100644 --- a/include/dt-bindings/memory/mtk-memory-port.h +++ b/include/dt-bindings/memory/mtk-memory-port.h @@ -6,10 +6,10 @@ #ifndef __DT_BINDINGS_MEMORY_MTK_MEMORY_PORT_H_ #define __DT_BINDINGS_MEMORY_MTK_MEMORY_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