Skip to content

Commit 0870d6a

Browse files
committed
Add device tree patch for full test coverage of test_led.py
Patch for device tree binding in ti-linux-4.4.y branch of the ti-linux-kernel-dev repo which renames the labels of the USR LED nodes from usrN to the trigger name Normal labels: * beaglebone:green:usr0 * beaglebone:green:usr1 * beaglebone:green:usr2 * beaglebone:green:usr3 Alternate labels: * beaglebone:green:heartbeat * beaglebone:green:mmc0 * beaglebone:green:cpu0 * beaglebone:green:mmc1 Related issue: Doesn't support Ubuntu core beaglebone leds #129 #129
1 parent c27d805 commit 0870d6a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
From 88366a61455cbe3e42ab59da939065abeab81597 Mon Sep 17 00:00:00 2001
2+
From: Drew Fustini <drew@pdp7.com>
3+
Date: Thu, 5 Jan 2017 02:33:58 -0600
4+
Subject: [PATCH] rename USR LED names to test Adafruit_BBIO issue #129
5+
6+
Patch for ti-linux-4.4.y branch of ti-linux-kernel-dev which renames
7+
the labels of the USR LED nodes
8+
9+
Related issue:
10+
Doesn't support Ubuntu core beaglebone leds #129
11+
https://github.com/adafruit/adafruit-beaglebone-io-python/issues/129
12+
---
13+
arch/arm/boot/dts/am335x-bone-common.dtsi | 8 ++++----
14+
1 file changed, 4 insertions(+), 4 deletions(-)
15+
16+
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
17+
index 1f496145..ba95ffc 100644
18+
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
19+
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
20+
@@ -26,28 +26,28 @@
21+
compatible = "gpio-leds";
22+
23+
led@2 {
24+
- label = "beaglebone:green:usr0";
25+
+ label = "beaglebone:green:heartbeat";
26+
gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
27+
linux,default-trigger = "heartbeat";
28+
default-state = "off";
29+
};
30+
31+
led@3 {
32+
- label = "beaglebone:green:usr1";
33+
+ label = "beaglebone:green:mmc0";
34+
gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
35+
linux,default-trigger = "mmc0";
36+
default-state = "off";
37+
};
38+
39+
led@4 {
40+
- label = "beaglebone:green:usr2";
41+
+ label = "beaglebone:green:cpu0";
42+
gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
43+
linux,default-trigger = "cpu0";
44+
default-state = "off";
45+
};
46+
47+
led@5 {
48+
- label = "beaglebone:green:usr3";
49+
+ label = "beaglebone:green:mmc1";
50+
gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
51+
linux,default-trigger = "mmc1";
52+
default-state = "off";
53+
--
54+
2.9.3

0 commit comments

Comments
 (0)