
This serie of patches add rmii interface support, and support more socs's gmac function, such as rv1108, rk3328 and rk3229.
Implement the "assign-clock-parent" and "assign-clock-rate" for rk3328, rk3228, rk3288 and rk3368.
This series of patches is based on Philipp's branch: https://github.com/ptomsich/u-boot-rockchip/tree/assigned-clocks-wip
Changes in v3: - Add "set parent" for gmac - Add "set parent" for gmac2io - Add internal mac clk div_sel for gmac - Add internal mac clk div_sel for gmac2io - Fix the wrong define for uart2 iomux - Fix the wrong define for uart2M0 - New patch - None - adhere to the established way of writing this to avoid future confusion - return error if there was no set_to_rgmii ops at rgmii case - return error if there was no set_to_rmii ops at rmii case - set and check clock rate when gmac clock is internal pll. - use defined symbolic constants for drive-strength
Changes in v2: - Add check whether the set rgmii/rmii function is a valid function pointer - Clean the grf offset at gmac_rockchip.c - New patch - None - Use current phy interface to set mac clock rate
David Wu (20): rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality rockchip: configs: Enable CONFIG_NET_RANDOM_ETHADDR for rk3288-evb rockchip: grf_rv1108.h: Fix the grf offsets rockchip: pinctrl: rv1108: Move the iomux definitions into pinctrl-driver net: gmac_rockchip: Add support for the RV1108 GMAC rockchip: pinctrl: rk3328: Move the iomux definitions into pinctrl-driver rockchip: pinctrl: Add rk3328 gmac pinctrl support clk: rockchip: Add rk3328 gamc clock support net: gmac_rockchip: Add rk3328 gmac support rockchip: configs: Enable GMAC configs for evb-rk3328 rockchip: dts: rk3328: Add gmac2io support rockchip: dts: rk3328-evb: Enable gmac2io for rk3328-evb rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver rockchip: pinctrl: Add rk322x gmac pinctrl support clk: rockchip: Add rk322x gamc clock support net: gmac_rockchip: Add support for the RK3228 GMAC config: evb-rk3229: Enable rk gmac configs ARM: dts: rk3288: Remove unused LCDC clock assigned clk: rockchip: clk_rk3288: Implement "assign-clock-parent" and "assign-clock-rate" clk: rockchip: clk_rk3368: Implement "assign-clock-parent"
arch/arm/dts/rk3288.dtsi | 7 +- arch/arm/dts/rk3328-evb.dts | 30 ++ arch/arm/dts/rk3328.dtsi | 19 + arch/arm/dts/rk3399-evb.dts | 4 +- arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 7 + arch/arm/include/asm/arch-rockchip/grf_rk322x.h | 455 ------------------ arch/arm/include/asm/arch-rockchip/grf_rk3328.h | 114 ----- arch/arm/include/asm/arch-rockchip/grf_rv1108.h | 405 +--------------- arch/arm/mach-rockchip/rk322x-board-spl.c | 22 +- arch/arm/mach-rockchip/rk322x-board.c | 18 + board/rockchip/evb_rv1108/evb_rv1108.c | 17 + configs/evb-rk3229_defconfig | 5 + configs/evb-rk3288_defconfig | 1 + configs/evb-rk3328_defconfig | 5 + drivers/clk/rockchip/clk_rk322x.c | 107 +++++ drivers/clk/rockchip/clk_rk3288.c | 106 ++++- drivers/clk/rockchip/clk_rk3328.c | 178 +++++++ drivers/clk/rockchip/clk_rk3368.c | 91 +++- drivers/net/gmac_rockchip.c | 285 ++++++++++- drivers/pinctrl/rockchip/pinctrl_rk322x.c | 601 ++++++++++++++++++++++++ drivers/pinctrl/rockchip/pinctrl_rk3328.c | 388 +++++++++++++++ drivers/pinctrl/rockchip/pinctrl_rv1108.c | 399 ++++++++++++++++ include/dt-bindings/clock/rk3288-cru.h | 1 + include/dt-bindings/clock/rk3328-cru.h | 6 +- 24 files changed, 2270 insertions(+), 1001 deletions(-)