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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. @@ -197,7 +234,7 @@
  52. status = "okay";
  53. bus-width = <8>;
  54. max-frequency = <50000000>;
  55. - cap-sd-highspeed;
  56. + cap-mmc-highspeed;
  57. vmmc-supply = <&reg_3p3v>;
  58. vqmmc-supply = <&reg_3p3v>;
  59. non-removable;
  60. @@ -208,7 +245,7 @@
  61. pinctrl-0 = <&mmc1_pins_default>;
  62. status = "okay";
  63. bus-width = <4>;
  64. - max-frequency = <50000000>;
  65. + max-frequency = <12000000>;
  66. cap-sd-highspeed;
  67. r_smpl = <1>;
  68. vmmc-supply = <&reg_3p3v>;