devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] clk: sunxi: Simpler driver for Allwinner's clocks
@ 2016-06-28 17:44 Jean-Francois Moine
       [not found] ` <cover.1467135898.git.moinejf-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Francois Moine @ 2016-06-28 17:44 UTC (permalink / raw)
  To: Emilio Lopez, Maxime Ripard, Chen-Yu Tsai
  Cc: Stephen Boyd, Michael Turquette,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-clk-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

The 'sunxi-ng' proposal from Maxime Ripard did a great advance in
handling the clocks of Allwinner's SoCs, but it appeared that it
was not easy to extend its functions and handle some other SoCs as
the A83T.

This patch series proposes a more flexible and simpler structure.
The basic idea is to have the same structure for all clocks.
All parameters (multipliers, dividers, mux, gates..) may be defined
or not in each clock. An 'extra' pointer permits to handle rare
or specific functions.

The notion of 'bus gates' appearing in previous drivers and DTs
are of no interest outside the clock driver itself. So, this
driver maps the bus gate and clock gate operations to the standard
clock functions 'prepare/unprepare' and 'enable/disable'.

The reset functions are included in this driver.
As often, the resets occur at probe time, at the same time as the
clock prepare calls, this driver optionally proposes to hide them
by doing a 'reset and enable bus gate' on clock prepare (and same
in inverse order on clock unprepare).

This driver has been tested on a Banana Pi M3 (A83T):
- working: UART0, USB0, MMC0, THS, video (DE + LCD1 + HDMI)
- not tested yet: HDMI audio (the EDID cannot be read
				preventing audio to be enabled)
- not working: MMC1 (wifi), MMC2 (eMMC)

(sorry, Maxime, but I think that my implementation is easier to
 extend than yours)

Jean-Francois Moine (3):
  clk: sunxi: Add a driver for the CCU
  clk: sunxi: Add the A83T clocks
  dt: sun8i: Define the clocks of the A83T

 Documentation/devicetree/bindings/clock/sunxi.txt |   7 +-
 arch/arm/boot/dts/sun8i-a83t.dtsi                 |  16 +-
 drivers/clk/sunxi/Makefile                        |   3 +
 drivers/clk/sunxi/ccu-sun8i-a83t.c                | 858 +++++++++++++++++++
 drivers/clk/sunxi/ccu.c                           | 980 ++++++++++++++++++++++
 drivers/clk/sunxi/ccu.h                           | 153 ++++
 include/dt-bindings/clock/sun8i-a83t.h            |  97 +++
 include/dt-bindings/reset/sun8i-a83t.h            |  62 ++
 8 files changed, 2169 insertions(+), 7 deletions(-)
 create mode 100644 drivers/clk/sunxi/ccu-sun8i-a83t.c
 create mode 100644 drivers/clk/sunxi/ccu.c
 create mode 100644 drivers/clk/sunxi/ccu.h
 create mode 100644 include/dt-bindings/clock/sun8i-a83t.h
 create mode 100644 include/dt-bindings/reset/sun8i-a83t.h

-- 
2.9.0

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

end of thread, other threads:[~2016-07-01  6:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-28 17:44 [PATCH 0/3] clk: sunxi: Simpler driver for Allwinner's clocks Jean-Francois Moine
     [not found] ` <cover.1467135898.git.moinejf-GANU6spQydw@public.gmane.org>
2016-06-28 15:37   ` [PATCH 1/3] clk: sunxi: Add a driver for the CCU Jean-Francois Moine
     [not found]     ` <a55dc5d1a9f02dc4d71d5c21064bffebe5a7b149.1467135898.git.moinejf-GANU6spQydw@public.gmane.org>
2016-06-28 20:45       ` Maxime Ripard
2016-06-28 22:21         ` Michael Turquette
2016-06-29  8:12         ` Jean-Francois Moine
     [not found]           ` <20160629101256.93895e6ff9184efa340f69dd-GANU6spQydw@public.gmane.org>
2016-06-30 21:16             ` Maxime Ripard
2016-07-01  6:01               ` Jean-Francois Moine
2016-07-01  6:04               ` Jean-Francois Moine
2016-07-01  6:34               ` Jean-Francois Moine
2016-06-28 17:20   ` [PATCH 2/3] clk: sunxi: Add the A83T clocks Jean-Francois Moine
2016-06-28 17:22   ` [PATCH 3/3] dt: sun8i: Define the clocks of the A83T Jean-Francois Moine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).