Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp590430pxb; Tue, 14 Sep 2021 04:39:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3ojXrHx0+KPYkDDV6h6k2jfySJiPPrXssSQ3REQ+SEjsNA7ZMYRfHZYP0LmrnNv9EMQvk X-Received: by 2002:a05:6402:134d:: with SMTP id y13mr1765609edw.264.1631619560933; Tue, 14 Sep 2021 04:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631619560; cv=none; d=google.com; s=arc-20160816; b=AMs+J3wo9TBRnpcqDfveaKvr1QKSF+gmoc4so81EWSngRMFxVQ/2HQHnOF9B2lSHWX obeLESQn03c46wM1LWtKzVivhF/y7IGOyqQK9DsC2sjy5/hEYrzb0Zew+xId7aqiElYh OlsHr2lmTf0SAzXWeTaRKfw4VUKTwN1R+WUPWRs8RJsAbXXjaQxGPj8rbJy2aAWgdATS Ixn7+ykBXbfSFLVczRYQI75zRpmOywv4eOQcXrcZs5Z2WUIioQtYdJmJeZuIsMgz39W5 r0JHlpto8ZN9e0R8Qr+o5QCGHUomFw3g0gbEbS9Fc8lMZ96ONvt88fIHs2Hg4G3zX270 l+Hg== 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=Nfhz81yw2Xn3jPuehUtlgJfY6mysb9wGjHTDBGnRuDglGS2WLowH6evoqUyCqHm+Zh jQ/E63XT0G3HCQ8MhRhyzYNZ39dHxTOLzAnWlwelPL1S1Y9JrG/J3xagKIIqUxpwcTCh FDIRoCk8TwXLqKy+XgEnrYxnACdNJuJWnNsQN8vmqu1KoWP2F1kbRNcp58jo9A9vkyoy C3btNdOtwM+8uCYxVUtbwbE2UpoOQ61Y1XWVh3c9Zcebr2BHiIC/DG01iAnLIcJz3Ncp hQ8sijaXzg3LwxQDTs+IP35N8nQSKka8lu8Ejo3Mseiq6ylaKgFe5KDEF03MmWeynYO4 /OYA== 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 eo9si9905693ejc.746.2021.09.14.04.38.57; Tue, 14 Sep 2021 04:39:20 -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 S232108AbhINLiu (ORCPT + 99 others); Tue, 14 Sep 2021 07:38:50 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:60052 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232024AbhINLit (ORCPT ); Tue, 14 Sep 2021 07:38:49 -0400 X-UUID: 4578de8199904a768c332f5b5e637ef9-20210914 X-UUID: 4578de8199904a768c332f5b5e637ef9-20210914 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 178297677; Tue, 14 Sep 2021 19:37:29 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Sep 2021 19:37:27 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 14 Sep 2021 19:37:26 +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 v4 01/13] dt-bindings: memory: mediatek: Add mt8195 smi binding Date: Tue, 14 Sep 2021 19:36:51 +0800 Message-ID: <20210914113703.31466-2-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210914113703.31466-1-yong.wu@mediatek.com> References: <20210914113703.31466-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