From: Caesar Wang <hidden> Date: 2016-08-31 06:14:40
This patch add to handle the gmac pd issue, and support
the rk3399 gmac for devicetree.
Caesar Wang (2):
arm64: dts: rockchip: support gmac for rk3399
arm64: dts: rockchip: enable the gmac for rk3399 evb board
David Wu (1):
net: stmmac: dwmac-rk: add pd_gmac support for rk3399
Roger Chen (1):
net: stmmac: dwmac-rk: fixes the gmac resume after PD on/off
arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 31 +++++++++
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 90 ++++++++++++++++++++++++++
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 28 +++++---
3 files changed, 140 insertions(+), 9 deletions(-)
--
1.9.1
From: Caesar Wang <hidden> Date: 2016-08-31 06:14:33
From: Roger Chen <redacted>
GMAC Power Domain(PD) will be disabled during suspend.
That will causes GRF registers reset.
So corresponding GRF registers for GMAC must be setup again.
Signed-off-by: Roger Chen <redacted>
Signed-off-by: Caesar Wang <redacted>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
From: Caesar Wang <hidden> Date: 2016-08-31 06:14:36
From: David Wu <redacted>
Add the gmac power domain support for rk3399, in order to save more
power consumption.
Signed-off-by: David Wu <redacted>
Signed-off-by: Caesar Wang <redacted>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 9 +++++++++
1 file changed, 9 insertions(+)
From: Caesar Wang <hidden> Date: 2016-08-31 06:15:17
This patch adds needed gamc information for rk3399,
also support the gmac pd.
Signed-off-by: Roger Chen <redacted>
Signed-off-by: Caesar Wang <redacted>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 90 ++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
@@ -704,6 +729,11 @@#size-cells=<0>;/* These power domains are grouped by VD_CENTER */+pd_gmac@RK3399_PD_GMAC{+reg=<RK3399_PD_GMAC>;+clocks=<&cruACLK_GMAC>;+pm_qos=<&qos_gmac>;+};pd_iep@RK3399_PD_IEP{reg=<RK3399_PD_IEP>;clocks=<&cruACLK_IEP>,
From: Caesar Wang <hidden> Date: 2016-08-31 06:15:21
We add the required and optional properties for evb board.
See the [0] to get the detail information.
[0]:
Documentation/devicetree/bindings/net/rockchip-dwmac.txt
Signed-off-by: Roger Chen <redacted>
Signed-off-by: Caesar Wang <redacted>
---
arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 31 +++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
From: Doug Anderson <dianders@chromium.org> Date: 2016-08-31 20:42:22
Caesar,
On Tue, Aug 30, 2016 at 11:13 PM, Caesar Wang [off-list ref] wrote:
This patch adds needed gamc information for rk3399,
also support the gmac pd.
Signed-off-by: Roger Chen <redacted>
Signed-off-by: Caesar Wang <redacted>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 90 ++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
I noticed that your subject for this patch contains "RESEND" and not
"v2" event though there are changes between this version and the last
one. That's really confusing. This should have been "v2" and the
next version should be "v3".
IMHO it would be nice if this were broken into two patches.
1. First patch would be the power domain patch and that could land any
time. You wouldn't actually be able to use the gmac but at least
you'd be able to turn off its power. This would be a handy patch to
be able to backport if you happened to not need Ethernet support but
wanted to save power.
2. Second patch would actually add the gmac.
--
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
Am Mittwoch, 31. August 2016, 13:42:17 schrieb Doug Anderson:
Caesar,
On Tue, Aug 30, 2016 at 11:13 PM, Caesar Wang [off-list ref] wrote:
quoted
This patch adds needed gamc information for rk3399,
also support the gmac pd.
Signed-off-by: Roger Chen <redacted>
Signed-off-by: Caesar Wang <redacted>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 90
++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+)
I noticed that your subject for this patch contains "RESEND" and not
"v2" event though there are changes between this version and the last
one. That's really confusing. This should have been "v2" and the
next version should be "v3".
IMHO it would be nice if this were broken into two patches.
1. First patch would be the power domain patch and that could land any
time. You wouldn't actually be able to use the gmac but at least
you'd be able to turn off its power. This would be a handy patch to
be able to backport if you happened to not need Ethernet support but
wanted to save power.
2. Second patch would actually add the gmac.
according to my talk with Caesar in the real v1, the gmac even with power-
domains should work just nicely even without the dts patches, as the driver
core takes care of powering up the pd before probe.
But I may miss some peculiarity of the dwmac?
Heiko
--
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
From: Doug Anderson <dianders@chromium.org> Date: 2016-08-31 21:45:45
Hi,
On Wed, Aug 31, 2016 at 2:29 PM, Heiko Stübner [off-list ref] wrote:
quoted
IMHO it would be nice if this were broken into two patches.
1. First patch would be the power domain patch and that could land any
time. You wouldn't actually be able to use the gmac but at least
you'd be able to turn off its power. This would be a handy patch to
be able to backport if you happened to not need Ethernet support but
wanted to save power.
2. Second patch would actually add the gmac.
according to my talk with Caesar in the real v1, the gmac even with power-
domains should work just nicely even without the dts patches, as the driver
core takes care of powering up the pd before probe.
But I may miss some peculiarity of the dwmac?
Nothing that I'm terribly aware of. I was just being selfish because:
1. I'm on a board where I don't need Ethernet.
2. I'm running a semi old kernel (4.4)
3. I don't want to pick back the various fixes that might be needed to
make gmac work on rk3399 to that old kernel.
4. I want it very obvious that gmac isn't really supported on this old
kernel on rk3399 (and having stmmac not in the device tree would make
it very obvious)
5. I do want the power savings of turning the power domains off for the gmac.
If this patch is broken in two then I can pick back just the power
domain patch. :-P
-Doug