ARM: tegra: add sound card to Venice2 DT
authorStephen Warren <swarren@nvidia.com>
Wed, 4 Dec 2013 00:26:12 +0000 (17:26 -0700)
committerStephen Warren <swarren@nvidia.com>
Mon, 16 Dec 2013 21:09:19 +0000 (14:09 -0700)
Venice2 uses the MAX98090 audio CODEC, and supports built-in speakers,
and a combo headphones/microphone jack. Add a top-level sound card node
to represent this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/boot/dts/tegra124-venice2.dts

index 3d6ba4bbc55dbf89c251135414533a0476b99579..441b75395b63daf305e246cb830b70133b1899c9 100644 (file)
        i2c@7000c000 {
                status = "okay";
                clock-frequency = <100000>;
+
+               acodec: audio-codec@10 {
+                       compatible = "maxim,max98090";
+                       reg = <0x10>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
+               };
        };
 
        i2c@7000c400 {
                bus-width = <8>;
        };
 
+       ahub@70300000 {
+               i2s@70301100 {
+                       status = "okay";
+               };
+       };
+
        clocks {
                compatible = "simple-bus";
                #address-cells = <1>;
                        clock-frequency = <32768>;
                };
        };
+
+       sound {
+               compatible = "nvidia,tegra-audio-max98090-venice2",
+                            "nvidia,tegra-audio-max98090";
+               nvidia,model = "NVIDIA Tegra Venice2";
+
+               nvidia,audio-routing =
+                       "Headphones", "HPR",
+                       "Headphones", "HPL",
+                       "Speakers", "SPKR",
+                       "Speakers", "SPKL",
+                       "Mic Jack", "MICBIAS",
+                       "IN34", "Mic Jack";
+
+               nvidia,i2s-controller = <&tegra_i2s1>;
+               nvidia,audio-codec = <&acodec>;
+
+               clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
+                        <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
+                        <&tegra_car TEGRA124_CLK_EXTERN1>;
+               clock-names = "pll_a", "pll_a_out0", "mclk";
+       };
 };