MLW221.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "mlw221", "ralink,mt7620n-soc";
  6. model = "Kingston MLW221";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. system {
  10. label = "mlw221:blue:system";
  11. gpios = <&gpio2 3 1>;
  12. };
  13. wifi {
  14. label = "mlw221:blue:wifi";
  15. gpios = <&gpio3 0 1>;
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. reset {
  24. label = "reset";
  25. gpios = <&gpio0 1 1>;
  26. linux,code = <KEY_RESTART>;
  27. };
  28. system {
  29. label = "system";
  30. gpios = <&gpio0 2 1>;
  31. linux,code = <KEY_RFKILL>;
  32. };
  33. };
  34. };
  35. &gpio0 {
  36. status = "okay";
  37. };
  38. &gpio2 {
  39. status = "okay";
  40. };
  41. &gpio3 {
  42. status = "okay";
  43. };
  44. &spi0 {
  45. status = "okay";
  46. m25p80@0 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. linux,modalias = "m25p80", "s25fl129p1";
  52. spi-max-frequency = <10000000>;
  53. partition@0 {
  54. label = "u-boot";
  55. reg = <0x0 0x30000>;
  56. read-only;
  57. };
  58. partition@30000 {
  59. label = "u-boot-env";
  60. reg = <0x30000 0x10000>;
  61. read-only;
  62. };
  63. factory: partition@40000 {
  64. label = "factory";
  65. reg = <0x40000 0x10000>;
  66. read-only;
  67. };
  68. partition@50000 {
  69. label = "firmware";
  70. reg = <0x50000 0xf60000>;
  71. };
  72. partition@fb0000 {
  73. label = "user-config";
  74. reg = <0xfb0000 0x50000>;
  75. };
  76. };
  77. };
  78. &ehci {
  79. status = "okay";
  80. };
  81. &ohci {
  82. status = "okay";
  83. };
  84. &ethernet {
  85. mtd-mac-address = <&factory 0x4>;
  86. mediatek,portmap = "wllll";
  87. };
  88. &wmac {
  89. ralink,mtd-eeprom = <&factory 0>;
  90. };
  91. &pinctrl {
  92. state_default: pinctrl0 {
  93. default {
  94. ralink,group = "i2c", "ephy", "wled";
  95. ralink,function = "gpio";
  96. };
  97. };
  98. };