]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: h616: Add audio codec node
authorRyan Walklin <ryan@testtoast.com>
Wed, 23 Oct 2024 07:57:02 +0000 (20:57 +1300)
committerChen-Yu Tsai <wens@csie.org>
Fri, 25 Oct 2024 15:21:51 +0000 (23:21 +0800)
Now that the sun4i codec driver supports the H616, add a node in the
device tree for it (correcting the spdif block location at the same
time).

Signed-off-by: Ryan Walklin <ryan@testtoast.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20241023075917.186835-7-ryan@testtoast.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi

index e88c1fbac6acc8226b63701e6559caafae9b0901..cdce3dcb8ec024064ea8caa2f7638e2fde1ff532 100644 (file)
                        };
                };
 
-               spdif: spdif@5093000 {
-                       compatible = "allwinner,sun50i-h616-spdif";
-                       reg = <0x05093000 0x400>;
-                       interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
-                       clock-names = "apb", "spdif";
-                       resets = <&ccu RST_BUS_SPDIF>;
-                       dmas = <&dma 2>;
-                       dma-names = "tx";
-                       pinctrl-names = "default";
-                       pinctrl-0 = <&spdif_tx_pin>;
-                       #sound-dai-cells = <0>;
-                       status = "disabled";
-               };
-
                gpadc: adc@5070000 {
                        compatible = "allwinner,sun50i-h616-gpadc",
                                     "allwinner,sun20i-d1-gpadc";
                        status = "disabled";
                };
 
+               spdif: spdif@5093000 {
+                       compatible = "allwinner,sun50i-h616-spdif";
+                       reg = <0x05093000 0x400>;
+                       interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
+                       clock-names = "apb", "spdif";
+                       resets = <&ccu RST_BUS_SPDIF>;
+                       dmas = <&dma 2>;
+                       dma-names = "tx";
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&spdif_tx_pin>;
+                       #sound-dai-cells = <0>;
+                       status = "disabled";
+               };
+
+               codec: codec@5096000 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun50i-h616-codec";
+                       reg = <0x05096000 0x31c>;
+                       interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_AUDIO_CODEC>,
+                                <&ccu CLK_AUDIO_CODEC_1X>;
+                       clock-names = "apb", "codec";
+                       resets = <&ccu RST_BUS_AUDIO_CODEC>;
+                       dmas = <&dma 6>;
+                       dma-names = "tx";
+                       status = "disabled";
+               };
+
                usbotg: usb@5100000 {
                        compatible = "allwinner,sun50i-h616-musb",
                                     "allwinner,sun8i-h3-musb";