mediatek: copy patches-6.1 to patches-6.6
[openwrt/staging/981213.git] / target / linux / mediatek / patches-6.6 / 863-arm64-dts-mt7986-add-sound-wm8960.patch
1 From 1c09b694a1e9378931085e77d834a4d9786a5356 Mon Sep 17 00:00:00 2001
2 From: Maso Huang <maso.huang@mediatek.com>
3 Date: Thu, 7 Sep 2023 10:54:37 +0800
4 Subject: [PATCH] arm64: dts: mt7986: add sound wm8960
5
6 ---
7 .../dts/mediatek/mt7986a-rfb-spim-nand.dts | 39 +++++++++++++++++++
8 1 files changed, 39 insertions(+)
9
10 --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts
11 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts
12 @@ -4,6 +4,35 @@
13
14 / {
15 compatible = "mediatek,mt7986a-rfb-snand";
16 +
17 + sound_wm8960 {
18 + compatible = "mediatek,mt7986-wm8960-sound";
19 + audio-routing = "Headphone", "HP_L",
20 + "Headphone", "HP_R",
21 + "LINPUT1", "AMIC",
22 + "RINPUT1", "AMIC";
23 +
24 + status = "okay";
25 +
26 + platform {
27 + sound-dai = <&afe>;
28 + };
29 +
30 + codec {
31 + sound-dai = <&wm8960>;
32 + };
33 + };
34 +};
35 +
36 +&i2c0 {
37 + pinctrl-names = "default";
38 + pinctrl-0 = <&i2c_pins>;
39 + status = "okay";
40 +
41 + wm8960: wm8960@1a {
42 + compatible = "wlf,wm8960";
43 + reg = <0x1a>;
44 + };
45 };
46
47 &spi0 {
48 @@ -50,3 +79,13 @@
49 &wifi {
50 mediatek,mtd-eeprom = <&factory 0>;
51 };
52 +
53 +&pio {
54 + i2c_pins: i2c-pins-3-4 {
55 + mux {
56 + function = "i2c";
57 + groups = "i2c";
58 + };
59 + };
60 +};
61 +