51 lines
1.4 KiB
Diff
51 lines
1.4 KiB
Diff
|
diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
|
||
|
index a6a1087a0c9b..3ad67d12cb9f 100644
|
||
|
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
|
||
|
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
|
||
|
@@ -113,6 +113,16 @@ &ahci {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
+&codec {
|
||
|
+ allwinner,audio-routing =
|
||
|
+ "Headphone", "HP",
|
||
|
+ "Headphone", "HPCOM",
|
||
|
+ "MIC1", "Mic",
|
||
|
+ "Mic", "MBIAS";
|
||
|
+ allwinner,codec-analog-controls = <&codec_analog>;
|
||
|
+ status = "okay";
|
||
|
+};
|
||
|
+
|
||
|
&de {
|
||
|
status = "okay";
|
||
|
};
|
||
|
diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi
|
||
|
index 7907569e7b5c..63d531617f59 100644
|
||
|
--- a/arch/arm/boot/dts/sun8i-r40.dtsi
|
||
|
+++ b/arch/arm/boot/dts/sun8i-r40.dtsi
|
||
|
@@ -672,6 +672,24 @@ ths: thermal-sensor@1c24c00 {
|
||
|
#thermal-sensor-cells = <1>;
|
||
|
};
|
||
|
|
||
|
+ codec: codec@1c22c00 {
|
||
|
+ #sound-dai-cells = <1>;
|
||
|
+ compatible = "allwinner,sun8i-h3-codec";
|
||
|
+ reg = <0x01c22c00 0x300>;
|
||
|
+ interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
|
||
|
+ clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_CODEC>;
|
||
|
+ clock-names = "apb", "codec";
|
||
|
+ resets = <&ccu RST_BUS_CODEC>;
|
||
|
+ dmas = <&dma 19>, <&dma 19>;
|
||
|
+ dma-names = "rx", "tx";
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
|
+
|
||
|
+ codec_analog: codec-analog@1c22f00 {
|
||
|
+ compatible = "allwinner,sun8i-a23-codec-analog";
|
||
|
+ reg = <0x01c22f00 0x4>;
|
||
|
+ };
|
||
|
+
|
||
|
uart0: serial@1c28000 {
|
||
|
compatible = "snps,dw-apb-uart";
|
||
|
reg = <0x01c28000 0x400>;
|