Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751510AbdGZHQb convert rfc822-to-8bit (ORCPT ); Wed, 26 Jul 2017 03:16:31 -0400 Received: from hermes.aosc.io ([199.195.250.187]:52060 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbdGZHQ3 (ORCPT ); Wed, 26 Jul 2017 03:16:29 -0400 Date: Wed, 26 Jul 2017 15:16:16 +0800 In-Reply-To: References: <20170723102749.17323-1-icenowy@aosc.io> <20170723102749.17323-11-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [linux-sunxi] [PATCH 10/10] ARM: dts: sun8i: Add SY8106A regulator to Orange Pi PC To: Chen-Yu Tsai CC: Liam Girdwood , Mark Brown , Maxime Ripard , linux-kernel , devicetree , linux-arm-kernel , linux-clk , "open list:THERMAL" , linux-sunxi , Ondrej Jirman From: Icenowy Zheng Message-ID: <25C8A89C-8495-4787-934C-8E9667CD70BF@aosc.io> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2409 Lines: 81 于 2017年7月26日 GMT+08:00 下午3:08:06, Chen-Yu Tsai 写到: >On Sun, Jul 23, 2017 at 6:27 PM, Icenowy Zheng wrote: >> From: Ondrej Jirman >> >> Add SY8106A regulator to r_i2c bus and enable the r_i2c bus on >> Orange Pi PC, then set the power supply of the ARM cores to this >> regulator, in order to enable DVFS. >> >> Signed-off-by: Ondrej Jirman >> [Icenowy: Enable DVFS in this patch, slight changes and change commit >> message] >> Signed-off-by: Icenowy Zheng >> --- >> arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts >b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts >> index 998b60f8d295..d855f8b6254e 100644 >> --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts >> +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts >> @@ -98,6 +98,10 @@ >> status = "okay"; >> }; >> >> +&cpu0 { >> + cpu-supply = <®_sy8106a>; >> +}; >> + >> &ehci0 { >> status = "okay"; >> }; >> @@ -160,6 +164,21 @@ >> }; >> }; >> >> +&r_i2c { >> + status = "okay"; >> + >> + reg_sy8106a: regulator@65 { >> + compatible = "silergy,sy8106a"; >> + reg = <0x65>; >> + regulator-name = "vdd-cpux"; >> + regulator-min-microvolt = <1000000>; > >According to the H3 datasheet, the minimum voltage is 1.1V, not 1V. But the Armbian OPP table for H3 contains several OPP under 1.1V... > >Otherwse > >> + regulator-max-microvolt = <1400000>; >> + regulator-ramp-delay = <200>; > >Is this an actual constraint of the SoC? Or is it a characteristic >of the regulator? If it is the latter, it belongs in the driver. >AFAIK the regulator supports varying the ramp delay (slew rate). > >ChenYu > >> + regulator-boot-on; >> + regulator-always-on; >> + }; >> +}; >> + >> &r_pio { >> leds_r_opc: led_pins@0 { >> pins = "PL10"; >> -- >> 2.13.0 >> >> -- >> 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.