Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp590898pxb; Tue, 14 Sep 2021 04:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPY4qRMU0DhbiNfCPgI3Rd1OS8geMNJYdpl1O1x0pNNTRkGvEAFtv4tdGi3o1ooVXDHg2W X-Received: by 2002:a50:f1db:: with SMTP id y27mr18605098edl.26.1631619601988; Tue, 14 Sep 2021 04:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631619601; cv=none; d=google.com; s=arc-20160816; b=WZA8XHtfETujB049nZX8U5ZS/ZAL23L92nXEVPskTtEPSOnnOQM0Gu97SbMiaqF/i3 9zv3T4JJ7ZO1j3dTy/zJH5nISvfU399RSVjdWjKBh3v/9UuSRoZLfYRFg5ZCwIepbQr0 5boclUBwnuXRLWyy/esh/XU+GnbtPqApVRg6SAdopIWnGKMtvWQ8kCW9jibnDhae5JGh 9yCWOsa+QKSTnmvSK+E7xK9Xc5R8AIqYAP2eledZRe3uam7PP4plbK56jAkyoZ5nUtaC KvvkltkncAk3uNlz1rZlWQYUZX0lA6s5MHOohHhpFdi2lKI/aWXPa4iYaG7HVC9dDdrp mfRg== 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=rLvSbazTzCPUlMUa1O+23h+vRCMwynrxRrxen7HBAAA=; b=Islhb9N/vAKerqJJk8Ukl/6VyQGvKsMBeXxSafj5avsYyActFQzERLs7lOMvfQpWeo tFs3+YDPkWitGs4LK28RPpiwh/NAOJGwV8+wv3NDuCyUTXGEjYYyI6lHLCAAHSBrtg8F v+wD/LpPOU21JjUrz8Y3VFERf/WVUrP2GT7zkAd0ndkO2piOqNtA9H854yhklMYorAiC Ks9v5jQ7rWiviVeQo5vfq4qYBm0HnXhyC0Tbrkqo1kUraqALE6SWpVmap2DwZhEjv+fX jkUjRrVOn5Thm9AJxbc2k7l9dy02J0XRllphWhagmNtCrJUz7Rn2YnEfHMHPFsAG/mkC oTnw== 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 hq40si10861099ejc.619.2021.09.14.04.39.37; Tue, 14 Sep 2021 04:40:01 -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 S232130AbhINLjA (ORCPT + 99 others); Tue, 14 Sep 2021 07:39:00 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:60438 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232135AbhINLi7 (ORCPT ); Tue, 14 Sep 2021 07:38:59 -0400 X-UUID: f528463a147242c182cee0127a07c0e7-20210914 X-UUID: f528463a147242c182cee0127a07c0e7-20210914 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 999545326; Tue, 14 Sep 2021 19:37:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Sep 2021 19:37:39 +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:37 +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 02/13] dt-bindings: memory: mediatek: Add mt8195 smi sub common Date: Tue, 14 Sep 2021 19:36:52 +0800 Message-ID: <20210914113703.31466-3-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 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 --- change note: add "else mediatek,smi: false". --- .../mediatek,smi-common.yaml | 28 +++++++++++++++++++ 1 file changed, 28 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..3a82b0b27fa0 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 + description: a phandle to the smi-common node above. Only for sub-common. + required: - compatible - reg @@ -93,6 +98,29 @@ 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 + else: + properties: + mediatek,smi: false + - if: # for gen2 HW that have gals properties: compatible: -- 2.18.0