From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Paul Cercueil To: Thierry Reding , Rob Herring , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Wim Van Sebroeck , Guenter Roeck , Ralf Baechle , Paul Burton , Jonathan Corbet , Michael Turquette , Stephen Boyd , Lee Jones Cc: Paul Cercueil , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@linux-mips.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v5 00/21] Ingenic JZ47xx TCU patchset v5 Date: Wed, 25 Jul 2018 01:19:37 +0200 Message-Id: <20180724231958.20659-1-paul@crapouillou.net> List-ID: Hi, This is the V5 of my patchset that adds support to the Timer/Counter Unit (TCU) present on Ingenic JZ47xx SoCs. Way too much has changed since V4, we went from 8 patches in V4 up to 21 patches in V5. I did not know if I had to submit it as V5 or start a new series. In doubt, I sent a V5. Very succint description of the changes: - The interrupt, clocks, clocksource drivers have been merged into one; ingenic-timer now inits the TCU clocks, handles the interrupts, provides a system timer and optionally also a clocksource and sched_clock. The TCU channel #0 will be used as system timer, unless another channel is specified from devicetree. - The simple-mfd and syscon are gone. The ingenic-timer driver will probe the drivers registered as children in the devicetree. - The watchdog driver was updated to use the WDT clock and regmap provided by ingenic-timer. This breaks the devicetree ABI, but as explained in the corresponding commit message, right now all Ingenic boards compile the devicetree into the kernel anyway - so it's better to update it now before it's too late. - The PWM driver was updated to use the TCU timer clocks as well as the regmap provided by ingenic-timer. Unused devicetree compatible strings were removed (the driver was never probed from devicetree), and support for the JZ4725B has been added. - A new ingenic-ost driver was added, which provides a clocksource and a sched_clock that are more accurate than the ones provided by ingenic-timer (32 or 64-bit vs. 16-bit). It is not available on every SoC. - Mostly tested on the JZ4725B and JZ4770. It would be great if somebody could test on the JZ4780 and JZ4740. Thanks, -Paul