mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
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>
This commit is contained in:
parent
8e972afb3b
commit
68643c3735
@ -37,6 +37,17 @@ properties:
|
|||||||
reg:
|
reg:
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
|
cirrus,aux-output-source:
|
||||||
|
description:
|
||||||
|
Specifies the function of the auxiliary clock output pin
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
enum:
|
||||||
|
- 0 # CS2000CP_AUX_OUTPUT_REF_CLK: ref_clk input
|
||||||
|
- 1 # CS2000CP_AUX_OUTPUT_CLK_IN: clk_in input
|
||||||
|
- 2 # CS2000CP_AUX_OUTPUT_CLK_OUT: clk_out output
|
||||||
|
- 3 # CS2000CP_AUX_OUTPUT_PLL_LOCK: pll lock status
|
||||||
|
default: 0
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
- reg
|
- reg
|
||||||
@ -48,6 +59,8 @@ additionalProperties: false
|
|||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
|
#include <dt-bindings/clock/cirrus,cs2000-cp.h>
|
||||||
|
|
||||||
i2c@0 {
|
i2c@0 {
|
||||||
reg = <0x0 0x100>;
|
reg = <0x0 0x100>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@ -59,5 +72,6 @@ examples:
|
|||||||
reg = <0x4f>;
|
reg = <0x4f>;
|
||||||
clocks = <&rcar_sound 0>, <&x12_clk>;
|
clocks = <&rcar_sound 0>, <&x12_clk>;
|
||||||
clock-names = "clk_in", "ref_clk";
|
clock-names = "clk_in", "ref_clk";
|
||||||
|
cirrus,aux-output-source = <CS2000CP_AUX_OUTPUT_CLK_OUT>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
14
include/dt-bindings/clock/cirrus,cs2000-cp.h
Normal file
14
include/dt-bindings/clock/cirrus,cs2000-cp.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2021 Daniel Mack
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __DT_BINDINGS_CS2000CP_CLK_H
|
||||||
|
#define __DT_BINDINGS_CS2000CP_CLK_H
|
||||||
|
|
||||||
|
#define CS2000CP_AUX_OUTPUT_REF_CLK 0
|
||||||
|
#define CS2000CP_AUX_OUTPUT_CLK_IN 1
|
||||||
|
#define CS2000CP_AUX_OUTPUT_CLK_OUT 2
|
||||||
|
#define CS2000CP_AUX_OUTPUT_PLL_LOCK 3
|
||||||
|
|
||||||
|
#endif /* __DT_BINDINGS_CS2000CP_CLK_H */
|
Loading…
Reference in New Issue
Block a user