From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933210AbcIFMSq (ORCPT ); Tue, 6 Sep 2016 08:18:46 -0400 Received: from down.free-electrons.com ([37.187.137.238]:48060 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754196AbcIFMSn (ORCPT ); Tue, 6 Sep 2016 08:18:43 -0400 From: Maxime Ripard To: Mike Turquette , Stephen Boyd , Chen-Yu Tsai Cc: Hans de Goede , Mylene Josserand , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Maxime Ripard Subject: [PATCH v2 0/7] clk: sunxi-ng: Introduce support for A23 and A33 CCUs Date: Tue, 6 Sep 2016 14:18:30 +0200 Message-Id: <20160906121837.7517-1-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, Here is the migration for the A23 and A33 clocks to the sunxi-ng framework. It has been tested on SinA33 board, and I made sure that everything was reported at the exact same rate, that the MMC was still working in DDR, etc. This has also been tested to implement the DRM driver, so I'm confident things will work just fine. Let me know what you think, Maxime Changes from v1: - Allowed to set a maximum on the dividers, and used that on the CPU clocks - Renamed the CE (crypto engine) clocks to SS (security system) to stick to what's being used in the datasheet - Added a TODO to mention that we don't really know whose parents are linked to the USB clocks. Maxime Ripard (7): clk: sunxi-ng: div: Add mux table macros clk: sunxi-ng: div: Allow to set a maximum clk: sunxi-ng: mux: Add mux table macro clk: sunxi-ng: Add N-class clocks support clk: sunxi-ng: Add A33 CCU support clk: sunxi-ng: Add A23 CCU ARM: sun8i: Convert the A23 and A33 to the CCU .../devicetree/bindings/clock/sunxi-ccu.txt | 2 + arch/arm/boot/dts/sun8i-a23-a33.dtsi | 257 ++----- arch/arm/boot/dts/sun8i-a23.dtsi | 51 +- arch/arm/boot/dts/sun8i-a33.dtsi | 73 +- drivers/clk/sunxi-ng/Kconfig | 28 + drivers/clk/sunxi-ng/Makefile | 3 + drivers/clk/sunxi-ng/ccu-sun8i-a23-a33.h | 63 ++ drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 732 +++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 780 +++++++++++++++++++++ drivers/clk/sunxi-ng/ccu_div.h | 49 +- drivers/clk/sunxi-ng/ccu_mp.c | 23 +- drivers/clk/sunxi-ng/ccu_mult.c | 133 ++++ drivers/clk/sunxi-ng/ccu_mult.h | 35 + drivers/clk/sunxi-ng/ccu_mux.h | 26 +- drivers/clk/sunxi-ng/ccu_nkm.c | 4 +- drivers/clk/sunxi-ng/ccu_nkmp.c | 21 +- drivers/clk/sunxi-ng/ccu_nm.c | 16 +- include/dt-bindings/clock/sun8i-a23-a33-ccu.h | 127 ++++ include/dt-bindings/reset/sun8i-a23-a33-ccu.h | 87 +++ 19 files changed, 2151 insertions(+), 359 deletions(-) create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a23-a33.h create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a23.c create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a33.c create mode 100644 drivers/clk/sunxi-ng/ccu_mult.c create mode 100644 include/dt-bindings/clock/sun8i-a23-a33-ccu.h create mode 100644 include/dt-bindings/reset/sun8i-a23-a33-ccu.h -- 2.9.3