From patchwork Mon Nov 11 00:51:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 11236375 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 DCF87139A for ; Mon, 11 Nov 2019 00:52:44 +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 A598E206BA for ; Mon, 11 Nov 2019 00:52:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W2LrRSIE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uuUZTZU4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A598E206BA 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-arm-kernel-bounces+patchwork-linux-arm=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: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=d5xIhyz1Py1iIgYC3zRwnJ1zZUcsniiv+8rLCqtdW2w=; b=W2L rRSIEg5MUqe2T/rQJ/V80zPyFTY46m02xchw6eu3+bRorv0oFOslg66D25wdWOEUgznned5lBn8Py MrpiBCLQCs8WdMuOm/VWATKrZqhKK4htqLEKmQBfx+gYW6QTZS2dUVzChlN+1+bfK2VBUoiGbb39E /3G7cFxuDCmB25fpFoYhIODkDWAwTTI3KvLaiFdE/35IDVPYQZYuCaj4aPNni1nByUoqZz9X1Hs27 6doU+AjOzr+B37lLvc5nx/5NpfuuTzwNq3Rg/d2TrPbQ0UriNTC6t4jF2TVv60eG6lZM5vv3FeuCm /mjThPKVgpVSi1UdILdFX/k9BWfwb9A==; 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 1iTxwg-0003eI-UN; Mon, 11 Nov 2019 00:52:43 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iTxwN-0003Nw-Dh; Mon, 11 Nov 2019 00:52:24 +0000 Received: by mail-pg1-x542.google.com with SMTP id z188so2386114pgb.1; Sun, 10 Nov 2019 16:52:19 -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; bh=7JBZMDJ/jQpvGVhkPi30utKHejoieOrOST93jaHrfvk=; b=uuUZTZU4ugdpCAeFHhqDRbg8HA2vYG1ELckLdXzZrkOa3J9YX3rpx3TUbe8gn8j/AR cW5MPpJLNwnQ2F6EOJLzuA8WXQ3RIAbH8AJyX4vZzXgLuTOkCVTyYDA6k2a1JZ80GdMd Kwh3FoIyH3SpQBLtdPaOnPCpLIOEZHFcm+CLf2vR2PyuuwtltWXVipmyjbIubmZGRDgO KToeWqkbgRtYlXi0Thd2U3BuG2RX6WQjpmMrUvY/LlAGzY8g59ZK80J3c3IrGz5VdRyV Yxs5nqzGGqk+axRolveimuomUZoMc8EPNzCZiqwvjYhvsXjykpQnV6m5OhkFP7f2wcYA lFdg== 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; bh=7JBZMDJ/jQpvGVhkPi30utKHejoieOrOST93jaHrfvk=; b=FamIYBhCUt83gNSp9QppQMhh3WsgrwMXnElnEq5cynRtgu1Awy37Sg1NKYZffFEfmd oIagHqQj3sndcnlYMXzrAyF4PJ5pccgvVzaw/P9XPBZ4vfPNk2HHX+04L8vhPMgtppXc YlXDxOtvnpI2uolJiYXs3p39inRl3v8T3iozQw/i+mPM2j8xDYqtFaLUtyg7qGOCi9nL bQDZ8P1rZRBqR2RlOlcR5A7t+8nQWv9ujZlttInwxKZ1VBDf/jzohpgF0oRbCwJxj605 SKh/u4FVBScoWs4W7NHqgCqPTCCGEPg8hV5wdhKvTuqAKK2Dh+Qpt5PLDyaGh6263WyG fXAA== X-Gm-Message-State: APjAAAWAFI91cqqSBKvAPCCfDRZtcnbFeN4YAsPI9+k2w7JFa0ivzZ6m A5rgT42focsqItCrsQQCOb0= X-Google-Smtp-Source: APXvYqwDRChvidhBwhHK5/pGQamQPfZb8pb7/YDluV+1KaXPBs9O8AoWBZkEJTB4TUYKdk4p9DdhvA== X-Received: by 2002:a63:f94e:: with SMTP id q14mr21190084pgk.411.1573433538888; Sun, 10 Nov 2019 16:52:18 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id e8sm12449215pga.17.2019.11.10.16.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 16:52:18 -0800 (PST) From: Kever Yang To: heiko@sntech.de Subject: [PATCH 1/3] arm64: dts: rockchip: Fix min voltage for rk3399-firefly vdd_log Date: Mon, 11 Nov 2019 08:51:56 +0800 Message-Id: <20191111005158.25070-1-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191110_165223_462403_FDD34405 X-CRM114-Status: GOOD ( 10.97 ) 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:542 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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Kever Yang , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The min/max value of vdd_log is decide by pwm IO voltage and its resistors, the rk3399-firefly board's pwm regulator circuit is designed for IO voltage at 1.8V, while the board actually use 3.0V for IO, which at last lead to the min-microvolt to '430mV' instead of '800mV'. Signed-off-by: Kever Yang --- arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts index c706db0ee9ec..92de83dd4dbc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts @@ -206,7 +206,7 @@ regulator-name = "vdd_log"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <800000>; + regulator-min-microvolt = <430000>; regulator-max-microvolt = <1400000>; vin-supply = <&vcc_sys>; }; From patchwork Mon Nov 11 00:51:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 11236369 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 C0EF0139A for ; Mon, 11 Nov 2019 00:52:29 +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 9267120818 for ; Mon, 11 Nov 2019 00:52:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iMCvzIHO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hxXNkML5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9267120818 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-arm-kernel-bounces+patchwork-linux-arm=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=fx8F24gMCXIUACJcsAfi9lzMiLJfeLWeV12eQQQgYS0=; b=iMCvzIHO9JN8a8gKe3Y+JGLPxW v2F8FbOQTMlmpI/+jVqAWd4sTIkm8sX5sEJMqiZWt5fxQCIKAeQJpNlAvLsoo2ZlrO69Hlt/LjIYk OLQclsu5Y8wxBLhBYXlh5c7C/YYzEZ5Yuwq9mU+47n1+5sXdf9SDe6+G9cyciJGc5OAy9z3GyEx8v 7nxRvvSUH2okx7mRVD2OOyoIX7s4gllozxU3Kj3qwgJvSo8xFqS4j7tC0Tx7kabuPA96Qtk/V+JGq 8xHEJP02VhT+Q80P6QvE6VZYH/32CC2OGN20cmzuPyZzl/HAUUbtRB953Ivw7DUXrquuSBmMcIq2u CsiMp8bA==; 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 1iTxwR-0003QG-02; Mon, 11 Nov 2019 00:52:27 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iTxwM-0003O9-Pm; Mon, 11 Nov 2019 00:52:24 +0000 Received: by mail-pf1-x444.google.com with SMTP id s5so9448089pfh.9; Sun, 10 Nov 2019 16:52:22 -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=XhEDQ/cgXNxaPI54oMDT2IYwpDZQqZFGM4s4NbwaGJc=; b=hxXNkML5DhAHSk5FcxWj03eIt/Jw36dBl5uQR9uDzl8ilQmjZo+ytxQnf9rwhhTSaX xWlRWvv/72Bnc+AfP1T2GQOa9+pvMIixcBQ93m+O2ukW+YaFxU4E8SZ9cPTOAZby/bTH +NRp+WyGD5jPsvBVTt6Ijs/CMB4pieWzSHqNNJSZa/64gcuvaLtVl75KClxkedIPl2IR gImQQ/xw0ZnStJ0t44VKS11St/DplbnQxysRIiSwVluprlZX4jaY0oAQXyKhmbkpHWgv QnRu8QGsAkAZHGNAUyzGud1lV2X8yZQN9BfjD7f+Oaeg61tp1F+LTtLi9rxD9fvvnyLX R+oA== 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=XhEDQ/cgXNxaPI54oMDT2IYwpDZQqZFGM4s4NbwaGJc=; b=m/JR/dbVEhdld1EbVySB7BrmLJ8O0a+tVzQx//cntRmf2u5Ju5JsOgptbl7kJTJlPP NJoXzT+nxqLQz8WV21QQhlZHzDk9u3O3aZZKnz3/xevoh/WLsw+i8W6OeMqq1vC6TsGZ 6m4KxdacoyEVgm0mr+MqdXr9OK7VhsQ77kkuMtjo5VFxa9IoHFeSoNtCKP7vrmUkrW7p wu0U3qgfI2Qr3wlW2hw3rAQh09sIF06tWfqjD3HUEwWcOBL8B2M09HYAWfA4XkS8vsbS 8caO/lOmjQbTRVkgUKUt/WzN9v+SsTFJrFhFkwX91BkZLQQpmLZpyq2G/vx3Htdfs0vV GQ7w== X-Gm-Message-State: APjAAAVLaOeYsOIYYr6WkkiP0usB1G9oh7ftvI4+gAKcCjbhbsOfylxK X03G3c0ruWikJPtsIZZkHiDYKyfs X-Google-Smtp-Source: APXvYqwuCk613FSB8w3di7lR26kVpBOHSMi2M6Z2z8SQ3OJOvPTxhs1BT4B4P/dgdpMmYBqgML2SdQ== X-Received: by 2002:a17:90a:a58b:: with SMTP id b11mr4186806pjq.46.1573433542041; Sun, 10 Nov 2019 16:52:22 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id e8sm12449215pga.17.2019.11.10.16.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 16:52:21 -0800 (PST) From: Kever Yang To: heiko@sntech.de Subject: [PATCH 2/3] arm64: dts: rk3399-rock960: add vdd_log Date: Mon, 11 Nov 2019 08:51:57 +0800 Message-Id: <20191111005158.25070-2-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_165222_866816_C1A3C018 X-CRM114-Status: UNSURE ( 8.54 ) X-CRM114-Notice: Please train this message. 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:444 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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Kever Yang , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Jagan Teki , Manivannan Sadhasivam , Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, Akash Gajjar MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add vdd_log node according to rock960 schematic V13. Signed-off-by: Kever Yang Acked-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi index c7d48d41e184..73afee257115 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi @@ -76,6 +76,18 @@ regulator-always-on; vin-supply = <&vcc5v0_sys>; }; + + vdd_log: vdd-log { + compatible = "pwm-regulator"; + pwms = <&pwm2 0 25000 1>; + regulator-name = "vdd_log"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1400000>; + regulator-init-microvolt = <950000>; + vin-supply = <&vcc_sys>; + }; }; &cpu_l0 { 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: 11236379 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 C9CA814ED for ; Mon, 11 Nov 2019 00:53:03 +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 A7991206BA for ; Mon, 11 Nov 2019 00:53:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Pv7aAIlv"; 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 A7991206BA 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-arm-kernel-bounces+patchwork-linux-arm=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=sOujUeSAzXPbneR3hK5V1eHdyAjKBaoc2HdNwv8L+84=; b=Pv7aAIlvo0rt0YfBeH+CTDas4J xAlLSR8U6/84ABpHZRaEO9jUS0x50KbOqxpFLqfG1RgucfdScZdkazXdoZ9lN3rgL5vPBKk+Ky1Qz 17xBP342vhNSdVd6ZNBNHruNGER05VCHmMhkCVQqL49hgiYd5cjtmgF22snEK4iLR/5aBkoV0JWyD R3MZ3CSDyYoyBWtQiXTUBdA3mCEFtBEiMm4txEO8vBxnJBtI6jvryd3HSp3U3/7CZgq5zzEM+05+u gt7jcpUkNvQKDP4NDF9IhXnZDPiVch5eu2qJrq1/EvU2BGTt9s9Eh5TLRF7u1Rmssm1d57gCB1O+O vbFu3t2w==; 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 1iTxx0-0003wW-8L; Mon, 11 Nov 2019 00:53:02 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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>; }; };