Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.8: cape: add BB-BONE-AUDI-02-00A0 and a pinmux fix on cape-universaln
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
- Loading branch information
1 parent
a529d0f
commit 354ef4c
Showing
2 changed files
with
174 additions
and
0 deletions.
There are no files selected for viewing
145 changes: 145 additions & 0 deletions
145
patches/capes/0034-cape-add-BB-BONE-AUDI-02-00A0-from-http-elinux.org-C.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,145 @@ | ||
From 4b49f3dfabd4b766002a78a50578e6fa371f6500 Mon Sep 17 00:00:00 2001 | ||
From: Robert Nelson <robertcnelson@gmail.com> | ||
Date: Wed, 14 May 2014 08:52:25 -0500 | ||
Subject: [PATCH 34/34] cape: add BB-BONE-AUDI-02-00A0 from: | ||
http://elinux.org/CircuitCo:Audio_Cape_RevB | ||
|
||
Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | ||
--- | ||
firmware/Makefile | 1 + | ||
firmware/capes/BB-BONE-AUDI-02-00A0.dts | 111 ++++++++++++++++++++++++++++++++ | ||
2 files changed, 112 insertions(+) | ||
create mode 100644 firmware/capes/BB-BONE-AUDI-02-00A0.dts | ||
|
||
diff --git a/firmware/Makefile b/firmware/Makefile | ||
index 6e3f77a..d09a047 100644 | ||
--- a/firmware/Makefile | ||
+++ b/firmware/Makefile | ||
@@ -150,6 +150,7 @@ fw-shipped-$(CONFIG_CAPE_BEAGLEBONE) += \ | ||
cape-bone-lcd3-00A0.dtbo \ | ||
cape-bone-lcd3-00A2.dtbo \ | ||
BB-BONE-AUDI-01-00A0.dtbo \ | ||
+ BB-BONE-AUDI-02-00A0.dtbo \ | ||
BB-BONE-LCD4-01-00A0.dtbo \ | ||
BB-BONE-LCD4-01-00A1.dtbo \ | ||
BB-BONE-LCD7-01-00A2.dtbo \ | ||
diff --git a/firmware/capes/BB-BONE-AUDI-02-00A0.dts b/firmware/capes/BB-BONE-AUDI-02-00A0.dts | ||
new file mode 100644 | ||
index 0000000..0d3b9ec | ||
--- /dev/null | ||
+++ b/firmware/capes/BB-BONE-AUDI-02-00A0.dts | ||
@@ -0,0 +1,111 @@ | ||
+/* | ||
+ * 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", "ti,beaglebone-black"; | ||
+ | ||
+ /* identification */ | ||
+ part-number = "BB-BONE-AUDI-02"; | ||
+ version = "00A0", "A0"; | ||
+ | ||
+ /* state the resources this cape uses */ | ||
+ exclusive-use = | ||
+ /* the pin header uses */ | ||
+ "P9.31", /* mcasp0: mcasp0_aclkx */ | ||
+ "P9.29", /* mcasp0: mcasp0_fsx */ | ||
+ "P9.28", /* mcasp0: mcasp0_axr2 */ | ||
+ "P9.25", /* mcasp0: mcasp0_ahclkx */ | ||
+ /* the hardware ip uses */ | ||
+ "gpio1_18", "gpio1_19", | ||
+ "mcasp0"; | ||
+ | ||
+ fragment@0 { | ||
+ target = <&am33xx_pinmux>; | ||
+ __overlay__ { | ||
+ | ||
+ i2c2_pins: pinmux_i2c2_pins { | ||
+ pinctrl-single,pins = < | ||
+ 0x150 0x72 /*spi0_scl.i2c2_sda,SLEWCTRL_SLOW | INPUT_PULLUP |MODE2*/ | ||
+ 0x154 0x72 /*spi0_d0.i2c2_scl,SLEWCTRL_SLOW | INPUT_PULLUP | MODE2*/ | ||
+ >; | ||
+ }; | ||
+ | ||
+ bone_audio_cape_audio_pins: pinmux_bone_audio_cape_audio_pins { | ||
+ pinctrl-single,pins = < | ||
+ 0x1ac 0x00 /* mcasp0_ahclkx, MODE0 | INPUT */ | ||
+ 0x19c 0x22 /* mcasp0_ahclkr, */ | ||
+ 0x194 0x20 /* mcasp0_fsx, MODE0 | OUTPUT */ | ||
+ 0x190 0x20 /* mcasp0_aclkr.mcasp0_aclkx, MODE0 | OUTPUT_PULLDOWN */ | ||
+ 0x198 0x20 | ||
+ >; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@1 { | ||
+ target = <&i2c2>; | ||
+ __overlay__ { | ||
+ #address-cells = <1>; | ||
+ #size-cells = <0>; | ||
+ clock-frequency = <100000>; | ||
+ status = "okay"; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&i2c2_pins>; | ||
+ | ||
+ | ||
+ tlv320aic3x: tlv320aic3x@18 { | ||
+ compatible = "ti,tlv320aic3x"; | ||
+ reg = <0x18>; | ||
+ status = "okay"; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@2 { | ||
+ 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 */ | ||
+ 2 0 1 0 | ||
+ 0 0 0 0 | ||
+ 0 0 0 0 | ||
+ 0 0 0 0 | ||
+ >; | ||
+ tx-num-evt = <1>; | ||
+ rx-num-evt = <1>; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@3 { | ||
+ 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"; | ||
+ }; | ||
+ }; | ||
+ | ||
+ }; | ||
+}; | ||
-- | ||
2.0.0.rc0 | ||
|
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,29 @@ | ||
From 12fb5191f9cb0ad62ccd2646e19fe694c874210f Mon Sep 17 00:00:00 2001 | ||
From: Jason Kridner <github@hangerhead.com> | ||
Date: Wed, 14 May 2014 22:44:13 -0400 | ||
Subject: [PATCH 35/35] cape-universaln: remove P9_31 | ||
|
||
It looks like one of the entries was missed. | ||
|
||
Signed-off-by: Jason Kridner <github@hangerhead.com> | ||
Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | ||
--- | ||
firmware/capes/cape-universaln-00A0.dts | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/firmware/capes/cape-universaln-00A0.dts b/firmware/capes/cape-universaln-00A0.dts | ||
index a4bdbf0..2ecbd1d 100644 | ||
--- a/firmware/capes/cape-universaln-00A0.dts | ||
+++ b/firmware/capes/cape-universaln-00A0.dts | ||
@@ -105,7 +105,7 @@ | ||
/* "P9.28", Audio */ | ||
/* "P9.29", Audio */ | ||
"P9.30", | ||
- "P9.31", | ||
+/* "P9.31", Audio */ | ||
/* "P9.32", VADC */ | ||
/* "P9.33", AIN4 */ | ||
/* "P9.34", AGND */ | ||
-- | ||
2.0.0.rc0 | ||
|