From 1c09b694a1e9378931085e77d834a4d9786a5356 Mon Sep 17 00:00:00 2001 From: Maso Huang Date: Thu, 7 Sep 2023 10:54:37 +0800 Subject: [PATCH] arm64: dts: mt7986: add sound wm8960 --- .../dts/mediatek/mt7986a-rfb-spim-nand.dts | 39 +++++++++++++++++++ 1 files changed, 39 insertions(+) --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts @@ -4,6 +4,35 @@ / { compatible = "mediatek,mt7986a-rfb-snand"; + + sound_wm8960 { + compatible = "mediatek,mt7986-wm8960-sound"; + audio-routing = "Headphone", "HP_L", + "Headphone", "HP_R", + "LINPUT1", "AMIC", + "RINPUT1", "AMIC"; + + status = "okay"; + + platform { + sound-dai = <&afe>; + }; + + codec { + sound-dai = <&wm8960>; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c_pins>; + status = "okay"; + + wm8960: wm8960@1a { + compatible = "wlf,wm8960"; + reg = <0x1a>; + }; }; &spi0 { @@ -50,3 +79,13 @@ &wifi { mediatek,mtd-eeprom = <&factory 0>; }; + +&pio { + i2c_pins: i2c-pins-3-4 { + mux { + function = "i2c"; + groups = "i2c"; + }; + }; +}; +