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
70 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
patches/not-capebus/0175-Add-support-for-BB-BONE_SERL-01-00A1-CanBus-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,70 @@ | ||
From abec9bf5f08dae699919df0f41d45d73773b9ba3 Mon Sep 17 00:00:00 2001 | ||
From: Martin Gysel <me@bearsh.org> | ||
Date: Wed, 15 May 2013 16:48:34 +0200 | ||
Subject: [PATCH 175/175] Add support for BB-BONE_SERL-01-00A1 CanBus cape | ||
|
||
Signed-off-by: Martin Gysel <me@bearsh.org> | ||
--- | ||
firmware/Makefile | 1 + | ||
firmware/capes/BB-BONE-SERL-01-00A1.dts | 37 +++++++++++++++++++++++++++++++++ | ||
2 files changed, 38 insertions(+) | ||
create mode 100644 firmware/capes/BB-BONE-SERL-01-00A1.dts | ||
|
||
diff --git a/firmware/Makefile b/firmware/Makefile | ||
index 3a4f126..3497631 100644 | ||
--- a/firmware/Makefile | ||
+++ b/firmware/Makefile | ||
@@ -156,6 +156,7 @@ fw-shipped-$(CONFIG_CAPE_BEAGLEBONE) += \ | ||
BB-BONE-eMMC1-01-00A0.dtbo \ | ||
BB-BONE-GPEVT-00A0.dtbo \ | ||
BB-BONE-RS232-00A0.dtbo \ | ||
+ BB-BONE-SERL-01-00A1.dtbo \ | ||
cape-bone-iio-00A0.dtbo \ | ||
cape-bone-pinmux-test-00A0.dtbo \ | ||
cape-bone-exptest-00A0.dtbo \ | ||
diff --git a/firmware/capes/BB-BONE-SERL-01-00A1.dts b/firmware/capes/BB-BONE-SERL-01-00A1.dts | ||
new file mode 100644 | ||
index 0000000..b0459c8 | ||
--- /dev/null | ||
+++ b/firmware/capes/BB-BONE-SERL-01-00A1.dts | ||
@@ -0,0 +1,37 @@ | ||
+/* | ||
+* Copyright (C) 2013 Martin Gysel <me@bearsh.org> | ||
+* | ||
+* 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"; | ||
+ part-number = "BB-BONE-SERL-01"; | ||
+ version = "00A1"; | ||
+ | ||
+ fragment@0 { | ||
+ target = <&am33xx_pinmux>; | ||
+ __overlay__ { | ||
+ bone_serl_01_dcan1_pins: bone_serl_01_dcan1_pins { | ||
+ pinctrl-single,pins = < | ||
+ 0x180 0x02 /* uart1_rxd.d_can1_tx", OUTPUT | MODE2 */ | ||
+ 0x184 0x32 /* uart1_txd.d_can1_rx", INPUT_PULLUP | MODE2 */ | ||
+ >; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@1 { | ||
+ target = <&dcan1>; | ||
+ __overlay__ { | ||
+ status = "okay"; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&bone_serl_01_dcan1_pins>; | ||
+ }; | ||
+ }; | ||
+}; | ||
-- | ||
1.8.1.4 | ||
|