ARM: dts: imx6q-cm-fx6: enable S/PDIF support
authorChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
Wed, 23 Nov 2016 00:07:57 +0000 (01:07 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 2 Jan 2017 05:59:42 +0000 (13:59 +0800)
Enable the S/PDIF transceiver present on the cm-fx6 module.

Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-cm-fx6.dts

index a150bca84daa4245e1004a6d0a0006dd8eedd08c..dbea880600b9e5156d4f2506e4b944363f3abf2c 100644 (file)
                gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
                enable-active-high;
        };
+
+       sound-spdif {
+               compatible = "fsl,imx-audio-spdif";
+               model = "imx-spdif";
+               spdif-controller = <&spdif>;
+               spdif-out;
+               spdif-in;
+       };
 };
 
 &cpu0 {
                >;
        };
 
+       pinctrl_spdif: spdifgrp {
+               fsl,pins = <
+                       MX6QDL_PAD_GPIO_16__SPDIF_IN  0x1b0b0
+                       MX6QDL_PAD_GPIO_19__SPDIF_OUT 0x1b0b0
+               >;
+       };
+
        pinctrl_uart4: uart4grp {
                fsl,pins = <
                        MX6QDL_PAD_KEY_COL0__UART4_TX_DATA      0x1b0b1
        status = "okay";
 };
 
+&spdif {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_spdif>;
+       status = "okay";
+};
+
 &uart4 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart4>;