[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v64dYZePt20h+Q4iB0Xcp1qc=VCpMzJfzkxjPQMqfxnfJg@mail.gmail.com>
Date: Tue, 3 Oct 2017 10:14:30 +0800
From: Chen-Yu Tsai <wens@...e.org>
To: Maxime Ripard <maxime.ripard@...e-electrons.com>
Cc: Chen-Yu Tsai <wens@...e.org>, Lee Jones <lee.jones@...aro.org>,
Mark Brown <broonie@...nel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
devicetree <devicetree@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-sunxi <linux-sunxi@...glegroups.com>,
Quentin Schulz <quentin.schulz@...e-electrons.com>
Subject: Re: [PATCH 5/7] ARM: dts: sun8i: a83t: cubietruck-plus: Add AXP818
regulator nodes
On Tue, Oct 3, 2017 at 12:24 AM, Maxime Ripard
<maxime.ripard@...e-electrons.com> wrote:
> Hi,
>
> On Fri, Sep 29, 2017 at 03:25:12AM +0000, Chen-Yu Tsai wrote:
>> +#include "axp81x.dtsi"
>> +
>> +®_aldo1 {
>> + regulator-always-on;
>> + regulator-min-microvolt = <1800000>;
>> + regulator-max-microvolt = <1800000>;
>> + regulator-name = "vcc18-csi2-dsi-efuse-hdmi-d4dp";
>> +};
>
> I'm not really fond of these names. It's easy to miss some components
> (especially since we most of the time don't have the schematics), and
> if it's not complete, the obscure name isn't worth it either.
If we don't have schematics, then yeah it's impossible to name them
accurately. But we do have it for this board.
> What about vcc-1.8 for this one ?
It's only vcc-1.8 for some components, as the next one provides
vcc-1.8 for the SoC's PLLs. The pin for that is named "vcc18-pll"
in the datasheet.
>
>> +®_aldo2 {
>> + regulator-always-on;
>> + regulator-min-microvolt = <1800000>;
>> + regulator-max-microvolt = <1800000>;
>> + regulator-name = "vdd-drampll-vcc18-pll-adc-cpvdd-ldoin";
>> +};
>
> dram-pll?
>
>> +®_aldo3 {
>> + regulator-always-on;
>> + regulator-min-microvolt = <3000000>;
>> + regulator-max-microvolt = <3000000>;
>> + regulator-name = "vcc-pl-avcc";
>> +};
>
> avcc?
>
> etc..
The schematics don't provide rail names for the outputs. They
are all just have names matching the regulators. The ones that
do look pretty here are because they are only tied to one thing.
If the names are too long and confusing, I suggest we just use
the regulator names from the PMIC.
>
>> status = "disabled";
>> };
>>
>> +®_vcc3v3 {
>> + status = "disabled";
>> +};
>> +
>> ®_vcc5v0 {
>> status = "disabled";
>> };
>
> Why not simply remove the DTSI then?
I'm still using the USB VBUS regulators. But I suppose I should weigh the
amount of used vs unused shared code.
ChenYu
Powered by blists - more mailing lists