Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp340902pxv; Thu, 15 Jul 2021 05:39:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI0r4kqkAtZl19WDt97yTolP4pNoIOcGVW11taDzeHc8J8cu9gwH17GBbjAjfHJfp9PrbU X-Received: by 2002:a92:b111:: with SMTP id t17mr2662496ilh.208.1626352797913; Thu, 15 Jul 2021 05:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626352797; cv=none; d=google.com; s=arc-20160816; b=lLbDr4Xq6n/iHOCWp/wHwKvQyKmv7TfzfLUa2v+sEe0ajTY7c8wYhGm9WkrbU8dBf/ mYncFVDVvANo1tmVAdzvRF5gsnSUaf1oBP/P5TodxJFtSDOTeuwQqlRdZamfh6VMEGh1 P5rZ7yF2UCthhd7y/HjfXSKuI+XDRiT1aACoURwwPli8TagKBna/QO76PZ+/FOPU4lsz Xb1YLnk8aRS06pDPaXyR3AAkXNGOjm54BmtJP+m3rfWaJShUa0CjgksQkDQjtUl1HG1/ VU62mAMYi/LZtzBQZqkCS4BxrlRN9kj2kJmgSvcbJIosmeKkrziINJj4qkxDBSy78rxU OdSg== 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=6NBe9Q0I6oITYkDrNLoahpbMBJp9h+uObjSkh+giGQs=; b=wBRGqe462OH4wAMTR5UCSOP9fgL/nDSCggR20M5/C0md2PU92fjTv6rz69mETg6UJj 4dDMkm+TnwyCIPhzUzcXhwRUu6Ie5ecxc5sYd/ycDh0fq/b+ZhUA1Q42BDbvwec1Htbk x6fGcdIch+ltOyhcnfEx3koUtAzKpaJEwguPjYgNdASFZUHRIhR8btil1yKK+cnbKVd2 L8oNksORB4vLm4bXPkJmb3voGXqUUcFm5xrtxapEZFsVX06mtR8uwulp0AygR/e4puFN kBzY3mn4k3bRMxLnDUV7A1gogMegKgSAoGkjsArQDJuKuKtWkAl87oVv8frXyTVnZTrL xT4g== 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 w3si7762201iol.91.2021.07.15.05.39.45; Thu, 15 Jul 2021 05:39:57 -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 S232759AbhGOMPn (ORCPT + 99 others); Thu, 15 Jul 2021 08:15:43 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:47136 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232429AbhGOMPm (ORCPT ); Thu, 15 Jul 2021 08:15:42 -0400 X-UUID: 3b1158366bdf46b7bebe93076d508f0e-20210715 X-UUID: 3b1158366bdf46b7bebe93076d508f0e-20210715 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1218984356; Thu, 15 Jul 2021 20:12:46 +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:44 +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:44 +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 02/11] dt-bindings: memory: mediatek: Add mt8195 smi sub common Date: Thu, 15 Jul 2021 20:12:00 +0800 Message-ID: <20210715121209.31024-3-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 the binding for smi-sub-common. The SMI block diagram like this: IOMMU | | smi-common ------------------ | .... | larb0 larb7 <-max is 8 The smi-common connects with smi-larb and IOMMU. The maximum larbs number that connects with a smi-common is 8. If the engines number is over 8, sometimes we use a smi-sub-common which is nearly same with smi-common. It supports up to 8 input and 1 output(smi-common has 2 output) Something like: IOMMU | | smi-common --------------------- | | ... larb0 sub-common ... <-max is 8 ----------- | | ... <-max is 8 too. larb2 larb5 We don't need extra SW setting for smi-sub-common, only the sub-common has special clocks need to enable when the engines access dram. If it is sub-common, it should have a "mediatek,smi" phandle to point to its smi-common. meanwhile, the sub-common only has one gals clock. Signed-off-by: Yong Wu --- .../mediatek,smi-common.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml index 602592b6c3f5..f79d99ebc440 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml @@ -38,6 +38,7 @@ properties: - mediatek,mt8192-smi-common - mediatek,mt8195-smi-common-vdo - mediatek,mt8195-smi-common-vpp + - mediatek,mt8195-smi-sub-common - description: for mt7623 items: @@ -67,6 +68,10 @@ properties: minItems: 2 maxItems: 4 + mediatek,smi: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: a phandle to the smi-common node above. Only for sub-common. + required: - compatible - reg @@ -93,6 +98,26 @@ allOf: - const: smi - const: async + - if: # only for sub common + properties: + compatible: + contains: + enum: + - mediatek,mt8195-smi-sub-common + then: + required: + - mediatek,smi + properties: + clock: + items: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: apb + - const: smi + - const: gals0 + - if: # for gen2 HW that have gals properties: compatible: -- 2.18.0