Received: by 10.223.185.116 with SMTP id b49csp2087242wrg; Sat, 17 Feb 2018 11:56:55 -0800 (PST) X-Google-Smtp-Source: AH8x227xZv2e6yV6eKUlSE6xCGajifLlhmEMILSmyjR9mcJBBnkdqnCsToLavZgSGpWLhcPB2t32 X-Received: by 10.98.82.138 with SMTP id g132mr2485369pfb.120.1518897415303; Sat, 17 Feb 2018 11:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518897415; cv=none; d=google.com; s=arc-20160816; b=Ev88eMDXRqF/+PagoNbIJCL9LtngD0zIgyopGMfr1QT9u1311zqMq8nPcvzvp/bOzZ t7voPUA8v0/GwhKuC/iqkf8MWulogpR/bWW20Yh1RM3y2paThuNu3+SwtwIfC9wpoXbN M14fVYCF4XDt3vLRr9qtroXonu1TLEfNcBNWVCDn4XG4EQAUC0+uNfQHUGJdiqo5e0BY oHRKSa/tzS/qQE7yny7xKH28wk7igOT9W3VrGIeisrdyF5wII7t+w3UycZXDCdIDSAVx j6O4G27MtmOEpA37fHAAQIzMA9zoMJGejscdbZ1ikEUEUg4oPjJXtZ90iXF4z7kBC479 V7aQ== 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=KEx+F3oj8J8JL7TkMyGdTEnv1WOWN0nrnQO7OJjJwio=; b=JQmLnlR/9LFN4623bAPzUpJpU2Og8BjOMpR+VihpBihds4gIbwDupTs4vBaAQc6pym U7dt9sOGZFFkvCKCS7kGX+2ukW6htg0HgUzda0fwqe1L/D3xavZnFWQAJbm0nLC0HzVn gzHmkwSRYmf18M0IAux0CcRj4UbfoHHFXmo5Bm7LvrUGbTETqg2dPt+09XSMjWnvrdPe 9qHQesGtS06nsOW0n5oMk5CQshXEUkCzWWTitSexKe5h3MlD/u11mT8MSK638YoE9/vQ da/L3lMdOl2UKEoX+NgCMEWGf0vIL6qcY0Qk3PgIOzDTVc8KP8bVh2BmyLJoY40Vi6Fh 5Dcg== 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 t4si1610193pgr.205.2018.02.17.11.56.41; Sat, 17 Feb 2018 11:56:55 -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 S1751432AbeBQTzl (ORCPT + 99 others); Sat, 17 Feb 2018 14:55:41 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:18001 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751303AbeBQTzK (ORCPT ); Sat, 17 Feb 2018 14:55:10 -0500 X-UUID: 6cba6d76dddd4e65aebdd242c78c347f-20180218 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 383461876; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:02 +0800 From: To: , , , , CC: , , Sean Wang , Viresh Kumar Subject: [PATCH v3 06/15] arm64: dts: mt7622: add cpufreq related device nodes Date: Sun, 18 Feb 2018 03:54:41 +0800 Message-ID: <2cf761c2a20a8ff8a9208ddf3872f10f6f3198f5.1518895232.git.sean.wang@mediatek.com> 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 | 52 ++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 42bd3a4..b387865 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..7256879 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,10 @@ device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x1>; + 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>; }; -- 2.7.4