Skip to content

Commit 1b20f71

Browse files
lanshhrkhuangtao
authored andcommitted
arm64: dts: rockchip: rk3326-evb-ai-va-v10
1. add lsensor and psensor 2. remove unused sensors 3. add unprepare-delay-ms up to 40 for panel device 4. add bt sco audio support Change-Id: Iedde0567f0cf4eaa099f7323e812a58f88c58d1e Signed-off-by: lanshh <lsh@rock-chips.com>
1 parent 602e4a0 commit 1b20f71

1 file changed

Lines changed: 56 additions & 24 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3326-evb-ai-va-v10.dts

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,26 @@
169169
};
170170
};
171171

172+
bt-sound {
173+
compatible = "simple-audio-card";
174+
simple-audio-card,format = "dsp_b";
175+
simple-audio-card,bitclock-inversion = <1>;
176+
simple-audio-card,mclk-fs = <256>;
177+
simple-audio-card,name = "rockchip,bt";
178+
simple-audio-card,cpu {
179+
sound-dai = <&i2s2_2ch>;
180+
};
181+
simple-audio-card,codec {
182+
sound-dai = <&bt_sco>;
183+
};
184+
};
185+
186+
bt_sco: bt-sco {
187+
compatible = "delta,dfbmcs320";
188+
#sound-dai-cells = <0>;
189+
status = "okay";
190+
};
191+
172192
rk_headset {
173193
compatible = "rockchip_headset";
174194
headset_gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
@@ -245,7 +265,7 @@
245265
init-delay-ms = <20>;
246266
enable-delay-ms = <120>;
247267
disable-delay-ms = <50>;
248-
unprepare-delay-ms = <20>;
268+
unprepare-delay-ms = <40>;
249269

250270
width-mm = <68>;
251271
height-mm = <121>;
@@ -592,36 +612,13 @@
592612
i2c-scl-rising-time-ns = <275>;
593613
i2c-scl-falling-time-ns = <16>;
594614

595-
sensor@0f {
596-
status = "okay";
597-
compatible = "ak8963";
598-
reg = <0x0f>;
599-
type = <SENSOR_TYPE_COMPASS>;
600-
irq_enable = <0>;
601-
poll_delay_ms = <30>;
602-
layout = <1>;
603-
reprobe_en = <1>;
604-
};
605-
606615
gt1x: gt1x@14 {
607616
compatible = "goodix,gt1x";
608617
reg = <0x14>;
609618
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
610619
goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>;
611620
};
612621

613-
sensor@4c {
614-
status = "okay";
615-
compatible = "gs_mma7660";
616-
reg = <0x4c>;
617-
type = <SENSOR_TYPE_ACCEL>;
618-
irq-gpio = <&gpio0 RK_PB7 IRQ_TYPE_LEVEL_LOW>;
619-
irq_enable = <0>;
620-
poll_delay_ms = <30>;
621-
layout = <1>;
622-
reprobe_en = <1>;
623-
};
624-
625622
is31fl3236: led-controller@3c {
626623
compatible = "issi,is31fl3236";
627624
reg = <0x3c>;
@@ -954,6 +951,35 @@
954951
linux,default-trigger = "default-on";
955952
};
956953
};
954+
955+
ls_stk3410: light@48 {
956+
compatible = "ls_stk3410";
957+
status = "okay";
958+
reg = <0x48>;
959+
type = <SENSOR_TYPE_LIGHT>;
960+
irq_enable = <0>;
961+
als_threshold_high = <100>;
962+
als_threshold_low = <10>;
963+
als_ctrl_gain = <2>; /* 0:x1 1:x4 2:x16 3:x64 */
964+
poll_delay_ms = <100>;
965+
};
966+
967+
ps_stk3410: proximity@48 {
968+
compatible = "ps_stk3410";
969+
status = "okay";
970+
reg = <0x48>;
971+
type = <SENSOR_TYPE_PROXIMITY>;
972+
//pinctrl-names = "default";
973+
//pinctrl-0 = <&gpio2_c3>;
974+
//irq-gpio = <&gpio0 RK_PB7 IRQ_TYPE_LEVEL_LOW>;
975+
//irq_enable = <1>;
976+
ps_threshold_high = <0x200>;
977+
ps_threshold_low = <0x100>;
978+
ps_ctrl_gain = <3>; /* 0:x1 1:x4 2:x16 3:x64 */
979+
ps_led_current = <3>; /* 0:12.5mA 1:25mA 2:50mA 3:100mA */
980+
poll_delay_ms = <100>;
981+
};
982+
957983
};
958984

959985
&i2c2 {
@@ -968,6 +994,12 @@
968994
&i2s1_2ch_sdo>;
969995
};
970996

997+
&i2s2_2ch {
998+
status = "okay";
999+
rockchip,bclk-fs = <64>;
1000+
#sound-dai-cells = <0>;
1001+
};
1002+
9711003
&io_domains {
9721004
status = "okay";
9731005

0 commit comments

Comments
 (0)