Received: by 10.213.65.68 with SMTP id h4csp70007imn; Fri, 30 Mar 2018 00:52:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XDun81SqBNusW2Rnmr6Bk+SrMK3dKXpuswQCCrpFl2E3hnRsdJc0bFzKGJyXn8EE5MT+G X-Received: by 10.99.107.72 with SMTP id g69mr7730207pgc.337.1522396322138; Fri, 30 Mar 2018 00:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522396322; cv=none; d=google.com; s=arc-20160816; b=jbX7Kqj58sPM7MV+IBXPvA6z/VQ4N4Qd65hz+4chn6fJ+nKVL+Sf+sZOhAYEdPD301 OgY4xHRLd48VI2nxh/rdWppoIkhMfLvsIGyHOasN4Cj28K+388dB/dTWYmYXEHdNXELe k4RIvf/dZkCBMfzLfazpL9ZvjAba9o5Wbtcx6ZNNFVrQjmO/a+p0zjvQCBhiAClcLBE2 lquXkH/HzmdWMaUyU6QFM/BBI2kGd3OfdTV7ysCLa1XTeiKDOkcTi4d4FCyqvZBukMrp UyQaRJwxx+nTRpyviosIvWdAdXTwSvvGVZ6Tr3XxVtUj/3OJ7W4CELQAH8OyUIbCLrlT 2+4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=qIz0/OLw4GfTkplU83Xc0zdOnHyoUpYQFdcwMPk16XE=; b=xxk1HUUmTVczt6EZMx8tQHDrVEg3QtNwmXxhnEDthP2ZOKKiIV/ISaCrKc8HXJx0PC sUtHam5KNhRXxY56DXQR3Z31DOZdAT/u7eiAhITj7//Ylxm6y81+Fc9KmE5MorojBsSs orl+TSQmRFWgAGYrG/HnBzY+2yJgw1vllXgSvteWxLjn3e6LqFFhMCiMRNrIWI+oYrLt PwBrI+0+2KeGCvMvOjQo3PoGeEIRmJvFT0LgsCp5Qsc4sS+str20fR0Yo6PGzp/BOLpT 5T10wmyK33cMRqFAv/oorulf6lcYJl8cmSW+Xn3V5ntfImwp/ILTO2IMcyzY9l6STDiZ yfQA== 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 a92-v6si7864049pla.107.2018.03.30.00.51.49; Fri, 30 Mar 2018 00:52:02 -0700 (PDT) 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 S1752171AbeC3Ht1 (ORCPT + 99 others); Fri, 30 Mar 2018 03:49:27 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40707 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752087AbeC3HtY (ORCPT ); Fri, 30 Mar 2018 03:49:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id x4so15368883wmh.5; Fri, 30 Mar 2018 00:49:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qIz0/OLw4GfTkplU83Xc0zdOnHyoUpYQFdcwMPk16XE=; b=HtdVlUoMXULz1EW+UEWPVgtD3QHqecFvkhsZucXhJfJvJ68lHkQaNgOmidg64TuRqt /JFK1MJiyId+sJFGKYFy1gx/0NeDRxyqoAbvZdpm5W2LMdQX93Z3+BOh7CbHg8BOQKIb Kwpx/Dmsgu/B/WIFRArNA20p9NTgW3W7CC0tvdLCJIpf0VGlPKSLE61PAiDHHA2tJHJG 3xtkJj8y8W/QZ2iKNTyqYDndqbulGilfAPbNjEny43yYb8+TUYUMrpFCGe372kLTOknW Mes2U0CxEuLLnN/HfeyXhy6v/eq5gew4PnHpka/46b/wl2lUtXyI0QJxVKGtf4qGD4PC dkrg== X-Gm-Message-State: AElRT7HZkV+BhvNMHHoRuKB6ULkP6961CAIf0kQ94CgtegG4SNtAKXRX 9SlMp03b6zk2toIGLa/LbUomnrxQ X-Received: by 10.80.147.89 with SMTP id n25mr1971946eda.189.1522396162542; Fri, 30 Mar 2018 00:49:22 -0700 (PDT) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com. [74.125.82.42]) by smtp.gmail.com with ESMTPSA id w10sm5209300eda.66.2018.03.30.00.49.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Mar 2018 00:49:21 -0700 (PDT) Received: by mail-wm0-f42.google.com with SMTP id l16so15502385wmh.3; Fri, 30 Mar 2018 00:49:21 -0700 (PDT) X-Received: by 10.28.15.78 with SMTP id 75mr1429397wmp.16.1522396161594; Fri, 30 Mar 2018 00:49:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.164.129 with HTTP; Fri, 30 Mar 2018 00:49:01 -0700 (PDT) In-Reply-To: <20180206044905.30508-7-icenowy@aosc.io> References: <20180206044905.30508-1-icenowy@aosc.io> <20180206044905.30508-7-icenowy@aosc.io> From: Chen-Yu Tsai Date: Fri, 30 Mar 2018 15:49:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v2 06/10] ARM: sun8i: h2+: add SY8113B regulator used by Orange Pi Zero board To: Icenowy Zheng Cc: Liam Girdwood , Rob Herring , Maxime Ripard , linux-kernel , devicetree , linux-arm-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 6, 2018 at 12:49 PM, Icenowy Zheng wrote: > Orange Pi Zero board has a SY8113B regulator, which is controlled via > GPIO and capable of outputing 1.1V when the PL6 GPIO is set to output 0 > or 1.3V when the PL6 GPIO is set to input or output 1, and the output is > the power supply of the ARM cores in H2+ SoC. > > Add the device tree node of this regulator and set the cpu's cpu-supply > property to it. > > Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai However, > --- > No changes in v2. > > arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts > index 6713d0f2b3f4..34fc35737090 100644 > --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts > +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts > @@ -94,6 +94,27 @@ > reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; > post-power-on-delay-ms = <200>; > }; > + > + reg_sy8113b: gpio-regulator { You might want to change the node name to something a bit more specific, like vdd-cpux-regulator. This would decrease the chance of name collisions, either from other additions or device tree overlays. ChenYu > + compatible = "regulator-gpio"; > + regulator-name = "vdd-cpux"; > + regulator-type = "voltage"; > + regulator-boot-on; > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1300000>; > + regulator-ramp-delay = <50>; /* 4ms */ > + > + gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ > + enable-active-high; > + gpios-states = <0x1>; > + states = <1100000 0x0 > + 1300000 0x1>; > + }; > +}; > + > +&cpu0 { > + cpu-supply = <®_sy8113b>; > }; > > &ehci0 { > -- > 2.15.1 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.