Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1283270ybl; Sat, 17 Aug 2019 23:52:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiqaPe7xu0MEEO+xpAoXXh2ENl3GYYNb5dUQKrQMEUaiFNfyHvp+wC82RxAui3IJuNqgK+ X-Received: by 2002:a63:6ec1:: with SMTP id j184mr14751149pgc.232.1566111143945; Sat, 17 Aug 2019 23:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566111143; cv=none; d=google.com; s=arc-20160816; b=owj5zTLNp5Dz/AL9sThOpoePzzxOD5/wcjA16yP6cXN1dUK/Dk7OaSKobAmrYUm/Yd kk1p51ZnZ4GJ47fHxSZU6KTY3fLu+XsjERIjmjxPqpu5V9pkVsSyiVJKyaGNX3MIc9Vb xlf5c7AK7xxC8ZTcmbdFRuTRonxk94T09n51NNZWWhSxJ3TV4mp6i4PRftfUgsAT7qzq UX4Tqm+oVz4sUUxrQwDm8ZY7qel8jOK//fPyhhhu25yz84Xwa2jIT5irBntFHOb5GsaU 5BodT1Q4zQepwKRfUQ8lu68mFyqx+25KHB46TAqyDD7MuyF4Wh/eXhgIAMEVP9IPj2Bi aRpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=A+3kF19DVN6mxsZ5iPvXGVrkbjO13rJ3yJ9JuIB8MGw=; b=FIfZSYc3nL/8KJSm2xB02RQLhIQSAS/fPjTpokafhVKD44q5Ej+shGaIymMH6Amf5/ emY0flY1H0km90hi6FyberKSnioeboAndW010HMa7OCmyGgGLXmQScUqRMX3LxAoj+TC ibuyBu3cd/6ZJ37lRqjx1gCyIej606YeKIL+h44qENGdie3ci/QKAT01lk13rCObWxMM g6CpRoITal58/LaO5m1W4Ser0nFNXhbVd5zZ54vSRCF6uPads2wsYqMV0AE+6AgG0deQ yDIz3f09H0INoBgGGhPTRqH68QcZQ+3fhBymdp937wch4c9VQEe78d5mopG0X9swRKfx Fh3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n20si7466954plp.395.2019.08.17.23.52.10; Sat, 17 Aug 2019 23:52:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726696AbfHRGvQ (ORCPT + 99 others); Sun, 18 Aug 2019 02:51:16 -0400 Received: from inva021.nxp.com ([92.121.34.21]:33046 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726637AbfHRGvO (ORCPT ); Sun, 18 Aug 2019 02:51:14 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6666D20070E; Sun, 18 Aug 2019 08:51:11 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8132B200133; Sun, 18 Aug 2019 08:51:03 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B921040314; Sun, 18 Aug 2019 14:50:53 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, rjw@rjwysocki.net, viresh.kumar@linaro.org, leonard.crestez@nxp.com, abel.vesa@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH RESEND V2 7/7] arm64: dts: imx8mn: Add cpu-freq support Date: Sun, 18 Aug 2019 02:32:25 -0400 Message-Id: <1566109945-11149-7-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566109945-11149-1-git-send-email-Anson.Huang@nxp.com> References: <1566109945-11149-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add A53 OPP table, cpu regulator and speed grading node to support cpu-freq driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 4 +++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 41 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts index 10ebf77..11c705d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts @@ -27,6 +27,10 @@ }; }; +&A53_0 { + cpu-supply = <&buck2_reg>; +}; + &iomuxc { pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 1d8899b..785f4c4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -51,6 +51,9 @@ clocks = <&clk IMX8MN_CLK_ARM>; enable-method = "psci"; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; + nvmem-cells = <&cpu_speed_grade>; + nvmem-cell-names = "speed_grade"; }; A53_1: cpu@1 { @@ -61,6 +64,7 @@ clocks = <&clk IMX8MN_CLK_ARM>; enable-method = "psci"; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A53_2: cpu@2 { @@ -71,6 +75,7 @@ clocks = <&clk IMX8MN_CLK_ARM>; enable-method = "psci"; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A53_3: cpu@3 { @@ -81,6 +86,7 @@ clocks = <&clk IMX8MN_CLK_ARM>; enable-method = "psci"; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A53_L2: l2-cache0 { @@ -88,6 +94,35 @@ }; }; + a53_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <850000>; + opp-supported-hw = <0xb00>, <0x7>; + clock-latency-ns = <150000>; + opp-suspend; + }; + + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-microvolt = <950000>; + opp-supported-hw = <0x300>, <0x7>; + clock-latency-ns = <150000>; + opp-suspend; + }; + + opp-1500000000 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <1000000>; + opp-supported-hw = <0x100>, <0x3>; + clock-latency-ns = <150000>; + opp-suspend; + }; + }; + memory@40000000 { device_type = "memory"; reg = <0x0 0x40000000 0 0x80000000>; @@ -288,6 +323,12 @@ compatible = "fsl,imx8mn-ocotp", "fsl,imx7d-ocotp", "syscon"; reg = <0x30350000 0x10000>; clocks = <&clk IMX8MN_CLK_OCOTP_ROOT>; + #address-cells = <1>; + #size-cells = <1>; + + cpu_speed_grade: speed-grade@10 { + reg = <0x10 4>; + }; }; anatop: anatop@30360000 { -- 2.7.4