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

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