public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 00/17] imx: dm: Update mccmon6 board to only use DM/DTS in u-boot proper
@ 2019-01-31  9:03 Lukasz Majewski
  2019-01-31  9:03 ` [U-Boot] [PATCH v2 01/17] dm: Fix documentation entry as there is no UCLASS_CLOCK uclass Lukasz Majewski
                   ` (16 more replies)
  0 siblings, 17 replies; 24+ messages in thread
From: Lukasz Majewski @ 2019-01-31  9:03 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-01-31 11:14 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-31  9:03 [U-Boot] [PATCH v2 00/17] imx: dm: Update mccmon6 board to only use DM/DTS in u-boot proper Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 01/17] dm: Fix documentation entry as there is no UCLASS_CLOCK uclass Lukasz Majewski
2019-01-31 10:04   ` Simon Glass
2019-01-31  9:03 ` [U-Boot] [PATCH v2 02/17] cmd: Do not show frequency for clocks which .get_rate() return error Lukasz Majewski
2019-01-31 10:04   ` Simon Glass
2019-01-31  9:03 ` [U-Boot] [PATCH v2 03/17] dm: clk: Define clk_get_parent_rate() for clk operations Lukasz Majewski
2019-01-31 10:05   ` Simon Glass
2019-01-31 11:14     ` Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 04/17] dm: clk: Define clk_get_by_id() " Lukasz Majewski
2019-01-31 10:05   ` Simon Glass
2019-01-31 10:51     ` Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 05/17] clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3) Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 06/17] ARM: imx: cosmetic: Remove not needed comment from the mccmon6.h file Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 07/17] ARM: imx: config: Disable support for USB on MCCMON6 Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 08/17] net: imx: Add support for waiting some time after FEC gpio reset Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 09/17] spi: imx: Add support for 'per' clock enabling via driver model Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 10/17] ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 11/17] ARM: imx: Decouple mccmon6's SPL and u-boot proper code Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 12/17] ARM: imx: Disable 1Gbps support on MCCMON6's KSZ9031 PHY Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 13/17] Kconfig: Make CMD_SPL_NAND_OFS only available when proper memory is used Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 14/17] Kconfig: cosmetic: Update description of CMD_SPL_NAND_OFS Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 15/17] Kconfig: Add CMD_SPL_NOR_OFS config for falcon boot argument offset Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 16/17] doc: Update parallel NOR flash related information in README.falcon Lukasz Majewski
2019-01-31  9:03 ` [U-Boot] [PATCH v2 17/17] imx: Convert mccmon6 to use fitImage instead of uImage+DTB Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox