diff options
author | Stephen Warren <swarren@nvidia.com> | 2013-03-12 19:03:42 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-06-12 16:56:39 -0400 |
commit | aa5ae424952fe2d1c2ca2340a433c3e3407262f7 (patch) | |
tree | e7e52df34a68299047c9e60c5b6089629ada566b | |
parent | d5284a67a939764d9a4ab90c7f6882e9c0b0c812 (diff) |
ARM: tegra: enable audio on Dalmore
Dalmore uses the RT5640 audio CODEC. Instantiate this on the I2C bus.
Enable the relevant Tegra I2C controller. Add the top-level "sound" node
to hook everything together, and provide a "sound card" device.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | arch/arm/boot/dts/tegra114-dalmore.dts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts index b92922fe7eef..cb640eb6c932 100644 --- a/arch/arm/boot/dts/tegra114-dalmore.dts +++ b/arch/arm/boot/dts/tegra114-dalmore.dts | |||
@@ -729,6 +729,15 @@ | |||
729 | sbs,poll-retry-count = <100>; | 729 | sbs,poll-retry-count = <100>; |
730 | power-supplies = <&charger>; | 730 | power-supplies = <&charger>; |
731 | }; | 731 | }; |
732 | |||
733 | rt5640: rt5640 { | ||
734 | compatible = "realtek,rt5640"; | ||
735 | reg = <0x1c>; | ||
736 | interrupt-parent = <&gpio>; | ||
737 | interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>; | ||
738 | realtek,ldo1-en-gpios = | ||
739 | <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; | ||
740 | }; | ||
732 | }; | 741 | }; |
733 | 742 | ||
734 | i2c@7000d000 { | 743 | i2c@7000d000 { |
@@ -843,6 +852,12 @@ | |||
843 | nvidia,invert-interrupt; | 852 | nvidia,invert-interrupt; |
844 | }; | 853 | }; |
845 | 854 | ||
855 | ahub { | ||
856 | i2s@70080400 { | ||
857 | status = "okay"; | ||
858 | }; | ||
859 | }; | ||
860 | |||
846 | sdhci@78000400 { | 861 | sdhci@78000400 { |
847 | cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; | 862 | cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; |
848 | bus-width = <4>; | 863 | bus-width = <4>; |
@@ -937,4 +952,28 @@ | |||
937 | vin-supply = <&tps65090_dcdc1_reg>; | 952 | vin-supply = <&tps65090_dcdc1_reg>; |
938 | }; | 953 | }; |
939 | }; | 954 | }; |
955 | |||
956 | sound { | ||
957 | compatible = "nvidia,tegra-audio-rt5640-dalmore", | ||
958 | "nvidia,tegra-audio-rt5640"; | ||
959 | nvidia,model = "NVIDIA Tegra Dalmore"; | ||
960 | |||
961 | nvidia,audio-routing = | ||
962 | "Headphones", "HPOR", | ||
963 | "Headphones", "HPOL", | ||
964 | "Speakers", "SPORP", | ||
965 | "Speakers", "SPORN", | ||
966 | "Speakers", "SPOLP", | ||
967 | "Speakers", "SPOLN"; | ||
968 | |||
969 | nvidia,i2s-controller = <&tegra_i2s1>; | ||
970 | nvidia,audio-codec = <&rt5640>; | ||
971 | |||
972 | nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; | ||
973 | |||
974 | clocks = <&tegra_car TEGRA114_CLK_PLL_A>, | ||
975 | <&tegra_car TEGRA114_CLK_PLL_A_OUT0>, | ||
976 | <&tegra_car TEGRA114_CLK_EXTERN1>; | ||
977 | clock-names = "pll_a", "pll_a_out0", "mclk"; | ||
978 | }; | ||
940 | }; | 979 | }; |