From patchwork Mon Nov 11 00:51:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 11236377 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E014A14ED for ; Mon, 11 Nov 2019 00:53:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AE9AA206BA for ; Mon, 11 Nov 2019 00:53:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FindiC8k"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nt1fK+go" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE9AA206BA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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=jyujo7sLD1IBmICryLmxyKju+vHzkPp1R0EpATeu/tg=; b=FindiC8kTN4gjg6/Uoj2Kjt/e6 70rRhHC6811o9TnTLqy1t63CoG+ySTLrEH/C9h5PphCnMtRyLiITrNA7/nqn4nkCyJ/+HCDy9Oir/ fYSJfCoQkXNS+B6ZgoCso2BI2TUogzLlbn6QoW0ooY1VnYqCcUS/WtnHQkXNgtzf9KBxyo16Ilk1H T0i38O7oq1LJZ+vezYmptOtslm4qnJ94k+Zdq8DVLo33OeOcil0CY4+Gij9j4MsHqBOw/eVX7xRHp Sj1p9XfD0g+a2yq6L59HRusq/Hn9xxKU2kSKLFX3goYaBjDCchOzz4GtMfXCSnE9YnE1HSChbg0AJ DjyVofTw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iTxwv-0003tn-EN; Mon, 11 Nov 2019 00:52:57 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iTxwS-0003Qx-14; Mon, 11 Nov 2019 00:52:29 +0000 Received: by mail-pf1-x443.google.com with SMTP id r4so9456870pfl.7; 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=HbB4ihkvcvoRgbEzlb4JHxOAulkpJDrxTcPhKYbtX0f6GiIJq8CAeN4ZMxE/GX1lvq XqJQNd1lPnvQSss1ssbMJAqvpe9Fn5HRMfGVhYqVZ1maYFF8F6zGxbHyYZqiarEsBd1p 3QMLEO4J7tC9Fp7L+0CpFSLd1jkKm7JS/ExNH5bMZTZc3fj/nslTw1ae2nhFJlknkvWl RJbpRutMVv1qbWpshn/kvNMbiQTSMSETT7NRZnvnic7+o7ag1DaEweF6q5wByadgIyjp GoUbAOjj4zSv7i8fxSNzSYMFWbT90KKg3DmDFZ4fW+GFBBM0d6Ecj3D9xAMK0lBaj+A0 bANQ== X-Gm-Message-State: APjAAAVNRsTEdWWQLCpyw4f4qoja+h3dcc/vc50qMvhx6+aD4S3GXUJ9 V3lM2OuPuKX8SsI+Cdm8TYWU10Lt X-Google-Smtp-Source: APXvYqyDnNrIq2s09BxFo2ZrvC/Ca6XsjHDrsYlX4ajb6ZtC25zUb/GHmP8nX9AC8PR3KkOCpUREVg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191110_165228_160481_1CC8534A X-CRM114-Status: GOOD ( 10.75 ) X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:443 listed in] [list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kever.yang[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Alexis Ballier , Kever Yang , Soeren Moch , Hugh Cole-Baker , Andy Yan , Katsuhiro Suzuki , linux-rockchip@lists.infradead.org, Pragnesh Patel , Peter Robinson , Nick Xie , devicetree@vger.kernel.org, Elaine Zhang , Vicente Bergas , Rob Herring , Akash Gajjar , Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andrius_=C5=A0tikonas?= , linux-kernel@vger.kernel.org, Oskari Lemmela , Robin Murphy , Vivek Unune MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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>; }; };