From patchwork Thu Dec 14 15:00:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 10112441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1016D60352 for ; Thu, 14 Dec 2017 15:16:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00CFD290A2 for ; Thu, 14 Dec 2017 15:16:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9C52290AB; Thu, 14 Dec 2017 15:16:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E0EF2290A2 for ; Thu, 14 Dec 2017 15:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=L5StuosvtzT+pxmtJFlBxXO21vLvM6AcPQbTPEHP824=; b=NyirEtOa79ZqVHFDNyXBCJGbMf XZCa09jIkLyw2CYUEw0NstwB0a3GTojc5Ka07hxHKWCokdZK9CHDapvRWbz38w8sdg4CxczUZaEBy kFT5bpTbKD7AMRV1okMG2XBzOGtD4hVSIi72eadFd5D0wBYO0uvAEQ4m5FOBRCFGoTMyS9W+hrclX ZCzGZaoZQWr2vpEVMREosyEARoQMmnjDwK2UYxWzx7h1M3aLN7FOgP49nLqFz1167Xk12+2mv25cy KFFwblmvdysoFOs05/3UJEu8TOEv/4BaY6UhKE8M9ZUCd1iPFn6iru278lw/+lO6/Yb4wbTReFLaD hwbsTSjQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePVFb-0003gl-SG; Thu, 14 Dec 2017 15:16:43 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePVFS-00038C-LJ for linux-arm-kernel@bombadil.infradead.org; Thu, 14 Dec 2017 15:16:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7hBeSOo5pzNNm499fQVEAB/lVh4aJGgn1PA3YfA7xDo=; b=blky8q+RHKmyhDO528jECHxV7 gkzdfiQbsS+jMo1FifW185DYS981cmewSWRpcpvmlLeCWewZikKh2qBxlptcZmxWBRP2mYEaxEIoT SYMqip/jrK4KQ5euf1JfWC6scHvbBOEZwT4CGMQK+wjbZf5rHH85vDWnBOeKP/qhyIDAZaShZrDKj +XzuNEeQ6NQFQR2vutjEvsCkKDtCP6rQ3fY5cbK+Lq/PBSgqQQ8URW+nYjxNUYqt6CMNn3I8qeTEH yVzGbxQgN1CETmqd/8UXQkdSH6UARzuG5+VSYTDOGg0VfN8b8xOXCaxRCKRZfyu1SgJIErIxRRaS3 mOZqBYrZQ==; Received: from mail.free-electrons.com ([62.4.15.54]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePV0B-0002B9-5B for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2017 15:00:53 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 253B020964; Thu, 14 Dec 2017 16:00:28 +0100 (CET) Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.free-electrons.com (Postfix) with ESMTPSA id ED31220950; Thu, 14 Dec 2017 16:00:17 +0100 (CET) From: Gregory CLEMENT To: "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH v4 4/4] arm64: dts: marvell: armada-37xx: add nodes allowing cpufreq support Date: Thu, 14 Dec 2017 16:00:06 +0100 Message-Id: <20171214150006.25438-5-gregory.clement@free-electrons.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171214150006.25438-1-gregory.clement@free-electrons.com> References: <20171214150006.25438-1-gregory.clement@free-electrons.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171214_150047_209918_D6A8AAD7 X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , Andrew Lunn , Hua Jing , Jason Cooper , devicetree@vger.kernel.org, Antoine Tenart , Andre Heider , Evan Wang , Nadav Haklai , Rob Herring , Neta Zur Hershkovits , =?UTF-8?q?Miqu=C3=A8l=20Raynal?= , Gregory CLEMENT , Victor Gu , Marcin Wojtas , Wilson Ding , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In order to be able to use cpu freq, we need to associate a clock to each CPU and to expose the power management registers. Signed-off-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-372x.dtsi | 1 + arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-372x.dtsi b/arch/arm64/boot/dts/marvell/armada-372x.dtsi index 59d7557d3b1b..2554e0baea6b 100644 --- a/arch/arm64/boot/dts/marvell/armada-372x.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-372x.dtsi @@ -56,6 +56,7 @@ device_type = "cpu"; compatible = "arm,cortex-a53","arm,armv8"; reg = <0x1>; + clocks = <&nb_periph_clk 16>; enable-method = "psci"; }; }; diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 90c26d616a54..3056d7168e0b 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -65,6 +65,7 @@ device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0>; + clocks = <&nb_periph_clk 16>; enable-method = "psci"; }; }; @@ -234,6 +235,12 @@ }; }; + nb_pm: syscon@14000 { + compatible = "marvell,armada-3700-nb-pm", + "syscon"; + reg = <0x14000 0x60>; + }; + pinctrl_sb: pinctrl@18800 { compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd";