* [PATCH v3 0/2] Add power domain support for eMMC node on rk3399
@ 2016-09-17 2:32 Ziyuan Xu
[not found] ` <20160917023250.1159-1-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Ziyuan Xu @ 2016-09-17 2:32 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ, ulf.hansson-QSEj5FYQhm4dnm+yROfE0A,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Ziyuan Xu,
shawn.lin-TNX95d0MmH7DzftRWevZcw,
zhangqing-TNX95d0MmH7DzftRWevZcw,
linux-mmc-u79uwXL29TY76Z2rM5mHXA, dianders-F7+t8E8rja9g9hUCZPvPmw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
This series add power domain for eMMC node which will be controlled by
genpd to make sure it's available in probing state, and will be gate
once suspend/resume.
Changes in v3:
- fix a typo
- add Rob's ack-tag
Changes in v2:
- fix a typo
- add an example code for power-domain
- add Shawn's review-tag and Doug's review-tag
Ziyuan Xu (2):
Documentation: mmc: sdhci-of-arasan: add description of power domain
arm64: dts: rockchip: add eMMC's power domain support for rk3399
Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
--
2.9.2
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
[not found] ` <20160917023250.1159-1-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2016-09-17 2:32 ` Ziyuan Xu
2016-09-17 8:49 ` Ulf Hansson
[not found] ` <20160917023250.1159-2-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-17 2:32 ` [PATCH v3 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399 Ziyuan Xu
1 sibling, 2 replies; 9+ messages in thread
From: Ziyuan Xu @ 2016-09-17 2:32 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ, ulf.hansson-QSEj5FYQhm4dnm+yROfE0A,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-mmc-u79uwXL29TY76Z2rM5mHXA,
shawn.lin-TNX95d0MmH7DzftRWevZcw, dianders-F7+t8E8rja9g9hUCZPvPmw,
zhangqing-TNX95d0MmH7DzftRWevZcw, Ziyuan Xu
Add power domain as a optional property for sdhci-of-arasan, which can
be turned off in the so-called unused condition, such as suspend and
remove. Aim to lower power requirements.
Signed-off-by: Ziyuan Xu <xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
Changes in v3:
- fix a typo
- add Rob's ack-tag
Changes in v2:
- fix a typo
- add an example code for power-domain
Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
index 3404afa..eb84d29 100644
--- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
+++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
@@ -1,12 +1,14 @@
Device Tree Bindings for the Arasan SDHCI Controller
- The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4] bindings.
+ The bindings follow the mmc[1], clock[2], interrupt[3], phy[4] and power
+ domain[5] bindings.
Only deviations are documented here.
[1] Documentation/devicetree/bindings/mmc/mmc.txt
[2] Documentation/devicetree/bindings/clock/clock-bindings.txt
[3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
[4] Documentation/devicetree/bindings/phy/phy-bindings.txt
+ [5] Documentation/devicetree/bindings/power/power_domain.txt
Required Properties:
- compatible: Compatibility string. One of:
@@ -36,6 +38,8 @@ Optional Properties:
- #clock-cells: If specified this should be the value <0>. With this property
in place we will export a clock representing the Card Clock. This clock
is expected to be consumed by our PHY. You must also specify
+ - power-domains: A phandle and PM domain as specifier defined by bindings
+ of the power controller specified by phandle.
Example:
sdhci@e0100000 {
@@ -71,5 +75,6 @@ Example:
phys = <&emmc_phy>;
phy-names = "phy_arasan";
#clock-cells = <0>;
+ power-domains = <&power RK3399_PD_EMMC>;
status = "disabled";
};
--
2.9.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v3 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399
[not found] ` <20160917023250.1159-1-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-17 2:32 ` [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain Ziyuan Xu
@ 2016-09-17 2:32 ` Ziyuan Xu
1 sibling, 0 replies; 9+ messages in thread
From: Ziyuan Xu @ 2016-09-17 2:32 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ, ulf.hansson-QSEj5FYQhm4dnm+yROfE0A,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-mmc-u79uwXL29TY76Z2rM5mHXA,
shawn.lin-TNX95d0MmH7DzftRWevZcw, dianders-F7+t8E8rja9g9hUCZPvPmw,
zhangqing-TNX95d0MmH7DzftRWevZcw, Ziyuan Xu
Control power domain for eMMC via genpd to reduce power consumption.
Signed-off-by: Elaine Zhang <zhangqing-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Signed-off-by: Ziyuan Xu <xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Reviewed-by: Shawn Lin <shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Reviewed-by: Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
---
Changes in v3: None
Changes in v2:
- add Shawn's review-tag and Doug's review-tag
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 76b2864..13905ce 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -269,6 +269,7 @@
#clock-cells = <0>;
phys = <&emmc_phy>;
phy-names = "phy_arasan";
+ power-domains = <&power RK3399_PD_EMMC>;
status = "disabled";
};
@@ -690,6 +691,11 @@
status = "disabled";
};
+ qos_emmc: qos@ffa58000 {
+ compatible = "syscon";
+ reg = <0x0 0xffa58000 0x0 0x20>;
+ };
+
qos_gmac: qos@ffa5c000 {
compatible = "syscon";
reg = <0x0 0xffa5c000 0x0 0x20>;
@@ -823,6 +829,11 @@
};
/* These power domains are grouped by VD_LOGIC */
+ pd_emmc@RK3399_PD_EMMC {
+ reg = <RK3399_PD_EMMC>;
+ clocks = <&cru ACLK_EMMC>;
+ pm_qos = <&qos_emmc>;
+ };
pd_gmac@RK3399_PD_GMAC {
reg = <RK3399_PD_GMAC>;
clocks = <&cru ACLK_GMAC>;
--
2.9.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
2016-09-17 2:32 ` [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain Ziyuan Xu
@ 2016-09-17 8:49 ` Ulf Hansson
[not found] ` <CAPDyKFrgdsppLg9RkCsSh4nhjUiJR6D4u+E8qnzfbtNxhwLOmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[not found] ` <20160917023250.1159-2-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
1 sibling, 1 reply; 9+ messages in thread
From: Ulf Hansson @ 2016-09-17 8:49 UTC (permalink / raw)
To: Ziyuan Xu
Cc: Heiko Stübner, Rob Herring, devicetree@vger.kernel.org,
open list:ARM/Rockchip SoC..., linux-mmc, Shawn Lin,
Doug Anderson, zhangqing
On 17 September 2016 at 04:32, Ziyuan Xu <xzy.xu@rock-chips.com> wrote:
> Add power domain as a optional property for sdhci-of-arasan, which can
> be turned off in the so-called unused condition, such as suspend and
> remove. Aim to lower power requirements.
I assume runtime suspend make sense as well?
Moreover, perhaps you could share a little information here about what
needs to be done at the driver level which controls the mmc IP. More
precisely, what do you need to do at runtime_suspend, suspend,
runtime_resume, and resume?
Kind regards
Uffe
>
> Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
>
> Acked-by: Rob Herring <robh@kernel.org>
> ---
>
> Changes in v3:
> - fix a typo
> - add Rob's ack-tag
>
> Changes in v2:
> - fix a typo
> - add an example code for power-domain
>
> Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> index 3404afa..eb84d29 100644
> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> @@ -1,12 +1,14 @@
> Device Tree Bindings for the Arasan SDHCI Controller
>
> - The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4] bindings.
> + The bindings follow the mmc[1], clock[2], interrupt[3], phy[4] and power
> + domain[5] bindings.
> Only deviations are documented here.
>
> [1] Documentation/devicetree/bindings/mmc/mmc.txt
> [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
> [3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
> [4] Documentation/devicetree/bindings/phy/phy-bindings.txt
> + [5] Documentation/devicetree/bindings/power/power_domain.txt
>
> Required Properties:
> - compatible: Compatibility string. One of:
> @@ -36,6 +38,8 @@ Optional Properties:
> - #clock-cells: If specified this should be the value <0>. With this property
> in place we will export a clock representing the Card Clock. This clock
> is expected to be consumed by our PHY. You must also specify
> + - power-domains: A phandle and PM domain as specifier defined by bindings
> + of the power controller specified by phandle.
>
> Example:
> sdhci@e0100000 {
> @@ -71,5 +75,6 @@ Example:
> phys = <&emmc_phy>;
> phy-names = "phy_arasan";
> #clock-cells = <0>;
> + power-domains = <&power RK3399_PD_EMMC>;
> status = "disabled";
> };
> --
> 2.9.2
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
[not found] ` <20160917023250.1159-2-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2016-09-17 9:01 ` Heiko Stuebner
2016-09-17 9:09 ` Ulf Hansson
0 siblings, 1 reply; 9+ messages in thread
From: Heiko Stuebner @ 2016-09-17 9:01 UTC (permalink / raw)
To: Ziyuan Xu, ulf.hansson-QSEj5FYQhm4dnm+yROfE0A
Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-mmc-u79uwXL29TY76Z2rM5mHXA,
shawn.lin-TNX95d0MmH7DzftRWevZcw, dianders-F7+t8E8rja9g9hUCZPvPmw,
zhangqing-TNX95d0MmH7DzftRWevZcw
Hi,
Am Samstag, 17. September 2016, 10:32:49 CEST schrieb Ziyuan Xu:
> Add power domain as a optional property for sdhci-of-arasan, which can
> be turned off in the so-called unused condition, such as suspend and
> remove. Aim to lower power requirements.
>
> Signed-off-by: Ziyuan Xu <xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
>
> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Reviewed-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
@Ulf: I guess you'll take this binding change through the mmc tree and I'll
pick up the devicetree change.
Heiko
> ---
>
> Changes in v3:
> - fix a typo
> - add Rob's ack-tag
>
> Changes in v2:
> - fix a typo
> - add an example code for power-domain
>
> Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt index
> 3404afa..eb84d29 100644
> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> @@ -1,12 +1,14 @@
> Device Tree Bindings for the Arasan SDHCI Controller
>
> - The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4]
> bindings. + The bindings follow the mmc[1], clock[2], interrupt[3], phy[4]
> and power + domain[5] bindings.
> Only deviations are documented here.
>
> [1] Documentation/devicetree/bindings/mmc/mmc.txt
> [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
> [3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
> [4] Documentation/devicetree/bindings/phy/phy-bindings.txt
> + [5] Documentation/devicetree/bindings/power/power_domain.txt
>
> Required Properties:
> - compatible: Compatibility string. One of:
> @@ -36,6 +38,8 @@ Optional Properties:
> - #clock-cells: If specified this should be the value <0>. With this
> property in place we will export a clock representing the Card Clock. This
> clock is expected to be consumed by our PHY. You must also specify + -
> power-domains: A phandle and PM domain as specifier defined by bindings +
> of the power controller specified by phandle.
>
> Example:
> sdhci@e0100000 {
> @@ -71,5 +75,6 @@ Example:
> phys = <&emmc_phy>;
> phy-names = "phy_arasan";
> #clock-cells = <0>;
> + power-domains = <&power RK3399_PD_EMMC>;
> status = "disabled";
> };
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
2016-09-17 9:01 ` Heiko Stuebner
@ 2016-09-17 9:09 ` Ulf Hansson
2016-09-17 9:57 ` Heiko Stuebner
0 siblings, 1 reply; 9+ messages in thread
From: Ulf Hansson @ 2016-09-17 9:09 UTC (permalink / raw)
To: Heiko Stuebner
Cc: Ziyuan Xu, Rob Herring, devicetree@vger.kernel.org,
open list:ARM/Rockchip SoC..., linux-mmc, Shawn Lin,
Doug Anderson, zhangqing
On 17 September 2016 at 11:01, Heiko Stuebner <heiko@sntech.de> wrote:
> Hi,
>
> Am Samstag, 17. September 2016, 10:32:49 CEST schrieb Ziyuan Xu:
>> Add power domain as a optional property for sdhci-of-arasan, which can
>> be turned off in the so-called unused condition, such as suspend and
>> remove. Aim to lower power requirements.
>>
>> Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
>>
>> Acked-by: Rob Herring <robh@kernel.org>
>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
>
> @Ulf: I guess you'll take this binding change through the mmc tree and I'll
> pick up the devicetree change.
Ideally the documentation and DT change should go together, so I think
it's better for you to pick up both.
I intend to ack it, although it would be nice with some more
information as I requested, in the change-log first.
Kind regards
Uffe
>
>
> Heiko
>
>> ---
>>
>> Changes in v3:
>> - fix a typo
>> - add Rob's ack-tag
>>
>> Changes in v2:
>> - fix a typo
>> - add an example code for power-domain
>>
>> Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
>> b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt index
>> 3404afa..eb84d29 100644
>> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
>> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
>> @@ -1,12 +1,14 @@
>> Device Tree Bindings for the Arasan SDHCI Controller
>>
>> - The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4]
>> bindings. + The bindings follow the mmc[1], clock[2], interrupt[3], phy[4]
>> and power + domain[5] bindings.
>> Only deviations are documented here.
>>
>> [1] Documentation/devicetree/bindings/mmc/mmc.txt
>> [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
>> [3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
>> [4] Documentation/devicetree/bindings/phy/phy-bindings.txt
>> + [5] Documentation/devicetree/bindings/power/power_domain.txt
>>
>> Required Properties:
>> - compatible: Compatibility string. One of:
>> @@ -36,6 +38,8 @@ Optional Properties:
>> - #clock-cells: If specified this should be the value <0>. With this
>> property in place we will export a clock representing the Card Clock. This
>> clock is expected to be consumed by our PHY. You must also specify + -
>> power-domains: A phandle and PM domain as specifier defined by bindings +
>> of the power controller specified by phandle.
>>
>> Example:
>> sdhci@e0100000 {
>> @@ -71,5 +75,6 @@ Example:
>> phys = <&emmc_phy>;
>> phy-names = "phy_arasan";
>> #clock-cells = <0>;
>> + power-domains = <&power RK3399_PD_EMMC>;
>> status = "disabled";
>> };
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
2016-09-17 9:09 ` Ulf Hansson
@ 2016-09-17 9:57 ` Heiko Stuebner
0 siblings, 0 replies; 9+ messages in thread
From: Heiko Stuebner @ 2016-09-17 9:57 UTC (permalink / raw)
To: Ulf Hansson
Cc: Ziyuan Xu, Rob Herring, devicetree@vger.kernel.org,
open list:ARM/Rockchip SoC..., linux-mmc, Shawn Lin,
Doug Anderson, zhangqing
Am Samstag, 17. September 2016, 11:09:15 CEST schrieb Ulf Hansson:
> On 17 September 2016 at 11:01, Heiko Stuebner <heiko@sntech.de> wrote:
> > Hi,
> >
> > Am Samstag, 17. September 2016, 10:32:49 CEST schrieb Ziyuan Xu:
> >> Add power domain as a optional property for sdhci-of-arasan, which can
> >> be turned off in the so-called unused condition, such as suspend and
> >> remove. Aim to lower power requirements.
> >>
> >> Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
> >>
> >> Acked-by: Rob Herring <robh@kernel.org>
> >
> > Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> >
> > @Ulf: I guess you'll take this binding change through the mmc tree and
> > I'll
> > pick up the devicetree change.
>
> Ideally the documentation and DT change should go together, so I think
> it's better for you to pick up both.
I was more thinking about future conflicts with possible other changes during
the 4.9 cycle. We have -rc7 now, so arm-soc is pretty off limits for new
changes thus the binding change would only land in time for 4.10 and may cause
conflicts then.
> I intend to ack it, although it would be nice with some more
> information as I requested, in the change-log first.
I guess we'll just wait until you are comfortable with the change and decide
then through which trees it should go :-)
Heiko
> >> ---
> >>
> >> Changes in v3:
> >> - fix a typo
> >> - add Rob's ack-tag
> >>
> >> Changes in v2:
> >> - fix a typo
> >> - add an example code for power-domain
> >>
> >> Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
> >> 1 file changed, 6 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> >> b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt index
> >> 3404afa..eb84d29 100644
> >> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> >> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
> >> @@ -1,12 +1,14 @@
> >>
> >> Device Tree Bindings for the Arasan SDHCI Controller
> >>
> >> - The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4]
> >> bindings. + The bindings follow the mmc[1], clock[2], interrupt[3],
> >> phy[4]
> >> and power + domain[5] bindings.
> >>
> >> Only deviations are documented here.
> >>
> >> [1] Documentation/devicetree/bindings/mmc/mmc.txt
> >> [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
> >> [3]
> >> Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
> >>
> >> [4] Documentation/devicetree/bindings/phy/phy-bindings.txt
> >> + [5] Documentation/devicetree/bindings/power/power_domain.txt
> >>
> >> Required Properties:
> >> - compatible: Compatibility string. One of:
> >> @@ -36,6 +38,8 @@ Optional Properties:
> >> - #clock-cells: If specified this should be the value <0>. With this
> >>
> >> property in place we will export a clock representing the Card Clock.
> >> This
> >> clock is expected to be consumed by our PHY. You must also specify + -
> >> power-domains: A phandle and PM domain as specifier defined by bindings +
> >>
> >> of the power controller specified by phandle.
> >>
> >> Example:
> >> sdhci@e0100000 {
> >>
> >> @@ -71,5 +75,6 @@ Example:
> >> phys = <&emmc_phy>;
> >> phy-names = "phy_arasan";
> >> #clock-cells = <0>;
> >>
> >> + power-domains = <&power RK3399_PD_EMMC>;
> >>
> >> status = "disabled";
> >>
> >> };
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
[not found] ` <CAPDyKFrgdsppLg9RkCsSh4nhjUiJR6D4u+E8qnzfbtNxhwLOmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-09-20 2:29 ` Ziyuan Xu
2016-09-22 7:14 ` Ulf Hansson
0 siblings, 1 reply; 9+ messages in thread
From: Ziyuan Xu @ 2016-09-20 2:29 UTC (permalink / raw)
To: Ulf Hansson
Cc: Heiko Stübner, Rob Herring,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
open list:ARM/Rockchip SoC..., linux-mmc, Shawn Lin,
Doug Anderson, zhangqing
hi Ulf,
On 2016年09月17日 16:49, Ulf Hansson wrote:
> On 17 September 2016 at 04:32, Ziyuan Xu <xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org> wrote:
>> Add power domain as a optional property for sdhci-of-arasan, which can
>> be turned off in the so-called unused condition, such as suspend and
>> remove. Aim to lower power requirements.
> I assume runtime suspend make sense as well?
Sorry to reply this mail after a long time.
On rk3399 platform, there is a eMMC-phy which is in charge of eMMC's
logic interface. We should guarantee that phy is ready before cmd/data
transfer.
I mean that I need to consider about the resume latency, so that I can
land RPM for arasan-of-sdhci.
I intend to use auto-suspend for arasan-of-sdhci.
>
> Moreover, perhaps you could share a little information here about what
> needs to be done at the driver level which controls the mmc IP. More
> precisely, what do you need to do at runtime_suspend, suspend,
> runtime_resume, and resume?
Invoke sdhci_runtime_suspend_host, disable relevant clock in
rumtime_suspend, deprocessing in runtime_resume.
Is that ok?
>
> Kind regards
> Uffe
>
>> Signed-off-by: Ziyuan Xu <xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
>>
>> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>> ---
>>
>> Changes in v3:
>> - fix a typo
>> - add Rob's ack-tag
>>
>> Changes in v2:
>> - fix a typo
>> - add an example code for power-domain
>>
>> Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
>> index 3404afa..eb84d29 100644
>> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
>> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt
>> @@ -1,12 +1,14 @@
>> Device Tree Bindings for the Arasan SDHCI Controller
>>
>> - The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4] bindings.
>> + The bindings follow the mmc[1], clock[2], interrupt[3], phy[4] and power
>> + domain[5] bindings.
>> Only deviations are documented here.
>>
>> [1] Documentation/devicetree/bindings/mmc/mmc.txt
>> [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
>> [3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
>> [4] Documentation/devicetree/bindings/phy/phy-bindings.txt
>> + [5] Documentation/devicetree/bindings/power/power_domain.txt
>>
>> Required Properties:
>> - compatible: Compatibility string. One of:
>> @@ -36,6 +38,8 @@ Optional Properties:
>> - #clock-cells: If specified this should be the value <0>. With this property
>> in place we will export a clock representing the Card Clock. This clock
>> is expected to be consumed by our PHY. You must also specify
>> + - power-domains: A phandle and PM domain as specifier defined by bindings
>> + of the power controller specified by phandle.
>>
>> Example:
>> sdhci@e0100000 {
>> @@ -71,5 +75,6 @@ Example:
>> phys = <&emmc_phy>;
>> phy-names = "phy_arasan";
>> #clock-cells = <0>;
>> + power-domains = <&power RK3399_PD_EMMC>;
>> status = "disabled";
>> };
>> --
>> 2.9.2
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain
2016-09-20 2:29 ` Ziyuan Xu
@ 2016-09-22 7:14 ` Ulf Hansson
0 siblings, 0 replies; 9+ messages in thread
From: Ulf Hansson @ 2016-09-22 7:14 UTC (permalink / raw)
To: Ziyuan Xu
Cc: Heiko Stübner, Rob Herring, devicetree@vger.kernel.org,
open list:ARM/Rockchip SoC..., linux-mmc, Shawn Lin,
Doug Anderson, zhangqing
On 20 September 2016 at 04:29, Ziyuan Xu <xzy.xu@rock-chips.com> wrote:
> hi Ulf,
>
>
> On 2016年09月17日 16:49, Ulf Hansson wrote:
>>
>> On 17 September 2016 at 04:32, Ziyuan Xu <xzy.xu@rock-chips.com> wrote:
>>>
>>> Add power domain as a optional property for sdhci-of-arasan, which can
>>> be turned off in the so-called unused condition, such as suspend and
>>> remove. Aim to lower power requirements.
>>
>> I assume runtime suspend make sense as well?
>
>
> Sorry to reply this mail after a long time.
>
> On rk3399 platform, there is a eMMC-phy which is in charge of eMMC's logic
> interface. We should guarantee that phy is ready before cmd/data transfer.
> I mean that I need to consider about the resume latency, so that I can land
> RPM for arasan-of-sdhci.
> I intend to use auto-suspend for arasan-of-sdhci.
>
Okay!
>>
>> Moreover, perhaps you could share a little information here about what
>> needs to be done at the driver level which controls the mmc IP. More
>> precisely, what do you need to do at runtime_suspend, suspend,
>> runtime_resume, and resume?
>
>
> Invoke sdhci_runtime_suspend_host, disable relevant clock in
> rumtime_suspend, deprocessing in runtime_resume.
> Is that ok?
Okay!
[...]
Thanks for sharing some more information, could you please re-spin
with an updated change log?
Kind regards
Uffe
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-09-22 7:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-17 2:32 [PATCH v3 0/2] Add power domain support for eMMC node on rk3399 Ziyuan Xu
[not found] ` <20160917023250.1159-1-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-17 2:32 ` [PATCH v3 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain Ziyuan Xu
2016-09-17 8:49 ` Ulf Hansson
[not found] ` <CAPDyKFrgdsppLg9RkCsSh4nhjUiJR6D4u+E8qnzfbtNxhwLOmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-20 2:29 ` Ziyuan Xu
2016-09-22 7:14 ` Ulf Hansson
[not found] ` <20160917023250.1159-2-xzy.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-09-17 9:01 ` Heiko Stuebner
2016-09-17 9:09 ` Ulf Hansson
2016-09-17 9:57 ` Heiko Stuebner
2016-09-17 2:32 ` [PATCH v3 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399 Ziyuan Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).