DIR-860L-B1.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. / {
  4. compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
  5. model = "D-Link DIR-860L B1";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x8000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. power {
  16. label = "dir-860l-b1:orange:power";
  17. gpios = <&gpio0 13 1>;
  18. };
  19. power2 {
  20. label = "dir-860l-b1:green:power";
  21. gpios = <&gpio0 15 1>;
  22. };
  23. net {
  24. label = "dir-860l-b1:orange:net";
  25. gpios = <&gpio0 14 1>;
  26. };
  27. net2 {
  28. label = "dir-860l-b1:green:net";
  29. gpios = <&gpio0 16 1>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. poll-interval = <20>;
  37. };
  38. };
  39. &spi0 {
  40. status = "okay";
  41. m25p80@0 {
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. compatible = "jedec,spi-nor";
  45. reg = <0>;
  46. linux,modalias = "m25p80";
  47. spi-max-frequency = <10000000>;
  48. partition@0 {
  49. label = "u-boot";
  50. reg = <0x0 0x30000>;
  51. read-only;
  52. };
  53. partition@30000 {
  54. label = "u-boot-env";
  55. reg = <0x30000 0x4000>;
  56. read-only;
  57. };
  58. radio: partition@34000 {
  59. label = "radio";
  60. reg = <0x34000 0x4000>;
  61. read-only;
  62. };
  63. factory: partition@38000 {
  64. label = "factory";
  65. reg = <0x38000 0x8000>;
  66. read-only;
  67. };
  68. partition@40000 {
  69. label = "defaults";
  70. reg = <0x40000 0x10000>;
  71. read-only;
  72. };
  73. partition@50000 {
  74. label = "firmware";
  75. reg = <0x50000 0xfb0000>;
  76. };
  77. };
  78. };
  79. &pcie {
  80. status = "okay";
  81. pcie0 {
  82. mt76@0,0 {
  83. reg = <0x0000 0 0 0 0>;
  84. device_type = "pci";
  85. mediatek,mtd-eeprom = <&radio 0x2000>;
  86. mediatek,2ghz = <0>;
  87. };
  88. };
  89. pcie1 {
  90. mt76@1,0 {
  91. reg = <0x0000 0 0 0 0>;
  92. device_type = "pci";
  93. mediatek,mtd-eeprom = <&radio 0>;
  94. mediatek,5ghz = <0>;
  95. };
  96. };
  97. };
  98. &pinctrl {
  99. state_default: pinctrl0 {
  100. gpio {
  101. ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  102. ralink,function = "gpio";
  103. };
  104. };
  105. };