Skip to content

ARM: add initial support for Rockchip boards

Beniamino Galvani barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11net: add ARC EMAC driverdrivers/net/Kconfig drivers/net/Makefile drivers/net/arc_emac.c+477 -00 replies
2/11mfd: add act8846 driverdrivers/mfd/Kconfig drivers/mfd/Makefile drivers/mfd/act8846.c +1 more+215 -00 replies
3/11ARM: add basic support for Rockchip SoCsarch/arm/Kconfig arch/arm/Makefile arch/arm/mach-rockchip/Kconfig +3 more+68 -00 replies
4/11ARM: rockchip: add PLL initialization functionarch/arm/mach-rockchip/Makefile arch/arm/mach-rockchip/include/mach/rockchip-pll.h arch/arm/mach-rockchip/pll.c+129 -00 replies
5/11clk: gate: add flags argument to clock gate constructorarch/arm/mach-imx/clk.h arch/arm/mach-zynq/clk-zynq7000.c drivers/clk/clk-gate.c +4 more+18 -170 replies
6/11clk: gate: unify enable and disable functions handlingdrivers/clk/clk-gate.c+15 -180 replies
7/11clk: gate: add CLK_GATE_HIWORD_MASK flagdrivers/clk/clk-gate.c include/linux/clk.h+13 -50 replies
8/11clk: add rockchip clock gate driverarch/arm/Kconfig drivers/clk/Makefile drivers/clk/rockchip/Makefile +1 more+91 -00 replies
9/11pinctrl: add rockchip pinctrl and gpio driversarch/arm/Kconfig drivers/pinctrl/Kconfig drivers/pinctrl/Makefile +1 more+570 -00 replies
10/11ARM: dts: add Rockchip devicetree filesarch/arm/dts/rk3188-clocks.dtsi arch/arm/dts/rk3188-radxarock.dts arch/arm/dts/rk3188.dtsi +2 more+785 -00 replies
11/11ARM: rockchip: add radxa-rock boardarch/arm/boards/Makefile arch/arm/boards/radxa-rock/Makefile arch/arm/boards/radxa-rock/board.c +4 more+180 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] ARM: add initial support for Rockchip boards

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox from the "boot" partition on the NAND.

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to try it.

The patchset adds ethernet and pinctrl drivers, PLL and clocks initialization, and code to power on the external PHY of the board through the PMIC.

Beniamino

[1] https://gist.github.com/anonymous/41ccb09030005acb7f89
[2] http://dl.radxa.com/rock/source/.ubootrk.tar.gz

Beniamino Galvani (11):
net: add ARC EMAC driver
mfd: add act8846 driver
ARM: add basic support for Rockchip SoCs
ARM: rockchip: add PLL initialization function
clk: gate: add flags argument to clock gate constructor
clk: gate: unify enable and disable functions handling
clk: gate: add CLK_GATE_HIWORD_MASK flag
clk: add rockchip clock gate driver
pinctrl: add rockchip pinctrl and gpio drivers
ARM: dts: add Rockchip devicetree files
ARM: rockchip: add radxa-rock board

 arch/arm/Kconfig                                   |   11 +
 arch/arm/Makefile                                  |    1 +
 arch/arm/boards/Makefile                           |    1 +
 arch/arm/boards/radxa-rock/Makefile                |    2 +
 arch/arm/boards/radxa-rock/board.c                 |   78 +++
 arch/arm/boards/radxa-rock/env/config-board        |    6 +
 arch/arm/boards/radxa-rock/lowlevel.c              |   23 +
 arch/arm/configs/radxa-rock_defconfig              |   62 +++
 arch/arm/dts/rk3188-clocks.dtsi                    |  289 ++++++++++
 arch/arm/dts/rk3188-radxarock.dts                  |   32 ++
 arch/arm/dts/rk3188.dtsi                           |  298 +++++++++++
 arch/arm/dts/rk3xxx.dtsi                           |  134 +++++
 arch/arm/mach-imx/clk.h                            |    2 +-
 arch/arm/mach-rockchip/Kconfig                     |   15 +
 arch/arm/mach-rockchip/Makefile                    |    2 +
 arch/arm/mach-rockchip/core.c                      |   28 +
 arch/arm/mach-rockchip/include/mach/rockchip-pll.h |   26 +
 .../arm/mach-rockchip/include/mach/rockchip-regs.h |   25 +
 arch/arm/mach-rockchip/pll.c                       |  102 ++++
 arch/arm/mach-zynq/clk-zynq7000.c                  |    8 +-
 drivers/clk/Makefile                               |    1 +
 drivers/clk/clk-gate.c                             |   54 +-
 drivers/clk/mvebu/common.c                         |    2 +-
 drivers/clk/mxs/clk-imx28.c                        |    2 +-
 drivers/clk/rockchip/Makefile                      |    1 +
 drivers/clk/rockchip/clk-rockchip.c                |   86 +++
 drivers/clk/tegra/clk-periph.c                     |    2 +-
 drivers/mfd/Kconfig                                |    4 +
 drivers/mfd/Makefile                               |    1 +
 drivers/mfd/act8846.c                              |  154 ++++++
 drivers/net/Kconfig                                |    7 +
 drivers/net/Makefile                               |    1 +
 drivers/net/arc_emac.c                             |  469 ++++++++++++++++
 drivers/pinctrl/Kconfig                            |    7 +
 drivers/pinctrl/Makefile                           |    1 +
 drivers/pinctrl/pinctrl-rockchip.c                 |  560 ++++++++++++++++++++
 include/dt-bindings/pinctrl/rockchip.h             |   32 ++
 include/linux/clk.h                                |    8 +-
 include/mfd/act8846.h                              |   56 ++
 39 files changed, 2557 insertions(+), 36 deletions(-)
 create mode 100644 arch/arm/boards/radxa-rock/Makefile
 create mode 100644 arch/arm/boards/radxa-rock/board.c
 create mode 100644 arch/arm/boards/radxa-rock/env/config-board
 create mode 100644 arch/arm/boards/radxa-rock/lowlevel.c
 create mode 100644 arch/arm/configs/radxa-rock_defconfig
 create mode 100644 arch/arm/dts/rk3188-clocks.dtsi
 create mode 100644 arch/arm/dts/rk3188-radxarock.dts
 create mode 100644 arch/arm/dts/rk3188.dtsi
 create mode 100644 arch/arm/dts/rk3xxx.dtsi
 create mode 100644 arch/arm/mach-rockchip/Kconfig
 create mode 100644 arch/arm/mach-rockchip/Makefile
 create mode 100644 arch/arm/mach-rockchip/core.c
 create mode 100644 arch/arm/mach-rockchip/include/mach/rockchip-pll.h
 create mode 100644 arch/arm/mach-rockchip/include/mach/rockchip-regs.h
 create mode 100644 arch/arm/mach-rockchip/pll.c
 create mode 100644 drivers/clk/rockchip/Makefile
 create mode 100644 drivers/clk/rockchip/clk-rockchip.c
 create mode 100644 drivers/mfd/act8846.c
 create mode 100644 drivers/net/arc_emac.c
 create mode 100644 drivers/pinctrl/pinctrl-rockchip.c
 create mode 100644 include/dt-bindings/pinctrl/rockchip.h
 create mode 100644 include/mfd/act8846.h
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox