OSDN Git Service

ARM: dts: imx6qdl-wandboard: Let the codec control MCLK pinctrl
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 14 Mar 2018 20:36:26 +0000 (17:36 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 16 Apr 2018 07:10:52 +0000 (15:10 +0800)
commit6e1386b2ee6822b00ae944a3de2c3304d2d422e6
tree277ef4ae6417f1e3823a96c138d9e941cb8827d2
parentf9d7af0752771bd71f4382d0eb20f5dda58f1a4a
ARM: dts: imx6qdl-wandboard: Let the codec control MCLK pinctrl

sgtl5000 codec needs MCLK clock to be present so that it can
successfully read/write via I2C.

In the case of wandboard, MCLK is provided via
MX6QDL_PAD_GPIO_0__CCM_CLKO1 pad.

Move the MCLK pinctrl from hog group to the codec group, so that the
codec clock can be present prior to reading the codec ID.

This avoids the following error that happens from time to time:

[    2.484443] sgtl5000 1-000a: Error reading chip id -6

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-wandboard-revb1.dtsi
arch/arm/boot/dts/imx6qdl-wandboard-revc1.dtsi
arch/arm/boot/dts/imx6qdl-wandboard-revd1.dtsi
arch/arm/boot/dts/imx6qdl-wandboard.dtsi