OSDN Git Service

kernel: bump 5.15 to 5.15.32
[immortalwrt/immortalwrt.git] / target / linux / imx / patches-5.15 / 300-ARM-dts-imx6q-apalis-ixora-add-status-LEDs-aliases.patch
1 From 68604e89335ccb3e893b5a05b2c0d5cd2eaaf6ec Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
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
9 Signed-off-by: Petr ┼átetiar <ynezz@true.cz>
10 ---
11  arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 16 ++++++++++------
12  arch/arm/boot/dts/imx6q-apalis-ixora.dts      | 12 ++++++++----
13  2 files changed, 18 insertions(+), 10 deletions(-)
14
15 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
16 +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
17 @@ -25,6 +25,10 @@
18                 i2c2 = &i2c2;
19                 rtc0 = &rtc_i2c;
20                 rtc1 = &snvs_rtc;
21 +               led-boot = &led_boot;
22 +               led-failsafe = &led_failsafe;
23 +               led-running = &led_running;
24 +               led-upgrade = &led_upgrade;
25         };
26  
27         chosen {
28 @@ -92,22 +96,22 @@
29                 pinctrl-names = "default";
30                 pinctrl-0 = <&pinctrl_leds_ixora>;
31  
32 -               led4-green {
33 +               led_running: led4-green {
34                         label = "LED_4_GREEN";
35 -                       gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
36 +                       gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
37                 };
38  
39 -               led4-red {
40 +               led_upgrade: led4-red {
41                         label = "LED_4_RED";
42 -                       gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
43 +                       gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
44                 };
45  
46 -               led5-green {
47 +               led_boot: led5-green {
48                         label = "LED_5_GREEN";
49                         gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
50                 };
51  
52 -               led5-red {
53 +               led_failsafe: led5-red {
54                         label = "LED_5_RED";
55                         gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
56                 };
57 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
58 +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
59 @@ -24,6 +24,10 @@
60                 i2c2 = &i2c2;
61                 rtc0 = &rtc_i2c;
62                 rtc1 = &snvs_rtc;
63 +               led-boot = &led_boot;
64 +               led-failsafe = &led_failsafe;
65 +               led-running = &led_running;
66 +               led-upgrade = &led_upgrade;
67         };
68  
69         chosen {
70 @@ -91,22 +95,22 @@
71                 pinctrl-names = "default";
72                 pinctrl-0 = <&pinctrl_leds_ixora>;
73  
74 -               led4-green {
75 +               led_running: led4-green {
76                         label = "LED_4_GREEN";
77                         gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
78                 };
79  
80 -               led4-red {
81 +               led_upgrade: led4-red {
82                         label = "LED_4_RED";
83                         gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
84                 };
85  
86 -               led5-green {
87 +               led_boot: led5-green {
88                         label = "LED_5_GREEN";
89                         gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
90                 };
91  
92 -               led5-red {
93 +               led_failsafe: led5-red {
94                         label = "LED_5_RED";
95                         gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
96                 };