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

clk: lochnagar: Move binding over to dtschema

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Charles Keepax and committed by
Rob Herring
e0a99c55 96c1517e

+78 -94
-94
Documentation/devicetree/bindings/clock/cirrus,lochnagar.txt
··· 1 - Cirrus Logic Lochnagar Audio Development Board 2 - 3 - Lochnagar is an evaluation and development board for Cirrus Logic 4 - Smart CODEC and Amp devices. It allows the connection of most Cirrus 5 - Logic devices on mini-cards, as well as allowing connection of 6 - various application processor systems to provide a full evaluation 7 - platform. Audio system topology, clocking and power can all be 8 - controlled through the Lochnagar, allowing the device under test 9 - to be used in a variety of possible use cases. 10 - 11 - This binding document describes the binding for the clock portion of 12 - the driver. 13 - 14 - Also see these documents for generic binding information: 15 - [1] Clock : ../clock/clock-bindings.txt 16 - 17 - And these for relevant defines: 18 - [2] include/dt-bindings/clock/lochnagar.h 19 - 20 - This binding must be part of the Lochnagar MFD binding: 21 - [3] ../mfd/cirrus,lochnagar.txt 22 - 23 - Required properties: 24 - 25 - - compatible : One of the following strings: 26 - "cirrus,lochnagar1-clk" 27 - "cirrus,lochnagar2-clk" 28 - 29 - - #clock-cells : Must be 1. The first cell indicates the clock 30 - number, see [2] for available clocks and [1]. 31 - 32 - Optional properties: 33 - 34 - - clocks : Must contain an entry for each clock in clock-names. 35 - - clock-names : May contain entries for each of the following 36 - clocks: 37 - - ln-cdc-clkout : Output clock from CODEC card. 38 - - ln-dsp-clkout : Output clock from DSP card. 39 - - ln-gf-mclk1,ln-gf-mclk2,ln-gf-mclk3,ln-gf-mclk4 : Optional 40 - input audio clocks from host system. 41 - - ln-psia1-mclk, ln-psia2-mclk : Optional input audio clocks from 42 - external connector. 43 - - ln-spdif-mclk : Optional input audio clock from SPDIF. 44 - - ln-spdif-clkout : Optional input audio clock from SPDIF. 45 - - ln-adat-mclk : Optional input audio clock from ADAT. 46 - - ln-pmic-32k : On board fixed clock. 47 - - ln-clk-12m : On board fixed clock. 48 - - ln-clk-11m : On board fixed clock. 49 - - ln-clk-24m : On board fixed clock. 50 - - ln-clk-22m : On board fixed clock. 51 - - ln-clk-8m : On board fixed clock. 52 - - ln-usb-clk-24m : On board fixed clock. 53 - - ln-usb-clk-12m : On board fixed clock. 54 - 55 - - assigned-clocks : A list of Lochnagar clocks to be reparented, see 56 - [2] for available clocks. 57 - - assigned-clock-parents : Parents to be assigned to the clocks 58 - listed in "assigned-clocks". 59 - 60 - Optional nodes: 61 - 62 - - fixed-clock nodes may be registered for the following on board clocks: 63 - - ln-pmic-32k : 32768 Hz 64 - - ln-clk-12m : 12288000 Hz 65 - - ln-clk-11m : 11298600 Hz 66 - - ln-clk-24m : 24576000 Hz 67 - - ln-clk-22m : 22579200 Hz 68 - - ln-clk-8m : 8192000 Hz 69 - - ln-usb-clk-24m : 24576000 Hz 70 - - ln-usb-clk-12m : 12288000 Hz 71 - 72 - Example: 73 - 74 - lochnagar { 75 - lochnagar-clk { 76 - compatible = "cirrus,lochnagar2-clk"; 77 - 78 - #clock-cells = <1>; 79 - 80 - clocks = <&clk-audio>, <&clk_pmic>; 81 - clock-names = "ln-gf-mclk2", "ln-pmic-32k"; 82 - 83 - assigned-clocks = <&lochnagar-clk LOCHNAGAR_CDC_MCLK1>, 84 - <&lochnagar-clk LOCHNAGAR_CDC_MCLK2>; 85 - assigned-clock-parents = <&clk-audio>, 86 - <&clk-pmic>; 87 - }; 88 - 89 - clk-pmic: clk-pmic { 90 - compatible = "fixed-clock"; 91 - clock-cells = <0>; 92 - clock-frequency = <32768>; 93 - }; 94 - };
+78
Documentation/devicetree/bindings/clock/cirrus,lochnagar.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/cirrus,lochnagar.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Cirrus Logic Lochnagar Audio Development Board 8 + 9 + maintainers: 10 + - patches@opensource.cirrus.com 11 + 12 + description: | 13 + Lochnagar is an evaluation and development board for Cirrus Logic 14 + Smart CODEC and Amp devices. It allows the connection of most Cirrus 15 + Logic devices on mini-cards, as well as allowing connection of various 16 + application processor systems to provide a full evaluation platform. 17 + Audio system topology, clocking and power can all be controlled through 18 + the Lochnagar, allowing the device under test to be used in a variety of 19 + possible use cases. 20 + 21 + This binding document describes the binding for the clock portion of the 22 + driver. 23 + 24 + Also see these documents for generic binding information: 25 + [1] Clock : ../clock/clock-bindings.txt 26 + 27 + And these for relevant defines: 28 + [2] include/dt-bindings/clock/lochnagar.h 29 + 30 + This binding must be part of the Lochnagar MFD binding: 31 + [3] ../mfd/cirrus,lochnagar.yaml 32 + 33 + properties: 34 + compatible: 35 + enum: 36 + - cirrus,lochnagar1-clk 37 + - cirrus,lochnagar2-clk 38 + 39 + '#clock-cells': 40 + description: 41 + The first cell indicates the clock number, see [2] for available 42 + clocks and [1]. 43 + const: 1 44 + 45 + clock-names: 46 + items: 47 + enum: 48 + - ln-cdc-clkout # Output clock from CODEC card. 49 + - ln-dsp-clkout # Output clock from DSP card. 50 + - ln-gf-mclk1 # Optional input clock from host system. 51 + - ln-gf-mclk2 # Optional input clock from host system. 52 + - ln-gf-mclk3 # Optional input clock from host system. 53 + - ln-gf-mclk4 # Optional input clock from host system. 54 + - ln-psia1-mclk # Optional input clock from external connector. 55 + - ln-psia2-mclk # Optional input clock from external connector. 56 + - ln-spdif-mclk # Optional input clock from SPDIF. 57 + - ln-spdif-clkout # Optional input clock from SPDIF. 58 + - ln-adat-mclk # Optional input clock from ADAT. 59 + - ln-pmic-32k # On board fixed clock. 60 + - ln-clk-12m # On board fixed clock. 61 + - ln-clk-11m # On board fixed clock. 62 + - ln-clk-24m # On board fixed clock. 63 + - ln-clk-22m # On board fixed clock. 64 + - ln-clk-8m # On board fixed clock. 65 + - ln-usb-clk-24m # On board fixed clock. 66 + - ln-usb-clk-12m # On board fixed clock. 67 + minItems: 1 68 + maxItems: 19 69 + 70 + clocks: true 71 + assigned-clocks: true 72 + assigned-clock-parents: true 73 + 74 + additionalProperties: false 75 + 76 + required: 77 + - compatible 78 + - '#clock-cells'