···11-Cirrus Logic Lochnagar Audio Development Board22-33-Lochnagar is an evaluation and development board for Cirrus Logic44-Smart CODEC and Amp devices. It allows the connection of most Cirrus55-Logic devices on mini-cards, as well as allowing connection of66-various application processor systems to provide a full evaluation77-platform. Audio system topology, clocking and power can all be88-controlled through the Lochnagar, allowing the device under test99-to be used in a variety of possible use cases.1010-1111-This binding document describes the binding for the clock portion of1212-the driver.1313-1414-Also see these documents for generic binding information:1515- [1] Clock : ../clock/clock-bindings.txt1616-1717-And these for relevant defines:1818- [2] include/dt-bindings/clock/lochnagar.h1919-2020-This binding must be part of the Lochnagar MFD binding:2121- [3] ../mfd/cirrus,lochnagar.txt2222-2323-Required properties:2424-2525- - compatible : One of the following strings:2626- "cirrus,lochnagar1-clk"2727- "cirrus,lochnagar2-clk"2828-2929- - #clock-cells : Must be 1. The first cell indicates the clock3030- number, see [2] for available clocks and [1].3131-3232-Optional properties:3333-3434- - clocks : Must contain an entry for each clock in clock-names.3535- - clock-names : May contain entries for each of the following3636- clocks:3737- - ln-cdc-clkout : Output clock from CODEC card.3838- - ln-dsp-clkout : Output clock from DSP card.3939- - ln-gf-mclk1,ln-gf-mclk2,ln-gf-mclk3,ln-gf-mclk4 : Optional4040- input audio clocks from host system.4141- - ln-psia1-mclk, ln-psia2-mclk : Optional input audio clocks from4242- external connector.4343- - ln-spdif-mclk : Optional input audio clock from SPDIF.4444- - ln-spdif-clkout : Optional input audio clock from SPDIF.4545- - ln-adat-mclk : Optional input audio clock from ADAT.4646- - ln-pmic-32k : On board fixed clock.4747- - ln-clk-12m : On board fixed clock.4848- - ln-clk-11m : On board fixed clock.4949- - ln-clk-24m : On board fixed clock.5050- - ln-clk-22m : On board fixed clock.5151- - ln-clk-8m : On board fixed clock.5252- - ln-usb-clk-24m : On board fixed clock.5353- - ln-usb-clk-12m : On board fixed clock.5454-5555- - assigned-clocks : A list of Lochnagar clocks to be reparented, see5656- [2] for available clocks.5757- - assigned-clock-parents : Parents to be assigned to the clocks5858- listed in "assigned-clocks".5959-6060-Optional nodes:6161-6262- - fixed-clock nodes may be registered for the following on board clocks:6363- - ln-pmic-32k : 32768 Hz6464- - ln-clk-12m : 12288000 Hz6565- - ln-clk-11m : 11298600 Hz6666- - ln-clk-24m : 24576000 Hz6767- - ln-clk-22m : 22579200 Hz6868- - ln-clk-8m : 8192000 Hz6969- - ln-usb-clk-24m : 24576000 Hz7070- - ln-usb-clk-12m : 12288000 Hz7171-7272-Example:7373-7474-lochnagar {7575- lochnagar-clk {7676- compatible = "cirrus,lochnagar2-clk";7777-7878- #clock-cells = <1>;7979-8080- clocks = <&clk-audio>, <&clk_pmic>;8181- clock-names = "ln-gf-mclk2", "ln-pmic-32k";8282-8383- assigned-clocks = <&lochnagar-clk LOCHNAGAR_CDC_MCLK1>,8484- <&lochnagar-clk LOCHNAGAR_CDC_MCLK2>;8585- assigned-clock-parents = <&clk-audio>,8686- <&clk-pmic>;8787- };8888-8989- clk-pmic: clk-pmic {9090- compatible = "fixed-clock";9191- clock-cells = <0>;9292- clock-frequency = <32768>;9393- };9494-};
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/clock/cirrus,lochnagar.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Cirrus Logic Lochnagar Audio Development Board88+99+maintainers:1010+ - patches@opensource.cirrus.com1111+1212+description: |1313+ Lochnagar is an evaluation and development board for Cirrus Logic1414+ Smart CODEC and Amp devices. It allows the connection of most Cirrus1515+ Logic devices on mini-cards, as well as allowing connection of various1616+ application processor systems to provide a full evaluation platform.1717+ Audio system topology, clocking and power can all be controlled through1818+ the Lochnagar, allowing the device under test to be used in a variety of1919+ possible use cases.2020+2121+ This binding document describes the binding for the clock portion of the2222+ driver.2323+2424+ Also see these documents for generic binding information:2525+ [1] Clock : ../clock/clock-bindings.txt2626+2727+ And these for relevant defines:2828+ [2] include/dt-bindings/clock/lochnagar.h2929+3030+ This binding must be part of the Lochnagar MFD binding:3131+ [3] ../mfd/cirrus,lochnagar.yaml3232+3333+properties:3434+ compatible:3535+ enum:3636+ - cirrus,lochnagar1-clk3737+ - cirrus,lochnagar2-clk3838+3939+ '#clock-cells':4040+ description:4141+ The first cell indicates the clock number, see [2] for available4242+ clocks and [1].4343+ const: 14444+4545+ clock-names:4646+ items:4747+ enum:4848+ - ln-cdc-clkout # Output clock from CODEC card.4949+ - ln-dsp-clkout # Output clock from DSP card.5050+ - ln-gf-mclk1 # Optional input clock from host system.5151+ - ln-gf-mclk2 # Optional input clock from host system.5252+ - ln-gf-mclk3 # Optional input clock from host system.5353+ - ln-gf-mclk4 # Optional input clock from host system.5454+ - ln-psia1-mclk # Optional input clock from external connector.5555+ - ln-psia2-mclk # Optional input clock from external connector.5656+ - ln-spdif-mclk # Optional input clock from SPDIF.5757+ - ln-spdif-clkout # Optional input clock from SPDIF.5858+ - ln-adat-mclk # Optional input clock from ADAT.5959+ - ln-pmic-32k # On board fixed clock.6060+ - ln-clk-12m # On board fixed clock.6161+ - ln-clk-11m # On board fixed clock.6262+ - ln-clk-24m # On board fixed clock.6363+ - ln-clk-22m # On board fixed clock.6464+ - ln-clk-8m # On board fixed clock.6565+ - ln-usb-clk-24m # On board fixed clock.6666+ - ln-usb-clk-12m # On board fixed clock.6767+ minItems: 16868+ maxItems: 196969+7070+ clocks: true7171+ assigned-clocks: true7272+ assigned-clock-parents: true7373+7474+additionalProperties: false7575+7676+required:7777+ - compatible7878+ - '#clock-cells'