bf1912a9163aafd05ac8a3569dcb27fe271c6d8b
[openwrt/staging/stintel.git] / target / linux / mediatek / patches-6.1 / 113-dts-fix-bpi64-leds-and-buttons.patch
1 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
2 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
3 @@ -21,6 +21,10 @@
4 aliases {
5 serial0 = &uart0;
6 ethernet0 = &gmac0;
7 + led-boot = &led_system_green;
8 + led-failsafe = &led_system_blue;
9 + led-running = &led_system_green;
10 + led-upgrade = &led_system_blue;
11 };
12
13 chosen {
14 @@ -44,8 +48,8 @@
15 compatible = "gpio-keys";
16
17 factory-key {
18 - label = "factory";
19 - linux,code = <BTN_0>;
20 + label = "reset";
21 + linux,code = <KEY_RESTART>;
22 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
23 };
24
25 @@ -59,17 +63,17 @@
26 leds {
27 compatible = "gpio-leds";
28
29 - led-0 {
30 + led_system_green: led-0 {
31 label = "bpi-r64:pio:green";
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
34 default-state = "off";
35 };
36
37 - led-1 {
38 - label = "bpi-r64:pio:red";
39 - color = <LED_COLOR_ID_RED>;
40 - gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
41 + led_system_blue: led-1 {
42 + label = "bpi-r64:pio:blue";
43 + color = <LED_COLOR_ID_BLUE>;
44 + gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
45 default-state = "off";
46 };
47 };