@@ -60,6 +60,31 @@ simple-audio-card,codec {
};
};
+ bt-sco-audio {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "rock-3a-bt-sco";
+ simple-audio-card,format = "dsp_b";
+ simple-audio-card,bitclock-inversion;
+ simple-audio-card,frame-master = <&bt_cpu>;
+ simple-audio-card,bitclock-master = <&bt_cpu>;
+ simple-audio-card,mclk-fs = <64>;
+
+ bt_cpu: simple-audio-card,cpu {
+ sound-dai = <&i2s2_2ch>;
+ dai-tdm-slot-num = <2>;
+ dai-tdm-slot-width = <16>;
+ };
+
+ bt_codec: simple-audio-card,codec {
+ sound-dai = <&bt_sco_codec>;
+ };
+ };
+
+ bt_sco_codec: bt-sco-codec {
+ compatible = "linux,bt-sco";
+ #sound-dai-cells = <0>;
+ };
+
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rk809 1>;
@@ -611,6 +636,15 @@ bluetooth {
compatible = "brcm,bcm43438-bt";
clocks = <&rk809 1>;
clock-names = "lpo";
+ brcm,bt-pcm-int-params = [00 02 00 00 00];
+ /*
+ * Parameters:
+ * SCO routing: PCM
+ * PCM interface rate: 512KBps
+ * PCM frame type (0-1): short
+ * PCM sync mode (0-1): slave
+ * PCM clock mode (0-1): slave
+ */
device-wakeup-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
host-wakeup-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;