300-ARM-dts-imx6q-apalis-ixora-add-status-LEDs-aliases.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. From 68604e89335ccb3e893b5a05b2c0d5cd2eaaf6ec Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <[email protected]>
  3. Date: Tue, 3 Mar 2020 15:14:40 +0100
  4. Subject: [PATCH] ARM: dts: imx6q-apalis: ixora: add status LEDs aliases
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Signed-off-by: Petr Štetiar <[email protected]>
  9. ---
  10. arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 16 ++++++++++------
  11. arch/arm/boot/dts/imx6q-apalis-ixora.dts | 12 ++++++++----
  12. 2 files changed, 18 insertions(+), 10 deletions(-)
  13. --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
  14. +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
  15. @@ -25,6 +25,10 @@
  16. i2c2 = &i2c2;
  17. rtc0 = &rtc_i2c;
  18. rtc1 = &snvs_rtc;
  19. + led-boot = &led_boot;
  20. + led-failsafe = &led_failsafe;
  21. + led-running = &led_running;
  22. + led-upgrade = &led_upgrade;
  23. };
  24. chosen {
  25. @@ -92,22 +96,22 @@
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&pinctrl_leds_ixora>;
  28. - led4-green {
  29. + led_running: led4-green {
  30. label = "LED_4_GREEN";
  31. - gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
  32. + gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  33. };
  34. - led4-red {
  35. + led_upgrade: led4-red {
  36. label = "LED_4_RED";
  37. - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  38. + gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  39. };
  40. - led5-green {
  41. + led_boot: led5-green {
  42. label = "LED_5_GREEN";
  43. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  44. };
  45. - led5-red {
  46. + led_failsafe: led5-red {
  47. label = "LED_5_RED";
  48. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  49. };
  50. --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
  51. +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
  52. @@ -24,6 +24,10 @@
  53. i2c2 = &i2c2;
  54. rtc0 = &rtc_i2c;
  55. rtc1 = &snvs_rtc;
  56. + led-boot = &led_boot;
  57. + led-failsafe = &led_failsafe;
  58. + led-running = &led_running;
  59. + led-upgrade = &led_upgrade;
  60. };
  61. chosen {
  62. @@ -91,22 +95,22 @@
  63. pinctrl-names = "default";
  64. pinctrl-0 = <&pinctrl_leds_ixora>;
  65. - led4-green {
  66. + led_running: led4-green {
  67. label = "LED_4_GREEN";
  68. gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  69. };
  70. - led4-red {
  71. + led_upgrade: led4-red {
  72. label = "LED_4_RED";
  73. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  74. };
  75. - led5-green {
  76. + led_boot: led5-green {
  77. label = "LED_5_GREEN";
  78. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  79. };
  80. - led5-red {
  81. + led_failsafe: led5-red {
  82. label = "LED_5_RED";
  83. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  84. };