Addressed comments from:.
- Daniel Lezcano: https://www.spinics.net/lists/devicetree/msg196683.html
- Brendan Higgins: https://www.spinics.net/lists/devicetree/msg201038.html
https://www.spinics.net/lists/devicetree/msg201037.html
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 to solve it.
- Adding support to resume function
- Using timer-of.c API
- Modify NPCM750 compatible name.
Asked Brendon to modify NPCM7xx device tree entry.
https://lkml.org/lkml/2017/11/6/335
Changes have been tested on the NPCM750 evaluation board.
Tomer Maimon (2):
clocksource: npcm: add NPCM7xx timer driver
dt-binding: timer: document NPCM7xx timer DT bindings
.../bindings/timer/nuvoton,npcm7xx-timer.txt | 25 +++
drivers/clocksource/Kconfig | 8 +
drivers/clocksource/Makefile | 1 +
drivers/clocksource/npcm7xx-timer.c | 239 +++++++++++++++++++++
4 files changed, 273 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt
create mode 100644 drivers/clocksource/npcm7xx-timer.c
--
2.14.1
From 1583311865984626438@xxx Mon Nov 06 10:24:21 +0000 2017
X-GM-THRID: 1582866100793273296
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread
Added device tree binding documentation for Nuvoton NPCM7xx timer.
Signed-off-by: Tomer Maimon <[email protected]>
---
.../bindings/timer/nuvoton,npcm7xx-timer.txt | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt
diff --git a/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt
new file mode 100644
index 000000000000..c5150522e618
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt
@@ -0,0 +1,25 @@
+Nuvoton NPCM7xx timer
+
+Nuvoton NPCM7xx have three timer modules, each timer module provides five 24-bit
+timer counters.
+
+Required properties:
+- compatible : "nuvoton,npcm750-timer" for Poleg NPCM750.
+- reg : Offset and length of the register set for the device.
+- interrupts : Contain the timer interrupt with flags for
+ falling edge.
+
+Required clocking property, have to be one of:
+- clocks : phandle of timer reference clock.
+- clock-frequency : The frequency in Hz of the clock that drives the NPCM7xx
+ timer (usually 25000000).
+
+Example:
+
+timer@f0008000 {
+ compatible = "nuvoton,npcm750-timer";
+ interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xf0008000 0x1000>;
+ clocks = <&clk NPCM7XX_CLK_TIMER>;
+};
+
--
2.14.1
From 1584331655607802569@xxx Fri Nov 17 16:33:28 +0000 2017
X-GM-THRID: 1584331655607802569
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread