Received: by 10.223.176.5 with SMTP id f5csp466070wra; Tue, 6 Feb 2018 01:57:42 -0800 (PST) X-Google-Smtp-Source: AH8x22514KEBK80exhUqwAqkedmITuqRWJltepbm/V1ICWVNL8+gXMw32nAzp1yREH6EXFzNejSn X-Received: by 2002:a17:902:8c86:: with SMTP id t6-v6mr1882962plo.400.1517911062203; Tue, 06 Feb 2018 01:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517911062; cv=none; d=google.com; s=arc-20160816; b=Bh9c39LVywHfiOZULnEycp6a6QqpgHlshETh4XXkvYoFI+LC041qZ0Mhv/VaZGCfqT ydtGj2EJzO+GzaXVpU4PWULpQPyjAxOtrK7moj9NXlP1h9n6Ystt76U+nhbXdFeOGsgP TqVvlAnVNfU1JDakqfYsuL1rofsj2imjVBrk/GNt0GhOEJvopPY2LXNBmBtwOdRuWiPp DA/HKREdwL6K5etMkBUlQqgIedJQk8e6j6HOtJSMWnaygsdwg4CMdeICrGMoOBNm/eAm 7eD3iKOpanijYzG8IATWjseOHMgcoTyL+0IxgGEGU8gw5X6ZFczwTfNhVDIrl6du+Ky7 amVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=YJQuZj0w0wRO6HGR3wj2idYzG4kbA0hr9iYsPoTu7Ew=; b=jBlb92ynZ3co10Znc7KGeDPJfhz8uqCPqN+X5nxtXoUDReF1zSl5IsVCaMcszRBnR2 kGOtXeIYmNdEKagPrIKBcI9DTdprP6avlDCelEzSd2Wdoh8ljRVbMGVTF7Xq2Nwjn+Rt TuIfRRzG+DhRIqrCYv5V3a5s4xDljvy0ToUlBQxMeW8ITqk+Ir1/qZthvO2N0kM2DxlO j3hbECjToMfaCcN7GCZDaF/ROF9yWqTYTF6NiHCjfF3gn8zrNz876xVjxCw3k05Bk/Pc 06E6QDU3yR87qHI9wPwYy7Nbl6DTuPcoyxF4C/FtZZwfYW2ldBhbBDtawfMsF6eI5FJ9 Myzw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si6259761plh.780.2018.02.06.01.57.28; Tue, 06 Feb 2018 01:57:42 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbeBFJ40 (ORCPT + 99 others); Tue, 6 Feb 2018 04:56:26 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:19458 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752187AbeBFJxX (ORCPT ); Tue, 6 Feb 2018 04:53:23 -0500 X-UUID: 9a1a3cf8a0304abc8df5263ac138ce38-20180206 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1689615889; Tue, 06 Feb 2018 17:53:19 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Feb 2018 17:53:18 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 6 Feb 2018 17:53:18 +0800 From: To: , , , , CC: , , Sean Wang , Viresh Kumar Subject: [PATCH v2 06/16] arm64: dts: mt7622: add cpufreq related device nodes Date: Tue, 6 Feb 2018 17:52:55 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Add clocks, regulators and opp information into cpu nodes. In addition, the power supply for cpu nodes is deployed on mt7622-rfb1 board. Signed-off-by: Sean Wang Cc: Viresh Kumar --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 12 +++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 49 ++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 4615af6..bbf4d03 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -20,6 +20,18 @@ bootargs = "console=ttyS0,115200n1"; }; + cpus { + cpu@0 { + proc-supply = <&mt6380_vcpu_reg>; + sram-supply = <&mt6380_vm_reg>; + }; + + cpu@1 { + proc-supply = <&mt6380_vcpu_reg>; + sram-supply = <&mt6380_vm_reg>; + }; + }; + gpio-keys { compatible = "gpio-keys-polled"; poll-interval = <100>; diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index c387c4c..65eb417 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -18,6 +18,50 @@ #address-cells = <2>; #size-cells = <2>; + cpu_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-shared; + opp-300000000 { + opp-hz = /bits/ 64 <30000000>; + opp-microvolt = <950000>; + }; + + opp-437500000 { + opp-hz = /bits/ 64 <437500000>; + opp-microvolt = <1000000>; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1050000>; + }; + + opp-812500000 { + opp-hz = /bits/ 64 <812500000>; + opp-microvolt = <1100000>; + }; + + opp-1025000000 { + opp-hz = /bits/ 64 <1025000000>; + opp-microvolt = <1150000>; + }; + + opp-1137500000 { + opp-hz = /bits/ 64 <1137500000>; + opp-microvolt = <1200000>; + }; + + opp-1262500000 { + opp-hz = /bits/ 64 <1262500000>; + opp-microvolt = <1250000>; + }; + + opp-1350000000 { + opp-hz = /bits/ 64 <1350000000>; + opp-microvolt = <1310000>; + }; + }; + cpus { #address-cells = <2>; #size-cells = <0>; @@ -26,6 +70,10 @@ device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x0>; + clocks = <&infracfg CLK_INFRA_MUX1_SEL>, + <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cpu_opp_table>; enable-method = "psci"; clock-frequency = <1300000000>; }; @@ -34,6 +82,7 @@ device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x1>; + operating-points-v2 = <&cpu_opp_table>; enable-method = "psci"; clock-frequency = <1300000000>; }; -- 2.7.4