2
0

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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. @@ -19,6 +19,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. @@ -42,8 +46,8 @@
  14. compatible = "gpio-keys";
  15. factory {
  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. @@ -57,17 +61,25 @@
  23. leds {
  24. compatible = "gpio-leds";
  25. - green {
  26. - label = "bpi-r64:pio:green";
  27. - gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
  28. + led_system_blue: blue {
  29. + label = "bpi-r64:pio:blue";
  30. + gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
  31. default-state = "off";
  32. };
  33. - red {
  34. - label = "bpi-r64:pio:red";
  35. - gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
  36. + led_system_green: green {
  37. + label = "bpi-r64:pio:green";
  38. + gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
  39. default-state = "off";
  40. };
  41. +
  42. +/*
  43. + * red {
  44. + * label = "bpi-r64:pio:red";
  45. + * gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
  46. + * default-state = "off";
  47. + * };
  48. + */
  49. };
  50. memory@40000000 {