diff options
author | Luka Perkov <luka@openwrt.org> | 2016-05-10 22:52:00 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:35:42 +0200 |
commit | 9ccd1da444ff320abf069322b6063d7d041cdd20 (patch) | |
tree | 6e4bf314ba8e2ae7ffd68f166a46977aad676ec8 /target/linux/socfpga/patches-4.4/0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch | |
parent | c3d9ae93fd2cfb51ae3e843487edad81545afca4 (diff) | |
download | master-187ad058-9ccd1da444ff320abf069322b6063d7d041cdd20.tar.gz master-187ad058-9ccd1da444ff320abf069322b6063d7d041cdd20.tar.bz2 master-187ad058-9ccd1da444ff320abf069322b6063d7d041cdd20.zip |
target: socfpga: Add Altera SoCFPGA support
This patch adds support for the Altera SoCFPGA target.
Both generic target and Terasic SoCkit boards are supported.
Signed-off-by: Marek Vasut <marex@denx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49367 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/socfpga/patches-4.4/0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch')
-rw-r--r-- | target/linux/socfpga/patches-4.4/0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/target/linux/socfpga/patches-4.4/0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch b/target/linux/socfpga/patches-4.4/0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch new file mode 100644 index 0000000000..954f03e990 --- /dev/null +++ b/target/linux/socfpga/patches-4.4/0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch @@ -0,0 +1,66 @@ +From e56e545745dc42cba743dab549d0afb1a39d14b4 Mon Sep 17 00:00:00 2001 +From: Marek Vasut <marex@denx.de> +Date: Mon, 22 Jun 2015 23:37:47 +0200 +Subject: [PATCH 4/5] ARM: socfpga: Add support for HPS LEDs on SoCKit + +Add support for the blue LEDs on the SoCFPGA SoCkit board. + +Signed-off-by: Marek Vasut <marex@denx.de> +Cc: Dinh Nguyen <dinguyen@opensource.altera.com> +--- + arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 32 +++++++++++++++++++++++++++ + 1 file changed, 32 insertions(+) + +diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +index b61f22f..1461690 100644 +--- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts ++++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +@@ -39,6 +39,34 @@ + ethernet0 = &gmac1; + }; + ++ leds { ++ compatible = "gpio-leds"; ++ ++ hps_led0 { ++ label = "hps:blue:led0"; ++ gpios = <&portb 24 0>; /* HPS_GPIO53 */ ++ linux,default-trigger = "heartbeat"; ++ }; ++ ++ hps_led1 { ++ label = "hps:blue:led1"; ++ gpios = <&portb 25 0>; /* HPS_GPIO54 */ ++ linux,default-trigger = "heartbeat"; ++ }; ++ ++ hps_led2 { ++ label = "hps:blue:led2"; ++ gpios = <&portb 26 0>; /* HPS_GPIO55 */ ++ linux,default-trigger = "heartbeat"; ++ }; ++ ++ hps_led3 { ++ label = "hps:blue:led3"; ++ gpios = <&portb 27 0>; /* HPS_GPIO56 */ ++ linux,default-trigger = "heartbeat"; ++ }; ++ }; ++ + regulator_3_3v: vcc3p3-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCC3P3"; +@@ -61,6 +89,10 @@ + rxc-skew-ps = <2000>; + }; + ++&gpio1 { /* GPIO 30..57 */ ++ status = "okay"; ++}; ++ + &gpio2 { + status = "okay"; + }; +-- +2.7.0 + |