Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3444492pxt; Tue, 10 Aug 2021 03:54:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh5pnLQEQcNskV0HoPyJBgYaAQehMjZI7uT+Hy7n1Vqu7+kebl9FkJtE++KGmzB+9cydx3 X-Received: by 2002:aa7:d0cc:: with SMTP id u12mr4293712edo.238.1628592858467; Tue, 10 Aug 2021 03:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628592858; cv=none; d=google.com; s=arc-20160816; b=Alw6ukAM0Iu/nJa61n2y4CBwXWNvLoiLR12RNzYwNurCE5w8AZCK8WRNvPN1ZCmTiL /eGVQuD51HRUmvnwHRA+gqOC1HixHcM50sWji5uJsWn0L93+97mc8MtCCJNSLPalVkCJ LVp5XvrrK9hP21zyH6qAAAFnpZKjuwPVOSXWR3XvZpHyPqZP6kt17E7rNag6HheQ5O21 UeJYUodsfisvSUmqzhnsEKDsfaGHRiddOUNL+mv1+3fCGJsxk+FW4TzX1qwhYyVQaKrN 6f9JfAN30AnbpbKr9S/8QEUAaPkEN5Yjhd5dW7DM6KQkpWjPi2jRKbhjoEjx5ATTLGI3 J2jA== 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=6RFj77CdJtxO4MMsaxTxxfljQmjNYiFl6z8HjWHlK6o=; b=YfkdmxN4J0UdOfI0JGc6/s222n4IzMIjM50fuVLo90jfB6EZZpSwjiORlcBUsTs/Rs HY65XTto7iiWSfitB0p3bb7s0Zw/kB9Nla5TfUZ7FGS3Te9PWFOTKKKy8jnabjVZLaJy GhtkA51eMbiGQk8+jrA8xEnwbWxf3QGgvEM6jmBTnwwuurjpjrVP3zFVe+xaNSlOPCVr aaRTM/98wOMqsOIH+w9biFtnXt/jvCdlXegG/z/pA/UDUdeXqwlr83jlta7wOKg5BDtL KjdsAWYiYIGbf41l0+mXVUAwYsF6b//w6HILMckLuGyZrDvedsqXs8tO2RD+O+1/mL5p N/Yw== 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 bu1si21194419ejb.482.2021.08.10.03.53.54; Tue, 10 Aug 2021 03:54:18 -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 S238011AbhHJIKB (ORCPT + 99 others); Tue, 10 Aug 2021 04:10:01 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:38296 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S237998AbhHJIJp (ORCPT ); Tue, 10 Aug 2021 04:09:45 -0400 X-UUID: 07a1e378b886474ca18a1156777111ee-20210810 X-UUID: 07a1e378b886474ca18a1156777111ee-20210810 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1973722585; Tue, 10 Aug 2021 16:09:19 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 10 Aug 2021 16:09:18 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 10 Aug 2021 16:09:17 +0800 From: Yong Wu To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger CC: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , , , , Ikjoon Jang Subject: [PATCH v3 01/13] dt-bindings: memory: mediatek: Add mt8195 smi binding Date: Tue, 10 Aug 2021 16:08:47 +0800 Message-ID: <20210810080859.29511-2-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210810080859.29511-1-yong.wu@mediatek.com> References: <20210810080859.29511-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 Acked-by: Rob Herring --- .../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