Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1253917ybv; Sun, 23 Feb 2020 02:38:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxFfom+jYAuKPoYfQ3vO9T2Xkbp1U968i8W7j8wqmWMbQG9Yebs5F03U8XBWRl5MZ2/BgkY X-Received: by 2002:a9d:7f11:: with SMTP id j17mr38402964otq.281.1582454306015; Sun, 23 Feb 2020 02:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582454306; cv=none; d=google.com; s=arc-20160816; b=xbmjpce0sTSKiDtdIGL+VIBHFiaguONIiBDJlwX/pOZzWph8S2I79FIkEww7TBxTbE GMx4T8Omb3ZT/uCmKdQDkxtyI715r8pwv2tHo9h8QgzQH3orBf6S/TE8EK8BHM75KKg2 re2XaO027UuA8cwI+ud04QZVSon6foRBDfKdiYnBKLXFjQtZ8tyO4/9R1Y4MqJgvAu7r 7jmEcBTkIWJxZ71evWFYa4f5KkDUMOSKaKUpF6wfFdFLZ7ZcXvOcAoux9iS5uEi+a0u7 JfHfWxlai0t3YlUyQS8KfwNFBwEI3pQyvfdPskgjgM/ttAguA/W9ktzercaj8vWWtRGw PTjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=piTtIxpGXsh+WtQHxy0ktUKfkMzpEJFpTKVqND8Bl+Y=; b=T1pE+YsIxQr8mLlCxNsSYpR+HhQL4rM74MLhaoyGVCqR2EsG6V0PpEmHcoevb9xcRn KZ9X+Ke8AUsKrTjzvG9Ssv1FOWlKzml/5S0oXVJgHP102j9PornlaZgYBbd8oi47hbRG 5LAbharm+njZgjwZmT8NpokL53zOZo3M2Uq6MATKYuNFjjg0OHGSZGEVLwekl9PVAODv lZ+PmSHIGT4ZU+YGLuBdikpu02/7PosOa61EuVYGp84DnCv2158kE8KwNb6/COFDEjTv ps0YU1EDqQjqPh3r0Cz+UkL8fISS1h/zCSyKXzdtxFJVL9jq4ATfHNhbiJAvMlSychZg RsfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=ASvUC3zf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si4452454otk.173.2020.02.23.02.38.14; Sun, 23 Feb 2020 02:38: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=pass header.i=@megous.com header.s=mail header.b=ASvUC3zf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727165AbgBWKhj (ORCPT + 99 others); Sun, 23 Feb 2020 05:37:39 -0500 Received: from vps.xff.cz ([195.181.215.36]:41764 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbgBWKhi (ORCPT ); Sun, 23 Feb 2020 05:37:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582454257; bh=F25Sml78iMjr19VTKxWNGaFjBxZ6Zvw7TPMvdEJ0DF4=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=ASvUC3zf8QJbFhXlpMHCkWZXJ4yNj/Er35jQ9uYfRm12wUeXCv+IZsFmYNnteKbk5 +JyoBmlQhB6r4G2ZFAEg+OgaJAjsX0O9Kbcoyl+J1bbDbkJQc7oojR/f0lhdJLaVEu OodwRFVhGKOfUkl3hMi7Ghobo7toW5CF5vA4nB08= Date: Sun, 23 Feb 2020 11:37:36 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Samuel Holland Cc: linux-sunxi@googlegroups.com, Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , "moderated list:ARM/Allwinner sunXi SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [linux-sunxi] [PATCH] arm64: dts: sun50i-h5-orange-pi-pc2: Add CPUX voltage regulator Message-ID: <20200223103736.5uigz2nvvee3w5yr@core.my.home> Mail-Followup-To: Samuel Holland , linux-sunxi@googlegroups.com, Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , "moderated list:ARM/Allwinner sunXi SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <20200222214541.210318-1-megous@megous.com> <92a2b808-8280-7ad4-cfb4-8ff9488c02c8@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92a2b808-8280-7ad4-cfb4-8ff9488c02c8@sholland.org> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Samuel, On Sat, Feb 22, 2020 at 09:26:30PM -0600, Samuel Holland wrote: > Hi Ondrej, > > On 2/22/20 3:45 PM, Ondrej Jirman wrote: > > Orange Pi PC2 features sy8106a regulator just like Orange Pi PC. > > > > Signed-off-by: Ondrej Jirman > > --- > > .../dts/allwinner/sun50i-h5-orangepi-pc2.dts | 29 +++++++++++++++++++ > > 1 file changed, 29 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts > > index 70b5f09984218..5feedde95b5fc 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts > > @@ -85,6 +85,10 @@ reg_usb0_vbus: usb0-vbus { > > }; > > }; > > > > +&cpu0 { > > + cpu-supply = <®_vdd_cpux>; > > +}; > > + > > This should go alphabetically after "codec". > > > &codec { > > allwinner,audio-routing = > > "Line Out", "LINEOUT", > > @@ -180,6 +184,31 @@ flash@0 { > > }; > > }; > > > > +&r_i2c { > > This should go alphabetically before "spi0". > > > + status = "okay"; > > + > > + reg_vdd_cpux: regulator@65 { > > + compatible = "silergy,sy8106a"; > > + reg = <0x65>; > > + regulator-name = "vdd-cpux"; > > + silergy,fixed-microvolt = <1200000>; > > The resistors in the datasheet (10k/11.8k) make this 1.1V. Ah, you're right. I didn't notice the fine print bellow: https://megous.com/dl/tmp/e696b6042b80bf2e.png only the big number above. Hehe. > > + /* > > + * The datasheet uses 1.1V as the minimum value of VDD-CPUX, > > + * however both the Armbian DVFS table and the official one > > + * have operating points with voltage under 1.1V, and both > > + * DVFS table are known to work properly at the lowest > > + * operating point. > > + * > > + * Use 1.0V as the minimum voltage instead. > > + */ > > The datasheet I have for H5 has "TBD" for the VDD-CPUX volatage range. I think > this comment only applies to H3 and is not necessary here. Ok. > > + regulator-min-microvolt = <1000000>; > > + regulator-max-microvolt = <1400000>; > > + regulator-ramp-delay = <200>; > > + regulator-boot-on; > > + regulator-always-on; > > + }; > > +}; > > + > > &uart0 { > > pinctrl-names = "default"; > > pinctrl-0 = <&uart0_pa_pins>; > > > > Otherwise, > Reviewed-by: Samuel Holland Thanks for the feedback. regards, o. > Regards, > Samuel