From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Ond=c5=99ej_Jirman?= Subject: Re: [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One Date: Thu, 30 Jun 2016 17:32:20 +0200 Message-ID: <870784d7-45e8-558d-28d3-75230fcddd2b@megous.com> References: <20160625034511.7966-1-megous@megous.com> <20160625034511.7966-15-megous@megous.com> <834b8045-d99f-74a3-0353-aa84b897351d@megous.com> Reply-To: megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sl7sQqsPK7EiCXmdCH4SiCAn2IkXAktFf" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Michal Suchanek Cc: dev , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list List-Id: devicetree@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sl7sQqsPK7EiCXmdCH4SiCAn2IkXAktFf Content-Type: multipart/mixed; boundary="P2X5eTenGGiFX2qKFMCBK25NUP690an9V" From: =?UTF-8?Q?Ond=c5=99ej_Jirman?= To: Michal Suchanek Cc: dev , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.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: <870784d7-45e8-558d-28d3-75230fcddd2b-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org> Subject: Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One References: <20160625034511.7966-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org> <20160625034511.7966-15-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org> <834b8045-d99f-74a3-0353-aa84b897351d-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org> In-Reply-To: --P2X5eTenGGiFX2qKFMCBK25NUP690an9V Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 30.6.2016 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/bo= ot/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 enabled= . >>> >>> Do you have some suggestion for alternate configuration to test? >> >> Just to verify, did you test with the entire series applied? (especially >> the PLL1 clk application changes) >=20 > Yes, I applied the whole series. >=20 >> >> You may try dropping the highest operating point, it's probably overly >> optimistic for Orange Pi One. >> >> Is the power supply/cable you're using hard enough? >=20 > I use a 7 port hub to power the board. It worked with some other small > devboards. >=20 > 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. >=20 >> >> Where during the boot process does it lock up? >=20 > 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. >=20 > Removing all traces of the regulator, cpufreq and thermal I can boot > pretty much 100% to login prompt. >=20 > 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. >=20 > 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? Please try adding: regulator-ramp-delay =3D <10> to the gpio regulator. which will allow 100ms per 1V change, which should b enough for determining, if this is the cause. regards, Ondrej > Thanks >=20 > Michal >=20 --=20 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 e= mail to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. --P2X5eTenGGiFX2qKFMCBK25NUP690an9V-- --sl7sQqsPK7EiCXmdCH4SiCAn2IkXAktFf 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 iQIcBAEBCAAGBQJXdTuEAAoJEG5kJsZ3z+/xxNAP/1deI0M2F7udROJUpVdPmSLC x+131owauWdJEa73NdeULiUChuGMsxfy7SJdZRoGRsoz1RJRVL1l2AJNgzW6n2Nz TzvLS8a+xYZ9+dqEWoFs/20shgfVAJSCY2T1IJK7JAP4bWtKOJkkEl6jR2Cbs+Ny oXFxkwQJKfzHj3URQ4JIUO1NLNKiPruwdONS42oWuGVNTM1hYLeJwTvq7K7xRhQa WYYMyNqj5IpM0l20rREeoggMV5h7SD7r4eEYExguaD9D+RNXdrILzLjRntlf7CLT 3DDJaEql0pUHcL+dWsmAMnYx+dIA6XenwR62SKtOttfqnxPdW0KExAiYr0087SBD 2Fa4W7SRJxN9SVk8BjeZMRwoLjBNmp4faXEyNcOq7w7+wvFiyuhFS3adj/WR4pwA +lxa5Bdthb5o4X78YdZfmgWzCvtaLpCZJPs6U+BOHdPTfBRft6OhSTNMxSybF6gu f2YsbnzpVVQTt+AED/Uxlltk4kQOzOqxQTDZzuar3gX+Tzd8VKtJfdykoNhBkXDD m/njsZ22ywcIS5s+hLtPpY1JLeX1VkSzNRVdDnpD/M2M1JmVVf8hWuj+PnyaFz5g qbDEqOvdQFyRAcdQwKW4LskEBd0slIHE/p9FNjybTR31M+Dv6SdpW4kVE+aN+6O+ /c5WvHPCsV+HXE2SUsGh =TzeN -----END PGP SIGNATURE----- --sl7sQqsPK7EiCXmdCH4SiCAn2IkXAktFf--