From: jh80.chung@samsung•com (Jaehoon Chung)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 2/2] ARM: dts: socfpga: Add a 3.3V fixed regulator node
Date: Fri, 17 Oct 2014 10:43:48 +0900 [thread overview]
Message-ID: <54407454.50903@samsung.com> (raw)
In-Reply-To: <1413493413-8041-3-git-send-email-dinguyen@opensource.altera.com>
Hi, Dinh.
On 10/17/2014 06:03 AM, dinguyen at opensource.altera.com wrote:
> From: Dinh Nguyen <dinguyen@opensource•altera.com>
>
> Without the 3.3V regulator node, the SDMMC driver will give these warnings:
>
> dw_mmc ff704000.dwmmc0: No vmmc regulator found
> dw_mmc ff704000.dwmmc0: No vqmmc regulator found
>
> This patch adds the regulator node, and points the SD/MMC to the regulator.
>
> Signed-off-by: Dinh Nguyen <dinguyen@opensource•altera.com>
> ---
> arch/arm/boot/dts/socfpga_arria5.dtsi | 11 ++++++++++-
> arch/arm/boot/dts/socfpga_arria5_socdk.dts | 5 +++++
> arch/arm/boot/dts/socfpga_cyclone5.dtsi | 9 +++++++++
> arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 2 ++
> arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 5 +++++
> 5 files changed, 31 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/socfpga_arria5.dtsi b/arch/arm/boot/dts/socfpga_arria5.dtsi
> index 03e8268..8093781 100644
> --- a/arch/arm/boot/dts/socfpga_arria5.dtsi
> +++ b/arch/arm/boot/dts/socfpga_arria5.dtsi
> @@ -29,7 +29,7 @@
> };
> };
>
> - dwmmc0 at ff704000 {
> + mmc0: dwmmc0 at ff704000 {
> num-slots = <1>;
> broken-cd;
> bus-width = <4>;
> @@ -41,4 +41,13 @@
> cpu1-start-addr = <0xffd080c4>;
> };
> };
> +
> + regulator_3_3v_hps: fixed_3_3v_hps_regulator at 0 {
> + compatible = "regulator-fixed";
> + regulator-name = "HPS 3.3V";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-boot-on;
> + regulator-always-on;
Always-on is right?
> + };
> };
> diff --git a/arch/arm/boot/dts/socfpga_arria5_socdk.dts b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> index 27d551c..b7e4023 100644
> --- a/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> +++ b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> @@ -68,6 +68,11 @@
> };
> };
>
> +&mmc0 {
> + vmmc-supply = <®ulator_3_3v_hps>;
> + vqmmc-supply = <®ulator_3_3v_hps>;
> +};
> +
> &usb1 {
> status = "okay";
> };
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5.dtsi b/arch/arm/boot/dts/socfpga_cyclone5.dtsi
> index 28c05e7..743bc3b 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5.dtsi
> +++ b/arch/arm/boot/dts/socfpga_cyclone5.dtsi
> @@ -48,4 +48,13 @@
> cpu1-start-addr = <0xffd080c4>;
> };
> };
> +
> + regulator_3_3v_hps: fixed_3_3v_hps_regulator at 0 {
> + compatible = "regulator-fixed";
> + regulator-name = "HPS 3.3V";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-boot-on;
> + regulator-always-on;
> + };
> };
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> index 739c3b7..e1f56ba 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> @@ -70,6 +70,8 @@
>
> &mmc0 {
> cd = <&gpio1 18 0>;
> + vmmc-supply = <®ulator_3_3v_hps>;
> + vqmmc-supply = <®ulator_3_3v_hps>;
Is vmmc and vqmmc used the common supply?
Best Regards,
Jaehoon Chung
> };
>
> &usb1 {
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
> index d26f155..ea0c454 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
> @@ -53,6 +53,11 @@
> rxc-skew-ps = <2000>;
> };
>
> +&mmc0 {
> + vmmc-supply = <®ulator_3_3v_hps>;
> + vqmmc-supply = <®ulator_3_3v_hps>;
> +};
> +
> &usb1 {
> status = "okay";
> };
>
next prev parent reply other threads:[~2014-10-17 1:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-16 21:03 [PATCH 0/2] ARM: dts: socfpga: fix booting with SD/MMC dinguyen at opensource.altera.com
2014-10-16 21:03 ` [PATCH 1/2] ARM: dts: socfpga: Fix SD card detect dinguyen at opensource.altera.com
2014-10-16 21:03 ` [PATCH 2/2] ARM: dts: socfpga: Add a 3.3V fixed regulator node dinguyen at opensource.altera.com
2014-10-17 1:43 ` Jaehoon Chung [this message]
2014-10-17 13:37 ` Dinh Nguyen
2014-10-17 16:57 ` Doug Anderson
2014-10-17 19:19 ` Dinh Nguyen
2014-10-17 19:43 ` Doug Anderson
2014-10-17 20:04 ` Dinh Nguyen
2014-10-17 22:36 ` Doug Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54407454.50903@samsung.com \
--to=jh80.chung@samsung$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox