arm64: dts: allwinner: a64: add nodes necessary for analog sound support
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 22 Nov 2018 10:23:23 +0000 (18:23 +0800)
committerChen-Yu Tsai <wens@csie.org>
Fri, 23 Nov 2018 15:22:32 +0000 (23:22 +0800)
commitec4a95409d5c28962e0097e8291aa7048f8b262a
tree4a1f701aa94c929b781a4f29bb87936f2f5efdbe
parent1e33e0db826fb48bae9587b6f3a6ea29509bc6ca
arm64: dts: allwinner: a64: add nodes necessary for analog sound support

Add nodes for i2s, digital and analog parts of audiocodec on A64.

The routing paths listed are entries connecting the digital and analog
side of the audio codec together. Due to how device tree works, these
must be copied over to each board device tree, in addition to any board
level routes.

The oversampling rate is set to 128, so that when playing back 192 kHz
audio samples, the MCLK runs at the same rate as the module clock, at
24.576 MHz.

The user manual suggests using different oversampling rates for different
sample rates, but that's not possible without a platform-specific machine
driver.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
[wens@csie.org: Lowered oversampling rate to 128; expanded commit message]
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi