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.dts
  14. +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
  15. @@ -24,6 +24,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. @@ -35,22 +39,22 @@
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&pinctrl_leds_ixora>;
  28. - led4-green {
  29. + led_running: led4-green {
  30. gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  31. label = "LED_4_GREEN";
  32. };
  33. - led4-red {
  34. + led_upgrade: led4-red {
  35. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  36. label = "LED_4_RED";
  37. };
  38. - led5-green {
  39. + led_boot: led5-green {
  40. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  41. label = "LED_5_GREEN";
  42. };
  43. - led5-red {
  44. + led_failsafe: led5-red {
  45. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  46. label = "LED_5_RED";
  47. };
  48. --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts
  49. +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts
  50. @@ -24,6 +24,10 @@
  51. i2c2 = &i2c2;
  52. rtc0 = &rtc_i2c;
  53. rtc1 = &snvs_rtc;
  54. + led-boot = &led_boot;
  55. + led-failsafe = &led_failsafe;
  56. + led-running = &led_running;
  57. + led-upgrade = &led_upgrade;
  58. };
  59. chosen {
  60. @@ -36,22 +40,22 @@
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&pinctrl_leds_ixora>;
  63. - led4-green {
  64. - gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
  65. + led_running: led4-green {
  66. + gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  67. label = "LED_4_GREEN";
  68. };
  69. - led4-red {
  70. - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  71. + led_upgrade: led4-red {
  72. + gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  73. label = "LED_4_RED";
  74. };
  75. - led5-green {
  76. + led_boot: led5-green {
  77. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  78. label = "LED_5_GREEN";
  79. };
  80. - led5-red {
  81. + led_failsafe: led5-red {
  82. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  83. label = "LED_5_RED";
  84. };