DIR-810L.dts 2.2 KB

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