mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
arm64: dts: rockchip: rk3528-evb: prepare bt sco settings
we don't directly add bt-sco cards because it may take some
i2s/pcm, which may use dma, but dmas may limit.
so we just prepare this settings, then if any one who want to
support bt-sco, he/she can just add dts in board-level dtsi.
For example diff in "rk3528-evb1-ddr4-v10.dtsi":
+&bt_sco {
+ status = "okay";
+};
+
+&bt_sound {
+ status = "okay";
+};
+
+&sai0{
+ status = "okay";
+};
The default pcm/i2s setting is:
Format: PCM, dsp_a, MSB first, short sync, rising edge and 1 bclk.
rockchip soc: master; Bt controller: slave
Change-Id: I64e76c2ae4b8449e2ee345587e080b3a70521ed9
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
This commit is contained in:
@@ -40,6 +40,27 @@
|
||||
};
|
||||
};
|
||||
|
||||
bt_sco: bt-sco {
|
||||
status = "disabled";
|
||||
compatible = "delta,dfbmcs320";
|
||||
#sound-dai-cells = <0>;
|
||||
};
|
||||
|
||||
bt_sound: bt-sound {
|
||||
status = "disabled";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "dsp_a";
|
||||
simple-audio-card,bitclock-inversion = <0>;
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,bt";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&sai0>;
|
||||
};
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&bt_sco>;
|
||||
};
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
@@ -369,6 +390,11 @@
|
||||
>;
|
||||
};
|
||||
|
||||
&sai0 {
|
||||
pinctrl-0 = <&i2s0m0_lrck &i2s0m0_sclk &i2s0m0_sdi &i2s0m0_sdo>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&sai2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -39,6 +39,27 @@
|
||||
};
|
||||
};
|
||||
|
||||
bt_sco: bt-sco {
|
||||
status = "disabled";
|
||||
compatible = "delta,dfbmcs320";
|
||||
#sound-dai-cells = <0>;
|
||||
};
|
||||
|
||||
bt_sound: bt-sound {
|
||||
status = "disabled";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "dsp_a";
|
||||
simple-audio-card,bitclock-inversion = <0>;
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,bt";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&sai0>;
|
||||
};
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&bt_sco>;
|
||||
};
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
@@ -530,6 +551,11 @@
|
||||
>;
|
||||
};
|
||||
|
||||
&sai0 {
|
||||
pinctrl-0 = <&i2s0m1_lrck &i2s0m1_sclk &i2s0m1_sdi &i2s0m1_sdo>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&sai2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -85,6 +85,11 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sai0 {
|
||||
pinctrl-0 = <&i2s0m0_lrck &i2s0m0_sclk &i2s0m0_sdi &i2s0m0_sdo>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&uart2 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
|
||||
Reference in New Issue
Block a user