Skip to content
Permalink
Browse files

dts/bindings: Add base clock controller to dts bindings

Introduce a clock.yaml that clock controller bindings should inherit
from.  clock.yaml defines the properties "#clock-cells" which all
clock controllers should have.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Aug 9, 2019
1 parent 1fe41c1 commit 7cd49857939aafa6f6a085101b5c1550c5c968e3
@@ -10,7 +10,7 @@ description: >
This is a representation of the NXP Kinetis MCG IP node
inherits:
!include base.yaml
!include [clock.yaml, base.yaml]

properties:
compatible:
@@ -10,7 +10,7 @@ description: >
This is a representation of the NXP Kinetis PCC IP node
inherits:
!include base.yaml
!include [clock.yaml, base.yaml]

properties:
compatible:
@@ -23,8 +23,6 @@ properties:
category: required

"#clock-cells":
type: int
category: required
description: should be 1.

"#cells":
@@ -10,7 +10,7 @@ description: >
This is a representation of the NXP Kinetis SCG IP node
inherits:
!include base.yaml
!include [clock.yaml, base.yaml]

properties:
compatible:
@@ -123,8 +123,6 @@ properties:
category: optional

"#clock-cells":
type: int
category: required
description: should be 1.

"#cells":
@@ -0,0 +1,16 @@
#
# Copyright (c) 2019, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#

title: Clock Controller Base Structure

description: >
This binding gives the base structure for all Clock Controller devices
properties:
"#clock-cells":
type: int
category: required
description: Number of items to expect in a Clock specifier
@@ -9,6 +9,9 @@ title: Generic fixed rate clock provider
description: >
This is a representation of a generic fixed rate clock provider.
inherits:
!include clock.yaml

properties:
compatible:
type: string
@@ -32,6 +35,4 @@ properties:
description: input clock source

"#clock-cells":
type: int
category: required
description: should be 0.
@@ -10,7 +10,7 @@ description: >
This is a representation of the i.MX CCM IP node
inherits:
!include base.yaml
!include [clock.yaml, base.yaml]

properties:
compatible:
@@ -23,8 +23,6 @@ properties:
category: required

"#clock-cells":
type: int
category: required
description: should be 3.

"#cells":
@@ -4,7 +4,7 @@ description: >
This binding gives a base representation of the STM32 Clock control
inherits:
!include base.yaml
!include [clock.yaml, base.yaml]

properties:
compatible:
@@ -14,8 +14,6 @@ properties:
category: required

"#clock-cells":
type: int
category: required
description: should be 2.

"#cells":
@@ -10,7 +10,7 @@ description: >
This is a representation of the RV32M1 PCC IP node
inherits:
!include base.yaml
!include [clock.yaml, base.yaml]

properties:
compatible:

0 comments on commit 7cd4985

Please sign in to comment.
You can’t perform that action at this time.