From patchwork Fri Jun 23 17:07:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9807073 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 C604F6086C for ; Fri, 23 Jun 2017 17:08:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE00028727 for ; Fri, 23 Jun 2017 17:08:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2A3E28773; Fri, 23 Jun 2017 17:08:16 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable 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 59EC628727 for ; Fri, 23 Jun 2017 17:08:16 +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: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=rFx44jlJxY4qnPdQNtaEtcmmD/Dv9PmVwn2w86fqnEk=; b=Wq+ vzTfJHrXu/lYZevY5ZaI0DFByJv/kOe3TLQ/wUtMSEqDyEhNkaOMlWTPcAb0kDh3ykignv5QZ+50D Yu9/56Qo7qgPoLNW+GuXnh2es16s2MeVwYPqnx84GiHDivXQ7Nltu50H/df9Jl/MCjs1X5ktiffm6 d2F3/q1nrFmcaUxPu6kZX0Dw0ojoFlty0z+LXb6amYn6+KTpBpJLiXO6CrhjcJ3lgkr+DB0ape5OQ 1TVcost2XznEtWJO5zcLs0H6AgFEpoMzaMxEpeOHSKTLJHUqnFLzVWFXZIp5LLEQN0gC3hZzLT8BK hwZ8Ti1vC9XvK7jgLjPw6CG8qlg/5Qw==; 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 1dOS46-0006HL-Th; Fri, 23 Jun 2017 17:08:14 +0000 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dOS42-0006Ea-ES for linux-arm-kernel@lists.infradead.org; Fri, 23 Jun 2017 17:08:11 +0000 Received: by mail-pg0-x22d.google.com with SMTP id u62so23516068pgb.3 for ; Fri, 23 Jun 2017 10:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=fqOorNAF5nDMoLa1kLS9a9wdA4xC6j2lOxlVc07V38A=; b=D3NgTKCcapKcYPsIQ2kf389qxHHCpd2zYKBGCs+Kd6XAB0evaqm5ce2Wzucf1Tjjw/ 5A/WhU0fh/4k1Wl8/ND0f3JjjUL2TIjXW0Ulg4rum4k/fCkcb6Dey6ZPeCvkRNaPnlyn LphgdHJPIT1bx4wwLrPFY7zKJ6ch1rES59Tj8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fqOorNAF5nDMoLa1kLS9a9wdA4xC6j2lOxlVc07V38A=; b=OrSJ2P0pIjWDlueVobfb6QoWO6pPFwNPOlX9KxaGjIG9bYke7tncvb6s6tT0M1fYrX 0Qm7qN6lt1eMExhNpz8PHe0ttLEISAXManyEfBY9KgJt1Exjzi1zs4eweXqSOLoxpEbv zda6ABSzbQHCeJ6wquBEjTbxrRhXjPLccCQI9ywORCsB0h82G1n4ImrDVU3jY5dy6BKU TdAi8gZVwBeRmCYUJtPkyaw5U7FecYepe0WIdcQe6Ph0kB0OUO21lz1eyOANwgRDrYqG xFTaodDLv20WIBs+hNl2C369tF8qOS82aZYj98na5RYL4tWy/PWO3PW7G8+mu28Mzjtm wIVA== X-Gm-Message-State: AKS2vOx4s95RSB+pYtMHFOkjy11VOSmllHYFPf4D/XRcySjkWcM6juVQ W9U6sbKV1s1K4jtq X-Received: by 10.101.75.133 with SMTP id t5mr8981759pgq.191.1498237668961; Fri, 23 Jun 2017 10:07:48 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id d2sm8336004pfb.49.2017.06.23.10.07.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 10:07:48 -0700 (PDT) From: Brian Norris To: Heiko Stuebner Subject: [PATCH 1/3] arm64: dts: rockchip: Update CPU regulator voltage ranges for Gru Date: Fri, 23 Jun 2017 10:07:35 -0700 Message-Id: <20170623170737.46265-1-briannorris@chromium.org> X-Mailer: git-send-email 2.13.1.611.g7e3b11ae1-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170623_100810_509952_6A0EE0AD X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. 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: Brian Norris , Doug Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org, Caesar Wang 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 From: Matthias Kaehlcke Gru derivatives besides Kevin have slightly different voltage ranges for their CPU regulators. Let's keep the base Gru file accurate and let Kevin override. Signed-off-by: Matthias Kaehlcke Signed-off-by: Brian Norris --- arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 20 ++++++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 16 ++++++++-------- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts index 658bb9dc9dfd..658d63db0d6d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts @@ -264,6 +264,26 @@ ap_i2c_dig: &i2c2 { }; }; +&ppvar_bigcpu { + regulator-min-microvolt = <798674>; + regulator-max-microvolt = <1302172>; +}; + +&ppvar_litcpu { + regulator-min-microvolt = <799065>; + regulator-max-microvolt = <1303738>; +}; + +&ppvar_gpu { + regulator-min-microvolt = <785782>; + regulator-max-microvolt = <1217729>; +}; + +&ppvar_centerlogic { + regulator-min-microvolt = <800069>; + regulator-max-microvolt = <1049692>; +}; + &saradc { status = "okay"; vref-supply = <&pp1800_ap_io>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index eb5059344023..134afe8495b5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi @@ -181,8 +181,8 @@ /* EC turns on w/ ap_core_en; always on for AP */ regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <798674>; - regulator-max-microvolt = <1302172>; + regulator-min-microvolt = <800107>; + regulator-max-microvolt = <1302232>; }; ppvar_litcpu: ppvar-litcpu { @@ -202,8 +202,8 @@ /* EC turns on w/ ap_core_en; always on for AP */ regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <799065>; - regulator-max-microvolt = <1303738>; + regulator-min-microvolt = <797743>; + regulator-max-microvolt = <1307837>; }; ppvar_gpu: ppvar-gpu { @@ -223,8 +223,8 @@ /* EC turns on w/ ap_core_en; always on for AP */ regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <785782>; - regulator-max-microvolt = <1217729>; + regulator-min-microvolt = <786384>; + regulator-max-microvolt = <1217747>; }; ppvar_centerlogic: ppvar-centerlogic { @@ -244,8 +244,8 @@ /* EC turns on w/ ppvar_centerlogic_en; always on for AP */ regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <800069>; - regulator-max-microvolt = <1049692>; + regulator-min-microvolt = <799434>; + regulator-max-microvolt = <1049925>; }; /* Schematics call this PPVAR even though it's fixed */