1
0

DIR-810L.dts 2.0 KB

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