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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: timer: convert timer/amlogic,meson6-timer.txt to dt-schema

Convert the Amlogic Meson6 SoCs Timer Controller bindings to dt-schema.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20221117-b4-amlogic-bindings-convert-v5-1-63781bed4452@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Neil Armstrong and committed by
Rob Herring
0291b586 41d7e4f2

+54 -22
-22
Documentation/devicetree/bindings/timer/amlogic,meson6-timer.txt
··· 1 - Amlogic Meson6 SoCs Timer Controller 2 - 3 - Required properties: 4 - 5 - - compatible : should be "amlogic,meson6-timer" 6 - - reg : Specifies base physical address and size of the registers. 7 - - interrupts : The four interrupts, one for each timer event 8 - - clocks : phandles to the pclk (system clock) and XTAL clocks 9 - - clock-names : must contain "pclk" and "xtal" 10 - 11 - Example: 12 - 13 - timer@c1109940 { 14 - compatible = "amlogic,meson6-timer"; 15 - reg = <0xc1109940 0x14>; 16 - interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>, 17 - <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>, 18 - <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>, 19 - <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>; 20 - clocks = <&xtal>, <&clk81>; 21 - clock-names = "xtal", "pclk"; 22 - };
+54
Documentation/devicetree/bindings/timer/amlogic,meson6-timer.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/timer/amlogic,meson6-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic Meson6 SoCs Timer Controller 8 + 9 + maintainers: 10 + - Neil Armstrong <neil.armstrong@linaro.org> 11 + - Martin Blumenstingl <martin.blumenstingl@googlemail.com> 12 + 13 + properties: 14 + compatible: 15 + const: amlogic,meson6-timer 16 + 17 + reg: 18 + maxItems: 1 19 + 20 + interrupts: 21 + maxItems: 4 22 + description: per-timer event interrupts 23 + 24 + clocks: 25 + maxItems: 2 26 + 27 + clock-names: 28 + items: 29 + - const: xtal 30 + - const: pclk 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - interrupts 36 + - clocks 37 + - clock-names 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/interrupt-controller/irq.h> 44 + #include <dt-bindings/interrupt-controller/arm-gic.h> 45 + timer@c1109940 { 46 + compatible = "amlogic,meson6-timer"; 47 + reg = <0xc1109940 0x14>; 48 + interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>, 49 + <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>, 50 + <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>, 51 + <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>; 52 + clocks = <&xtal>, <&clk81>; 53 + clock-names = "xtal", "pclk"; 54 + };