aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2017-03-28 09:09:16 -0400
committerTony Lindgren <tony@atomide.com>2017-03-28 12:06:43 -0400
commit21339f57e8ad8abc7923f91085e9d89eb5879725 (patch)
tree55950854da79623665c36130600a2bffded140b0
parent80ba72efdffb246af57365f334f4ee743d061953 (diff)
ARM: dts: am335x-baltos: add LED support
All three devices provide GPIO based LEDs named power, wlan and app. Place LEDs definition into a separate dtsi file as not all devices including am335x-baltos.dtsi have the same LED layout. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/boot/dts/am335x-baltos-ir2110.dts1
-rw-r--r--arch/arm/boot/dts/am335x-baltos-ir3220.dts1
-rw-r--r--arch/arm/boot/dts/am335x-baltos-ir5221.dts1
-rw-r--r--arch/arm/boot/dts/am335x-baltos-leds.dtsi50
4 files changed, 53 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-baltos-ir2110.dts b/arch/arm/boot/dts/am335x-baltos-ir2110.dts
index 501c7527121b..75de1e723303 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir2110.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir2110.dts
@@ -14,6 +14,7 @@
14/dts-v1/; 14/dts-v1/;
15 15
16#include "am335x-baltos.dtsi" 16#include "am335x-baltos.dtsi"
17#include "am335x-baltos-leds.dtsi"
17 18
18/ { 19/ {
19 model = "OnRISC Baltos iR 2110"; 20 model = "OnRISC Baltos iR 2110";
diff --git a/arch/arm/boot/dts/am335x-baltos-ir3220.dts b/arch/arm/boot/dts/am335x-baltos-ir3220.dts
index 19f53b8569e1..46df1b22022c 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir3220.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir3220.dts
@@ -14,6 +14,7 @@
14/dts-v1/; 14/dts-v1/;
15 15
16#include "am335x-baltos.dtsi" 16#include "am335x-baltos.dtsi"
17#include "am335x-baltos-leds.dtsi"
17 18
18/ { 19/ {
19 model = "OnRISC Baltos iR 3220"; 20 model = "OnRISC Baltos iR 3220";
diff --git a/arch/arm/boot/dts/am335x-baltos-ir5221.dts b/arch/arm/boot/dts/am335x-baltos-ir5221.dts
index 2b9d7f4db23f..5d56355ba040 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir5221.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir5221.dts
@@ -14,6 +14,7 @@
14/dts-v1/; 14/dts-v1/;
15 15
16#include "am335x-baltos.dtsi" 16#include "am335x-baltos.dtsi"
17#include "am335x-baltos-leds.dtsi"
17 18
18/ { 19/ {
19 model = "OnRISC Baltos iR 5221"; 20 model = "OnRISC Baltos iR 5221";
diff --git a/arch/arm/boot/dts/am335x-baltos-leds.dtsi b/arch/arm/boot/dts/am335x-baltos-leds.dtsi
new file mode 100644
index 000000000000..3ab1767d5c13
--- /dev/null
+++ b/arch/arm/boot/dts/am335x-baltos-leds.dtsi
@@ -0,0 +1,50 @@
1/*
2 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9/*
10 * VScom OnRISC
11 * http://www.vscom.de
12 */
13
14/*#include "am33xx.dtsi"*/
15
16/ {
17 leds {
18 pinctrl-names = "default";
19 pinctrl-0 = <&user_leds>;
20
21 compatible = "gpio-leds";
22
23 power {
24 label = "onrisc:red:power";
25 linux,default-trigger = "default-on";
26 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29 wlan {
30 label = "onrisc:blue:wlan";
31 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
32 default-state = "off";
33 };
34 app {
35 label = "onrisc:green:app";
36 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
37 default-state = "off";
38 };
39 };
40};
41
42&am33xx_pinmux {
43 user_leds: pinmux_user_leds {
44 pinctrl-single,pins = <
45 AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mii1_col.gpio3_0 PWR LED */
46 AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mii1_txd3.gpio0_16 WLAN LED */
47 AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mii1_txd2.gpio0_17 APP LED */
48 >;
49 };
50};