xref: /freebsd/sys/contrib/device-tree/Bindings/clock/cirrus,lochnagar.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/cirrus,lochnagar.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Cirrus Logic Lochnagar Audio Development Board
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - patches@opensource.cirrus.com
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  Lochnagar is an evaluation and development board for Cirrus Logic
14c66ec88fSEmmanuel Vadot  Smart CODEC and Amp devices. It allows the connection of most Cirrus
15c66ec88fSEmmanuel Vadot  Logic devices on mini-cards, as well as allowing connection of various
16c66ec88fSEmmanuel Vadot  application processor systems to provide a full evaluation platform.
17c66ec88fSEmmanuel Vadot  Audio system topology, clocking and power can all be controlled through
18c66ec88fSEmmanuel Vadot  the Lochnagar, allowing the device under test to be used in a variety of
19c66ec88fSEmmanuel Vadot  possible use cases.
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot  This binding document describes the binding for the clock portion of the
22c66ec88fSEmmanuel Vadot  driver.
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  Also see these documents for generic binding information:
25c66ec88fSEmmanuel Vadot    [1] Clock : ../clock/clock-bindings.txt
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  And these for relevant defines:
28c66ec88fSEmmanuel Vadot    [2] include/dt-bindings/clock/lochnagar.h
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  This binding must be part of the Lochnagar MFD binding:
31c66ec88fSEmmanuel Vadot    [3] ../mfd/cirrus,lochnagar.yaml
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadotproperties:
34c66ec88fSEmmanuel Vadot  compatible:
35c66ec88fSEmmanuel Vadot    enum:
36c66ec88fSEmmanuel Vadot      - cirrus,lochnagar1-clk
37c66ec88fSEmmanuel Vadot      - cirrus,lochnagar2-clk
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  '#clock-cells':
40c66ec88fSEmmanuel Vadot    description:
41c66ec88fSEmmanuel Vadot      The first cell indicates the clock number, see [2] for available
42c66ec88fSEmmanuel Vadot      clocks and [1].
43c66ec88fSEmmanuel Vadot    const: 1
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadot  clock-names:
46c66ec88fSEmmanuel Vadot    items:
47c66ec88fSEmmanuel Vadot      enum:
48c66ec88fSEmmanuel Vadot        - ln-cdc-clkout # Output clock from CODEC card.
49c66ec88fSEmmanuel Vadot        - ln-dsp-clkout # Output clock from DSP card.
50c66ec88fSEmmanuel Vadot        - ln-gf-mclk1 # Optional input clock from host system.
51c66ec88fSEmmanuel Vadot        - ln-gf-mclk2 # Optional input clock from host system.
52c66ec88fSEmmanuel Vadot        - ln-gf-mclk3 # Optional input clock from host system.
53c66ec88fSEmmanuel Vadot        - ln-gf-mclk4 # Optional input clock from host system.
54c66ec88fSEmmanuel Vadot        - ln-psia1-mclk # Optional input clock from external connector.
55c66ec88fSEmmanuel Vadot        - ln-psia2-mclk # Optional input clock from external connector.
56c66ec88fSEmmanuel Vadot        - ln-spdif-mclk # Optional input clock from SPDIF.
57c66ec88fSEmmanuel Vadot        - ln-spdif-clkout # Optional input clock from SPDIF.
58c66ec88fSEmmanuel Vadot        - ln-adat-mclk # Optional input clock from ADAT.
59c66ec88fSEmmanuel Vadot        - ln-pmic-32k # On board fixed clock.
60c66ec88fSEmmanuel Vadot        - ln-clk-12m # On board fixed clock.
61c66ec88fSEmmanuel Vadot        - ln-clk-11m # On board fixed clock.
62c66ec88fSEmmanuel Vadot        - ln-clk-24m # On board fixed clock.
63c66ec88fSEmmanuel Vadot        - ln-clk-22m # On board fixed clock.
64c66ec88fSEmmanuel Vadot        - ln-clk-8m # On board fixed clock.
65c66ec88fSEmmanuel Vadot        - ln-usb-clk-24m # On board fixed clock.
66c66ec88fSEmmanuel Vadot        - ln-usb-clk-12m # On board fixed clock.
67c66ec88fSEmmanuel Vadot    minItems: 1
68c66ec88fSEmmanuel Vadot    maxItems: 19
69c66ec88fSEmmanuel Vadot
70*b2d2a78aSEmmanuel Vadot  clocks:
71*b2d2a78aSEmmanuel Vadot    minItems: 1
72*b2d2a78aSEmmanuel Vadot    maxItems: 19
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel VadotadditionalProperties: false
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadotrequired:
77c66ec88fSEmmanuel Vadot  - compatible
78c66ec88fSEmmanuel Vadot  - '#clock-cells'
79