forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'timers-v6.13-rc1' of https://git.linaro.org/people/daniel.…
…lezcano/linux into timers/core Pull clocksource/event updates from Daniel Lezcano: - Remove unused dw_apb_clockevent_[pause|resume|stop] functions as they are unused since 2021 (David Alan Gilbert) - Make the sp804 driver user selectable as they may be unused on some platforms (Mark Brown) - Don't fail if the ti-dm does not describe an interrupt in the DT as this could be a normal situation if the PWM is used (Judith Mendez) - Always use cluster 0 counter as a clocksource on a multi-cluster system to prevent problems related to the time shifting between clusters if multiple per cluster clocksource is used (Paul Burton) - Move the RaLink system tick counter from the arch directory to the clocksource directory (Sergio Paracuellos) - Convert the owl-timer bindings into yaml schema (Ivaylo Ivanov) - Fix child node refcount handling on the TI DM by relying on the __free annotation to automatically release the refcount on the node (Javier Carrasco) - Remove pointless cast in the GPX driver as PTR_ERR already does that (Tang Bin) - Use of_property_present() for non-boolean properties where it is possible in the different drivers (Rob Herring) Link: https://lore.kernel.org/lkml/[email protected]
- Loading branch information
Showing
15 changed files
with
174 additions
and
90 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
Documentation/devicetree/bindings/timer/actions,owl-timer.txt
This file was deleted.
Oops, something went wrong.
107 changes: 107 additions & 0 deletions
107
Documentation/devicetree/bindings/timer/actions,owl-timer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/timer/actions,owl-timer.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Actions Semi Owl timer | ||
|
||
maintainers: | ||
- Andreas Färber <[email protected]> | ||
|
||
description: | ||
Actions Semi Owl SoCs provide 32bit and 2Hz timers. | ||
The 32bit timers support dynamic irq, as well as one-shot mode. | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- actions,s500-timer | ||
- actions,s700-timer | ||
- actions,s900-timer | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
minItems: 1 | ||
maxItems: 6 | ||
|
||
interrupt-names: | ||
minItems: 1 | ||
maxItems: 6 | ||
items: | ||
enum: | ||
- 2hz0 | ||
- 2hz1 | ||
- timer0 | ||
- timer1 | ||
- timer2 | ||
- timer3 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- clocks | ||
- interrupts | ||
- interrupt-names | ||
- reg | ||
|
||
allOf: | ||
- if: | ||
properties: | ||
compatible: | ||
contains: | ||
enum: | ||
- actions,s500-timer | ||
then: | ||
properties: | ||
interrupts: | ||
minItems: 4 | ||
maxItems: 4 | ||
interrupt-names: | ||
items: | ||
- const: 2hz0 | ||
- const: 2hz1 | ||
- const: timer0 | ||
- const: timer1 | ||
|
||
- if: | ||
properties: | ||
compatible: | ||
contains: | ||
enum: | ||
- actions,s700-timer | ||
- actions,s900-timer | ||
then: | ||
properties: | ||
interrupts: | ||
minItems: 1 | ||
maxItems: 1 | ||
interrupt-names: | ||
items: | ||
- const: timer1 | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
soc { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
timer@b0168000 { | ||
compatible = "actions,s500-timer"; | ||
reg = <0xb0168000 0x100>; | ||
clocks = <&hosc>; | ||
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-names = "2hz0", "2hz1", "timer0", "timer1"; | ||
}; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* Ralink System Tick Counter driver present on RT3352 and MT7620 SoCs. | ||
* | ||
* Copyright (C) 2013 by John Crispin <[email protected]> | ||
*/ | ||
|
@@ -16,8 +15,6 @@ | |
#include <linux/of_irq.h> | ||
#include <linux/of_address.h> | ||
|
||
#include <asm/mach-ralink/ralink_regs.h> | ||
|
||
#define SYSTICK_FREQ (50 * 1000) | ||
|
||
#define SYSTICK_CONFIG 0x00 | ||
|
@@ -40,7 +37,7 @@ static int systick_set_oneshot(struct clock_event_device *evt); | |
static int systick_shutdown(struct clock_event_device *evt); | ||
|
||
static int systick_next_event(unsigned long delta, | ||
struct clock_event_device *evt) | ||
struct clock_event_device *evt) | ||
{ | ||
struct systick_device *sdev; | ||
u32 count; | ||
|
@@ -60,7 +57,7 @@ static void systick_event_handler(struct clock_event_device *dev) | |
|
||
static irqreturn_t systick_interrupt(int irq, void *dev_id) | ||
{ | ||
struct clock_event_device *dev = (struct clock_event_device *) dev_id; | ||
struct clock_event_device *dev = (struct clock_event_device *)dev_id; | ||
|
||
dev->event_handler(dev); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.