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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
30 matches
Mail list logo