[PATCH 0/3] support GMAC for RK3399 & RK3366

2016-08-11 Thread Roger Chen
This series adds registers description for RK3366 & RK3399 GMAC. And also DT nodes for RK3399 SoC and EVB. Roger Chen (3): net: stmmac: dwmac-rk: add rk3366 & rk3399 specific data arm64: dts: rockchip: add GMAC dt nodes for rk3399 SoC arm64: dts: rockchip: add GMAC dt nodes for RK

[PATCH 2/3] arm64: dts: rockchip: add GMAC dt nodes for rk3399 SoC

2016-08-11 Thread Roger Chen
This patch adds ethernet GMAC dt notes for Rockchip RK3399 SoC. Signed-off-by: Roger Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip

[PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb

2016-08-11 Thread Roger Chen
This patch add ethernet GMAC dt nodes for RK3399 evaluation board. Signed-off-by: Roger Chen --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip

[PATCH 1/3] net: stmmac: dwmac-rk: add rk3366 & rk3399 specific data

2016-08-11 Thread Roger Chen
Add constants and callback functions for the dwmac on rk3228/rk3229 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Roger Chen --- .../devicetree/bindings/net/rockchip-dwmac.txt | 4 +- drivers/net/ethernet/stmicro

[PATCH 1/3] net: stmmac: dwmac-rk: add rk3366 & rk3399-specific data

2016-07-06 Thread Roger Chen
Add constants and callback functions for the dwmac on rk3368 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Roger Chen --- .../devicetree/bindings/net/rockchip-dwmac.txt | 3 +- drivers/net/ethernet/stmicro/stmmac

[PATCH 0/3] *** support GMAC for RK3399 & RK3366 ***

2016-07-06 Thread Roger Chen
This series adds registers description for RK3366 & RK3399 GMAC. And also DT nodes for RK3399 SoC and EVB. Roger Chen (3): net: stmmac: dwmac-rk: add rk3366 & rk3399-specific data arm64: dts: rockchip: add GMAC dt nodes for rk3399 SoC arm64: dts: rockchip: add GMAC dt nodes for RK

[PATCH 2/3] arm64: dts: rockchip: add GMAC dt nodes for rk3399 SoC

2016-07-06 Thread Roger Chen
This patch adds ethernet GMAC dt notes for Rockchip RK3399 SoC. Signed-off-by: Roger Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip

[PATCH 3/3] arm64: dts: rockchip: add GMAC dt nodes for RK3399 evb

2016-07-06 Thread Roger Chen
This patch add ethernet GMAC dt nodes for RK3399 evaluation board. Signed-off-by: Roger Chen --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip

[PATCH v3 6/6] GMAC: add document for Rockchip RK3288 GMAC

2014-12-29 Thread Roger Chen
The document descripts how to add properties for GMAC in device tree. change since v2: 1. remove power-gpio, reset-gpio, phyirq-gpio, pmu_regulator setting 2. add "snps,reset-gpio", "snps,reset-active-low;" "snps,reset-delays-us" Signed-off-by: Roger Chen --

[PATCH v3 4/6] ARM: dts: rockchip: add gmac info for rk3288

2014-12-29 Thread Roger Chen
add gmac info in rk3288.dtsi for GMAC driver changes since v2: 1. add drive-strength in the pinctrl settings Signed-off-by: Roger Chen --- arch/arm/boot/dts/rk3288.dtsi | 54 + 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/rk3288

[PATCH v3 3/6] GMAC: modify CRU config for Rockchip RK3288 SoCs integrated GMAC

2014-12-29 Thread Roger Chen
modify CRU config for GMAC driver changes since v2: 1. remove SCLK_MAC_PLL Signed-off-by: Roger Chen --- drivers/clk/rockchip/clk-rk3288.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c

[PATCH v3 5/6] ARM: dts: rockchip: enable gmac on RK3288 evb board

2014-12-29 Thread Roger Chen
enable gmac in rk3288-evb-rk808.dts changes since v2: 1. add fixed regulator for PHY 2. remove power-gpio, reset-gpio, phyirq-gpio, pmu_regulator setting 3. add "snps,reset-gpio", "snps,reset-active-low;" "snps,reset-delays-us" Signed-off-by: Roger Chen --- arch

[PATCH v3 1/6] GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC

2014-12-29 Thread Roger Chen
rgmii_speed() - remove .tx_coe=1 in rk_gmac_data Signed-off-by: Roger Chen --- drivers/net/ethernet/stmicro/stmmac/Makefile |2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 459 .../net/ethernet/stmicro/stmmac/stmmac_platform.c |1 + .../net/ethernet/stm

[PATCH v3 2/6] GMAC: define clock ID used for GMAC

2014-12-29 Thread Roger Chen
changes since v2: 1. remove SCLK_MAC_PLL Signed-off-by: Roger Chen --- include/dt-bindings/clock/rk3288-cru.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h index 100a08c..81eb35b 100644 --- a/include/dt

[PATCH v3 0/6] support GMAC driver for RK3288

2014-12-29 Thread Roger Chen
Roger Chen (6): patch1: add driver for Rockchip RK3288 SoCs integrated GMAC patch2: define clock ID used for GMAC patch3: modify CRU config for Rockchip RK3288 SoCs integrated GMAC patch4: dts: rockchip: add gmac info for rk3288 patch5: dts: rockchip: enable gmac on RK3288 evb board

[PATCH v2 2/6] GMAC: define clock ID used for GMAC

2014-11-26 Thread Roger Chen
Signed-off-by: Roger Chen --- include/dt-bindings/clock/rk3288-cru.h |4 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h index 100a08c..f9496f5 100644 --- a/include/dt-bindings/clock/rk3288-cru.h +++ b

[PATCH v2 6/6] GMAC: add document for Rockchip RK3288 GMAC

2014-11-26 Thread Roger Chen
The document descripts how to add properties for GMAC in device tree. Signed-off-by: Roger Chen --- .../devicetree/bindings/net/rockchip-dwmac.txt | 71 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/rockchip-dwmac.txt diff

[PATCH v2 3/6] GMAC: modify CRU config for Rockchip RK3288 SoCs integrated GMAC

2014-11-26 Thread Roger Chen
modify CRU config for GMAC driver Signed-off-by: Roger Chen --- drivers/clk/rockchip/clk-rk3288.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 2327829..60237dc 100644 --- a

[PATCH v2 4/6] ARM: dts: rockchip: add gmac info for rk3288

2014-11-26 Thread Roger Chen
add gmac info in rk3288.dtsi for GMAC driver Signed-off-by: Roger Chen --- arch/arm/boot/dts/rk3288.dtsi | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 0f50d5d..22f7019 100644

[PATCH v2 5/6] ARM: dts: rockchip: enable gmac on RK3288 evb board

2014-11-26 Thread Roger Chen
enable gmac in rk3288-evb-rk808.dts Signed-off-by: Roger Chen --- arch/arm/boot/dts/rk3288-evb-rk808.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts index d8c775e6..13ad2d2

[PATCH v2 1/6] GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC

2014-11-26 Thread Roger Chen
t; +.has_gmac = 1, > +.tx_coe = 1, FYI, on new gmac there is the HW capability register to dinamically provide you if coe is supported. IMO you should add the OF "compatible" string and in case of mac newer than the 3.50a you can remove coe.

[PATCH v2 0/6] support GMAC driver for RK3288

2014-11-26 Thread Roger Chen
Roger Chen (6): patch1: add driver for Rockchip RK3288 SoCs integrated GMAC patch2: define clock ID used for GMAC patch3: modify CRU config for Rockchip RK3288 SoCs integrated GMAC patch4: dts: rockchip: add gmac info for rk3288 patch5: dts: rockchip: enable gmac on RK3288 evb board

[PATCH v2 0/6] support GMAC driver for RK3288

2014-11-26 Thread Roger Chen
Roger Chen (6): patch1: add driver for Rockchip RK3288 SoCs integrated GMAC patch2: define clock ID used for GMAC patch3: modify CRU config for Rockchip RK3288 SoCs integrated GMAC patch4: dts: rockchip: add gmac info for rk3288 patch5: dts: rockchip: enable gmac on RK3288 evb board

[PATCH 1/4] GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC

2014-11-25 Thread Roger Chen
This driver is based on stmmac driver. Signed-off-by: Roger Chen --- drivers/net/ethernet/stmicro/stmmac/Makefile |2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 629 .../net/ethernet/stmicro/stmmac/stmmac_platform.c |3 + .../net/ethernet

[PATCH 4/4] GMAC: dts: enable gmac on RK3288 evb board

2014-11-25 Thread Roger Chen
enable gmac in rk3288-evb-rk808.dts Signed-off-by: Roger Chen --- arch/arm/boot/dts/rk3288-evb-rk808.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts index d8c775e6..168b4fa 100644

[PATCH 2/4] GMAC: modify CRU config for Rockchip RK3288 SoCs integrated GMAC

2014-11-25 Thread Roger Chen
modify CRU config for GMAC driver Signed-off-by: Roger Chen --- drivers/clk/rockchip/clk-rk3288.c | 14 +++--- include/dt-bindings/clock/rk3288-cru.h |4 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk

[PATCH 3/4] GMAC: dts: add gmac info for rk3288

2014-11-25 Thread Roger Chen
add gmac info in rk3288.dtsi for GMAC driver Signed-off-by: Roger Chen --- arch/arm/boot/dts/rk3288.dtsi | 59 + 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 0f50d5d..949675d 100644

[PATCH 1/4] GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC

2014-11-25 Thread Roger Chen
This driver is based on stmmac driver. Signed-off-by: Roger Chen --- drivers/net/ethernet/stmicro/stmmac/Makefile |2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 629 .../net/ethernet/stmicro/stmmac/stmmac_platform.c |3 + .../net/ethernet

[PATCH 0/4] support GMAC driver for RK3288

2014-11-25 Thread Roger Chen
Roger Chen (4): patch1: add driver for Rockchip RK3288 SoCs integrated GMAC patch2: modify CRU config for Rockchip RK3288 SoCs integrated GMAC patch3: dts: add gmac info for rk3288 patch4: dts: enable gmac on RK3288 evb board tested on rk3288 SDK board: busybox ifconfig eth0 up busybox

[PATCH 0/4] support GMAC driver for RK3288

2014-11-25 Thread Roger Chen
Roger Chen (4): patch1: add driver for Rockchip RK3288 SoCs integrated GMAC patch2: modify CRU config for Rockchip RK3288 SoCs integrated GMAC patch3: dts: add gmac info for rk3288 patch4: dts: enable gmac on RK3288 evb board tested on rk3288 SDK board: busybox ifconfig eth0 up busybox