Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19953610ybl; Sat, 4 Jan 2020 13:24:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwGXnU6gAZs8VsG8oi3lZunvF9+xmv9QwMPAFkU31cf07EapLYjrGbwhwUI5/yCGyfXJsIA X-Received: by 2002:a05:6830:15d0:: with SMTP id j16mr8133449otr.65.1578173045368; Sat, 04 Jan 2020 13:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578173045; cv=none; d=google.com; s=arc-20160816; b=mSbHH8B35rb+S0CjRSmV1izSa62GecZYYjkXoITo0/WhcymK5oFNjg2SzlUZkI8Cc8 m7V+3IZFNb1zTEAYQrNF3EI+sscNTf2WLNNL1QcSvw2dBnn07phJFe4az4O+G4sXKRvM x4J9r57l/UkhOs9XhI4D//qcaX08RFRFc5UqYyBuQspV3OUAIkQSp2+RByiuFo9HOYhV Kdeyde4ILDnGuPccArcsgpmsts4V/+rHhjj/N/yA5FAv5dmuFmNs+LNYr1Oae4fO3C1d Co2I5gk9G0GqWGkxF/I7PSo9p/9UXYeG0lB3WOLftzIfhY9qZZkbXGPmx0KszRs/Vbkm +S5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=E/B1BlZz+bpRb01DBVT4cOlC4BB/MSUhQVNInAtllyg=; b=vHRaUOlhtVMZNNQGBIpmdX9kDYkM/pUkmyfmRmOKVuuub4Lpn41uXhWIe2B5lUtPJv i2w3/OXgDFJNi7xKQ0Ht9y/CxWnDcth8syI6zQYBhaVP7Cyp94rh/mFCS2vSCIeJOeMj mTQUkRNc59iWgXShJbCNhm9JhSDs8DBvXQaEm9L1nlYIg6FcvSzBtEENALZ5Wvzptigf FVUm0e9DvvV9a7GZo3pPIZdOUcJ769BEMsgAv1tkZ9eDxiN6LAbTr52uo6y44AarjQE6 ibfSysKLSrGz3KYFdgLnSvg2vVQzEi4z/ZOmvESzx4L+vbjwBdL2EAR2c/hCikA8YkWZ GjxA== 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 u16si29326389oia.233.2020.01.04.13.23.53; Sat, 04 Jan 2020 13:24:05 -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 S1726358AbgADVXM (ORCPT + 99 others); Sat, 4 Jan 2020 16:23:12 -0500 Received: from gloria.sntech.de ([185.11.138.130]:56090 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgADVXM (ORCPT ); Sat, 4 Jan 2020 16:23:12 -0500 Received: from p508fd2bb.dip0.t-ipconnect.de ([80.143.210.187] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1inqsy-00048F-1e; Sat, 04 Jan 2020 22:23:04 +0100 From: Heiko Stuebner To: Markus Reichl Cc: linux-rockchip@lists.infradead.org, Rob Herring , Mark Rutland , Jagan Teki , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] arm64: dts: rockchip: Enable mp8859 regulator on rk3399-roc-pc Date: Sat, 04 Jan 2020 22:23:03 +0100 Message-ID: <11639547.aalzkRAYeW@phil> In-Reply-To: <20200104153321.6584-6-m.reichl@fivetechno.de> References: <20200104153321.6584-1-m.reichl@fivetechno.de> <20200104153321.6584-6-m.reichl@fivetechno.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Markus, Am Samstag, 4. Januar 2020, 16:32:49 CET schrieb Markus Reichl: > The rk3399-roc-pc uses a MP8859 DC/DC converter for 12V supply. > This supplies 5V only in default state after booting. Just for my understanding ... both the old static regulator before as well as the new i2c node said to supply 12V, but above you say that the default is 5V ... so I'm wondering who configured the 12V before. Or was it the case that the old regulator node was just wrong and we had 5V running on the dc_12v line? Thanks Heiko > Now we can control the output voltage via I2C interface. > Add a node for the driver to reach 12V. > > Signed-off-by: Markus Reichl > --- > .../boot/dts/rockchip/rk3399-roc-pc.dtsi | 32 +++++++++++-------- > 1 file changed, 18 insertions(+), 14 deletions(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > index 8e01b04144b7..9f225e9c3d54 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > @@ -110,20 +110,6 @@ vcc_vbus_typec0: vcc-vbus-typec0 { > regulator-max-microvolt = <5000000>; > }; > > - /* > - * should be placed inside mp8859, but not until mp8859 has > - * its own dt-binding. > - */ > - dc_12v: mp8859-dcdc1 { > - compatible = "regulator-fixed"; > - regulator-name = "dc_12v"; > - regulator-always-on; > - regulator-boot-on; > - regulator-min-microvolt = <12000000>; > - regulator-max-microvolt = <12000000>; > - vin-supply = <&vcc_vbus_typec0>; > - }; > - > /* switched by pmic_sleep */ > vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { > compatible = "regulator-fixed"; > @@ -546,6 +532,24 @@ fusb0: usb-typec@22 { > vbus-supply = <&vcc_vbus_typec0>; > status = "okay"; > }; > + > + mp8859: regulator@66 { > + compatible = "mps,mp8859"; > + reg = <0x66>; > + dc_12v: mp8859_dcdc { > + regulator-name = "dc_12v"; > + regulator-min-microvolt = <12000000>; > + regulator-max-microvolt = <12000000>; > + regulator-always-on; > + regulator-boot-on; > + vin-supply = <&vcc_vbus_typec0>; > + > + regulator-state-mem { > + regulator-on-in-suspend; > + regulator-suspend-microvolt = <12000000>; > + }; > + }; > + }; > }; > > &i2s0 { >