mediatek: copy patches-6.1 to patches-6.6
[openwrt/staging/stintel.git] / target / linux / mediatek / patches-6.6 / 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,12 @@
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 + mmc0 = &mmc0;
12 + mmc1 = &mmc1;
13 };
14
15 chosen {
16 @@ -44,8 +50,8 @@
17 compatible = "gpio-keys";
18
19 factory-key {
20 - label = "factory";
21 - linux,code = <BTN_0>;
22 + label = "reset";
23 + linux,code = <KEY_RESTART>;
24 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
25 };
26
27 @@ -59,17 +65,17 @@
28 leds {
29 compatible = "gpio-leds";
30
31 - led-0 {
32 + led_system_green: led-0 {
33 label = "bpi-r64:pio:green";
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
36 default-state = "off";
37 };
38
39 - led-1 {
40 - label = "bpi-r64:pio:red";
41 - color = <LED_COLOR_ID_RED>;
42 - gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
43 + led_system_blue: led-1 {
44 + label = "bpi-r64:pio:blue";
45 + color = <LED_COLOR_ID_BLUE>;
46 + gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
47 default-state = "off";
48 };
49 };