From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753347AbcFOKNl (ORCPT ); Wed, 15 Jun 2016 06:13:41 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:38234 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbcFOKNj (ORCPT ); Wed, 15 Jun 2016 06:13:39 -0400 From: Neil Armstrong To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, daniel.lezcano@linaro.org, tglx@linutronix.de Cc: Neil Armstrong Subject: [PATCH v3 0/2] clocksource: Add support for Oxford Semiconductor RPS Dual Timer Date: Wed, 15 Jun 2016 12:13:25 +0200 Message-Id: <1465985607-21231-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds driver for the Oxford Semiconductor RPS Dual Timer as base of the OX810SE clock tick event and sched clock source. This driver was posted with the initial OX810SE platform patchset at : http://lkml.kernel.org/r/1457005210-18485-5-git-send-email-narmstrong@baylibre.com and http://lkml.kernel.org/r/1457005210-18485-6-git-send-email-narmstrong@baylibre.com But since the SP804 was very similar, I decided to adapt it for OX810SE usage. For some reasons, the SP804 has a lot of legacy code for non-dt, non-multiarch platforms and needs a complete rewrite. For now, this adds a dedicated driver with the same bindings as intended for SP804. Changes since v2 at http://lkml.kernel.org/r/1465315452-20599-1-git-send-email-narmstrong@baylibre.com : - Add Kconfig text with COMPILE_TEST options - Add CLKSRC_OF select - Add clean rollback of init in case of error - Prepare for clocksource and clockevent rollback by returning an int value - Switch kzalloc WARN_ON to a pr_err Changes since v1 at http://lkml.kernel.org/r/1464688198-9655-1-git-send-email-narmstrong@baylibre.com : - fix timer_shutdown behaviour - clean up period calculation Neil Armstrong (2): clocksource: Add Oxford Semiconductor RPS Dual Timer dt-bindings: clocksource: Add Add Oxford Semiconductor RPS Timer bindings .../devicetree/bindings/timer/oxsemi,rps-timer.txt | 17 ++ drivers/clocksource/Kconfig | 7 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-oxnas-rps.c | 290 +++++++++++++++++++++ 4 files changed, 315 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/oxsemi,rps-timer.txt create mode 100644 drivers/clocksource/timer-oxnas-rps.c -- 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: narmstrong@baylibre.com (Neil Armstrong) Date: Wed, 15 Jun 2016 12:13:25 +0200 Subject: [PATCH v3 0/2] clocksource: Add support for Oxford Semiconductor RPS Dual Timer Message-ID: <1465985607-21231-1-git-send-email-narmstrong@baylibre.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Adds driver for the Oxford Semiconductor RPS Dual Timer as base of the OX810SE clock tick event and sched clock source. This driver was posted with the initial OX810SE platform patchset at : http://lkml.kernel.org/r/1457005210-18485-5-git-send-email-narmstrong at baylibre.com and http://lkml.kernel.org/r/1457005210-18485-6-git-send-email-narmstrong at baylibre.com But since the SP804 was very similar, I decided to adapt it for OX810SE usage. For some reasons, the SP804 has a lot of legacy code for non-dt, non-multiarch platforms and needs a complete rewrite. For now, this adds a dedicated driver with the same bindings as intended for SP804. Changes since v2 at http://lkml.kernel.org/r/1465315452-20599-1-git-send-email-narmstrong at baylibre.com : - Add Kconfig text with COMPILE_TEST options - Add CLKSRC_OF select - Add clean rollback of init in case of error - Prepare for clocksource and clockevent rollback by returning an int value - Switch kzalloc WARN_ON to a pr_err Changes since v1 at http://lkml.kernel.org/r/1464688198-9655-1-git-send-email-narmstrong at baylibre.com : - fix timer_shutdown behaviour - clean up period calculation Neil Armstrong (2): clocksource: Add Oxford Semiconductor RPS Dual Timer dt-bindings: clocksource: Add Add Oxford Semiconductor RPS Timer bindings .../devicetree/bindings/timer/oxsemi,rps-timer.txt | 17 ++ drivers/clocksource/Kconfig | 7 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-oxnas-rps.c | 290 +++++++++++++++++++++ 4 files changed, 315 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/oxsemi,rps-timer.txt create mode 100644 drivers/clocksource/timer-oxnas-rps.c -- 1.9.1