Re: [PATCH] ethernet: stmmac: dwmac-rk: Add GMAC support for px30

2018-05-17 Thread David Wu
Hi Shawn, Thanks for the suggestion, the most is okay. 在 2018年05月16日 14:34, Shawn Lin 写道: Hi David, On 2018/5/16 11:38, David Wu wrote: diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index 13133b3..4b2ab71 100644 --- a/drivers

[PATCH] ethernet: stmmac: dwmac-rk: Add GMAC support for px30

2018-05-15 Thread David Wu
Add constants and callback functions for the dwmac on px30 soc. The base structure is the same, but registers and the bits in them moved slightly, and add the clk_mac_speed for the select of mac speed. Signed-off-by: David Wu <david...@rock-chips.com> --- .../devicetree/bindings/net/ro

[PATCH] net: stmmac: dwmac-rk: Add RK3128 GMAC support

2017-09-30 Thread David Wu
Add constants and callback functions for the dwmac on rk3128 soc. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: David Wu <david...@rock-chips.com> --- .../devicetree/bindings/net/rockchip-dwmac.txt | 1 + drive

[PATCH] ARM: dts: rk3228-evb: Fix the compiling error

2017-08-22 Thread David Wu
This patch solves the following error: arch/arm/boot/dts/rk3228-evb.dtb: ERROR (phandle_references): Reference to non-existent node or label "phy0" Fixess db40f15b53e4 ("ARM: dts: rk3228-evb: Enable the integrated PHY for gmac") Signed-off-by: David Wu <david...@rock-c

[PATCH] net: ethernet: stmmac: dwmac-rk: Add rv1108 gmac support

2017-08-21 Thread David Wu
It only supports rmii interface. Add constants and callback functions for the dwmac on rv1108 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: David Wu <david...@rock-chips.com> --- .../devicetree/bindings/net/ro

[PATCH v5 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-08-10 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch

[PATCH v5 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-10 Thread David Wu
The gmac2phy controller of rk3328 is connected to integrated PHY directly inside, add the node for the integrated PHY support. Signed-off-by: David Wu <david...@rock-chips.com> --- changes in v5: - Use phy-is-integrated property via PHY node. - Move the PHY clock, reset control, pinctrl

[PATCH v5 09/11] ARM: dts: rk3228-evb: Enable the integrated PHY for gmac

2017-08-10 Thread David Wu
This patch enables the integrated PHY for rk3228 evb board by default. To use the external 1000M PHY on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu <david...@rock-chips.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> --- changes in v5

[PATCH v5 07/11] net: stmmac: dwmac-rk: Add integrated PHY support for rk3228

2017-08-10 Thread David Wu
There is only one mac controller in rk3228, which could connect to external PHY or integrated PHY, use the grf_com_mux bit15 to route external/integrated PHY. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file c

[PATCH v5 08/11] net: stmmac: dwmac-rk: Add integrated PHY supprot for rk3328

2017-08-10 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external PHY, and the other one connects to integrated PHY. Like the mac of external PHY, the integrated PHY's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu <david...@rock-chips.

[PATCH v5 06/11] net: stmmac: dwmac-rk: Add integrated PHY support

2017-08-10 Thread David Wu
To make integrated PHY work, need to configure the PHY clock, PHY cru reset and related registers. Signed-off-by: David Wu <david...@rock-chips.com> --- change in v4: - PHY is internal or not base on the phy-is-internal property via phy node. changes in v5: - Use phy-is-integrated proper

[PATCH v5 05/11] Documentation: net: phy: Add phy-is-integrated binding

2017-08-10 Thread David Wu
that the external PHY is used. Signed-off-by: David Wu <david...@rock-chips.com> --- change in v5: - Use phy-is-integrated boolean property. Documentation/devicetree/bindings/net/phy.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/phy.

[PATCH v5 01/11] net: phy: Add rockchip PHY driver support

2017-08-10 Thread David Wu
Support integrated ethernet PHY currently. Signed-off-by: David Wu <david...@rock-chips.com> --- changes in v4: - Remove SUPPORTED_[Asym_]Pause. - Some minor fix like defines. changes in v5: - Rename internal to integrated. - Remove PHY_IS_INTERNAL flag. drivers/net/phy/Kconfig

[PATCH v5 02/11] multi_v7_defconfig: Make rockchip PHY built-in

2017-08-10 Thread David Wu
Enable the rockchip PHY driver for multi_v7_defconfig builds. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4

[PATCH v5 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-10 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/s

[PATCH v5 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-10 Thread David Wu
Make the rockchip PHY driver built into the kernel. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch

[PATCH v5 00/11] Add the integrated PHY support

2017-08-10 Thread David Wu
The rk3228 and rk3328 support integrated PHY inside, let's enable it to work. And the integrated PHY need to do some special setting, so register the rockchip integrated PHY driver. David Wu (11): net: phy: Add rockchip PHY driver support multi_v7_defconfig: Make rockchip PHY built-in arm64

[PATCH v4 12/12] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-08-09 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch

[PATCH v4 11/12] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-09 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 37 1 file changed, 37 insertions(+)

[PATCH v4 10/12] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-08-09 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk3228-evb.dts | 32

[PATCH v4 09/12] ARM: dts: rk322x: Add support internal phy for gmac

2017-08-09 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/bo

[PATCH v4 08/12] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-08-09 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu <david...@rock-chips.com> --- d

[PATCH v4 07/12] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-08-09 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file chang

[PATCH v4 06/12] net: stmmac: dwmac-rk: Add internal phy support

2017-08-09 Thread David Wu
To make internal phy work, need to configure the phy_clock, phy cru_reset and related registers. Signed-off-by: David Wu <david...@rock-chips.com> --- change in v4: - PHY is internal or not base on the phy-is-internal property via phy node. .../devicetree/bindings/net/rockchip-dwm

[PATCH v4 05/12] Documentation: net: phy: Add phy-is-internal binding

2017-08-09 Thread David Wu
Add the documentation for internal phy. A boolean property indicates that a internal phy will be used. Signed-off-by: David Wu <david...@rock-chips.com> --- Documentation/devicetree/bindings/net/phy.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH v4 01/12] net: phy: Add rockchip phy driver support

2017-08-09 Thread David Wu
Support internal ethernet phy currently. Signed-off-by: David Wu <david...@rock-chips.com> --- changes in v4: - Remove SUPPORTED_[Asym_]Pause flag - Some minor fix like defines drivers/net/phy/Kconfig| 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c

[PATCH v4 02/12] multi_v7_defconfig: Make rockchip phy built-in

2017-08-09 Thread David Wu
Enable the rockchip phy for multi_v7_defconfig builds. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..9

[PATCH v4 03/12] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-09 Thread David Wu
Make the rockchip phy driver built into the kernel. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch

[PATCH v4 00/12] Add the internal phy support

2017-08-09 Thread David Wu
The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (12): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64

[PATCH v4 04/12] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-09 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/s

[PATCH v3 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-08-02 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch

[PATCH v3 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-02 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 + 1 file changed, 25 insertions(+) diff

[PATCH v3 09/11] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-08-02 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk3228-evb.dts | 20 1 file chang

[PATCH v3 08/11] ARM: dts: rk322x: Add support internal phy for gmac

2017-08-02 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/bo

[PATCH v3 07/11] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-08-02 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu <david...@rock-chips.com> --- d

[PATCH v3 06/11] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-08-02 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file chang

[PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-02 Thread David Wu
To make internal phy work, need to configure the phy_clock, phy cru_reset and related registers. Signed-off-by: David Wu <david...@rock-chips.com> --- .../devicetree/bindings/net/rockchip-dwmac.txt | 6 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 81 +++

[PATCH v3 00/11] Add the internal phy support

2017-08-02 Thread David Wu
The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64

[PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread David Wu
Support internal ethernet phy currently. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/phy/Kconfig| 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 229 + 3 files changed, 235 insertions(+) creat

[PATCH v3 02/11] multi_v7_defconfig: Make rockchip phy built-in

2017-08-02 Thread David Wu
Enable the rockchip phy for multi_v7_defconfig builds. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..9

[PATCH v3 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-02 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/s

[PATCH v3 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-02 Thread David Wu
Make the rockchip phy driver built into the kernel. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch

[PATCH v2 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-07-27 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch

[PATCH v2 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-07-27 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 24 1 file changed, 24 insertions(+) diff

[PATCH v2 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-07-27 Thread David Wu
To make internal phy work, need to configure the phy_clock, phy cru_reset and related registers. Signed-off-by: David Wu <david...@rock-chips.com> --- changes in v2: - Use the standard "phy-mode" property for internal phy. (Florian) - Move the internal macphy clock to the opt

[PATCH v2 06/11] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-07-27 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file chang

[PATCH v2 09/11] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-07-27 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk3228-evb.dts | 19 +++ 1 file chang

[PATCH v2 07/11] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-07-27 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu <david...@rock-chips.com> --- d

[PATCH v2 08/11] ARM: dts: rk322x: Add support internal phy for gmac

2017-07-27 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/bo

[PATCH v2 01/11] net: phy: Add rockchip phy driver support

2017-07-27 Thread David Wu
Support internal ephy currently. Signed-off-by: David Wu <david...@rock-chips.com> --- changes in v2: - Alphabetic order for Kconfig and Makefile. - Add analog register init. - Disable auto-mdix for workround. - Rename config drivers/net/phy/Kconfig| 5 ++ drivers/net/phy/Ma

[PATCH v2 00/11] Add the internal phy support

2017-07-27 Thread David Wu
The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64

[PATCH v2 02/11] multi_v7_defconfig: Make rockchip phy built-in

2017-07-27 Thread David Wu
Enable the rockchip phy for multi_v7_defconfig builds. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..9

[PATCH v2 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-07-27 Thread David Wu
Make the rockchip phy driver built into the kernel. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch

[PATCH v2 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-07-27 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/s

[PATCH 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-06-22 Thread David Wu
Let's enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts

[PATCH 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-06-22 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 + 1 file changed, 25 insertions(+) diff

[PATCH 09/11] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-06-22 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk3228-evb.dts | 20 1 file chang

[PATCH 08/11] ARM: dts: rk322x: Add support internal phy for gmac

2017-06-22 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/bo

[PATCH 07/11] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-06-22 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu <david...@rock-chips.com> --- d

[PATCH 06/11] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-06-22 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Change-Id: I3a366677047b8032eb535abb0c3e56fa7722aa2e Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/s

[PATCH 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-06-22 Thread David Wu
To make internal phy worked, need to configure the phy_clock, phy cru_reset and related registers. Change-Id: I6971c0a769754b824b1b908b56080cbaf7867d13 Signed-off-by: David Wu <david...@rock-chips.com> --- .../devicetree/bindings/net/rockchip-dwmac.txt | 3 + drivers/net/ethernet/s

[PATCH 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-06-22 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Change-Id: I9953784ea44335d90710e5473960c95b3d68a5fd Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/et

[PATCH 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_MAC_PHY

2017-06-22 Thread David Wu
Make the rockchip mac phy driver built into the kernel. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 97c123e..b4abe7f 100644 ---

[PATCH 00/11] Add the mac internal ephy support

2017-06-22 Thread David Wu
The rk3228 and rk3328 support internal mac phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip mac internal phy driver, not use the genphy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make

[PATCH 02/11] multi_v7_defconfig: Make rockchip mac phy built-in

2017-06-22 Thread David Wu
Enable the rockchip mac phy for multi_v7_defconfig builds Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 2

[PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-22 Thread David Wu
Support internal ephy currently. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/phy/Kconfig| 4 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 94 ++ 3 files changed, 99 insertions(+) create mode

[PATCH] net: ethernet: stmmac: dwmac-rk: Add RK3328 gmac support

2017-02-17 Thread David Wu
From: "david.wu" Add constants and callback functions for the dwmac on rk3328 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: david.wu ---