mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 00/21] clk: at91: sync with Linux v5.6
Date: Mon, 13 Apr 2020 09:51:43 +0200	[thread overview]
Message-ID: <20200413075204.17544-1-a.fatoum@pengutronix.de> (raw)

During a bug hunt that ultimately turned out unrelated to the state
of the barebox at91 clk driver, I synchronized its state with Linux v5.6.

This imports it, after cleanup. It refactors other code a bit to reduce
the diff for the final port and future ones. What we gain from this:

- bug fixes that have been posted upstream in the meanwhile
- sam9x60 (new Microchip ARM926EJ-S) clock support
- sama5d2 audio PLL
- Some more helpers to make code porting slightly easier
- SPDX-License-Identifiers, not only for at91 clks, but for all of
  drivers/clk

Cheers,
Ahmad Fatoum (17):
  mfd: syscon: enable specified clocks on syscon_base_lookup_by_phandle
  mfd: syscon: refactor of_syscon_register compatible check
  mfd: syscon: implement device_node_to_regmap
  regmap: retire of_node_to_regmap in favor of device_node_to_regmap
  ARM: include: remove unused <asm/processor.h>
  treewide: use cpu_relax() where appropriate
  of: port Linux of_get_compatible_child helper
  clk: implement clk_register_fixed_rate
  clk: add clk_unregister stub
  include: linux/kernel.h: port DIV_ROUND_CLOSEST_ULL definition
  clk: migrate to SPDX-License-Identifier use
  clk: at91: delete no-longer required DT compat code
  clk: at91: compile dt-compat for all platforms that require it
  clk: at91: add __init marker where appropriate
  clk: at91: add sama5d2 audio PLL support
  clk: at91: port Linux v5.6 SAM9X60 (new ARM926EJ-S) clock support
  clk: at91: sckc: fix off-by-1000 in udelay()

Alexandre Belloni (2):
  clk: at91: fix masterck name
  clk: at91: fix possible deadlock

Eugen Hristev (1):
  clk: at91: allow 24 Mhz clock as input for PLL

Stephen Boyd (1):
  clk: at91: Mark struct clk_range as const

 arch/arm/include/asm/processor.h        | 131 ------
 arch/arm/mach-at91/Kconfig              |  19 +
 arch/arm/mach-omap/omap4_rom_usb.c      |   6 +-
 drivers/base/regmap/regmap-mmio.c       |   5 +-
 drivers/base/regmap/regmap.c            |  20 -
 drivers/clk/Kconfig                     |   1 +
 drivers/clk/Makefile                    |   1 +
 drivers/clk/at91/Makefile               |  15 +-
 drivers/clk/at91/at91sam9260.c          |  16 +-
 drivers/clk/at91/at91sam9rl.c           |   4 +-
 drivers/clk/at91/at91sam9x5.c           |  18 +-
 drivers/clk/at91/clk-audio-pll.c        | 512 ++++++++++++++++++++++++
 drivers/clk/at91/clk-generated.c        |  68 ++--
 drivers/clk/at91/clk-h32mx.c            |   9 +-
 drivers/clk/at91/clk-i2s-mux.c          |  87 ++++
 drivers/clk/at91/clk-main.c             |  25 +-
 drivers/clk/at91/clk-master.c           |  16 +-
 drivers/clk/at91/clk-peripheral.c       |  54 +--
 drivers/clk/at91/clk-pll.c              |  21 +-
 drivers/clk/at91/clk-plldiv.c           |   9 +-
 drivers/clk/at91/clk-programmable.c     |  53 ++-
 drivers/clk/at91/clk-sam9x60-pll.c      | 322 +++++++++++++++
 drivers/clk/at91/clk-slow.c             |   7 +-
 drivers/clk/at91/clk-smd.c              |   9 +-
 drivers/clk/at91/clk-system.c           |   9 +-
 drivers/clk/at91/clk-usb.c              |  44 +-
 drivers/clk/at91/clk-utmi.c             |   7 +-
 drivers/clk/at91/dt-compat.c            | 140 +------
 drivers/clk/at91/pmc.c                  |  19 +-
 drivers/clk/at91/pmc.h                  |  91 +++--
 drivers/clk/at91/sam9x60.c              | 313 +++++++++++++++
 drivers/clk/at91/sama5d2.c              |  79 +++-
 drivers/clk/at91/sama5d4.c              |  14 +-
 drivers/clk/at91/sckc.c                 | 387 +++++++++++-------
 drivers/clk/clk-ar933x.c                |  13 +-
 drivers/clk/clk-ar9344.c                |  10 +-
 drivers/clk/clk-composite.c             |  13 +-
 drivers/clk/clk-conf.c                  |   5 +-
 drivers/clk/clk-divider.c               |  12 +-
 drivers/clk/clk-fixed-factor.c          |  12 +-
 drivers/clk/clk-fixed.c                 |  28 +-
 drivers/clk/clk-fractional-divider.c    |   5 +-
 drivers/clk/clk-gate-shared.c           |  12 +-
 drivers/clk/clk-gate.c                  |  12 +-
 drivers/clk/clk-gpio.c                  |  12 +-
 drivers/clk/clk-mux.c                   |  12 +-
 drivers/clk/clk-qoric.c                 |   5 +-
 drivers/clk/clk.c                       |  12 +-
 drivers/clk/clkdev.c                    |   5 +-
 drivers/clk/imx/Makefile                |   1 +
 drivers/clk/imx/clk-cpu.c               |   8 +-
 drivers/clk/imx/clk-frac-pll.c          |   8 +-
 drivers/clk/imx/clk-gate-exclusive.c    |   5 +-
 drivers/clk/imx/clk-gate2.c             |  12 +-
 drivers/clk/imx/clk-imx1.c              |  14 +-
 drivers/clk/imx/clk-imx21.c             |  15 +-
 drivers/clk/imx/clk-imx25.c             |  15 +-
 drivers/clk/imx/clk-imx27.c             |   1 +
 drivers/clk/imx/clk-imx31.c             |  14 +-
 drivers/clk/imx/clk-imx35.c             |   6 +-
 drivers/clk/imx/clk-imx5.c              |   6 +-
 drivers/clk/imx/clk-imx6.c              |   8 +-
 drivers/clk/imx/clk-imx6sl.c            |   8 +-
 drivers/clk/imx/clk-imx6sx.c            |   8 +-
 drivers/clk/imx/clk-imx6ul.c            |   8 +-
 drivers/clk/imx/clk-imx7.c              |  10 +-
 drivers/clk/imx/clk-pfd.c               |   8 +-
 drivers/clk/imx/clk-pllv1.c             |  14 +-
 drivers/clk/imx/clk-pllv2.c             |  14 +-
 drivers/clk/imx/clk-pllv3.c             |  14 +-
 drivers/clk/imx/clk-sccg-pll.c          |   8 +-
 drivers/clk/imx/clk-vf610.c             |   7 +-
 drivers/clk/imx/clk.c                   |   1 +
 drivers/clk/imx/clk.h                   |   1 +
 drivers/clk/mvebu/Makefile              |   1 +
 drivers/clk/mvebu/armada-370.c          |   5 +-
 drivers/clk/mvebu/armada-38x.c          |   5 +-
 drivers/clk/mvebu/armada-xp.c           |   5 +-
 drivers/clk/mvebu/common.c              |   5 +-
 drivers/clk/mvebu/common.h              |   5 +-
 drivers/clk/mvebu/corediv.c             |   5 +-
 drivers/clk/mvebu/dove.c                |   5 +-
 drivers/clk/mvebu/kirkwood.c            |   5 +-
 drivers/clk/mxs/Makefile                |   1 +
 drivers/clk/mxs/clk-div.c               |   8 +-
 drivers/clk/mxs/clk-frac.c              |   8 +-
 drivers/clk/mxs/clk-imx23.c             |  14 +-
 drivers/clk/mxs/clk-imx28.c             |  14 +-
 drivers/clk/mxs/clk-lcdif.c             |   1 +
 drivers/clk/mxs/clk-pll.c               |   8 +-
 drivers/clk/mxs/clk-ref.c               |   8 +-
 drivers/clk/mxs/clk.h                   |   1 +
 drivers/clk/rockchip/Makefile           |   1 +
 drivers/clk/rockchip/clk-cpu.c          |   5 +-
 drivers/clk/rockchip/clk-pll.c          |  11 +-
 drivers/clk/rockchip/clk-rk3188.c       |  11 +-
 drivers/clk/rockchip/clk-rk3288.c       |  11 +-
 drivers/clk/rockchip/clk.c              |  11 +-
 drivers/clk/rockchip/clk.h              |  11 +-
 drivers/clk/socfpga/Makefile            |   1 +
 drivers/clk/socfpga/clk-gate-a10.c      |  13 +-
 drivers/clk/socfpga/clk-periph-a10.c    |  13 +-
 drivers/clk/socfpga/clk-pll-a10.c       |  13 +-
 drivers/clk/socfpga/clk.c               |  10 +-
 drivers/clk/socfpga/clk.h               |  11 +-
 drivers/clk/tegra/Makefile              |   1 +
 drivers/clk/tegra/clk-divider.c         |  13 +-
 drivers/clk/tegra/clk-periph.c          |  13 +-
 drivers/clk/tegra/clk-pll-out.c         |  13 +-
 drivers/clk/tegra/clk-pll.c             |  13 +-
 drivers/clk/tegra/clk-tegra124.c        |  13 +-
 drivers/clk/tegra/clk-tegra20.c         |  13 +-
 drivers/clk/tegra/clk-tegra30.c         |  13 +-
 drivers/clk/tegra/clk.c                 |  13 +-
 drivers/clk/tegra/clk.h                 |  13 +-
 drivers/clk/vexpress/Makefile           |   1 +
 drivers/clk/vexpress/clk-sp810.c        |  10 +-
 drivers/clk/vexpress/clk-vexpress-osc.c |  11 +-
 drivers/clk/zynq/Makefile               |   1 +
 drivers/clk/zynq/clkc.c                 |  13 +-
 drivers/clk/zynqmp/Makefile             |   1 +
 drivers/mfd/syscon.c                    |  36 +-
 drivers/mtd/nand/nand_denali.c          |   8 +-
 drivers/of/base.c                       |  25 ++
 include/linux/barebox-wrapper.h         |   2 +
 include/linux/clk.h                     |  13 +-
 include/linux/clk/at91_pmc.h            |  59 ++-
 include/linux/kernel.h                  |  13 +
 include/mfd/syscon.h                    |   5 +
 include/of.h                            |   8 +
 include/regmap.h                        |   3 +-
 131 files changed, 2110 insertions(+), 1356 deletions(-)
 delete mode 100644 arch/arm/include/asm/processor.h
 create mode 100644 drivers/clk/at91/clk-audio-pll.c
 create mode 100644 drivers/clk/at91/clk-i2s-mux.c
 create mode 100644 drivers/clk/at91/clk-sam9x60-pll.c
 create mode 100644 drivers/clk/at91/sam9x60.c

-- 
2.26.0.rc2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2020-04-13  7:52 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-13  7:51 Ahmad Fatoum [this message]
2020-04-13  7:51 ` [PATCH 01/21] mfd: syscon: enable specified clocks on syscon_base_lookup_by_phandle Ahmad Fatoum
2020-04-15  9:15   ` Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 02/21] mfd: syscon: refactor of_syscon_register compatible check Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 03/21] mfd: syscon: implement device_node_to_regmap Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 04/21] regmap: retire of_node_to_regmap in favor of device_node_to_regmap Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 05/21] ARM: include: remove unused <asm/processor.h> Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 06/21] treewide: use cpu_relax() where appropriate Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 07/21] of: port Linux of_get_compatible_child helper Ahmad Fatoum
2020-04-14  6:46   ` Sascha Hauer
2020-04-14  7:29     ` Ahmad Fatoum
2020-04-14  9:44       ` Michael Tretter
2020-04-14 15:41     ` [PATCH] fixup! " Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 08/21] clk: implement clk_register_fixed_rate Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 09/21] clk: add clk_unregister stub Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 10/21] include: linux/kernel.h: port DIV_ROUND_CLOSEST_ULL definition Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 11/21] clk: migrate to SPDX-License-Identifier use Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 12/21] clk: at91: fix masterck name Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 13/21] clk: at91: fix possible deadlock Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 14/21] clk: at91: delete no-longer required DT compat code Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 15/21] clk: at91: compile dt-compat for all platforms that require it Ahmad Fatoum
2020-04-13  7:51 ` [PATCH 16/21] clk: at91: add __init marker where appropriate Ahmad Fatoum
2020-04-13  7:52 ` [PATCH 17/21] clk: at91: Mark struct clk_range as const Ahmad Fatoum
2020-04-13  7:52 ` [PATCH 18/21] clk: at91: allow 24 Mhz clock as input for PLL Ahmad Fatoum
2020-04-13  7:52 ` [PATCH 19/21] clk: at91: add sama5d2 audio PLL support Ahmad Fatoum
2020-04-13  7:52 ` [PATCH 20/21] clk: at91: port Linux v5.6 SAM9X60 (new ARM926EJ-S) clock support Ahmad Fatoum
2020-04-13  7:52 ` [PATCH 21/21] clk: at91: sckc: fix off-by-1000 in udelay() Ahmad Fatoum
2020-04-15  9:23 ` [PATCH 00/21] clk: at91: sync with Linux v5.6 Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200413075204.17544-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox