Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5588630ybx; Sun, 10 Nov 2019 16:54:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyRC8wamUQLqpKpchAm3zkOy7LcI3/fcHkVwHyAEen0OKWTd+rGkUqXgkZjKEHRMbh1SwRe X-Received: by 2002:a17:906:2ada:: with SMTP id m26mr20353210eje.87.1573433666979; Sun, 10 Nov 2019 16:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573433666; cv=none; d=google.com; s=arc-20160816; b=CwX1ikA6LWSxFEj74+BJpXmbU/jKe5rQKwL0v+QYF4H8GHDtmNOuPKlfbN+ipB7/5T hxnMLBYEOjFIIDokePecCouNYIW0LE8fpT5MrXOwAiblRsrGK9OZ6tL4J9vw87Z8rwm1 1Fj+GnYpKXSFlvVgSVMi6m1wSxMhxvvZVnYPd41jLLTczDImyHZQ99WtMngmwXvvEL1t UAGeL4+8QQc0FVCmt6rKPEucm8QDdOFTgtyJZ6H7pRlaq8O+A6Cf2LYgJsTlLo4uA3jc jCrBIQuplMFIQ3QwpSn9Rikh7xzkCKz08HQSxjhBmUn5cBFgoJDPYScuGewrH31sVIxT KJwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=xYVsNMrMtkwvfwvE55iDXEc/0l3/pWmx2NHWuQN41yw=; b=ekWV6xQJkINkI/quucqF/hDcvaGi2EUOUQNZRgX8caHyNs9+JzbZxuLPFawmOfgTkd FPqlapkcFYms7jBA0XSFe3aaK0885lcktjCAtNFwmoy8svDpPy/APxlahqIuvno7UGaa 2styWTgCZJR+kx3IRwK9uyslZdy0CWxqyF2NiK1qRnJu3eYywgUK9pC3Q7l99hRoYigZ Wvzj6VrUkZdlFy81H2W9mR/uBHHI+xXYZdYJXAGTjdHE6JRna/IEdgLX7AfXqvF+AYk2 1Xsjl5Bm32ClpnVBUu3RLuTrF1OsLop6gR6Fa6sLWewsDXNWMwEDpaBW4W3obz2JtJbA pUIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nt1fK+go; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si8187189ejk.173.2019.11.10.16.54.03; Sun, 10 Nov 2019 16:54:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nt1fK+go; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbfKKAw3 (ORCPT + 99 others); Sun, 10 Nov 2019 19:52:29 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35058 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfKKAw3 (ORCPT ); Sun, 10 Nov 2019 19:52:29 -0500 Received: by mail-pf1-f193.google.com with SMTP id d13so9492123pfq.2; Sun, 10 Nov 2019 16:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=xYVsNMrMtkwvfwvE55iDXEc/0l3/pWmx2NHWuQN41yw=; b=nt1fK+gox6il/z0hOVtieY6g0sPXcUzqeuQj03ZA/asU0uWpnFTgOI4SpKsrPIheh9 g3NMtgawH6CkXRhIMErwYad5jbVclB4+Gwd6cw5SE8AOQZgdYuTN5f5NkDoxwoDFiDCD lxJuto0FER2+NKf2ownfFUrJochZz7baaQ0JXAt5jWOm9e/TSR3xOwYu2of/y/9BcVfx ynl0N3SSWzdWTIbSKuq6v/kpMV78Yf/HKEAMRGDTwTHmXmae2hdE5d/MCBY1RC5JC8pi NK0LljHTXjKIyXRRub8kzblF8Ks31j2zdt707lEgzMPvzLyRpU0Be/4SUXiGCaFL3Imy OcVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=xYVsNMrMtkwvfwvE55iDXEc/0l3/pWmx2NHWuQN41yw=; b=h8GCJRnIn9vaT/OkCIyaV5Lu1ubU0y7/DZQ5lrStlUKG5OKOQL3EXx8hyEw3GePGtr daNm5FztU5xeZ4kv7hb6HBe+VyqkIB95yjteyH3Mm+gWDOSLT97O197TisVggXqUN2kG NOz50vjW1aMkRWG3vRhpfwvq0xC6fsj1S63lL0K2aBRaUUN9A0D9v0gWtbqg3rWRFLPY b3Chnhal62gYsrCMSe4VLnt/K4ZQwCzFxR271B9Ru4FX+FzKwXpHR1NwsBuFKB9miLsA 46PK5B1J0TvQ+8OA6v7PlBXihyBVCZN1GI6Igrl/JMPcK08EvtA9v4MkojcZNAJIBmED onPg== X-Gm-Message-State: APjAAAW5qsiYpKvGdwU5jXktvKiKphN5WFcW5iYT2PonVjC/+qiyUMTm LTs7qoLk9XykMhW0yMpoer0= X-Received: by 2002:a63:ae02:: with SMTP id q2mr26208411pgf.210.1573433547047; Sun, 10 Nov 2019 16:52:27 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id e8sm12449215pga.17.2019.11.10.16.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 16:52:26 -0800 (PST) From: Kever Yang To: heiko@sntech.de Cc: linux-rockchip@lists.infradead.org, Kever Yang , Elaine Zhang , Peter Robinson , Akash Gajjar , Alexis Ballier , =?UTF-8?q?Andrius=20=C5=A0tikonas?= , Andy Yan , Ezequiel Garcia , Hugh Cole-Baker , Katsuhiro Suzuki , Mark Rutland , Nick Xie , Oskari Lemmela , Pragnesh Patel , Rob Herring , Robin Murphy , Soeren Moch , Vicente Bergas , Vivek Unune , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: rk3399: Add init voltage for vdd_log Date: Mon, 11 Nov 2019 08:51:58 +0800 Message-Id: <20191111005158.25070-3-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191111005158.25070-1-kever.yang@rock-chips.com> References: <20191111005158.25070-1-kever.yang@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since there is no devfreq used for vdd_log, so the vdd_log(pwm regulator) will be 'enable' with the dts node at a default PWM state with high or low output. Both too high or too low for vdd_log is not good for the board, add init voltage for driver to make the regulator get into a know output. Note that this will be used by U-Boot for init voltage output, and this is very important for it may get system hang somewhere during system boot up with regulator enable and without this init value. CC: Elaine Zhang CC: Peter Robinson Signed-off-by: Kever Yang --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi | 1 + arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 1 + 9 files changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts index 77008dca45bc..fa241aeb11b0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts @@ -65,6 +65,7 @@ regulator-name = "vdd_center"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; regulator-always-on; regulator-boot-on; status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts index 92de83dd4dbc..4e45269fcdff 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts @@ -208,6 +208,7 @@ regulator-boot-on; regulator-min-microvolt = <430000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; vin-supply = <&vcc_sys>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts index c133e8d64b2a..692f3154edc3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts @@ -100,6 +100,7 @@ regulator-name = "vdd_log"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; regulator-always-on; regulator-boot-on; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi index 4944d78a0a1c..c2ac80d99301 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi @@ -79,6 +79,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; vin-supply = <&vsys_3v3>; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts b/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts index 73be38a53796..c32abcc4ddc1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts @@ -101,6 +101,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; vin-supply = <&vcc5v0_sys>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts index 0541dfce924d..9d674c51f025 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts @@ -164,6 +164,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; vin-supply = <&vcc_sys>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts index 19f7732d728c..7d856ce1d156 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts @@ -129,6 +129,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; vin-supply = <&vcc3v3_sys>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts index e544deb61d28..8fbccbc8bf47 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts @@ -174,6 +174,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1700000>; + regulator-init-microvolt = <950000>; vin-supply = <&vcc5v0_sys>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index 1bc1579674e5..f8e2cb8c0624 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi @@ -133,6 +133,7 @@ regulator-boot-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; vin-supply = <&vcc_sys>; }; }; -- 2.17.1