402-update-bananapi-bpi-r64-device-tree.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. --- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
  2. +++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
  3. @@ -5,6 +5,7 @@
  4. */
  5. /dts-v1/;
  6. +#include <dt-bindings/input/linux-event-codes.h>
  7. #include "mt7622.dtsi"
  8. #include "mt7622-u-boot.dtsi"
  9. @@ -20,6 +21,7 @@
  10. aliases {
  11. spi0 = &snfi;
  12. + ethernet0 = &eth;
  13. };
  14. memory@40000000 {
  15. @@ -27,6 +29,44 @@
  16. reg = <0x40000000 0x40000000>;
  17. };
  18. + gpio-keys {
  19. + compatible = "gpio-keys";
  20. +
  21. + reset {
  22. + label = "reset";
  23. + gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  24. + linux,code = <KEY_RESTART>;
  25. + };
  26. +
  27. + wps {
  28. + label = "wps";
  29. + gpios = <&gpio 102 GPIO_ACTIVE_LOW>;
  30. + linux,code = <KEY_WPS_BUTTON>;
  31. + };
  32. + };
  33. +
  34. + leds {
  35. + compatible = "gpio-leds";
  36. +/*
  37. + * red {
  38. + * label = "bpi-r64:pio:red";
  39. + * gpios = <&gpio 88 GPIO_ACTIVE_HIGH>;
  40. + * default-state = "off";
  41. + * };
  42. + */
  43. + green {
  44. + label = "bpi-r64:pio:green";
  45. + gpios = <&gpio 89 GPIO_ACTIVE_HIGH>;
  46. + default-state = "off";
  47. + };
  48. +
  49. + blue {
  50. + label = "bpi-r64:pio:blue";
  51. + gpios = <&gpio 85 GPIO_ACTIVE_LOW>;
  52. + default-state = "off";
  53. + };
  54. + };
  55. +
  56. reg_1p8v: regulator-1p8v {
  57. compatible = "regulator-fixed";
  58. regulator-name = "fixed-1.8V";
  59. @@ -182,6 +222,7 @@
  60. };
  61. &uart0 {
  62. + mediatek,force-highspeed;
  63. status = "okay";
  64. };
  65. @@ -197,7 +238,7 @@
  66. status = "okay";
  67. bus-width = <8>;
  68. max-frequency = <50000000>;
  69. - cap-sd-highspeed;
  70. + cap-mmc-highspeed;
  71. vmmc-supply = <&reg_3p3v>;
  72. vqmmc-supply = <&reg_3p3v>;
  73. non-removable;
  74. @@ -208,7 +249,7 @@
  75. pinctrl-0 = <&mmc1_pins_default>;
  76. status = "okay";
  77. bus-width = <4>;
  78. - max-frequency = <50000000>;
  79. + max-frequency = <12000000>;
  80. cap-sd-highspeed;
  81. r_smpl = <1>;
  82. vmmc-supply = <&reg_3p3v>;