0001 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/marvell,mmp2-audio-clock.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Marvell MMP2 Audio Clock Controller
0008
0009 maintainers:
0010 - Lubomir Rintel <lkundrak@v3.sk>
0011
0012 description: |
0013 The audio clock controller generates and supplies the clocks to the audio
0014 codec.
0015
0016 Each clock is assigned an identifier and client nodes use this identifier
0017 to specify the clock which they consume.
0018
0019 All these identifiers could be found in
0020 <dt-bindings/clock/marvell,mmp2-audio.h>.
0021
0022 properties:
0023 compatible:
0024 enum:
0025 - marvell,mmp2-audio-clock
0026
0027 reg:
0028 maxItems: 1
0029
0030 clocks:
0031 items:
0032 - description: Audio subsystem clock
0033 - description: The crystal oscillator clock
0034 - description: First I2S clock
0035 - description: Second I2S clock
0036
0037 clock-names:
0038 items:
0039 - const: audio
0040 - const: vctcxo
0041 - const: i2s0
0042 - const: i2s1
0043
0044 '#clock-cells':
0045 const: 1
0046
0047 power-domains:
0048 maxItems: 1
0049
0050 required:
0051 - compatible
0052 - reg
0053 - clocks
0054 - clock-names
0055 - '#clock-cells'
0056
0057 additionalProperties: false
0058
0059 examples:
0060 - |
0061 #include <dt-bindings/clock/marvell,mmp2-audio.h>
0062 #include <dt-bindings/clock/marvell,mmp2.h>
0063 #include <dt-bindings/power/marvell,mmp2.h>
0064
0065 clock-controller@d42a0c30 {
0066 compatible = "marvell,mmp2-audio-clock";
0067 reg = <0xd42a0c30 0x10>;
0068 clock-names = "audio", "vctcxo", "i2s0", "i2s1";
0069 clocks = <&soc_clocks MMP2_CLK_AUDIO>,
0070 <&soc_clocks MMP2_CLK_VCTCXO>,
0071 <&soc_clocks MMP2_CLK_I2S0>,
0072 <&soc_clocks MMP2_CLK_I2S1>;
0073 power-domains = <&soc_clocks MMP2_POWER_DOMAIN_AUDIO>;
0074 #clock-cells = <1>;
0075 };