arm64: dts: zx296718-evb: add I2S sound card support
authorShawn Guo <shawn.guo@linaro.org>
Wed, 9 Aug 2017 06:30:50 +0000 (14:30 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Aug 2017 01:51:15 +0000 (09:51 +0800)
It enables the I2S sound card support, which is used to drive audio
through aud96p22 codec in case of TV output.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm64/boot/dts/zte/zx296718-evb.dts

index d34d4cae38cd42edfaf10f11f3d3331ce2f8aa10..cb2519ecd724b526ff7f342b385d026f4c5808c0 100644 (file)
                compatible = "audio-graph-card";
                dais = <&spdif0_port>;
        };
+
+       sound-i2s0 {
+               compatible = "audio-graph-card";
+               dais = <&i2s0_port>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&amplifier_pins>;
+               pa-gpios = <&bgpio4 0 GPIO_ACTIVE_HIGH>;
+               widgets = "Line", "Line Out Jack";
+               routing = "Amplifier", "LINEOUTL",
+                         "Amplifier", "LINEOUTR",
+                         "Line Out Jack", "Amplifier";
+       };
+};
+
+&aud96p22 {
+       port {
+               aud96p22_endpoint: endpoint {
+                       remote-endpoint = <&i2s0_endpoint>;
+               };
+       };
 };
 
 &emmc {
        };
 };
 
+&i2c0 {
+       status = "okay";
+};
+
+&i2s0 {
+       status = "okay";
+
+       i2s0_port: port {
+               i2s0_endpoint: endpoint {
+                       remote-endpoint = <&aud96p22_endpoint>;
+                       dai-format = "i2s";
+                       frame-master;
+                       bitclock-master;
+               };
+       };
+};
+
+&pmm {
+       amplifier_pins: amplifier {
+               pins = "TSI3_DATA";
+               function = "BGPIO";
+       };
+};
+
 &sd1 {
        status = "okay";
 };
        };
 };
 
+&tvenc {
+       status = "okay";
+};
+
 &uart0 {
        status = "okay";
 };