Skip to content

Commit 9504381

Browse files
kcxtokias
authored andcommitted
DOWNSTREAM: arm64: dts: qcom: sdm845-oneplus-fajita: enable TFA speaker codec
The codec relies on a downstream driver which would need to be entirely rewritten to submit upstream. Unfortunately we have to carry this DTS patch for now... [David] - Sort properties. - Use GPIO_ACTIVE_HIGH const instead of number. Signed-off-by: Casey Connolly <casey.connolly@linaro.org> Signed-off-by: David Heidelberg <david@ixit.cz>
1 parent fdc7a25 commit 9504381

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,17 @@
3636
};
3737

3838
&i2c4 {
39-
/* nxp,tfa9894 @ 0x34 */
39+
clock-frequency = <400000>;
40+
41+
status = "okay";
42+
43+
tfa9894_codec: tfa9894@34 {
44+
#sound-dai-cells = <1>;
45+
compatible = "nxp,tfa9894";
46+
reg = <0x34>;
47+
reset-gpio = <&tlmm 69 GPIO_ACTIVE_HIGH>;
48+
};
49+
4050
};
4151

4252
&bq27441_fg {
@@ -57,12 +67,11 @@
5767
monitored-battery = <&battery>;
5868
};
5969

60-
/*
61-
* The TFA9894 codec is currently unsupported.
62-
* We need to delete the node to allow the soundcard
63-
* to probe for headphones/earpiece.
64-
*/
65-
/delete-node/ &speaker_playback_dai;
70+
&speaker_playback_dai {
71+
codec {
72+
sound-dai = <&tfa9894_codec 0>;
73+
};
74+
};
6675

6776
&rmi4_f12 {
6877
touchscreen-y-mm = <148>;

0 commit comments

Comments
 (0)