Skip to content

Commit

Permalink
audioinjector stereo
Browse files Browse the repository at this point in the history
  • Loading branch information
verplant23 committed Jun 1, 2020
1 parent b04eccb commit 449f587
Show file tree
Hide file tree
Showing 7 changed files with 4,606 additions and 155 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
spi1-flash.dtbo \
hifiberry-dac.dtbo \
hifiberry-dacplus.dtbo \
audioinjector-wm8731-audio.dtbo \
raspberrypi-7-inch-lcd.dtbo \
gt9xx.dtbo \
cpufreq.dtbo \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3399";

fragment@0 {
target = <&i2c7>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

wm8731@1a {
#sound-dai-cells = <0>;
compatible = "wlf,wm8731";
reg = <0x1a>;
AVDD-supply = <&vcc3v3_sys>;
HPVDD-supply = <&vcc3v3_sys>;
DCVDD-supply = <&vcc3v3_sys>;
DBVDD-supply = <&vcc3v3_sys>;
status = "okay";
};
};
};

fragment@1 {
target-path = "/sound-ext-card";

__overlay__ {
compatible = "ai,audioinjector-pi-soundcard";
i2s-controller = <&i2s1>;
status = "okay";
};
};

fragment@2 {
target = <&i2s1>;
__overlay__ {
status = "okay";
#sound-dai-cells = <0>;
};
};

};
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ intfc:dtoverlay=console-on-ttyS2
# Add ov5647 camera module support. Need disabled imx219 camera module.
#intfc:dtoverlay=ov5647

#audioinjector-wm8731-audio on I2C7. Need set: intfc:i2c7=on
#intfc:dtoverlay=audioinjector-wm8731-audio

# Add w1 on GPIO4_D6 to support devices such as DS18B20.
#intfc:dtoverlay=w1-gpio4-30

0 comments on commit 449f587

Please sign in to comment.