From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932558AbcF3Pxr (ORCPT ); Thu, 30 Jun 2016 11:53:47 -0400 Received: from megous.com ([83.167.254.221]:38339 "EHLO xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752689AbcF3Pxp (ORCPT ); Thu, 30 Jun 2016 11:53:45 -0400 Subject: Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One To: Michal Suchanek References: <20160625034511.7966-1-megous@megous.com> <20160625034511.7966-15-megous@megous.com> <834b8045-d99f-74a3-0353-aa84b897351d@megous.com> Cc: dev , "linux-arm-kernel@lists.infradead.org" , Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list From: =?UTF-8?Q?Ond=c5=99ej_Jirman?= Message-ID: <38956591-a53e-e277-4074-c2e0272e2d8d@megous.com> Date: Thu, 30 Jun 2016 17:53:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3BIsAp651UmbqxADh1itl1sbDOWShf1NX" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3BIsAp651UmbqxADh1itl1sbDOWShf1NX Content-Type: multipart/mixed; boundary="mutTJ0qbxlp5nDvsxAJhf9GkkHFnG2FD5" From: =?UTF-8?Q?Ond=c5=99ej_Jirman?= To: Michal Suchanek Cc: dev , "linux-arm-kernel@lists.infradead.org" , Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Message-ID: <38956591-a53e-e277-4074-c2e0272e2d8d@megous.com> Subject: Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One References: <20160625034511.7966-1-megous@megous.com> <20160625034511.7966-15-megous@megous.com> <834b8045-d99f-74a3-0353-aa84b897351d@megous.com> In-Reply-To: --mutTJ0qbxlp5nDvsxAJhf9GkkHFnG2FD5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 30.6.2016 17:50, Michal Suchanek wrote: > On 30 June 2016 at 17:16, Michal Suchanek wrote: >> On 30 June 2016 at 16:19, Ond=C5=99ej Jirman wrote= : >>> Hello, >>> >>> On 30.6.2016 13:13, Michal Suchanek wrote: >>>> Hello, >>>> >>>> On 25 June 2016 at 05:45, wrote: >>>>> From: Ondrej Jirman >>>>> >>>>> Use Xulong Orange Pi One GPIO based regulator for >>>>> passive cooling and thermal management. >>>>> >>>>> Signed-off-by: Ondrej Jirman >>>>> --- >>>>> arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 39 +++++++++++++++++= ++++++++++++ >>>>> 1 file changed, 39 insertions(+) >>>>> >>>>> diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts b/arch/arm= /boot/dts/sun8i-h3-orangepi-one.dts >>>>> index b1bd6b0..a38d871 100644 >>>>> --- a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts >>>>> +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts >>>>> @@ -109,6 +109,45 @@ >>>>> }; >>>>> }; >>>>> >>>>> +&cpu0 { >>>>> + operating-points =3D < >>>>> + /* kHz uV */ >>>>> + 1296000 1300000 >>>>> + 1200000 1300000 >>>> >>>> First problem is that the board boots at 1008000 which is not listed= >>>> and the kernel complains. >>>> >>>> Second problem is that the board locks up during boot with this enab= led. >>>> >>>> Do you have some suggestion for alternate configuration to test? >>> >>> Just to verify, did you test with the entire series applied? (especia= lly >>> the PLL1 clk application changes) >> >> Yes, I applied the whole series. >> >>> >>> You may try dropping the highest operating point, it's probably overl= y >>> optimistic for Orange Pi One. >>> >>> Is the power supply/cable you're using hard enough? >> >> I use a 7 port hub to power the board. It worked with some other small= >> devboards. >> >> The cable is some random Chinese USB to power jack adaptor with an >> extra adaptor to fit the Pi socket. It looks ok but I did not test >> this particular combination thoroughly. >> >>> >>> Where during the boot process does it lock up? >> >> Usually sometime around enabling cpufreq before getty starts. >> Different runs and settings give slightly different results. In >> particular adding the 1008000 point seems to make it go further. >> >> Removing all traces of the regulator, cpufreq and thermal I can boot >> pretty much 100% to login prompt. >> >> I don't think the difference between 1GHz and 1.3GHz frequency on the >> core would put much additional stress on the supply but I can try with= >> 35W PSU and some alternative cabling to be sure. >> >> I did some more tests and it seems 1008000@1.1V is fine but switching >> to 1.3V crashes the board. Even with only the first 1.3V state. Maybe >> there is need for some delay somewhere for the regulator to get >> stable? >> >=20 > Hm, the AW table shows 1008000@1.3V as supported state and it indeed > works. So the voltage switching works or does nothing. Can I measure > the regulator output somewhere? Clocking the chip higher does not > work. Regulator output is TP1 on the bottom of the board, next ot the CSI connector. regards, Ondrej > I will try with another PSU later. >=20 > Thanks >=20 > Michal >=20 --mutTJ0qbxlp5nDvsxAJhf9GkkHFnG2FD5-- --3BIsAp651UmbqxADh1itl1sbDOWShf1NX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXdUBkAAoJEG5kJsZ3z+/xzBQP/3LLDlKZyrm3nWdoRF1LS8rQ gizKrXG6BShDE1gOUdT5GoWoc07CBNX6MSBQskmPngvPzTMs0NO4m0jieT41PuqI b7swDXsPjERaT9a24gaYAlxzz65pt/BeChPSVUiP5BcM7uoc04PAC0B2G5Dcp6QX g299QSR3iBsM6mFsZkqNTfBw3AxCC/gpruOcE4nF9g6M5Tnxdclrv8NMS23QKyPI 2Mvl/O8NGs130GpW7ud8jhJnOVuCNA2r6kX+RDMaOmslc8xVokH6Q73Ve0oPZMlR eEVFMQv5nYL9hnmuJ2ACMDXP2rwaQWvYEkXbWAuTn2sYvu6oSbSLcrXqKuo6BJBE dnUm/XIyxTdtYJHTm0pvseiFSqHe8SQcQudMku03GJJ1BoWaaayNvhTpYvsBjz5l 4kslP4GDq2NB0MsV5dsyMp9oaNXkM4+pu9+z9c4rDr5rx5y0L4tq6FjLVQtpgq64 oJcIYEuURQX8kvZhpJJl0W+uSzhAzGz/b5J3IDCZGq/A0uEP3AL6G0LIQT45aoPV P9B76eahu99RuBFy+v8dgOfdHepI+SZsHyZMxJSurTZQ9fJkaI7812GnkPrWN86o MHIQEmeL3isIOPYdeFl1VFGdYoPjRSNjkzodAoXgVWl2aKSLmdHWfw7XhHiM87J6 aG2wBsVnnkqvi7zzSoQV =mAeY -----END PGP SIGNATURE----- --3BIsAp651UmbqxADh1itl1sbDOWShf1NX--