113-dts-fix-bpi64-leds-and-buttons.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. chosen {
  15. @@ -44,8 +50,8 @@
  16. compatible = "gpio-keys";
  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. @@ -59,17 +65,17 @@
  25. leds {
  26. compatible = "gpio-leds";
  27. - led-0 {
  28. + led_system_green: led-0 {
  29. label = "bpi-r64:pio:green";
  30. color = <LED_COLOR_ID_GREEN>;
  31. gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
  32. default-state = "off";
  33. };
  34. - led-1 {
  35. - label = "bpi-r64:pio:red";
  36. - color = <LED_COLOR_ID_RED>;
  37. - gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
  38. + led_system_blue: led-1 {
  39. + label = "bpi-r64:pio:blue";
  40. + color = <LED_COLOR_ID_BLUE>;
  41. + gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
  42. default-state = "off";
  43. };
  44. };