Skip to content

Commit d2b32be

Browse files
committed
Merge tag 'timers-v6.5-rc1' of https://git.linaro.org/people/daniel.lezcano/linux into timers/core
Pull clockevent/source updates from Daniel Lezcano: - Fix memory leak on Cadence TTC at probe time (Feng Mingxi) - Use the pm_sleep_ptr macro for the Ingenic driver (Paul Cercueil) - Relocate the PMW timer Loongson from the mips arch directory to the drivers/clocksource (Keguang Zhang) - Use the same function names instead of using aliases and move data defined in the header to the driver directly as this one is the only user of the header file and remove this one on i.MX GPT (Uwe Kleine-König) - Convert Broadcom Kona family timer bindings to DT schema (Michael Kelley) - Add DT bindings for Ralink SoCs timer (Sergio Paracuellos)
2 parents ccaa492 + 8b5bf64 commit d2b32be

File tree

20 files changed

+442
-374
lines changed

20 files changed

+442
-374
lines changed

Documentation/devicetree/bindings/timer/brcm,kona-timer.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/brcm,kona-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Broadcom Kona family timer
8+
9+
maintainers:
10+
- Florian Fainelli <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: brcm,kona-timer
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
clock-frequency: true
26+
27+
oneOf:
28+
- required:
29+
- clocks
30+
- required:
31+
- clock-frequency
32+
33+
required:
34+
- compatible
35+
- reg
36+
- interrupts
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/clock/bcm281xx.h>
43+
#include <dt-bindings/interrupt-controller/arm-gic.h>
44+
#include <dt-bindings/interrupt-controller/irq.h>
45+
46+
timer@35006000 {
47+
compatible = "brcm,kona-timer";
48+
reg = <0x35006000 0x1000>;
49+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
50+
clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>;
51+
};
52+
...
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/loongson,ls1x-pwmtimer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson-1 PWM timer
8+
9+
maintainers:
10+
- Keguang Zhang <[email protected]>
11+
12+
description:
13+
Loongson-1 PWM timer can be used for system clock source
14+
and clock event timers.
15+
16+
properties:
17+
compatible:
18+
const: loongson,ls1b-pwmtimer
19+
20+
reg:
21+
maxItems: 1
22+
23+
clocks:
24+
maxItems: 1
25+
26+
interrupts:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
- clocks
33+
- interrupts
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
#include <dt-bindings/clock/loongson,ls1x-clk.h>
40+
#include <dt-bindings/interrupt-controller/irq.h>
41+
clocksource: timer@1fe5c030 {
42+
compatible = "loongson,ls1b-pwmtimer";
43+
reg = <0x1fe5c030 0x10>;
44+
45+
clocks = <&clkc LS1X_CLKID_APB>;
46+
interrupt-parent = <&intc0>;
47+
interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
48+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/ralink,rt2880-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Timer present in Ralink family SoCs
8+
9+
maintainers:
10+
- Sergio Paracuellos <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: ralink,rt2880-timer
15+
16+
reg:
17+
maxItems: 1
18+
19+
clocks:
20+
maxItems: 1
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
- clocks
29+
- interrupts
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
timer@100 {
36+
compatible = "ralink,rt2880-timer";
37+
reg = <0x100 0x20>;
38+
39+
clocks = <&sysc 3>;
40+
41+
interrupt-parent = <&intc>;
42+
interrupts = <1>;
43+
};
44+
...

arch/mips/include/asm/mach-loongson32/loongson1.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
#include <regs-clk.h>
4949
#include <regs-mux.h>
50-
#include <regs-pwm.h>
5150
#include <regs-rtc.h>
5251
#include <regs-wdt.h>
5352

arch/mips/include/asm/mach-loongson32/regs-pwm.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

arch/mips/loongson32/Kconfig

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -35,41 +35,4 @@ config LOONGSON1_LS1C
3535
select COMMON_CLK
3636
endchoice
3737

38-
menuconfig CEVT_CSRC_LS1X
39-
bool "Use PWM Timer for clockevent/clocksource"
40-
select MIPS_EXTERNAL_TIMER
41-
depends on CPU_LOONGSON32
42-
help
43-
This option changes the default clockevent/clocksource to PWM Timer,
44-
and is required by Loongson1 CPUFreq support.
45-
46-
If unsure, say N.
47-
48-
choice
49-
prompt "Select clockevent/clocksource"
50-
depends on CEVT_CSRC_LS1X
51-
default TIMER_USE_PWM0
52-
53-
config TIMER_USE_PWM0
54-
bool "Use PWM Timer 0"
55-
help
56-
Use PWM Timer 0 as the default clockevent/clocksourcer.
57-
58-
config TIMER_USE_PWM1
59-
bool "Use PWM Timer 1"
60-
help
61-
Use PWM Timer 1 as the default clockevent/clocksourcer.
62-
63-
config TIMER_USE_PWM2
64-
bool "Use PWM Timer 2"
65-
help
66-
Use PWM Timer 2 as the default clockevent/clocksourcer.
67-
68-
config TIMER_USE_PWM3
69-
bool "Use PWM Timer 3"
70-
help
71-
Use PWM Timer 3 as the default clockevent/clocksourcer.
72-
73-
endchoice
74-
7538
endif # MACH_LOONGSON32

0 commit comments

Comments
 (0)