Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933945AbeAOF5w (ORCPT + 1 other); Mon, 15 Jan 2018 00:57:52 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:32861 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932251AbeAOF5r (ORCPT ); Mon, 15 Jan 2018 00:57:47 -0500 X-Google-Smtp-Source: ACJfBouY9Wwmv6zo7n44Zv+59DXTKVwouw6Mfb3dm+9GU9DbLUmBX3/C3n5K3IWGxwnXCjjJUC+NCQ== From: Greentime Hu To: greentime@andestech.com, linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, netdev@vger.kernel.org, deanbo422@gmail.com, devicetree@vger.kernel.org, viro@zeniv.linux.org.uk, dhowells@redhat.com, will.deacon@arm.com, daniel.lezcano@linaro.org, linux-serial@vger.kernel.org, geert.uytterhoeven@gmail.com, linus.walleij@linaro.org, mark.rutland@arm.com, greg@kroah.com, ren_guo@c-sky.com, rdunlap@infradead.org, davem@davemloft.net, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com Cc: Greentime Hu , rick@andestech.com Subject: [PATCH v6 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer Date: Mon, 15 Jan 2018 13:57:28 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source and count downwards until underflow and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Changes in v6: - To select TIMER_OF in drivers/clocksource/Kconfig instead of arch/nds32/Kconfig - Refine Kconfig - Update license format to SPDX-License-Identifier Rick Chen (3): clocksource/drivers/atcpit100: Add andestech atcpit100 timer clocksource/drivers/atcpit100: VDSO support dt-bindings: timer: Add andestech atcpit100 timer binding doc .../bindings/timer/andestech,atcpit100-timer.txt | 33 +++ drivers/clocksource/Kconfig | 9 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-atcpit100.c | 262 ++++++++++++++++++++ 4 files changed, 305 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/andestech,atcpit100-timer.txt create mode 100644 drivers/clocksource/timer-atcpit100.c -- 1.7.9.5