Commit 6a1aa955 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: timer: exynos4210-mct: Add missing clocks

The Exynos Multi Core Timer driver requires two clocks.  This was never
documented in the binding.  Add it to fix dtschema warnings like:

  arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: timer@101c0000:
    'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200903191311.12293-2-krzk@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 1c6d7e4b
...@@ -23,6 +23,15 @@ properties: ...@@ -23,6 +23,15 @@ properties:
- samsung,exynos4210-mct - samsung,exynos4210-mct
- samsung,exynos4412-mct - samsung,exynos4412-mct
clocks:
minItems: 2
maxItems: 2
clock-names:
items:
- pattern: "^(fin_pll|mct)$"
- pattern: "^(fin_pll|mct)$"
reg: reg:
maxItems: 1 maxItems: 1
...@@ -49,6 +58,8 @@ properties: ...@@ -49,6 +58,8 @@ properties:
required: required:
- compatible - compatible
- clock-names
- clocks
- interrupts - interrupts
- reg - reg
...@@ -59,11 +70,15 @@ examples: ...@@ -59,11 +70,15 @@ examples:
// In this example, the IP contains two local timers, using separate // In this example, the IP contains two local timers, using separate
// interrupts, so two local timer interrupts have been specified, // interrupts, so two local timer interrupts have been specified,
// in addition to four global timer interrupts. // in addition to four global timer interrupts.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
timer@10050000 { timer@10050000 {
compatible = "samsung,exynos4210-mct"; compatible = "samsung,exynos4210-mct";
reg = <0x10050000 0x800>; reg = <0x10050000 0x800>;
clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
clock-names = "fin_pll", "mct";
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
...@@ -75,11 +90,15 @@ examples: ...@@ -75,11 +90,15 @@ examples:
- | - |
// In this example, the timer interrupts are connected to two separate // In this example, the timer interrupts are connected to two separate
// interrupt controllers. Hence, an interrupts-extended is needed. // interrupt controllers. Hence, an interrupts-extended is needed.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
timer@101c0000 { timer@101c0000 {
compatible = "samsung,exynos4210-mct"; compatible = "samsung,exynos4210-mct";
reg = <0x101C0000 0x800>; reg = <0x101C0000 0x800>;
clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
clock-names = "fin_pll", "mct";
interrupts-extended = <&gic GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&gic GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<&gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, <&gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
<&combiner 12 6>, <&combiner 12 6>,
...@@ -92,11 +111,14 @@ examples: ...@@ -92,11 +111,14 @@ examples:
// In this example, the IP contains four local timers, but using // In this example, the IP contains four local timers, but using
// a per-processor interrupt to handle them. Only one first local // a per-processor interrupt to handle them. Only one first local
// interrupt is specified. // interrupt is specified.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
timer@10050000 { timer@10050000 {
compatible = "samsung,exynos4412-mct"; compatible = "samsung,exynos4412-mct";
reg = <0x10050000 0x800>; reg = <0x10050000 0x800>;
clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
clock-names = "fin_pll", "mct";
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
...@@ -109,11 +131,14 @@ examples: ...@@ -109,11 +131,14 @@ examples:
// In this example, the IP contains four local timers, but using // In this example, the IP contains four local timers, but using
// a per-processor interrupt to handle them. All the local timer // a per-processor interrupt to handle them. All the local timer
// interrupts are specified. // interrupts are specified.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
timer@10050000 { timer@10050000 {
compatible = "samsung,exynos4412-mct"; compatible = "samsung,exynos4412-mct";
reg = <0x10050000 0x800>; reg = <0x10050000 0x800>;
clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
clock-names = "fin_pll", "mct";
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment