Skip to content

Commit 68643c3

Browse files
zonquebebarino
authored andcommitted
dt-bindings: clock: cs2000-cp: document aux-output-source
This new optional property can be used to control the function of the auxiliary output pin. Introduce a new dt-bindings include file that contains the numerical values. Signed-off-by: Daniel Mack <daniel@zonque.org> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220125093336.226787-3-daniel@zonque.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 8e972af commit 68643c3

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ properties:
3737
reg:
3838
maxItems: 1
3939

40+
cirrus,aux-output-source:
41+
description:
42+
Specifies the function of the auxiliary clock output pin
43+
$ref: /schemas/types.yaml#/definitions/uint32
44+
enum:
45+
- 0 # CS2000CP_AUX_OUTPUT_REF_CLK: ref_clk input
46+
- 1 # CS2000CP_AUX_OUTPUT_CLK_IN: clk_in input
47+
- 2 # CS2000CP_AUX_OUTPUT_CLK_OUT: clk_out output
48+
- 3 # CS2000CP_AUX_OUTPUT_PLL_LOCK: pll lock status
49+
default: 0
50+
4051
required:
4152
- compatible
4253
- reg
@@ -48,6 +59,8 @@ additionalProperties: false
4859

4960
examples:
5061
- |
62+
#include <dt-bindings/clock/cirrus,cs2000-cp.h>
63+
5164
i2c@0 {
5265
reg = <0x0 0x100>;
5366
#address-cells = <1>;
@@ -59,5 +72,6 @@ examples:
5972
reg = <0x4f>;
6073
clocks = <&rcar_sound 0>, <&x12_clk>;
6174
clock-names = "clk_in", "ref_clk";
75+
cirrus,aux-output-source = <CS2000CP_AUX_OUTPUT_CLK_OUT>;
6276
};
6377
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
/*
3+
* Copyright (C) 2021 Daniel Mack
4+
*/
5+
6+
#ifndef __DT_BINDINGS_CS2000CP_CLK_H
7+
#define __DT_BINDINGS_CS2000CP_CLK_H
8+
9+
#define CS2000CP_AUX_OUTPUT_REF_CLK 0
10+
#define CS2000CP_AUX_OUTPUT_CLK_IN 1
11+
#define CS2000CP_AUX_OUTPUT_CLK_OUT 2
12+
#define CS2000CP_AUX_OUTPUT_PLL_LOCK 3
13+
14+
#endif /* __DT_BINDINGS_CS2000CP_CLK_H */

0 commit comments

Comments
 (0)