0004-ARM-socfpga-Add-support-for-HPS-LEDs-on-SoCKit.patch 1.6 KB

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