target: socfpga: Add Altera SoCFPGA support
[openwrt.git] / target / linux / socfpga / patches-4.4 / 0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch
1 From e56e545745dc42cba743dab549d0afb1a39d14b4 Mon Sep 17 00:00:00 2001
2 From: Marek Vasut <marex@denx.de>
3 Date: Mon, 22 Jun 2015 23:37:47 +0200
4 Subject: [PATCH 4/5] ARM: socfpga: Add support for HPS LEDs on SoCKit
5
6 Add support for the blue LEDs on the SoCFPGA SoCkit board.
7
8 Signed-off-by: Marek Vasut <marex@denx.de>
9 Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
10 ---
11  arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 32 +++++++++++++++++++++++++++
12  1 file changed, 32 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
15 index b61f22f..1461690 100644
16 --- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
17 +++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
18 @@ -39,6 +39,34 @@
19                 ethernet0 = &gmac1;
20         };
21  
22 +       leds {
23 +               compatible = "gpio-leds";
24 +
25 +               hps_led0 {
26 +                       label = "hps:blue:led0";
27 +                       gpios = <&portb 24 0>;  /* HPS_GPIO53 */
28 +                       linux,default-trigger = "heartbeat";
29 +               };
30 +
31 +               hps_led1 {
32 +                       label = "hps:blue:led1";
33 +                       gpios = <&portb 25 0>;  /* HPS_GPIO54 */
34 +                       linux,default-trigger = "heartbeat";
35 +               };
36 +
37 +               hps_led2 {
38 +                       label = "hps:blue:led2";
39 +                       gpios = <&portb 26 0>;  /* HPS_GPIO55 */
40 +                       linux,default-trigger = "heartbeat";
41 +               };
42 +
43 +               hps_led3 {
44 +                       label = "hps:blue:led3";
45 +                       gpios = <&portb 27 0>;  /* HPS_GPIO56 */
46 +                       linux,default-trigger = "heartbeat";
47 +               };
48 +       };
49 +
50         regulator_3_3v: vcc3p3-regulator {
51                 compatible = "regulator-fixed";
52                 regulator-name = "VCC3P3";
53 @@ -61,6 +89,10 @@
54         rxc-skew-ps = <2000>;
55  };
56  
57 +&gpio1 {       /* GPIO 30..57 */
58 +       status = "okay";
59 +};
60 +
61  &gpio2 {
62         status = "okay";
63  };
64 -- 
65 2.7.0
66