Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: timer: Add Nomadik MTU binding

The Nomadik MTU timer has been used in devicetrees forever
but somehow we missed to add a binding for it. Fix it
by simply adding it.

Cc: Lee Jones <lee.jones@linaro.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220526213621.373727-1-linus.walleij@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Linus Walleij and committed by
Daniel Lezcano
d6513a34 57963a92

+58
+58
Documentation/devicetree/bindings/timer/st,nomadik-mtu.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + # Copyright 2022 Linaro Ltd. 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/timer/st,nomadik-mtu.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: ST Microelectronics Nomadik Multi-Timer Unit MTU Timer 9 + 10 + maintainers: 11 + - Linus Walleij <linus.walleij@linaro.org> 12 + 13 + description: This timer is found in the ST Microelectronics Nomadik 14 + SoCs STn8800, STn8810 and STn8815 as well as in ST-Ericsson DB8500. 15 + 16 + properties: 17 + compatible: 18 + items: 19 + - const: st,nomadik-mtu 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + clocks: 28 + description: The first clock named TIMCLK clocks the actual timers and 29 + the second clock clocks the digital interface to the interconnect. 30 + maxItems: 2 31 + 32 + clock-names: 33 + items: 34 + - const: timclk 35 + - const: apb_pclk 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - interrupts 41 + - clocks 42 + - clock-names 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/interrupt-controller/irq.h> 49 + #include <dt-bindings/interrupt-controller/arm-gic.h> 50 + #include <dt-bindings/mfd/dbx500-prcmu.h> 51 + timer@a03c6000 { 52 + compatible = "st,nomadik-mtu"; 53 + reg = <0xa03c6000 0x1000>; 54 + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 55 + 56 + clocks = <&prcmu_clk PRCMU_TIMCLK>, <&prcc_pclk 6 6>; 57 + clock-names = "timclk", "apb_pclk"; 58 + };