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

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>

authored by

Daniel Mack and committed by
Stephen Boyd
68643c37 8e972afb

+28
+14
Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml
··· 37 37 reg: 38 38 maxItems: 1 39 39 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 + 40 51 required: 41 52 - compatible 42 53 - reg ··· 59 48 60 49 examples: 61 50 - | 51 + #include <dt-bindings/clock/cirrus,cs2000-cp.h> 52 + 62 53 i2c@0 { 63 54 reg = <0x0 0x100>; 64 55 #address-cells = <1>; ··· 72 59 reg = <0x4f>; 73 60 clocks = <&rcar_sound 0>, <&x12_clk>; 74 61 clock-names = "clk_in", "ref_clk"; 62 + cirrus,aux-output-source = <CS2000CP_AUX_OUTPUT_CLK_OUT>; 75 63 }; 76 64 };
+14
include/dt-bindings/clock/cirrus,cs2000-cp.h
··· 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 */