Add readme for reference
authorTracy Yi <tracy-yi@ti.com>
Thu, 20 Dec 2018 10:23:45 +0000 (18:23 +0800)
committerTracy Yi <tracy-yi@ti.com>
Thu, 20 Dec 2018 10:23:45 +0000 (18:23 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
dai_link.readme [new file with mode: 0644]
dts.readme [new file with mode: 0644]

diff --git a/dai_link.readme b/dai_link.readme
new file mode 100644 (file)
index 0000000..8bcb1a9
--- /dev/null
@@ -0,0 +1,28 @@
+example for connecting CPU DAI
+
+#if defined(CONFIG_TAS2563_CODEC)
+       {
+               .name = LPASS_BE_PRI_MI2S_RX,
+               .stream_name = "Primary MI2S Hostless Playback",
+               .cpu_dai_name = "msm-dai-q6-mi2s.0",
+               .platform_name = "msm-pcm-routing",
+               .codec_name     = "tas2563.3-0041",
+               .codec_dai_name = "tas2563 ASI1",
+               .no_pcm = 1,
+               .be_id = MSM_BACKEND_DAI_PRI_MI2S_RX,
+               .be_hw_params_fixup = msm_be_prim_mi2s_hw_params_fixup,
+               .ops = &msm8974_prim_mi2s_be_ops,
+       },
+       {
+               .name = LPASS_BE_PRI_MI2S_TX,
+               .stream_name = "Primary MI2S Hostless Capture",
+               .cpu_dai_name = "msm-dai-q6-mi2s.0",
+               .platform_name = "msm-pcm-routing",
+               .codec_name     = "tas2563.3-0041",
+               .codec_dai_name = "tas2563 ASI1",
+               .no_pcm = 1,
+               .be_id = MSM_BACKEND_DAI_PRI_MI2S_TX,
+               .be_hw_params_fixup = msm_be_prim_mi2s_hw_params_fixup,
+               .ops = &msm8974_prim_mi2s_be_ops,
+       },
+#endif
diff --git a/dts.readme b/dts.readme
new file mode 100644 (file)
index 0000000..8478131
--- /dev/null
@@ -0,0 +1,13 @@
+example for dts:
+               tas2563@4c {
+                       compatible = "ti,tas2563";
+                       reg = <0x4c>;
+                       ti,reset-gpio = <&msmgpio 13 0>;
+                       ti,irq-gpio = <&msmgpio 59 0>;
+                       ti,asi-format = <0>; /* 0, i2S; 1, DSP;  */
+                       ti,left-slot = <0>; /* <left slot number> */
+                       ti,right-slot = <1>; /* <right slot number> */
+                       ti,imon-slot-no = <0>; /* <current sense slot number> */
+                       ti,vmon-slot-no = <2>; /* <current voltage slot number> */
+                       status = "ok";
+               };