summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/zte
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2017-08-09 14:30:50 +0800
committerShawn Guo <shawnguo@kernel.org>2017-08-14 09:51:15 +0800
commite419a9a010ff7cb4e01231e8932535bac2297952 (patch)
tree2d08fe44d9dbbf088b2b7645c4cae5ee71be0db7 /arch/arm64/boot/dts/zte
parent6285fccee56b9b90e638850594b0cd40b616e47b (diff)
arm64: dts: zx296718-evb: add I2S sound card support
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>
Diffstat (limited to 'arch/arm64/boot/dts/zte')
-rw-r--r--arch/arm64/boot/dts/zte/zx296718-evb.dts48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/zte/zx296718-evb.dts b/arch/arm64/boot/dts/zte/zx296718-evb.dts
index d34d4cae38cd..cb2519ecd724 100644
--- a/arch/arm64/boot/dts/zte/zx296718-evb.dts
+++ b/arch/arm64/boot/dts/zte/zx296718-evb.dts
@@ -61,6 +61,26 @@
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 {
@@ -77,6 +97,30 @@
};
};
+&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";
};
@@ -91,6 +135,10 @@
};
};
+&tvenc {
+ status = "okay";
+};
+
&uart0 {
status = "okay";
};