Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp408768pxv; Thu, 15 Jul 2021 07:06:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ+t5QwA+wBZx26S936NCLiic2UlA/pkTVHA3npYLooiUpJmUDbSkzLN/PE145E/QbhF+S X-Received: by 2002:a02:cce6:: with SMTP id l6mr4220180jaq.114.1626357992313; Thu, 15 Jul 2021 07:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626357992; cv=none; d=google.com; s=arc-20160816; b=DJBHp/bQF3c7Kub5bji1GD6Pe1yR/mozsty4xW2Hgly9xpb7tGz4Fk3yJZlflbd1hv qD6DItpJ5eaQfsViNFqsaS/9/M1hDWfwmCS56xlIEwCiV2Uq8zOH95yIYRQuNuUOrIqz V28AHFL2Xvv+rIySQiP48VqTkDruXNccWWwfP/SqIw1rzTWSN15o4NnUqd8YITBrwRlv zhKTzi2tyLlmq9y271ahgZZAgZXFuuCmvPxEtffde8r0Kpn2vbYSGsHp5homG/qltH9c uUOzH4mHxsrYxCb5z2cYyCxyHnkmepscZDV8hfigu8KHeH2dQoWcmvN9JWCIakNFNWRT i+9g== 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=aqtdFsjcnvOfoHpfg6MwWQuFHEy7XCgE6zNuhCe3eJk=; b=RsoRIMUZPExAgQWMM8lULepHmfJKhBHip/+Uvg7p8PXymhbF7C8SYxOVu8dfanCEYP NGbW3DyNfjw3993UoJ8+03Zja6FlxypiDg3mQv9TCfiMskDp1yW/RArsImQP07jQq8u+ 4/aZ0E3GyaTZXhPV3bDquVd3FOrMAntIvxv4/ofG4n8NyGLhvd42FN+MMwX3Fr2G+jcF 2DxwpUyVgy7E82RtYEdi8XqQLRINCcw1VFQ7rS+MLL16dohXHV36hQtt2mqs6hIgldm3 WcBfcS3YeCACcVSzutc1P0rgMSFJDne/XMkRMO4PcqbAx9YSQMO27RiBj9POKtRtymJw shrQ== 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 t10si7883609ilf.122.2021.07.15.07.06.12; Thu, 15 Jul 2021 07:06:32 -0700 (PDT) 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 S232609AbhGOMPb (ORCPT + 99 others); Thu, 15 Jul 2021 08:15:31 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39162 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232429AbhGOMPb (ORCPT ); Thu, 15 Jul 2021 08:15:31 -0400 X-UUID: 48268f99d3de47fbb5d5f6299fd00abf-20210715 X-UUID: 48268f99d3de47fbb5d5f6299fd00abf-20210715 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 1902229726; Thu, 15 Jul 2021 20:12:34 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Jul 2021 20:12:32 +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; Thu, 15 Jul 2021 20:12:31 +0800 From: Yong Wu To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger CC: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , , , Subject: [PATCH v2 01/11] dt-bindings: memory: mediatek: Add mt8195 smi binding Date: Thu, 15 Jul 2021 20:11:59 +0800 Message-ID: <20210715121209.31024-2-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210715121209.31024-1-yong.wu@mediatek.com> References: <20210715121209.31024-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 Add mt8195 smi supporting in the bindings. In mt8195, there are two smi-common HW, one is for vdo(video output), the other is for vpp(video processing pipe). They connect with different smi-larbs, then some setting(bus_sel) is different. Differentiate them with the compatible string. Something like this: IOMMU(VDO) IOMMU(VPP) | | SMI_COMMON_VDO SMI_COMMON_VPP ---------------- ---------------- | | ... | | ... larb0 larb2 ... larb1 larb3 ... Signed-off-by: Yong Wu --- .../bindings/memory-controllers/mediatek,smi-common.yaml | 6 +++++- .../bindings/memory-controllers/mediatek,smi-larb.yaml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml index e87e4382807c..602592b6c3f5 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml @@ -16,7 +16,7 @@ description: | MediaTek SMI have two generations of HW architecture, here is the list which generation the SoCs use: generation 1: mt2701 and mt7623. - generation 2: mt2712, mt6779, mt8167, mt8173, mt8183 and mt8192. + generation 2: mt2712, mt6779, mt8167, mt8173, mt8183, mt8192 and mt8195. There's slight differences between the two SMI, for generation 2, the register which control the iommu port is at each larb's register base. But @@ -36,6 +36,8 @@ properties: - mediatek,mt8173-smi-common - mediatek,mt8183-smi-common - mediatek,mt8192-smi-common + - mediatek,mt8195-smi-common-vdo + - mediatek,mt8195-smi-common-vpp - description: for mt7623 items: @@ -98,6 +100,8 @@ allOf: - mediatek,mt6779-smi-common - mediatek,mt8183-smi-common - mediatek,mt8192-smi-common + - mediatek,mt8195-smi-common-vdo + - mediatek,mt8195-smi-common-vpp then: properties: diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml index 2353f6cf3c80..eaeff1ada7f8 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml @@ -24,6 +24,7 @@ properties: - mediatek,mt8173-smi-larb - mediatek,mt8183-smi-larb - mediatek,mt8192-smi-larb + - mediatek,mt8195-smi-larb - description: for mt7623 items: @@ -74,6 +75,7 @@ allOf: compatible: enum: - mediatek,mt8183-smi-larb + - mediatek,mt8195-smi-larb then: properties: @@ -108,6 +110,7 @@ allOf: - mediatek,mt6779-smi-larb - mediatek,mt8167-smi-larb - mediatek,mt8192-smi-larb + - mediatek,mt8195-smi-larb then: required: -- 2.18.0