From patchwork Fri Jun 29 14:52:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C3=A9bastien_Szymanski?= X-Patchwork-Id: 10496791 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 89A4C601C7 for ; Fri, 29 Jun 2018 14:42:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82F5029092 for ; Fri, 29 Jun 2018 14:42:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76E992922E; Fri, 29 Jun 2018 14:42:34 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 7C87D29092 for ; Fri, 29 Jun 2018 14:42:33 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=5qFD/ZuXRrewKB2sBVkVRYO7U9jZAZLnZehlaoPwkC4=; b=Tvmk9EQSxsQaCX EAQJ5YF3veH5EgkUP2oKLUO176roehqaClxCfhOi6P2QgtgnNWdiJ+az0r1DUjbjL/rPLAZOPz9TT RZh19LBMzWa5myye28m1wm96xdHjMDenqYRuCBTu0ZQewaGnxvQHWtWXGSRhOD2MA/I/OSjg9Wmjf zBYKHCN1NFXWeodk03W7LYBc4u8hHzFw649VLZi9qo5y1H2v0l5iRAV+PIOu93FKk2oa3uBhXe9XB G0fiFbiZ+ZXe2u9ht/A01PvI52qD+aDTM2a1p0GasNzvr2L5/8x4pqtld7iEB7VCNBvHNraG5i6bL g/LmLNUhtmWQOBXRHeQg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYubT-0003qv-Qj; Fri, 29 Jun 2018 14:42:27 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYuas-0003oE-4V for linux-arm-kernel@bombadil.infradead.org; Fri, 29 Jun 2018 14:41:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RDYBY2b7EMrnWDZihI1MJD3uCj0+1gRQhS3YYrBe2Vc=; b=Odzs1xQ+ZihS1J7HtamjjOSztm 4mEcXaYslIwCAKD8LJDUNIvzFT6yG9cq/H/vdckI1jdCpME23G0gPz3L5fKpuqyRzWFMffpbet4fB PvDExMB9KGsw7DKBmQHdgSgT0z0OARZw2nUsBP1Aeh8kDrEkAKS64Oo9x9cDFy8XvtjNdZOaT/azI NfVrlH01SUyI9h4XSHGBhSbCsi+dxcbMgJgrm8J+wg5HxFHXLTwEIPoUFRIlqdUJNyWT0tXHx/CaO z9YTku4GkBdyuEv6DeCgG9YGGUW6TYH4Slz9sSak199W8akpw82qREnoasQGyTTIlzKEz+ufT0sRK 27QJB5qw==; Received: from 9.mo4.mail-out.ovh.net ([46.105.40.176]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYuap-0000uC-2k for linux-arm-kernel@lists.infradead.org; Fri, 29 Jun 2018 14:41:48 +0000 Received: from player779.ha.ovh.net (unknown [10.109.120.118]) by mo4.mail-out.ovh.net (Postfix) with ESMTP id 0DE27187F20 for ; Fri, 29 Jun 2018 16:41:20 +0200 (CEST) Received: from localhost.localdomain (22.220.201.77.rev.sfr.net [77.201.220.22]) (Authenticated sender: sebastien.szymanski@armadeus.com) by player779.ha.ovh.net (Postfix) with ESMTPSA id DB4217C00C4; Fri, 29 Jun 2018 16:40:58 +0200 (CEST) From: =?UTF-8?q?S=C3=A9bastien=20Szymanski?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] ARM: dts: imx6ull: add operating points Date: Fri, 29 Jun 2018 16:52:21 +0200 Message-Id: <20180629145221.10393-1-sebastien.szymanski@armadeus.com> X-Mailer: git-send-email 2.16.4 MIME-Version: 1.0 X-Ovh-Tracer-Id: 4976196116056593660 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtiedrvddugdejhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180629_104147_222337_12231A80 X-CRM114-Status: GOOD ( 12.45 ) 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: Mark Rutland , devicetree@vger.kernel.org, Viresh Kumar , Sascha Hauer , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo 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 i.MX6ULL has different operating ranges than i.MX6UL so add the operating points for the i.MX6ULL and removed them form board device trees. A 25mV offset is added to the minimum allowed values like for the i.MX6UL. The valid frequencies are now selected by the cpufreq driver according to ratings stored in fuses since commit 0aa9abd4c212 ("cpufreq: imx6q: check speed grades for i.MX6ULL") Signed-off-by: Sébastien Szymanski Acked-by: Viresh Kumar --- arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 14 -------------- arch/arm/boot/dts/imx6ull.dtsi | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi b/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi index 3dffbcd50bf6..183193e8580d 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi @@ -20,20 +20,6 @@ &cpu0 { clock-frequency = <792000000>; - operating-points = < - /* kHz uV */ - 792000 1225000 - 528000 1175000 - 396000 1025000 - 198000 950000 - >; - fsl,soc-operating-points = < - /* KHz uV */ - 792000 1175000 - 528000 1175000 - 396000 1175000 - 198000 1175000 - >; }; &iomuxc { diff --git a/arch/arm/boot/dts/imx6ull.dtsi b/arch/arm/boot/dts/imx6ull.dtsi index ebc25c98e5e1..ade64bd46fab 100644 --- a/arch/arm/boot/dts/imx6ull.dtsi +++ b/arch/arm/boot/dts/imx6ull.dtsi @@ -48,6 +48,25 @@ /* Delete CAAM node in AIPS-2 (i.MX6UL specific) */ /delete-node/ &crypto; +&cpu0 { + operating-points = < + /* kHz uV */ + 900000 1275000 + 792000 1225000 + 528000 1175000 + 396000 1025000 + 198000 950000 + >; + fsl,soc-operating-points = < + /* KHz uV */ + 900000 1175000 + 792000 1175000 + 528000 1175000 + 396000 1175000 + 198000 1175000 + >; +}; + / { soc { aips3: aips-bus@2200000 {