Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/p1022ds: fix audio-related properties in the device tree

On the Freescale P1022DS reference board, the SSI audio controller is
connected in "asynchronous" mode to the codec's clocks, so the device tree
needs an "fsl,ssi-asynchronous" property.

Also remove the clock-frequency property from the wm8776 node, because
the clock is enabled only if U-Boot enables it, and U-Boot will set the
property if the clock is enabled. A future version of the P1022DS audio
driver will configure the clock itself, but for now, the driver should
not be told that the clock is running when it isn't.

Also fix the FIFO depth to 15, instead of 16.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by

Timur Tabi and committed by
Kumar Gala
f3fed682 c02a02ee

+6 -3
+6 -3
arch/powerpc/boot/dts/p1022ds.dts
··· 209 209 wm8776:codec@1a { 210 210 compatible = "wlf,wm8776"; 211 211 reg = <0x1a>; 212 - /* MCLK source is a stand-alone oscillator */ 213 - clock-frequency = <12288000>; 212 + /* 213 + * clock-frequency will be set by U-Boot if 214 + * the clock is enabled. 215 + */ 214 216 }; 215 217 }; 216 218 ··· 282 280 codec-handle = <&wm8776>; 283 281 fsl,playback-dma = <&dma00>; 284 282 fsl,capture-dma = <&dma01>; 285 - fsl,fifo-depth = <16>; 283 + fsl,fifo-depth = <15>; 284 + fsl,ssi-asynchronous; 286 285 }; 287 286 288 287 dma@c300 {