Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
- Loading branch information
Showing
1 changed file
with
158 additions
and
0 deletions.
There are no files selected for viewing
158 changes: 158 additions & 0 deletions
158
patches/not-capebus/0156-beaglebone-add-dts-for-audio-cape.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
From fed9c39b27d227bf1bfdc1d5a3fe15d4b7f6f9b5 Mon Sep 17 00:00:00 2001 | ||
From: Koen Kooi <koen@dominion.thruhere.net> | ||
Date: Thu, 4 Apr 2013 10:24:06 +0200 | ||
Subject: [PATCH 156/156] beaglebone: add dts for audio cape | ||
|
||
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
--- | ||
firmware/Makefile | 1 + | ||
firmware/capes/BB-BONE-AUDI-01-00A0.dts | 125 ++++++++++++++++++++++++++++++++ | ||
2 files changed, 126 insertions(+) | ||
create mode 100644 firmware/capes/BB-BONE-AUDI-01-00A0.dts | ||
|
||
diff --git a/firmware/Makefile b/firmware/Makefile | ||
index f9f0294..d4403b5 100644 | ||
--- a/firmware/Makefile | ||
+++ b/firmware/Makefile | ||
@@ -147,6 +147,7 @@ fw-shipped-$(CONFIG_CAPE_BEAGLEBONE) += \ | ||
cape-bone-hexy-00A0.dtbo \ | ||
cape-bone-lcd3-00A0.dtbo \ | ||
cape-bone-lcd3-00A2.dtbo \ | ||
+ BB-BONE-AUDI-01-00A0.dtbo \ | ||
BB-BONE-LCD7-01-00A2.dtbo \ | ||
BB-BONE-LCD7-01-00A4.dtbo \ | ||
BB-BONE-eMMC1-01-00A0.dtbo \ | ||
diff --git a/firmware/capes/BB-BONE-AUDI-01-00A0.dts b/firmware/capes/BB-BONE-AUDI-01-00A0.dts | ||
new file mode 100644 | ||
index 0000000..8e1256e | ||
--- /dev/null | ||
+++ b/firmware/capes/BB-BONE-AUDI-01-00A0.dts | ||
@@ -0,0 +1,125 @@ | ||
+/* | ||
+ * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ | ||
+ * | ||
+ * This program is free software; you can redistribute it and/or modify | ||
+ * it under the terms of the GNU General Public License version 2 as | ||
+ * published by the Free Software Foundation. | ||
+ */ | ||
+/dts-v1/; | ||
+/plugin/; | ||
+ | ||
+/ { | ||
+ compatible = "ti,beaglebone"; | ||
+ | ||
+ /* identification */ | ||
+ part-number = "BB-BONE-AUDI-01"; | ||
+ version = "00A0", "A0"; | ||
+ | ||
+ fragment@0 { | ||
+ target = <&am33xx_pinmux>; | ||
+ __overlay__ { | ||
+ | ||
+ bone_audio_cape_led_pins: pinmux_bone_audio_cape_led_pins { | ||
+ pinctrl-single,pins = < | ||
+ 0x48 0x07 /* gpmc_a2.gpio1_18, OUTPUT | MODE7 */ | ||
+ 0x4c 0x07 /* gpmc_a3.gpio1_19, OUTPUT | MODE7 */ | ||
+ >; | ||
+ }; | ||
+ | ||
+ bone_audio_cape_audio_pins: pinmux_bone_audio_cape_audio_pins { | ||
+ pinctrl-single,pins = < | ||
+ 0x190 0x20 /* mcasp0_aclkx.mcasp0_aclkx, INPUT | MODE0 */ | ||
+ 0x194 0x20 /* mcasp0_fsx.mcasp0_fsx, INPUT | MODE0 */ | ||
+ 0x19c 0x22 /* mcasp0_ahclkr.mcasp0_axr2, INPUT | MODE2 */ | ||
+ 0x1ac 0x22 /* mcasp0_ahclkx.mcasp0_axr3, INPUT | MODE2 */ | ||
+ | ||
+ >; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@1 { | ||
+ target = <&ocp>; | ||
+ __overlay__ { | ||
+ | ||
+ /* avoid stupid warning */ | ||
+ #address-cells = <1>; | ||
+ #size-cells = <1>; | ||
+ | ||
+ gpio-leds-cape-audio { | ||
+ compatible = "gpio-leds"; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&bone_audio_cape_led_pins>; | ||
+ | ||
+ audio-led0 { | ||
+ label = "audio:green:usr0"; | ||
+ gpios = <&gpio2 18 0>; | ||
+ linux,default-trigger = "heartbeat"; | ||
+ default-state = "off"; | ||
+ }; | ||
+ | ||
+ audio-led1 { | ||
+ label = "audio:green:usr1"; | ||
+ gpios = <&gpio2 19 0>; | ||
+ linux,default-trigger = "mmc0"; | ||
+ default-state = "off"; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@2 { | ||
+ target = <&i2c2>; | ||
+ __overlay__ { | ||
+ #address-cells = <1>; | ||
+ #size-cells = <0>; | ||
+ | ||
+ tlv320aic3x: tlv320aic3x@1b { | ||
+ compatible = "ti,tlv320aic3x"; | ||
+ reg = <0x1b>; | ||
+ status = "okay"; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@3 { | ||
+ target = <&mcasp0>; | ||
+ __overlay__ { | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&bone_audio_cape_audio_pins>; | ||
+ | ||
+ status = "okay"; | ||
+ | ||
+ op-mode = <0>; /* MCASP_IIS_MODE */ | ||
+ tdm-slots = <2>; | ||
+ num-serializer = <16>; | ||
+ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ | ||
+ 0 0 2 1 | ||
+ 0 0 0 0 | ||
+ 0 0 0 0 | ||
+ 0 0 0 0 | ||
+ >; | ||
+ tx-num-evt = <1>; | ||
+ rx-num-evt = <1>; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@4 { | ||
+ target = <&ocp>; | ||
+ __overlay__ { | ||
+ sound { | ||
+ compatible = "ti,da830-evm-audio"; | ||
+ ti,model = "DA830 EVM"; | ||
+ ti,audio-codec = <&tlv320aic3x>; | ||
+ ti,mcasp-controller = <&mcasp0>; | ||
+ ti,codec-clock-rate = <12000000>; | ||
+ ti,audio-routing = | ||
+ "Headphone Jack", "HPLOUT", | ||
+ "Headphone Jack", "HPROUT", | ||
+ "LINE1L", "Line In", | ||
+ "LINE1R", "Line In"; | ||
+ }; | ||
+ }; | ||
+ | ||
+ }; | ||
+}; | ||
-- | ||
1.8.1.4 | ||
|