From patchwork Thu Mar 8 15:24:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomer Maimon X-Patchwork-Id: 883178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zxvVZ5yM8z9s32 for ; Fri, 9 Mar 2018 02:26:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zxvVZ3w0NzDqGy for ; Fri, 9 Mar 2018 02:26:14 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=nuvoton.com (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tomer.maimon@nuvoton.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from herzl.nuvoton.co.il (212.199.177.27.static.012.net.il [212.199.177.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zxvTx5c38zF1sM for ; Fri, 9 Mar 2018 02:25:36 +1100 (AEDT) Received: from talu34.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id w28F6fCk031241; Thu, 8 Mar 2018 17:06:42 +0200 Received: by talu34.nuvoton.co.il (Postfix, from userid 10070) id 273105AA75; Thu, 8 Mar 2018 17:25:01 +0200 (IST) From: Tomer Maimon To: robh+dt@kernel.org, mark.rutland@arm.com, daniel.lezcano@linaro.org, tglx@linutronix.de, avifishman70@gmail.com, brendanhiggins@google.com, venture@google.com, joel@jms.id.au Subject: [PATCH v5 0/2] clocksource/drivers/npcm: Add NPCM7xx timer driver Date: Thu, 8 Mar 2018 17:24:56 +0200 Message-Id: <1520522698-16153-1-git-send-email-tmaimon77@gmail.com> X-Mailer: git-send-email 1.8.3.4 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Tomer Maimon Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Addressed comments from:. - Daniel Lezcano: https://www.spinics.net/lists/kernel/msg2741546.html https://www.spinics.net/lists/kernel/msg2741548.html - Joel Stanley: https://www.spinics.net/lists/kernel/msg2736646.html Changes since version 4: - Remove clock-frequency option. - Rename driver name. - Enable TIMER_OF_CLOCK flag. - Modify register size in the dt-binding. Changes since version 3: - Modify prefix to npcm7xx_ - Modify licensing to SPDX license format Changes since version 2: - The shutdown function called oneshot function that can cause a crash in the system, Modify shutdown call to unique shutdown function. - Adding support to resume function - Using timer-of.c API - Modify NPCM750 compatible name. Changes since version 1: - Rename driver name - Removing unnecessary dependencies in configuration - Adding prefix to the macros - No changes to dt-binding documentation since v1 Modified driver have been tested on the NPCM750 evaluation board. Tomer Maimon (2): dt-binding: timer: document NPCM7xx timer DT bindings clocksource/drivers/npcm: Add NPCM7xx timer driver .../bindings/timer/nuvoton,npcm7xx-timer.txt | 21 ++ drivers/clocksource/Kconfig | 8 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-npcm7xx.c | 215 +++++++++++++++++++++ 4 files changed, 245 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt create mode 100644 drivers/clocksource/timer-npcm7xx.c