DIR-810L.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. 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 0x10000>;
  56. read-only;
  57. };
  58. factory: partition@40000 {
  59. label = "factory";
  60. reg = <0x40000 0x10000>;
  61. read-only;
  62. };
  63. factory5g: partition@50000 {
  64. label = "factory5g";
  65. reg = <0x50000 0x10000>;
  66. read-only;
  67. };
  68. partition@60000 {
  69. label = "Wolf_Config";
  70. reg = <0x60000 0x10000>;
  71. read-only;
  72. };
  73. partition@70000 {
  74. label = "MyDlink";
  75. reg = <0x70000 0x80000>;
  76. read-only;
  77. };
  78. partition@e0000 {
  79. label = "Jffs2";
  80. reg = <0xe0000 0x80000>;
  81. read-only;
  82. };
  83. partition@170000 {
  84. label = "firmware";
  85. reg = <0x170000 0x690000>;
  86. };
  87. };
  88. };
  89. &pinctrl {
  90. state_default: pinctrl0 {
  91. gpio {
  92. ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
  93. ralink,function = "gpio";
  94. };
  95. };
  96. };
  97. &ethernet {
  98. mtd-mac-address = <&factory 0x28>;
  99. mediatek,portmap = "llllw";
  100. };
  101. &gsw {
  102. mediatek,port4 = "ephy";
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&ephy_pins>;
  105. };
  106. &pcie {
  107. status = "okay";
  108. };
  109. &wmac {
  110. ralink,mtd-eeprom = <&factory 0>;
  111. };