2
0

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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. chosen {
  13. @@ -44,8 +48,8 @@
  14. compatible = "gpio-keys";
  15. factory-key {
  16. - label = "factory";
  17. - linux,code = <BTN_0>;
  18. + label = "reset";
  19. + linux,code = <KEY_RESTART>;
  20. gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
  21. };
  22. @@ -59,17 +63,17 @@
  23. leds {
  24. compatible = "gpio-leds";
  25. - led-0 {
  26. + led_system_green: led-0 {
  27. label = "bpi-r64:pio:green";
  28. color = <LED_COLOR_ID_GREEN>;
  29. gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
  30. default-state = "off";
  31. };
  32. - led-1 {
  33. - label = "bpi-r64:pio:red";
  34. - color = <LED_COLOR_ID_RED>;
  35. - gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
  36. + led_system_blue: led-1 {
  37. + label = "bpi-r64:pio:blue";
  38. + color = <LED_COLOR_ID_BLUE>;
  39. + gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
  40. default-state = "off";
  41. };
  42. };