Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp556378pxb; Mon, 25 Apr 2022 16:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt8xDbySkiFnaJGBzwesWHKtJ5tNgVkXp7OGONopWoIdkPY9ph9y81JGzFj1pEGvVTQ9Ub X-Received: by 2002:a17:902:f547:b0:15d:10ce:e2ff with SMTP id h7-20020a170902f54700b0015d10cee2ffmr7794064plf.80.1650929274116; Mon, 25 Apr 2022 16:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650929274; cv=none; d=google.com; s=arc-20160816; b=QwGzwI8HArU+KNfzeJspxiC2eaClCXULe4JNODSp8DEAeCnkdSSxKOMXeQRUZPryHv 6sju9rs7Dobw2eG4gMCLUx9OQe19HWSAtZuUf95T9GKSod87oBxLTKqeld3QDER8OT7q jltB1Q5abCMxfkbUnOL5hh6BfPjkxRv/wGGFj/mIGrTkeqRmHQvr82yF8x1H5Soevf4l MSv2TygVUTgcSTv+04onK0pnTYfFJ8aHIno/cburJnBprLnpDK86Y0cLfqKvKPKA48NH 1ttYK7Y19tzrO31FatXYEHRRXQmNmRTlMg/QR7ooMzNLneRM+Cky5rrMwsVB8bFAFe65 OOFw== 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=e477H6nIIkb3g2/rNNZUUA0CPkaBEIxBUVuNJc+xyt0=; b=jLjpb/c9X7bVgO2D2+BS2cJFjeOw4l1r88WlGYJNPjbpVkNuUBCohciGN1c/n6cyxQ YSAWB0B1y2C+pAhHik4yAKeY8I2T2VUzVlI0eAyM27M6zM37QH9Z3jQDCKc8wqU65W8F DUlmaziz6O4CV+Q09CyQ7uUIS7jHLxTO4VRrkxHYEAQPPSptkXq8GMPfx9vj8ibG0EZO Ld4lZLHUBbgqy8/0vH+vTCqgfnrnGDj8dQY/IoWer+XyDwZ+qdO0ZGg9Kakp2fhse3gy bmOGveE5tNIvfrrMX3qa64J7rlDcX/P562+IPKK0bvNxRDByPSIJaIA49H+uA3oqcHr0 74MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a170902dac300b0015d281d00a5si2479918plx.599.2022.04.25.16.27.38; Mon, 25 Apr 2022 16:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237183AbiDYNAV (ORCPT + 99 others); Mon, 25 Apr 2022 09:00:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237915AbiDYM7b (ORCPT ); Mon, 25 Apr 2022 08:59:31 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73B12140AD; Mon, 25 Apr 2022 05:55:57 -0700 (PDT) X-UUID: 021bc26021a94dcb8a93fb7a4942a789-20220425 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.4,REQID:d0ed978e-e773-45b3-b8a1-835b1bc0e75a,OB:0,LO B:0,IP:0,URL:25,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Release_Ham,AC TION:release,TS:120 X-CID-INFO: VERSION:1.1.4,REQID:d0ed978e-e773-45b3-b8a1-835b1bc0e75a,OB:0,LOB: 0,IP:0,URL:25,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS981B3D,AC TION:quarantine,TS:120 X-CID-META: VersionHash:faefae9,CLOUDID:ee27dff0-da02-41b4-b6df-58f4ccd36682,C OID:b036dbbe684e,Recheck:0,SF:13|15|28|17|19|48,TC:nil,Content:0,EDM:-3,Fi le:nil,QS:0,BEC:nil X-UUID: 021bc26021a94dcb8a93fb7a4942a789-20220425 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1148277197; Mon, 25 Apr 2022 20:55:50 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 25 Apr 2022 20:55:49 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 25 Apr 2022 20:55:49 +0800 From: Johnson Wang To: , , , CC: , , , , , , , , Johnson Wang Subject: [PATCH v3 1/2] dt-bindings: interconnect: Add MediaTek CCI dt-bindings Date: Mon, 25 Apr 2022 20:55:45 +0800 Message-ID: <20220425125546.4129-2-johnson.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220425125546.4129-1-johnson.wang@mediatek.com> References: <20220425125546.4129-1-johnson.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding of MediaTek CCI on MT8183 and MT8186. Signed-off-by: Johnson Wang Signed-off-by: Jia-Wei Chang --- .../bindings/interconnect/mediatek,cci.yaml | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml diff --git a/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml b/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml new file mode 100644 index 000000000000..e5221e17d11b --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/mediatek,cci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Cache Coherent Interconnect (CCI) frequency and voltage scaling + +maintainers: + - Jia-Wei Chang + +description: | + MediaTek Cache Coherent Interconnect (CCI) is a hardware engine used by + MT8183 and MT8186 SoCs to scale the frequency and adjust the voltage in + hardware. It can also optimize the voltage to reduce the power consumption. + +properties: + compatible: + enum: + - mediatek,mt8183-cci + - mediatek,mt8186-cci + + clocks: + items: + - description: + The multiplexer for clock input of CPU cluster. + - description: + A parent of "cpu" clock which is used as an intermediate clock source + when the original CPU is under transition and not stable yet. + + clock-names: + items: + - const: cci + - const: intermediate + + operating-points-v2: true + opp-table: true + + proc-supply: + description: + Phandle of the regulator for CCI that provides the supply voltage. + + sram-supply: + description: + Phandle of the regulator for sram of CCI that provides the supply + voltage. When it presents, the cci devfreq driver needs to do + "voltage tracking" to step by step scale up/down Vproc and Vsram to fit + SoC specific needs. When absent, the voltage scaling flow is handled by + hardware, hence no software "voltage tracking" is needed. + +required: + - compatible + - clocks + - clock-names + - operating-points-v2 + - proc-supply + +additionalProperties: false + +examples: + - | + #include + cci: cci { + compatible = "mediatek,mt8183-cci"; + clocks = <&mcucfg CLK_MCU_BUS_SEL>, + <&topckgen CLK_TOP_ARMPLL_DIV_PLL1>; + clock-names = "cci", "intermediate"; + operating-points-v2 = <&cci_opp>; + proc-supply = <&mt6358_vproc12_reg>; + }; + + cci_opp: opp-table-cci { + compatible = "operating-points-v2"; + opp-shared; + opp2_00: opp-273000000 { + opp-hz = /bits/ 64 <273000000>; + opp-microvolt = <650000>; + }; + opp2_01: opp-338000000 { + opp-hz = /bits/ 64 <338000000>; + opp-microvolt = <687500>; + }; + opp2_02: opp-403000000 { + opp-hz = /bits/ 64 <403000000>; + opp-microvolt = <718750>; + }; + opp2_03: opp-463000000 { + opp-hz = /bits/ 64 <463000000>; + opp-microvolt = <756250>; + }; + opp2_04: opp-546000000 { + opp-hz = /bits/ 64 <546000000>; + opp-microvolt = <800000>; + }; + opp2_05: opp-624000000 { + opp-hz = /bits/ 64 <624000000>; + opp-microvolt = <818750>; + }; + opp2_06: opp-689000000 { + opp-hz = /bits/ 64 <689000000>; + opp-microvolt = <850000>; + }; + opp2_07: opp-767000000 { + opp-hz = /bits/ 64 <767000000>; + opp-microvolt = <868750>; + }; + opp2_08: opp-845000000 { + opp-hz = /bits/ 64 <845000000>; + opp-microvolt = <893750>; + }; + opp2_09: opp-871000000 { + opp-hz = /bits/ 64 <871000000>; + opp-microvolt = <906250>; + }; + opp2_10: opp-923000000 { + opp-hz = /bits/ 64 <923000000>; + opp-microvolt = <931250>; + }; + opp2_11: opp-962000000 { + opp-hz = /bits/ 64 <962000000>; + opp-microvolt = <943750>; + }; + opp2_12: opp-1027000000 { + opp-hz = /bits/ 64 <1027000000>; + opp-microvolt = <975000>; + }; + opp2_13: opp-1092000000 { + opp-hz = /bits/ 64 <1092000000>; + opp-microvolt = <1000000>; + }; + opp2_14: opp-1144000000 { + opp-hz = /bits/ 64 <1144000000>; + opp-microvolt = <1025000>; + }; + opp2_15: opp-1196000000 { + opp-hz = /bits/ 64 <1196000000>; + opp-microvolt = <1050000>; + }; + }; -- 2.18.0