03128a5ef807bdafc31612ae1cd9bb3f063317d8
[openwrt/openwrt.git] / target / linux / mediatek / patches-5.10 / 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 @@ -18,6 +18,10 @@
4
5 aliases {
6 serial0 = &uart0;
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 @@ -41,8 +45,8 @@
15 compatible = "gpio-keys";
16
17 factory {
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 @@ -56,17 +60,25 @@
26 leds {
27 compatible = "gpio-leds";
28
29 - green {
30 - label = "bpi-r64:pio:green";
31 - gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
32 + led_system_blue: blue {
33 + label = "bpi-r64:pio:blue";
34 + gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
35 default-state = "off";
36 };
37
38 - red {
39 - label = "bpi-r64:pio:red";
40 - gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
41 + led_system_green: green {
42 + label = "bpi-r64:pio:green";
43 + gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
44 default-state = "off";
45 };
46 +
47 +/*
48 + * red {
49 + * label = "bpi-r64:pio:red";
50 + * gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
51 + * default-state = "off";
52 + * };
53 + */
54 };
55
56 memory {