1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/clock/marvell,mmp2-audio-clock.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: Marvell MMP2 Audio Clock Controller 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - Lubomir Rintel <lkundrak@v3.sk> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyundescription: | 13*4882a593Smuzhiyun The audio clock controller generates and supplies the clocks to the audio 14*4882a593Smuzhiyun codec. 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun Each clock is assigned an identifier and client nodes use this identifier 17*4882a593Smuzhiyun to specify the clock which they consume. 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun All these identifiers could be found in 20*4882a593Smuzhiyun <dt-bindings/clock/marvell,mmp2-audio.h>. 21*4882a593Smuzhiyun 22*4882a593Smuzhiyunproperties: 23*4882a593Smuzhiyun compatible: 24*4882a593Smuzhiyun enum: 25*4882a593Smuzhiyun - marvell,mmp2-audio-clock 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun reg: 28*4882a593Smuzhiyun maxItems: 1 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun clocks: 31*4882a593Smuzhiyun items: 32*4882a593Smuzhiyun - description: Audio subsystem clock 33*4882a593Smuzhiyun - description: The crystal oscillator clock 34*4882a593Smuzhiyun - description: First I2S clock 35*4882a593Smuzhiyun - description: Second I2S clock 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun clock-names: 38*4882a593Smuzhiyun items: 39*4882a593Smuzhiyun - const: audio 40*4882a593Smuzhiyun - const: vctcxo 41*4882a593Smuzhiyun - const: i2s0 42*4882a593Smuzhiyun - const: i2s1 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun '#clock-cells': 45*4882a593Smuzhiyun const: 1 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun power-domains: 48*4882a593Smuzhiyun maxItems: 1 49*4882a593Smuzhiyun 50*4882a593Smuzhiyunrequired: 51*4882a593Smuzhiyun - compatible 52*4882a593Smuzhiyun - reg 53*4882a593Smuzhiyun - clocks 54*4882a593Smuzhiyun - clock-names 55*4882a593Smuzhiyun - '#clock-cells' 56*4882a593Smuzhiyun 57*4882a593SmuzhiyunadditionalProperties: false 58*4882a593Smuzhiyun 59*4882a593Smuzhiyunexamples: 60*4882a593Smuzhiyun - | 61*4882a593Smuzhiyun #include <dt-bindings/clock/marvell,mmp2-audio.h> 62*4882a593Smuzhiyun #include <dt-bindings/clock/marvell,mmp2.h> 63*4882a593Smuzhiyun #include <dt-bindings/power/marvell,mmp2.h> 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun clock-controller@d42a0c30 { 66*4882a593Smuzhiyun compatible = "marvell,mmp2-audio-clock"; 67*4882a593Smuzhiyun reg = <0xd42a0c30 0x10>; 68*4882a593Smuzhiyun clock-names = "audio", "vctcxo", "i2s0", "i2s1"; 69*4882a593Smuzhiyun clocks = <&soc_clocks MMP2_CLK_AUDIO>, 70*4882a593Smuzhiyun <&soc_clocks MMP2_CLK_VCTCXO>, 71*4882a593Smuzhiyun <&soc_clocks MMP2_CLK_I2S0>, 72*4882a593Smuzhiyun <&soc_clocks MMP2_CLK_I2S1>; 73*4882a593Smuzhiyun power-domains = <&soc_clocks MMP2_POWER_DOMAIN_AUDIO>; 74*4882a593Smuzhiyun #clock-cells = <1>; 75*4882a593Smuzhiyun }; 76