Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp235992ybc; Tue, 12 Nov 2019 00:14:31 -0800 (PST) X-Google-Smtp-Source: APXvYqznc0OW+2WJr2rQNk5bpup30rPDWElOLv6jEHY8TAtwHYuNt9RWm48uB9jfR2ua8HGHrcJd X-Received: by 2002:a17:906:68d9:: with SMTP id y25mr2452543ejr.136.1573546471135; Tue, 12 Nov 2019 00:14:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573546471; cv=none; d=google.com; s=arc-20160816; b=pgDmaC7fOfLhO6pVPXOcXcvHj7jyHctS3BEV/8cyUOkOeGK+x9PJtSahCkYfTW0dGr YsiuTcmiBBSVfjL31IAWvcuJ+O8Hs7FOjwPE/89hwhdaH4C64K0uUzWWF0+6NCH2H4F6 amfn0QxiKXp/+4dtlp9OK9HVD22Oc1uyqqmEetVMe/mmSZNxfjiMzjyxH2Mj0buFyWQc V+LKBBg69tdAz85XDHKsCQ+DXqREv4FTkkL0iPmKur4JCt7OR19IwthFJUwuKCVShZvT 2qzni8H4KV6ve55qDEqkx+hstDnLhve7qsh5/FhcXC7hqSCal/r5nL4vvxCvMVP/7xM2 jhDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QzkRHq9sXd03RAwE61JTdcucmkcPu1PKQONtwYb9hso=; b=nzDNobOBSD2hELK+S7bYM+lIuM3UPjB5Kk4Zjkh/9hahUQdYVxcmbctbLAPZqt0WRf gQDXVGhdtzSxDdb3Q3tg0L19Q0aEqHACkmuy5IRFiLCP1NTtpIw0fq6S0c9uHVqGEHZc /4XAeFOfBuxHwfnhtjKlY6pKgKCOwJr9KViwijvC/o4C8wB0P7JLrwavOAJKC9P5oi9B LCmv5WfxgFlZUcz/TsfHcPkT/+gtst1NxWXeU5hDH4yeDPIqQM+ut6S8OYar6Fcs7YeE xdL6kJGBvNavwbgk7rJRidKpGyeqdhbyRYIkDl6OmIToIRqVa+Wjyt11R/22wrhvapYA CqxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c31si12545011edb.56.2019.11.12.00.14.06; Tue, 12 Nov 2019 00:14:31 -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; 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 S1727183AbfKLIM2 (ORCPT + 99 others); Tue, 12 Nov 2019 03:12:28 -0500 Received: from regular1.263xmail.com ([211.150.70.205]:53274 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfKLIM2 (ORCPT ); Tue, 12 Nov 2019 03:12:28 -0500 Received: from localhost (unknown [192.168.165.103]) by regular1.263xmail.com (Postfix) with ESMTP id 4ACCB3F3; Tue, 12 Nov 2019 16:05:07 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from [192.168.60.65] (unknown [103.29.142.67]) by smtp.263.net (postfix) whith ESMTP id P28956T140214521083648S1573545889847809_; Tue, 12 Nov 2019 16:05:05 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: kever.yang@rock-chips.com X-SENDER: yk@rock-chips.com X-LOGIN-NAME: kever.yang@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 3/3] arm64: dts: rk3399: Add init voltage for vdd_log To: Soeren Moch , heiko@sntech.de Cc: linux-rockchip@lists.infradead.org, Elaine Zhang , Peter Robinson , Akash Gajjar , Alexis Ballier , =?UTF-8?Q?Andrius_=c5=a0tikonas?= , Andy Yan , Ezequiel Garcia , Hugh Cole-Baker , Katsuhiro Suzuki , Mark Rutland , Nick Xie , Oskari Lemmela , Pragnesh Patel , Rob Herring , Robin Murphy , Vicente Bergas , Vivek Unune , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20191111005158.25070-1-kever.yang@rock-chips.com> <20191111005158.25070-3-kever.yang@rock-chips.com> From: Kever Yang Message-ID: <1eaef5d5-c923-da56-b9c4-48d517b3c969@rock-chips.com> Date: Tue, 12 Nov 2019 16:04:49 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/11/11 下午4:42, Soeren Moch wrote: > On 11.11.19 01:51, Kever Yang wrote: >> 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. > I think it's a good idea to include this setting in the main dts for the > boards (not in u-boot specific additions as is done now). But there is > (for some reason?) no documented binding for regulator-init-microvolt in > linux. Ohh, I forgot the kernel driver does not support this property. @Heiko, can we add this 'regulator-init-microvolt' without driver support but adding document for it at dt-binding? Thanks, - Kever > > Regards, > Soeren >> 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>; >> }; >> };