This patch series converts mccmon6 to use Driver Model and Device Tree in u-boot proper. As the SPL is size constrained (and most notably the device has a strict boot time requirements) for this board (and uses falcon boot) - its conversion to DM/DTB will be added with separate patch series.
In the SPL/u-boot proper it now uses fitImage instead of legacy uImage and DTB. First patches are responsible for porting Linux's Common Clock Framework [CCF] to u-boot. They add only support for reading clock frequencies and enabling gate'd clocks. Some notable changes: - Use fitImage to boot Linux kernel (and also use of SPL's Falcon mode when running from parallel NOR flash) - DTS sync with kernel (tag: v4.20) - Decoupling SPL and u-boot proper for easy SPL DM/DTS conversion - Adding CONFIG_CLK for IMX6Q (reuse clock.c file functions) - Conversion to DM_MMC, DM_SPI, and BLK (u-boot proper) - Removal of DM_USB (as this board is not using it - no connector present) - Port of CCF (tag: 5.0-rc3) for imx6q ('dm tree', 'clk dump') (more information regarding design decisions in the patch commit message). Footprint changes (u-boot.imx): Before conversion: 345 KiB DM conversion (without CCF): 415 KiB With CCF: 421 KiB Buildman CI: ./tools/buildman/buildman.py --branch=HEAD imx6 mccmon6 --detail \ --verbose --show_errors --force-build --count=17 \ --output-dir=../BUILD/ Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/486666862 Patches applicable on top of master branch: SHA1: 535d74a8ae8d194269cefdf59ae17a92cd6e75dc Changes in v2: - Port the Common Clock Framework from Linux to U-boot (tag: 5.0-rc3) Lukasz Majewski (17): dm: Fix documentation entry as there is no UCLASS_CLOCK uclass cmd: Do not show frequency for clocks which .get_rate() return error dm: clk: Define clk_get_parent_rate() for clk operations dm: clk: Define clk_get_by_id() for clk operations clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3) ARM: imx: cosmetic: Remove not needed comment from the mccmon6.h file ARM: imx: config: Disable support for USB on MCCMON6 net: imx: Add support for waiting some time after FEC gpio reset spi: imx: Add support for 'per' clock enabling via driver model ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper ARM: imx: Decouple mccmon6's SPL and u-boot proper code ARM: imx: Disable 1Gbps support on MCCMON6's KSZ9031 PHY Kconfig: Make CMD_SPL_NAND_OFS only available when proper memory is used Kconfig: cosmetic: Update description of CMD_SPL_NAND_OFS Kconfig: Add CMD_SPL_NOR_OFS config for falcon boot argument offset doc: Update parallel NOR flash related information in README.falcon imx: Convert mccmon6 to use fitImage instead of uImage+DTB arch/arm/dts/imx6q-mccmon6.dts | 382 +++++++++++++++++++++++++++++++++ arch/arm/mach-imx/mx6/Kconfig | 7 + board/liebherr/mccmon6/Makefile | 7 +- board/liebherr/mccmon6/mccmon6.c | 446 --------------------------------------- board/liebherr/mccmon6/spl.c | 271 +++++++++++++++++++++++- cmd/Kconfig | 12 +- cmd/clk.c | 5 +- common/spl/spl_nor.c | 5 + configs/mccmon6_nor_defconfig | 40 +++- configs/mccmon6_sd_defconfig | 37 +++- doc/README.falcon | 3 + drivers/clk/Kconfig | 7 + drivers/clk/Makefile | 2 + drivers/clk/clk-divider.c | 148 +++++++++++++ drivers/clk/clk-fixed-factor.c | 87 ++++++++ drivers/clk/clk-mux.c | 164 ++++++++++++++ drivers/clk/clk-uclass.c | 63 ++++++ drivers/clk/clk.c | 56 +++++ drivers/clk/imx/Kconfig | 8 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-gate2.c | 113 ++++++++++ drivers/clk/imx/clk-imx6q.c | 179 ++++++++++++++++ drivers/clk/imx/clk-pfd.c | 91 ++++++++ drivers/clk/imx/clk-pllv3.c | 83 ++++++++ drivers/clk/imx/clk.h | 75 +++++++ drivers/net/fec_mxc.c | 11 + drivers/net/fec_mxc.h | 1 + drivers/spi/mxc_spi.c | 17 ++ include/clk.h | 22 +- include/configs/mccmon6.h | 83 +++----- include/linux/clk-provider.h | 94 +++++++++ 31 files changed, 1998 insertions(+), 523 deletions(-) create mode 100644 arch/arm/dts/imx6q-mccmon6.dts create mode 100644 drivers/clk/clk-divider.c create mode 100644 drivers/clk/clk-fixed-factor.c create mode 100644 drivers/clk/clk-mux.c create mode 100644 drivers/clk/clk.c create mode 100644 drivers/clk/imx/clk-gate2.c create mode 100644 drivers/clk/imx/clk-imx6q.c create mode 100644 drivers/clk/imx/clk-pfd.c create mode 100644 drivers/clk/imx/clk-pllv3.c create mode 100644 drivers/clk/imx/clk.h create mode 100644 include/linux/clk-provider.h -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot