DIR-810L.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
  7. model = "D-Link DIR-810L";
  8. aliases {
  9. led-boot = &led_power_green;
  10. led-failsafe = &led_power_green;
  11. led-running = &led_power_green;
  12. led-upgrade = &led_power_green;
  13. };
  14. keys {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. reset {
  18. label = "reset";
  19. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  20. linux,code = <BTN_0>;
  21. };
  22. wps {
  23. label = "wps";
  24. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  25. linux,code = <BTN_0>;
  26. };
  27. };
  28. leds {
  29. compatible = "gpio-leds";
  30. led_power_green: power {
  31. label = "dir-810l:green:power";
  32. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  33. };
  34. wan {
  35. label = "dir-810l:orange:wan";
  36. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  37. };
  38. power2 {
  39. label = "dir-810l:orange:power";
  40. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  41. };
  42. };
  43. };
  44. &spi0 {
  45. status = "okay";
  46. m25p80@0 {
  47. compatible = "jedec,spi-nor";
  48. reg = <0>;
  49. spi-max-frequency = <10000000>;
  50. partitions {
  51. compatible = "fixed-partitions";
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. partition@0 {
  55. label = "u-boot";
  56. reg = <0x0 0x30000>;
  57. read-only;
  58. };
  59. partition@30000 {
  60. label = "u-boot-env";
  61. reg = <0x30000 0x10000>;
  62. read-only;
  63. };
  64. factory: partition@40000 {
  65. label = "factory";
  66. reg = <0x40000 0x10000>;
  67. read-only;
  68. };
  69. factory5g: partition@50000 {
  70. label = "factory5g";
  71. reg = <0x50000 0x10000>;
  72. read-only;
  73. };
  74. partition@60000 {
  75. label = "Wolf_Config";
  76. reg = <0x60000 0x10000>;
  77. read-only;
  78. };
  79. partition@70000 {
  80. label = "MyDlink";
  81. reg = <0x70000 0x80000>;
  82. read-only;
  83. };
  84. partition@e0000 {
  85. label = "Jffs2";
  86. reg = <0xe0000 0x80000>;
  87. read-only;
  88. };
  89. partition@170000 {
  90. compatible = "denx,uimage";
  91. label = "firmware";
  92. reg = <0x170000 0x690000>;
  93. };
  94. };
  95. };
  96. };
  97. &pinctrl {
  98. state_default: pinctrl0 {
  99. gpio {
  100. ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
  101. ralink,function = "gpio";
  102. };
  103. };
  104. };
  105. &ethernet {
  106. mtd-mac-address = <&factory 0x28>;
  107. mediatek,portmap = "llllw";
  108. };
  109. &gsw {
  110. mediatek,port4 = "ephy";
  111. pinctrl-names = "default";
  112. pinctrl-0 = <&ephy_pins>;
  113. };
  114. &pcie {
  115. status = "okay";
  116. };
  117. &wmac {
  118. ralink,mtd-eeprom = <&factory 0>;
  119. };
  120. &pcie0 {
  121. wifi@0,0 {
  122. reg = <0x0000 0 0 0 0>;
  123. mediatek,mtd-eeprom = <&factory 0x8000>;
  124. ieee80211-freq-limit = <5000000 6000000>;
  125. };
  126. };