[PATCHv2 2/2] ARM: dts: socfpga: Add a 3.3V fixed regulator node
Doug Anderson
dianders at chromium.org
Mon Oct 20 08:51:59 PDT 2014
Dinh,
On Mon, Oct 20, 2014 at 8:31 AM, <dinguyen at opensource.altera.com> wrote:
> +++ b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> @@ -37,6 +37,15 @@
> */
> ethernet0 = &gmac1;
> };
> +
> + regulator_3_3v: regulator {
I think it's better to give this a real node name. The
"regulator_3_3v" will get dropped when you compile this into a binary
format (for shipping), so you're creating a node that's just called
"regulator". If you had more than one fixed regulator like this it
just won't work.
I haven't seen any official guidelines, but I tend to use "regulator"
as a suffix and then put the schematic name. Like:
3_3v_regulator: 3-3-v-regulator
> + compatible = "regulator-fixed";
> + regulator-name = "3.3V";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-boot-on;
> + regulator-always-on;
It's probably not necessary to specify "boot-on" and "always-on" since
there's no GPIO backing this (in other words, those properties are
implied since there's no way to turn this regulator off).
I haven't gone back and checked this against your schematics, but they
look good to me. Once you've fixed above you are free to add my
Reviewed-by if you wish.
-Doug
More information about the linux-arm-kernel
mailing list