diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-12-10 23:09:00 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-12-11 18:01:43 +0000 |
commit | 957a0921e20257bd94b7f5ace6e07a68e8388499 (patch) | |
tree | 9a96e6a4e4096854b9d16e4126823aa7b4630c0a /target/linux/mediatek/image/filogic.mk | |
parent | d61b4ecbf109c7f702cafc0307db6b35e92c46b4 (diff) |
mediatek: bananapi-r3: add overlay for ReSpeaker 2-mic hat
Add DT overlay to allow using the ReSpeaker 2-mic hat connected to
the 26-pin header of the BananaPi BPi-R3.
Supported sample formats: S16_LE, S24_LE, S32_LE
Supported sample rates: 8/12/16/24/32/48/96/192 kHz
| BPi-R3 | ReSpeaker 2-mic
Signal | 26-pin | 40-pin
----------+----------+-------------------
VCC 5V | 2 | 2
I2C SDA | 3 | 3
I2C SCL | 5 | 5
GND | 6 | 6
PCM CLK | 12 | 12
PCM FS | 15 | 35
PCM DIN | 26 | 38
GND | 25 | 39
PCM DOUT | 22 | 40
Once connected, install the driver and tell U-Boot to apply the DT
overlay:
opkg kmod-sound-soc-mt7986-wm8960
fw_setenv bootconf_base "config-mt7986a-bananapi-bpi-r3#mt7986a-bananapi-bpi-r3-respeaker-2mics"
reboot
To setup the ReSpeaker for Stereo out on the Headphone plug:
amixer sset 'Right Output Mixer PCM' on
amixer sset 'Left Output Mixer PCM' on
amixer sset 'PCM Playback -6dB' off
amixer sset 'O018 I150_Switch' on
amixer sset 'O019 I151_Switch' on
amixer sset 'O124 I032_Switch' on
amixer sset 'O125 I033_Switch' on
amixer sset 'Headphone' 121
amixer sset 'Playback' 255
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/image/filogic.mk')
-rw-r--r-- | target/linux/mediatek/image/filogic.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index 36333bb926..7af96674d9 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -212,7 +212,9 @@ define Device/bananapi_bpi-r3 DEVICE_MODEL := BPi-R3 DEVICE_DTS := mt7986a-bananapi-bpi-r3 DEVICE_DTS_CONFIG := config-mt7986a-bananapi-bpi-r3 - DEVICE_DTS_OVERLAY:= mt7986a-bananapi-bpi-r3-emmc mt7986a-bananapi-bpi-r3-nand mt7986a-bananapi-bpi-r3-nor mt7986a-bananapi-bpi-r3-sd + DEVICE_DTS_OVERLAY:= mt7986a-bananapi-bpi-r3-emmc mt7986a-bananapi-bpi-r3-nand \ + mt7986a-bananapi-bpi-r3-nor mt7986a-bananapi-bpi-r3-sd \ + mt7986a-bananapi-bpi-r3-respeaker-2mics DEVICE_DTS_DIR := $(DTS_DIR)/ DEVICE_DTS_LOADADDR := 0x43f00000 DEVICE_PACKAGES := kmod-hwmon-pwmfan kmod-i2c-gpio kmod-mt7986-firmware kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs mt7986-wo-firmware |