Skip to content

Commit 0e486fe

Browse files
broonienoglitch
authored andcommitted
ARM: dts: at91: Map MCLK for wm8731 on at91sam9g20ek
The MCLK of the WM8731 on the AT91SAM9G20-EK board is connected to the PCK0 output of the SoC and is expected to be set to 12MHz. Previously this was mapped using pre-common clock API calls in the audio machine driver but the conversion to the common clock framework broke that so describe things in the DT instead. Fixes: ff78a18 ("ARM: at91: remove old at91-specific clock driver") Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20220404102806.581374-2-broonie@kernel.org
1 parent 3891222 commit 0e486fe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

arch/arm/boot/dts/at91sam9g20ek_common.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@
219219
wm8731: wm8731@1b {
220220
compatible = "wm8731";
221221
reg = <0x1b>;
222+
223+
/* PCK0 at 12MHz */
224+
clocks = <&pmc PMC_TYPE_SYSTEM 8>;
225+
clock-names = "mclk";
226+
assigned-clocks = <&pmc PMC_TYPE_SYSTEM 8>;
227+
assigned-clock-rates = <12000000>;
222228
};
223229
};
224230

0 commit comments

Comments
 (0)