arm64: dts: rockchip: rk356x boards: prepare bt sco settings
we don't directly enable all evb board to support 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 dts.
now, we just enable rk3568-evb1 and rk3566-evb1 just for example.
Diff in "rk3568-evb1-ddr4-v10.dts" is like this:
+&bt_sco {
+ status = "okay";
+};
+
+&bt_sound {
+ status = "okay";
+};
+
+&i2s3_2ch {
+ status = "okay";
+};
The default pcm/i2s setting is:
Format: PCM, dsp_a, MSB first, short sync, rising edge and delay 1 bclk.
rockchip soc: master; Bt controller: slave
Change-Id: I6668bfbb87e4b0ea71a661bbcf8248cbde77974e
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
This commit is contained in:
@@ -32,6 +32,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 = <&i2s2_2ch>;
|
||||
};
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&bt_sco>;
|
||||
};
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
@@ -231,6 +252,12 @@
|
||||
&i2s1m0_sdo0>;
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&iep {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -5,3 +5,15 @@
|
||||
|
||||
#include "rk3566-evb1-ddr4-v10.dtsi"
|
||||
#include "rk3568-android.dtsi"
|
||||
|
||||
&bt_sco {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2s3_2ch {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -47,6 +47,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&audiopwmout_diff {
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -273,6 +280,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m1_sclktx &i2s2m1_lrcktx &i2s2m1_sdi &i2s2m1_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s3_2ch {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
@@ -39,6 +39,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy1_usq {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -362,6 +369,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&mdio1 {
|
||||
rgmii_phy0: phy@0 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
|
||||
@@ -44,6 +44,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy1_usq {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -266,6 +273,12 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s3_2ch {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
|
||||
@@ -47,6 +47,13 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy1_usq {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -169,6 +176,12 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s3_2ch {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
@@ -141,6 +141,27 @@
|
||||
default-brightness-level = <200>;
|
||||
};
|
||||
|
||||
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 = <&i2s3_2ch>;
|
||||
};
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&bt_sco>;
|
||||
};
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
@@ -1416,6 +1437,12 @@
|
||||
&i2s1m0_sdo0>;
|
||||
};
|
||||
|
||||
&i2s3_2ch {
|
||||
pinctrl-0 = <&i2s3m0_sclk &i2s3m0_lrck &i2s3m0_sdi &i2s3m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&iep {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -6,3 +6,15 @@
|
||||
|
||||
#include "rk3568-evb1-ddr4-v10.dtsi"
|
||||
#include "rk3568-android.dtsi"
|
||||
|
||||
&bt_sco {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2s3_2ch {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -65,6 +65,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy0_us {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -183,6 +190,12 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&mdio1 {
|
||||
qsgmii_phy0: phy@0 {
|
||||
compatible = "ethernet-phy-id001c.c942", "ethernet-phy-ieee802.3-c22";
|
||||
|
||||
@@ -84,6 +84,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy0_us {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -360,6 +367,12 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&mdio0 {
|
||||
sgmii_phy: phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
|
||||
@@ -43,6 +43,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
&bt_sound {
|
||||
status = "disabled";
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s2_2ch>;
|
||||
};
|
||||
};
|
||||
|
||||
&combphy0_us {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -201,6 +208,12 @@
|
||||
/delete-node/ mxc6655xa@15;
|
||||
};
|
||||
|
||||
&i2s2_2ch {
|
||||
pinctrl-0 = <&i2s2m0_sclktx &i2s2m0_lrcktx &i2s2m0_sdi &i2s2m0_sdo>;
|
||||
rockchip,bclk-fs = <32>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&csi2_dphy_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user