2023-06-27 00:06:47 +00:00
|
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
|
|
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
|
2023-06-27 00:15:55 +00:00
|
|
|
@@ -21,6 +21,10 @@
|
2023-06-27 00:06:47 +00:00
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
ethernet0 = &gmac0;
|
|
|
|
+ led-boot = &led_system_green;
|
|
|
|
+ led-failsafe = &led_system_blue;
|
|
|
|
+ led-running = &led_system_green;
|
|
|
|
+ led-upgrade = &led_system_blue;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
2023-06-27 00:15:55 +00:00
|
|
|
@@ -44,8 +48,8 @@
|
2023-06-27 00:06:47 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2023-06-27 00:15:55 +00:00
|
|
|
factory-key {
|
2023-06-27 00:06:47 +00:00
|
|
|
- label = "factory";
|
|
|
|
- linux,code = <BTN_0>;
|
|
|
|
+ label = "reset";
|
|
|
|
+ linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2023-06-27 00:15:55 +00:00
|
|
|
@@ -59,17 +63,17 @@
|
2023-06-27 00:06:47 +00:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2023-06-27 00:15:55 +00:00
|
|
|
- led-0 {
|
|
|
|
+ led_system_green: led-0 {
|
|
|
|
label = "bpi-r64:pio:green";
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
|
2023-06-27 00:06:47 +00:00
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
2023-06-27 00:15:55 +00:00
|
|
|
- led-1 {
|
2023-06-27 00:06:47 +00:00
|
|
|
- label = "bpi-r64:pio:red";
|
2023-06-27 00:15:55 +00:00
|
|
|
- color = <LED_COLOR_ID_RED>;
|
2023-06-27 00:06:47 +00:00
|
|
|
- gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
|
2023-06-27 00:15:55 +00:00
|
|
|
+ led_system_blue: led-1 {
|
|
|
|
+ label = "bpi-r64:pio:blue";
|
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
|
+ gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
|
2023-06-27 00:06:47 +00:00
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|