Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4211799ybz; Tue, 28 Apr 2020 07:34:20 -0700 (PDT) X-Google-Smtp-Source: APiQypIYSVkTn+4OrgapFtX/WxvnICPP7mbRuF/2gIsmNLDFt+/6JDg+XUBWqOMS7eXEoClRwskt X-Received: by 2002:a17:906:38ca:: with SMTP id r10mr23924023ejd.278.1588084460324; Tue, 28 Apr 2020 07:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588084460; cv=none; d=google.com; s=arc-20160816; b=MRmNOxhmDNzcwb+6oXv8hWNzvGQMY4xhR1TeUicz2BbuuVkzRRFXEzhtnCukcV/Tfd GfbmQS0iSP/kW/ImNAIBrxCo+mnO8C708Ynjsq4yVslTdiOTDBUc0Tt23tziCv5nFiKv zxwWMf8TfIJ1Ei8tAj/TMlb948+RnCUzl6+dNJll4iR7aGknB1YqrDhPJm9ocnVHnhKz HswqM8Gi0bm74OiPwMzbg/MvCKG2vuoaum4z4lfPLU3UN2F0n3fM3ISYCy37I9kOvr54 GHjwH28SCjD7a8qDro/QEI0vKzuPl8YgvZWR287Oc8z2WwrgG1sS6FfHribwJq1FhdVt sqcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=JpPVmG/ic6yi3Tk4GAQi6DB6GCxhlbKT5nO4XO5x++4=; b=Q9zIqA+eQilcLJWaxdhshDSWkXWXWhHdkbYmBezIH8CV10D95GFCCaDul2PCFGrLL7 mE1jG0sJHTYdY0XtPKWRg5fwQTOkXYmM8ai3D92FE+Jv0VDl8fH38+6GZnsqi0Trn1vK 0L3wkDXio4hlep8h/9pYs7JzJuriLcUOJkwDPF7E1N5j87+h60M2v9vuTEVRaO21S4pS Zw/gNKhVgBCYkybFEr4cu9qrtc5jgYozfQkOshF6oyd36JVgF86RI6bq6P5WoFxgCitA LvReaskzsCWmnC/8rw44FEdYZHTLhNux10CZXRCSML8mXKxawmVNn9gwkJNebyjcfyxy LqLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ipeT6iMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si1617434edq.344.2020.04.28.07.33.52; Tue, 28 Apr 2020 07:34:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ipeT6iMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727879AbgD1OaT (ORCPT + 99 others); Tue, 28 Apr 2020 10:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727108AbgD1OaT (ORCPT ); Tue, 28 Apr 2020 10:30:19 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D70AC03C1AB; Tue, 28 Apr 2020 07:30:19 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id r2so20462226ilo.6; Tue, 28 Apr 2020 07:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JpPVmG/ic6yi3Tk4GAQi6DB6GCxhlbKT5nO4XO5x++4=; b=ipeT6iMZnvOHZp+nbd29xbN+3F4XtHwR0HnaFmlAEmd3xsb6RDgzYxpn8ZDFijCYEg k5dE7yv8JOff1Dab/0/7fyVTh8hv9JYG0FS71e5AcxWqUdORGAbesb0dvPXwh1bd7SE3 2KXB1xW4WKiSNttBfEbuY0YajvNaFl3KBw9K/5UguM9ltO3Xh+cwo3UvTXFYIPSlQEVU 89Yv8GHfhnkWkqvurh/CSL5ZV7W4f4gxQVRs92epAMEt3+I020alJpPqA5Zrq6RFiq3k SI/Zo/DpQTeQNAX792L6jXTTfLOIV8qrs5YTgzwEC+PTpLjlw7RAm1bM3s1bop8fdG2l TZ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JpPVmG/ic6yi3Tk4GAQi6DB6GCxhlbKT5nO4XO5x++4=; b=DCxqbWr1MUBEPL1lDtfHFiXYCn+u4NLj+9gZfQ2cTyHotbZCr2AfhA90+ypuEbtWgw xWQfKUugISAYpjkdpcV4McAz2DEp1cEWICZge54c2c5ODR05r9vj3tdoaU+Ry7wWw2QT NvhoT/BADwZMI3XncxvgNW5jrx23wCc8qpiL3MQpqL00mOVbzZh0VFqvCnlN9U3ETbnk WoX/TJwSocSLXlm+cRMm+Je0xj1UxlSI9w52ngMS5ijUlscXDKBWKXkUM+ruf/Xd/J45 KccqP20mj4HgiJm+ofsFrzcHx5X1tjc8EkxTQznoNZ1QGMe14PgkS3KtXlON65MvpIaG zNjQ== X-Gm-Message-State: AGi0PuYPXh4SlAhmzEc2+oxbTCe+3C1x0gmKYln+GOLqa0XsuoB5se9P xGN58nIgXz624Kly/uOY8Jjq3QooedEVZykcgdk= X-Received: by 2002:a92:d151:: with SMTP id t17mr4772428ilg.35.1588084217885; Tue, 28 Apr 2020 07:30:17 -0700 (PDT) MIME-Version: 1.0 References: <20200428142629.8950-1-peron.clem@gmail.com> In-Reply-To: <20200428142629.8950-1-peron.clem@gmail.com> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Tue, 28 Apr 2020 16:30:06 +0200 Message-ID: Subject: Re: [PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6 To: Maxime Ripard , Chen-Yu Tsai , Rob Herring Cc: linux-arm-kernel , devicetree , linux-kernel , linux-sunxi , Piotr Oniszczuk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, Warpme, On Tue, 28 Apr 2020 at 16:26, Cl=C3=A9ment P=C3=A9ron wrote: > > Tanix TX6 has a fixed regulator. As DVFS is instructed to change > voltage to meet OPP table, the DVFS is not working as expected. > > Avoid to introduce a new dedicated OPP Table where voltage are > equals to the fixed regulator as it will only duplicate all the OPPs. > Instead remove the fixed regulator so the DVFS framework will create > dummy regulator and will have the same behavior. > > Add some comments to explain this in the device-tree. Changes since v1: I have change this patch to use dummy regulator and add comment about this choice. I think it's a bit better than just dropping the regulator. @Piotr Oniszczuk: Please add your tested-by tag, to be sure this is working as expected ! Thanks & Regards Clement > > Reported-by: Piotr Oniszczuk > Fixes: add1e27fb703 ("arm64: dts: allwinner: h6: Enable CPU opp tables fo= r Tanix TX6") > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > --- > .../boot/dts/allwinner/sun50i-h6-tanix-tx6.dts | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts b/arch= /arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts > index be81330db14f..3e96fcb317ea 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts > @@ -48,7 +48,15 @@ > }; > > &cpu0 { > - cpu-supply =3D <®_vdd_cpu_gpu>; > + /* > + * Don't specify the CPU regulator, as it's a fixed > + * regulator DVFS will not work as it is intructed > + * to reach a voltage which can't be reached. > + * Not specifying a regulator will create a dummy > + * regulator allowing all OPPs. > + * > + * cpu-supply =3D <®_vdd_cpu_gpu>; > + */ > }; > > &de { > @@ -68,7 +76,13 @@ > }; > > &gpu { > - mali-supply =3D <®_vdd_cpu_gpu>; > + /* > + * Don't specify the GPU regulator, see comment > + * above for the CPU supply. > + * > + * mali-supply =3D <®_vdd_cpu_gpu>; > + */ > + > status =3D "okay"; > }; > > -- > 2.20.1 >