MLW221.dts 1.6 KB

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