MLK-11422 ARM: dts: imx7d-12x12-lpddr3-arm2: add mqs sound card support
authorZidan Wang <zidan.wang@freescale.com>
Wed, 26 Aug 2015 08:16:38 +0000 (16:16 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:09 +0000 (14:48 -0500)
add mqs sound card support

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/imx7d-12x12-lpddr3-arm2-mqs.dts [new file with mode: 0644]
arch/arm/boot/dts/imx7d-12x12-lpddr3-arm2.dts

index c6a2b74..f19981e 100644 (file)
@@ -443,7 +443,8 @@ dtb-$(CONFIG_SOC_IMX7D) += \
        imx7d-12x12-lpddr3-arm2-ecspi.dtb \
        imx7d-12x12-lpddr3-arm2-enet2.dtb \
        imx7d-12x12-lpddr3-arm2-mipi_dsi.dtb \
-       imx7d-12x12-lpddr3-arm2-sai.dtb
+       imx7d-12x12-lpddr3-arm2-sai.dtb \
+       imx7d-12x12-lpddr3-arm2-mqs.dtb
 dtb-$(CONFIG_SOC_LS1021A) += \
        ls1021a-qds.dtb \
        ls1021a-twr.dtb
diff --git a/arch/arm/boot/dts/imx7d-12x12-lpddr3-arm2-mqs.dts b/arch/arm/boot/dts/imx7d-12x12-lpddr3-arm2-mqs.dts
new file mode 100644 (file)
index 0000000..3a166a8
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx7d-12x12-lpddr3-arm2.dts"
+
+/ {
+       sound-mqs {
+               compatible = "fsl,imx7d-12x12-lpddr3-arm2-mqs",
+                               "fsl,imx-audio-mqs";
+               model = "mqs-audio";
+               cpu-dai = <&sai1>;
+               audio-codec = <&mqs>;
+       };
+};
+
+&clks {
+       assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
+       assigned-clock-rates = <786432000>;
+};
+
+&mqs {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mqs>;
+       clocks = <&clks IMX7D_SAI1_ROOT_CLK>;
+       clock-names = "mclk";
+       status = "okay";
+};
+
+&sai1 {
+       assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>,
+                         <&clks IMX7D_SAI1_ROOT_CLK>;
+       assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
+       assigned-clock-rates = <0>, <24576000>;
+       status = "okay";
+};
+
+&sdma {
+       status = "okay";
+};
+
+&sim1 {
+       status = "disabled";
+};
index 122e9a1..6245ada 100644 (file)
                        >;
                };
 
+               pinctrl_mqs: mqsgrp {
+                       fsl,pins = <
+                               MX7D_PAD_SAI1_RX_SYNC__MQS_RIGHT     0x0
+                               MX7D_PAD_SAI1_RX_BCLK__MQS_LEFT      0x0
+                       >;
+               };
+
                pinctrl_pwm1: pwm1grp {
                        fsl,pins = <
                                MX7D_PAD_GPIO1_IO08__PWM1_OUT 0x110b0