Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1437823
| From | Heiko Stuebner <heiko@sntech.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] ARM: dts: move regulator settings from common to specifics |
| Date | 2016-07-06 18:20 +0200 |
| Message-ID | <rRXIm-2ZF-3@gated-at.bofh.it> (permalink) |
| References | <rRX5D-2x0-5@gated-at.bofh.it> <rRX5D-2x0-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
Am Mittwoch, 6. Juli 2016, 23:25:23 schrieb ayaka:
> The regulator settings are the same in the firefly beta and
> firefly. But the firefly reload is different. I remove
> the difference part from the common header dtsi, but remained those
> common one to keep references.
>
> Signed-off-by: ayaka <ayaka@soulik.info>
applies to all 3 patches: we require real names both in the patch/mail from
as well as the Signed-off-by line, see [0] at number 11. To my untrained eye
the name given doesn't look like a real name, please correct me if I'm
wrong.
[0] https://www.kernel.org/doc/Documentation/SubmittingPatches
> ---
> arch/arm/boot/dts/rk3288-firefly-beta.dts | 30
> ++++++++++++++++++++++++++++++ arch/arm/boot/dts/rk3288-firefly.dts
> | 30 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/rk3288-firefly.dtsi
> | 14 +++++++-------
> 3 files changed, 67 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/boot/dts/rk3288-firefly-beta.dts
> b/arch/arm/boot/dts/rk3288-firefly-beta.dts index 75d77e3..6c08dae2
> 100644
> --- a/arch/arm/boot/dts/rk3288-firefly-beta.dts
> +++ b/arch/arm/boot/dts/rk3288-firefly-beta.dts
> @@ -69,3 +69,33 @@
> &pwm0 {
> status = "okay";
> };
> +
> +&gmac {
> + phy-supply = <&vcc_lan>;
> +};
Not 100% sure, but I guess this does not need to be duplicated.
The supply is named vcc_lan in all board revisions only the supplying
regulator seems different, so it should be enough to point the vcc_lan
phandle to the correct regulator in the relevant file, but the gmac
assignment could stay in the main file?
> +
> +&io_domains {
> + audio-supply = <&vcca_33>;
> + flash1-supply = <&vcc_lan>;
> +};
same here
> +
> +®ulators {
> + vcca_18: REG7 {
> + regulator-name = "vcca_18";
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + };
> +
> + vcca_33: REG8 {
> + regulator-name = "vcca_33";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + vcc_lan: REG9 {
> + regulator-name = "vcc_lan";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/rk3288-firefly.dts
> b/arch/arm/boot/dts/rk3288-firefly.dts index c07fe92..1964b6f 100644
> --- a/arch/arm/boot/dts/rk3288-firefly.dts
> +++ b/arch/arm/boot/dts/rk3288-firefly.dts
> @@ -69,3 +69,33 @@
> &pwm1 {
> status = "okay";
> };
> +
> +&gmac {
> + phy-supply = <&vcc_lan>;
> +};
> +
> +&io_domains {
> + audio-supply = <&vcca_33>;
> + flash1-supply = <&vcc_lan>;
> +};
> +
> +®ulators {
> + vcca_18: REG7 {
> + regulator-name = "vcca_18";
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + };
> +
> + vcca_33: REG8 {
> + regulator-name = "vcca_33";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + vcc_lan: REG9 {
> + regulator-name = "vcc_lan";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi
> b/arch/arm/boot/dts/rk3288-firefly.dtsi index 1d7f03c..205348f 100644
> --- a/arch/arm/boot/dts/rk3288-firefly.dtsi
> +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi
> @@ -68,11 +68,9 @@
> compatible = "rockchip,rk3288-io-voltage-domain";
> rockchip,grf = <&grf>;
>
> - audio-supply = <&vcca_33>;
> bb-supply = <&vcc_io>;
> dvp-supply = <&dovdd_1v8>;
> flash0-supply = <&vcc_flash>;
> - flash1-supply = <&vcc_lan>;
> gpio30-supply = <&vcc_io>;
> gpio1830-supply = <&vcc_io>;
> lcdc-supply = <&vcc_io>;
> @@ -225,7 +223,6 @@
> clock_in_out = "input";
> pinctrl-names = "default";
> pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
> - phy-supply = <&vcc_lan>;
> phy-mode = "rgmii";
> snps,reset-active-low;
> snps,reset-delays-us = <0 10000 1000000>;
> @@ -296,7 +293,7 @@
> inl2-supply = <&vcc_sys>;
> inl3-supply = <&vcc_20>;
>
> - regulators {
> + regulators: regulators {
the phandle name is to generic, as this is part of the act8846 and not
something generic. So please name the phandle act8846_regulators /
act8846_regs or so.
> vcc_ddr: REG1 {
> regulator-name = "vcc_ddr";
> regulator-min-microvolt = <1200000>;
> @@ -339,24 +336,27 @@
> regulator-always-on;
> };
>
> - vcca_18: REG7 {
> + REG7 {
> regulator-name = "vcca_18";
> regulator-min-microvolt = <1800000>;
> regulator-max-microvolt = <1800000>;
> };
>
> - vcca_33: REG8 {
> +
unecessary new empty line
> + REG8 {
> regulator-name = "vcca_33";
> regulator-min-microvolt = <3300000>;
> regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> };
>
> - vcc_lan: REG9 {
> + REG9 {
> regulator-name = "vcc_lan";
> regulator-min-microvolt = <3300000>;
> regulator-max-microvolt = <3300000>;
> };
>
> +
unecessary new empty line
> vdd_10: REG10 {
> regulator-name = "vdd_10";
> regulator-min-microvolt = <1000000>;
> --
> 2.7.4
Heiko
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] ARM: dts: the dts support for rk3288 firefly reload ayaka <ayaka@soulik.info> - 2016-07-06 17:40 +0200
[PATCH 3/3] ARM: dts: add rk3288-firefly-reload ayaka <ayaka@soulik.info> - 2016-07-06 17:40 +0200
[PATCH 2/3] ARM: dts: move regulator settings from common to specifics ayaka <ayaka@soulik.info> - 2016-07-06 17:40 +0200
Re: [PATCH 2/3] ARM: dts: move regulator settings from common to specifics Heiko Stuebner <heiko@sntech.de> - 2016-07-06 18:20 +0200
[PATCH 2/3] ARM: dts: move regulator settings from common to specifics Randy Li <ayaka@soulik.info> - 2016-07-06 19:40 +0200
[PATCH 3/3] ARM: dts: add rk3288-firefly-reload Randy Li <ayaka@soulik.info> - 2016-07-06 19:40 +0200
[PATCH 1/3] ARM: dts: add label leds for rk3288-firefly.dtsi Randy Li <ayaka@soulik.info> - 2016-07-06 19:40 +0200
[PATCH 0/3] Re: [PATCH 2/3] ARM: dts: move regulator settings from common to specifics Randy Li <ayaka@soulik.info> - 2016-07-06 19:40 +0200
[PATCH 3/3] ARM: dts: add rk3288-firefly-reload Randy Li <ayaka@soulik.info> - 2016-07-06 20:00 +0200
[PATCH 0/3] Re:[PATCH 2/3] ARM: dts: move regulator settings from common to specifics Randy Li <ayaka@soulik.info> - 2016-07-06 20:00 +0200
[PATCH 1/3] ARM: dts: add label leds for rk3288-firefly.dtsi Randy Li <ayaka@soulik.info> - 2016-07-06 20:00 +0200
[PATCH 2/3] ARM: dts: move regulator settings from common to specifics Randy Li <ayaka@soulik.info> - 2016-07-06 20:00 +0200
Re: [PATCH 2/3] ARM: dts: move regulator settings from common to specifics Randy Li <ayaka@soulik.info> - 2016-07-06 20:10 +0200
[PATCH 1/3] ARM: dts: add label leds for rk3288-firefly.dtsi Randy Li <ayaka@soulik.info> - 2016-07-06 20:30 +0200
[PATCH 3/3] ARM: dts: add rk3288-firefly-reload Randy Li <ayaka@soulik.info> - 2016-07-06 20:30 +0200
[PATCH 2/3] ARM: dts: move regulator settings from common to specifics Randy Li <ayaka@soulik.info> - 2016-07-06 20:30 +0200
[PATCH 0/3] ARM: dts: the dts support for rk3288 firefly reload Randy Li <ayaka@soulik.info> - 2016-07-06 20:30 +0200
Re: [PATCH 0/3] ARM: dts: the dts support for rk3288 firefly reload Heiko Stuebner <heiko@sntech.de> - 2016-07-07 23:40 +0200
Re: [PATCH 0/3] ARM: dts: the dts support for rk3288 firefly reload ayaka <ayaka@soulik.info> - 2016-07-09 17:50 +0200
Re: [PATCH 0/3] ARM: dts: the dts support for rk3288 firefly reload Heiko Stuebner <heiko@sntech.de> - 2016-07-10 01:10 +0200
csiph-web