Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/dts Add audio codec nodes



details:   https://anonhg.NetBSD.org/src/rev/6980837ff643
branches:  trunk
changeset: 318942:6980837ff643
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu May 10 00:04:46 2018 +0000
description:
Add audio codec nodes

diffstat:

 sys/arch/arm/dts/sun50i-a64.dtsi |  54 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 53 insertions(+), 1 deletions(-)

diffs (82 lines):

diff -r ada25854e1dd -r 6980837ff643 sys/arch/arm/dts/sun50i-a64.dtsi
--- a/sys/arch/arm/dts/sun50i-a64.dtsi  Thu May 10 00:02:10 2018 +0000
+++ b/sys/arch/arm/dts/sun50i-a64.dtsi  Thu May 10 00:04:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun50i-a64.dtsi,v 1.7 2018/05/06 10:43:32 jmcneill Exp $ */
+/* $NetBSD: sun50i-a64.dtsi,v 1.8 2018/05/10 00:04:46 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -40,6 +40,28 @@
                };
        };
 
+       sound: sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "SUN50I Audio Card";
+               simple-audio-card,format = "i2s";
+               simple-audio-card,frame-master = <&cpudai>;
+               simple-audio-card,bitclock-master = <&cpudai>;
+               simple-audio-card,mclk-fs = <512>;
+               simple-audio-card,aux-devs = <&codec_analog>;
+               simple-audio-card,routing =
+                               "Left DAC", "AIF1 Slot 0 Left",
+                               "Right DAC", "AIF1 Slot 0 Right";
+               status = "disabled";
+
+               cpudai: simple-audio-card,cpu {
+                       sound-dai = <&dai>;
+               };
+
+               link_codec: simple-audio-card,codec {
+                       sound-dai = <&codec>;
+               };
+       };
+
        soc {
                pwm: pwm@1c21400 {
                        compatible = "allwinner,sun50i-a64-pwm";
@@ -49,6 +71,30 @@
                        status = "disabled";
                };
 
+               dai: dai@1c22c00 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun50i-a64-acodec-i2s";
+                       reg = <0x01c22c00 0x200>;
+                       interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
+                       clock-names = "apb", "mod";
+                       resets = <&ccu RST_BUS_CODEC>;
+                       reset-names = "rst";
+                       dmas = <&dma 15>, <&dma 15>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
+               codec: codec@1c22e00 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun50i-a64-codec";
+                       reg = <0x01c22e00 0x600>;
+                       interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
+                       clock-names = "bus", "mod";
+                       status = "disabled";
+               };
+
                rtp: rtp@1c25000 {
                        compatible = "allwinner,sun50i-a64-ts";
                        reg = <0x01c25000 0x400>;
@@ -58,6 +104,12 @@
                        resets = <&ccu RST_BUS_THS>;
                        #thermal-sensor-cells = <0>;
                };
+
+               codec_analog: codec-analog@1f015c0 {
+                       compatible = "allwinner,sun50i-a64-codec-analog";
+                       reg = <0x01f015c0 0x4>;
+                       status = "disabled";
+               };
        };
 };
 



Home | Main Index | Thread Index | Old Index