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
11 changed files
with
133 additions
and
19 deletions.
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
patches/not-capebus/0174-bone-Added-RS232-prototype-cape-DT-object.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,114 @@ | ||
From 8d96e317017fdee106526ef8156b375842615fd4 Mon Sep 17 00:00:00 2001 | ||
From: Matt Ranostay <mranostay@gmail.com> | ||
Date: Tue, 23 Apr 2013 17:18:34 +0000 | ||
Subject: [PATCH 174/174] bone: Added RS232 prototype cape DT object | ||
|
||
Added UART device tree object to setup UART3 and pinmux. | ||
This should work with the RS232 cape that currently exists. | ||
|
||
Signed-off-by: Matt Ranostay <mranostay@gmail.com> | ||
--- | ||
arch/arm/boot/dts/am335x-bone-common.dtsi | 19 ++++++++++++++- | ||
firmware/Makefile | 1 + | ||
firmware/capes/BB-BONE-RS232-00A0.dts | 39 +++++++++++++++++++++++++++++++ | ||
3 files changed, 58 insertions(+), 1 deletion(-) | ||
create mode 100644 firmware/capes/BB-BONE-RS232-00A0.dts | ||
|
||
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi | ||
index 92e3fb6..d525195 100644 | ||
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi | ||
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi | ||
@@ -205,8 +205,18 @@ | ||
manufacturer = "Signal 11 Software"; | ||
part-number = "BB-BONE-MRF24J40"; | ||
}; | ||
- }; | ||
|
||
+ /* RS232 cape */ | ||
+ slot@12 { | ||
+ ti,cape-override; | ||
+ compatible = "kernel-command-line", "runtime"; | ||
+ board-name = "BB-BONE-RS232"; | ||
+ version = "00A0"; | ||
+ manufacturer = "Adafruit"; | ||
+ part-number = "BB-BONE-RS232-01"; | ||
+ }; | ||
+ }; | ||
+ | ||
/* mapping between board names and dtb objects */ | ||
capemaps { | ||
/* DVI cape */ | ||
@@ -328,6 +338,13 @@ | ||
dtbo = "cape-bone-exptest-00A0.dtbo"; | ||
}; | ||
}; | ||
+ cape@12 { | ||
+ part-number = "BB-BONE-RS232-01"; | ||
+ version@00A0 { | ||
+ version = "00A0"; | ||
+ dtbo = "BB-BONE-RS232-00A0.dtbo"; | ||
+ }; | ||
+ }; | ||
}; | ||
}; | ||
|
||
diff --git a/firmware/Makefile b/firmware/Makefile | ||
index d122aa1..3a4f126 100644 | ||
--- a/firmware/Makefile | ||
+++ b/firmware/Makefile | ||
@@ -155,6 +155,7 @@ fw-shipped-$(CONFIG_CAPE_BEAGLEBONE) += \ | ||
BB-BONE-LCD7-01-00A4.dtbo \ | ||
BB-BONE-eMMC1-01-00A0.dtbo \ | ||
BB-BONE-GPEVT-00A0.dtbo \ | ||
+ BB-BONE-RS232-00A0.dtbo \ | ||
cape-bone-iio-00A0.dtbo \ | ||
cape-bone-pinmux-test-00A0.dtbo \ | ||
cape-bone-exptest-00A0.dtbo \ | ||
diff --git a/firmware/capes/BB-BONE-RS232-00A0.dts b/firmware/capes/BB-BONE-RS232-00A0.dts | ||
new file mode 100644 | ||
index 0000000..220c85d | ||
--- /dev/null | ||
+++ b/firmware/capes/BB-BONE-RS232-00A0.dts | ||
@@ -0,0 +1,39 @@ | ||
+/* | ||
+ * Copyright (C) 2013 Matt Ranostay <mranostay@gmail.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-RS232"; | ||
+ version = "00A0"; | ||
+ | ||
+ fragment@0 { | ||
+ target = <&am33xx_pinmux>; | ||
+ __overlay__ { | ||
+ uart_pins: pinmux_uart_pins { | ||
+ pinctrl-single,pins = < | ||
+ 0x150 0x21 /* spi0_sclk.uart2_rxd | MODE1 | PULL_UP */ | ||
+ 0x154 0x01 /* spi0_d0.uart2_txd | MODE1 */ | ||
+ >; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@1 { | ||
+ target = <&uart3>; | ||
+ __overlay__ { | ||
+ status = "okay"; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&uart_pins>; | ||
+ }; | ||
+ }; | ||
+ | ||
+}; | ||
-- | ||
1.8.1.4 | ||
|
2 changes: 1 addition & 1 deletion
2
patches/resetctrl/0001-boneblack-Remove-default-pinmuxing-for-MMC1.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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
patches/resetctrl/0006-bone-eMMC-Add-rstctl-rstctl-DT-bindings.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
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
2 changes: 1 addition & 1 deletion
2
patches/resetctrl/0008-omap_hsmmc-Bail-out-when-rstctl-error-is-unrecoverab.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
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
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