clk: sunxi: Simpler driver for Allwinner's clocks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | clk: sunxi: Add a driver for the CCUdrivers/ drivers/ drivers/ | +1135 | 2 replies | |
| 1/3 | clk: sunxi: Add a driver for the CCU | +0 | 1 reply | |
| 1/3 | clk: sunxi: Add a driver for the CCU | +0 | 0 replies | |
| 1/3 | clk: sunxi: Add a driver for the CCU | +0 | 0 replies | |
| 1/3 | clk: sunxi: Add a driver for the CCU | +0 | 0 replies | |
| 2/3 | clk: sunxi: Add the A83T clocksdrivers/ drivers/ include/ +1 more | +1018 | 0 replies | |
| 3/3 | dt: sun8i: Define the clocks of the A83TDocumentation/ arch/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] clk: sunxi: Simpler driver for Allwinner's clocks
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
Signature · 1 line
2.9.0