Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp409729pxj; Wed, 16 Jun 2021 05:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSSCORUH4yxssSmxwsTVDhzL5IML8uJgmAEUZgYbQjmwkqmXBR/3m3DBTNIcNuh/vOOcFm X-Received: by 2002:a92:c569:: with SMTP id b9mr3421800ilj.3.1623846279359; Wed, 16 Jun 2021 05:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623846279; cv=none; d=google.com; s=arc-20160816; b=jwLl4U7Au/CcZD47Hl9KFzq3OeVocnP0SQUFr13/3urgmtXuy89TpYnUNt1Vpr0PAZ LuAc4LFFpRvjvCfTtWaC/v3g8uegCLBtDNH+GeRw1f8Aa83/1JJKDJYKpcZWGZs9DBi1 ShzPmPXA3DjspP2ny43tk8oWmEcPJl2q9uu/6ugCnOcOh8DD1ysf/gHaTSse2oaoJ0lq qxw6iQR+qZTc0PbYyCCcK76TIsdC6s7Tc34NjSO4GBcylZdtbtXlEuzMf7KAerv+sQJp ahxAh6R+PF3EJIGxtpjfdBkmX5QA9O3SoFiRpfzhd9AAbDKEmGat277rSmjUUP2pJJlb 56DA== 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=G3hqrMx18QFKoe+tN6fhu0WQ/HevAKeS2H/8fjYAdls=; b=dlK3qpgH9xZKUCHy6aIP7hUlVGYk0sdMHXhJgsReDNoZAo+uSRP7211YfVjYZjnEVY WOqImZsMUKJDFduesywH1Hld3QjAmtxEuWj21fpU7oeFoP+5BMM+GlfV81ZMWeIi3cHn P6wDw35LE8dQrvloQLps0fLe/ySuvMKriRqWr+miSfZ3TiU6W92C1S3XX0RKeLaAWddC tkqAY6Vy80It87bBEtlFkAv1F/ufNUldw+bRujuCj15yxAH9sE6xAVX7FZCCSuR9dDgS /ZAPhsy/oEm/DhbWDfPrbgXI/rPK6ik8agiR3bmJI3PHrkRFJc/6aFGbnGLBTjo+yyqr 1kTA== 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 p10si2250850ilg.70.2021.06.16.05.24.26; Wed, 16 Jun 2021 05:24:39 -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 S232432AbhFPLqT (ORCPT + 99 others); Wed, 16 Jun 2021 07:46:19 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:60665 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232357AbhFPLqS (ORCPT ); Wed, 16 Jun 2021 07:46:18 -0400 X-UUID: a84b44cca9fc4c9897e638fd711e96fd-20210616 X-UUID: a84b44cca9fc4c9897e638fd711e96fd-20210616 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 86501162; Wed, 16 Jun 2021 19:44:09 +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; Wed, 16 Jun 2021 19:44:08 +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, 16 Jun 2021 19:44:07 +0800 From: Yong Wu To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger CC: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , , Subject: [PATCH 1/9] dt-bindings: memory: mediatek: Add mt8195 smi binding Date: Wed, 16 Jun 2021 19:43:38 +0800 Message-ID: <20210616114346.18812-2-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210616114346.18812-1-yong.wu@mediatek.com> References: <20210616114346.18812-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 This patch adds 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 connects 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 a08a32340987..6317025bd203 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: @@ -100,6 +102,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 7ed7839ff0a7..a100283903bd 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: @@ -75,6 +76,7 @@ allOf: compatible: enum: - mediatek,mt8183-smi-larb + - mediatek,mt8195-smi-larb then: properties: @@ -109,6 +111,7 @@ allOf: - mediatek,mt6779-smi-larb - mediatek,mt8167-smi-larb - mediatek,mt8192-smi-larb + - mediatek,mt8195-smi-larb then: required: -- 2.18.0