From patchwork Mon Jul 30 12:31:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E66CE13B8 for ; Mon, 30 Jul 2018 12:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D10EB29B9F for ; Mon, 30 Jul 2018 12:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF0AF29AED; Mon, 30 Jul 2018 12:50:12 +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 6389C29BA6 for ; Mon, 30 Jul 2018 12:50:12 +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=6Spbe1T4+T6e/aQVhqH8lQbupw9z9TocOS2W9osjg8E=; b=RSMtP1KAFZE4OmHCrD5QMpEjU7 rnWhejpzBoD3v2AJiaXFrJg2Sx8q0lfbYbEov/ntISF7hUO8thRsGXLRM1rTOFK1xq6WnID38HSFI H7galgHmk8lm0gF4kS3wQ+QgM+OMbGpYlUOgabcr6/6X4CCsiNTJg5yjvvGe5CDciWkUdkC+katNi B9uQa5PNiduW7ShOL9+D5yJcdEhcicLe8f+ZgEUAf/6PpHUmRkRm65DmWvmy6+IgMGR8vRgr2j1VU xApznnYKfxdXnPJghAQl6zrZ97/pkP40ocEVtgREWXBuWPW9NQlTZHsGrEbdCZtTMFsSyooJXNomq mI+D7BVA==; 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 1fk7cj-0000yN-RX; Mon, 30 Jul 2018 12:50:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7ca-0000YW-Pv for linux-arm-kernel@bombadil.infradead.org; Mon, 30 Jul 2018 12:49:56 +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=tFVrUlPoGP8SlHucPt3wxhy/+cAjhAGVyJWa2CVYIgs=; b=EjiEiD0/bcvGmFnqn+IBcWzAQ hPMP6tbIHkddRBFClHCOJlhw3ImG8misiBNAlIS+9e4hjAAwUy6dfCBxBuz8sKxn2vIbmzur0STeU kiDZG6fj5EvCIZ8JCpZi+KRXgbwOoZs5N89lECIgLPF5lAIlciSKKjgmyadjLrnc8HQMt//3h/NZ9 0t6bm9kUGaGYKezfdmATQqtbi9TpGfjI1OjG46jUC7XLfnrCoy0F525JQbfcguFsHrYWh9OXjoNe2 a7ZEV77HYlyW+NILHKgovuidT5jh8aiQLGmXoF6WWTfg/ph4YJKzEK/L5pkvAfsqshQeIx0kAQpGi huIYSESHQ==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mt-0003ne-3R for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 86AA51B96; Mon, 30 Jul 2018 05:33:31 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A5103F802; Mon, 30 Jul 2018 05:33:29 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 13/19] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Date: Mon, 30 Jul 2018 13:31:31 +0100 Message-Id: <20180730123137.923-14-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_133343_370939_4B007F7E X-CRM114-Status: GOOD ( 12.44 ) 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: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev 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 The Olinuxino board uses DDR3L chips which are supposed to be driven with 1.35V. The reset default of the AXP is properly set to 1.36V. While technically the chips can also run at 1.5 volts, changing the voltage on the fly while booting Linux is asking for trouble. Also running at a lower voltage saves power. So fix the DCDC5 value to match the actual board design. Signed-off-by: Andre Przywara Tested-by: Martin Lucina --- arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index 3f531393eaee..b3f186434f36 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -142,10 +142,14 @@ /* DCDC3 is polyphased with DCDC2 */ +/* + * The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal + * 1.35V that the PMIC can drive. + */ ®_dcdc5 { regulator-always-on; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; + regulator-min-microvolt = <1360000>; + regulator-max-microvolt = <1360000>; regulator-name = "vcc-ddr3"; };