From patchwork Wed Feb 12 23:46:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 212878 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2878FC47409 for ; Wed, 12 Feb 2020 23:46:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3FA8206B6 for ; Wed, 12 Feb 2020 23:46:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PG7Udi8b" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729436AbgBLXqw (ORCPT ); Wed, 12 Feb 2020 18:46:52 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44289 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729428AbgBLXqp (ORCPT ); Wed, 12 Feb 2020 18:46:45 -0500 Received: by mail-lj1-f193.google.com with SMTP id q8so4394901ljj.11; Wed, 12 Feb 2020 15:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xq9tBk/6KoDVPMtQ/rhYvGgBAgv98Cu3SgI5vW4OCek=; b=PG7Udi8bcc2n1H3a05otjSOGGZCtsp6Rn9pVmskrOMGeztPARSLFX0O2ABD02/dlX4 XlBM5H9j8o9N2gKre+eTpgRf9oErS/UpIierdVRE9nPOTVWySlNP137HzqxNbYqoR3Co T6ouxcfB/eAPrkwLbT+QoUCqoe0IzrS1b9iEffsMAaRn3BYf43C59oew3KC5aZ8/Z58x hENhGeecIMAr/RGpgEPizN+rjuXfngJBxrLNotxMag5tqJkdhBK8uB/rP30SpZBv+dVM kEAEGKK12rnPYziQdpCu2ATub2fbMAN1JeknXmC2sfB4QLGrT6RIEznz8U5G9i33okcM t5dA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xq9tBk/6KoDVPMtQ/rhYvGgBAgv98Cu3SgI5vW4OCek=; b=r5ruepCdM5w0FroFneNdV1/JUT+ZmQWKOj/29V+Zts5+dbVgEGaFiZNL7jKCkfZ5CC xFE69HJW99BnXmzciMZa/CHSyNJFSC4oHCviiQTXj1vnlaC9U4DqRWgA1Y2jLJUPuQY7 yA/wyqSFAqOhjtnsz/+FIuAxecO14SEX9GdqUGdk+PYxah26gwQ32wR3nkXFQUdK1fnF g2RkaZytx+bP8agCIyXCfR7JhZJ0DW3sNSxFxn9J4wWrcUi/Nu/c+NLSwW/CvpPqDu4S R6qwWjbScfBiNNutPyfoIYlyFNoYODbGzUiPN9qBf4EgpCZqYVOwZj8SrLRqvnLyxn7G /YsQ== X-Gm-Message-State: APjAAAUWeB4pQQkjitqfTQqP+76JjfMjYLCCVITWrxGCMi55YWuMychI tgTIUGArE+oofSAtRA8Exbc= X-Google-Smtp-Source: APXvYqyvFrklEk7ubbXdiW8Kd821C04G0XWZws5U+xsziFH/pjA21sNz4bQ+O/HFWS2tepUSkdm8pg== X-Received: by 2002:a2e:a0d0:: with SMTP id f16mr9166327ljm.130.1581551202375; Wed, 12 Feb 2020 15:46:42 -0800 (PST) Received: from localhost.localdomain (79-139-233-37.dynamic.spd-mgts.ru. [79.139.233.37]) by smtp.gmail.com with ESMTPSA id u15sm234453lfl.87.2020.02.12.15.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 15:46:41 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , "Rafael J. Wysocki" , Viresh Kumar , Michael Turquette , Stephen Boyd , Peter Geis , Nicolas Chauvet , Marcel Ziswiler , =?utf-8?b?TWljaGHFgiBN?= =?utf-8?q?iros=C5=82aw?= , Jasper Korten , David Heidelberg Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 11/12] ARM: dts: tegra30: beaver: Set up voltage regulators for DVFS Date: Thu, 13 Feb 2020 02:46:06 +0300 Message-Id: <20200212234607.11521-12-digetx@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200212234607.11521-1-digetx@gmail.com> References: <20200212234607.11521-1-digetx@gmail.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set min/max voltage and couple CPU/CORE regulators. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30-beaver.dts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/tegra30-beaver.dts b/arch/arm/boot/dts/tegra30-beaver.dts index a3b0f3555cd2..6ebb3105af9e 100644 --- a/arch/arm/boot/dts/tegra30-beaver.dts +++ b/arch/arm/boot/dts/tegra30-beaver.dts @@ -1806,9 +1806,14 @@ vdd2_reg: vdd2 { vddctrl_reg: vddctrl { regulator-name = "vdd_cpu,vdd_sys"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1250000>; + regulator-coupled-with = <&core_vdd_reg>; + regulator-coupled-max-spread = <300000>; + regulator-max-step-microvolt = <100000>; regulator-always-on; + + nvidia,tegra-cpu-regulator; }; vio_reg: vio { @@ -1868,17 +1873,22 @@ ldo8_reg: ldo8 { }; }; - tps62361@60 { + core_vdd_reg: tps62361@60 { compatible = "ti,tps62361"; reg = <0x60>; regulator-name = "tps62361-vout"; regulator-min-microvolt = <500000>; regulator-max-microvolt = <1500000>; + regulator-coupled-with = <&vddctrl_reg>; + regulator-coupled-max-spread = <300000>; + regulator-max-step-microvolt = <100000>; regulator-boot-on; regulator-always-on; ti,vsel0-state-high; ti,vsel1-state-high; + + nvidia,tegra-core-regulator; }; };