Initial test. --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 37676e8a258c..423558fbc200 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -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>; -- 2.25.1