|
169 | 169 | }; |
170 | 170 | }; |
171 | 171 |
|
| 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 | + |
172 | 192 | rk_headset { |
173 | 193 | compatible = "rockchip_headset"; |
174 | 194 | headset_gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; |
|
245 | 265 | init-delay-ms = <20>; |
246 | 266 | enable-delay-ms = <120>; |
247 | 267 | disable-delay-ms = <50>; |
248 | | - unprepare-delay-ms = <20>; |
| 268 | + unprepare-delay-ms = <40>; |
249 | 269 |
|
250 | 270 | width-mm = <68>; |
251 | 271 | height-mm = <121>; |
|
592 | 612 | i2c-scl-rising-time-ns = <275>; |
593 | 613 | i2c-scl-falling-time-ns = <16>; |
594 | 614 |
|
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 | | - |
606 | 615 | gt1x: gt1x@14 { |
607 | 616 | compatible = "goodix,gt1x"; |
608 | 617 | reg = <0x14>; |
609 | 618 | goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; |
610 | 619 | goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>; |
611 | 620 | }; |
612 | 621 |
|
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 | | - |
625 | 622 | is31fl3236: led-controller@3c { |
626 | 623 | compatible = "issi,is31fl3236"; |
627 | 624 | reg = <0x3c>; |
|
954 | 951 | linux,default-trigger = "default-on"; |
955 | 952 | }; |
956 | 953 | }; |
| 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 | + |
957 | 983 | }; |
958 | 984 |
|
959 | 985 | &i2c2 { |
|
968 | 994 | &i2s1_2ch_sdo>; |
969 | 995 | }; |
970 | 996 |
|
| 997 | +&i2s2_2ch { |
| 998 | + status = "okay"; |
| 999 | + rockchip,bclk-fs = <64>; |
| 1000 | + #sound-dai-cells = <0>; |
| 1001 | +}; |
| 1002 | + |
971 | 1003 | &io_domains { |
972 | 1004 | status = "okay"; |
973 | 1005 |
|
|
0 commit comments