DIR-810L.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
  5. model = "D-Link DIR-810L";
  6. gpio-keys-polled {
  7. compatible = "gpio-keys-polled";
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. poll-interval = <20>;
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio0 1 1>;
  14. linux,code = <0x100>;
  15. };
  16. wps {
  17. label = "wps";
  18. gpios = <&gpio0 2 1>;
  19. linux,code = <0x100>;
  20. };
  21. };
  22. gpio-leds {
  23. compatible = "gpio-leds";
  24. power {
  25. label = "dir-810l:green:power";
  26. gpios = <&gpio0 9 0>;
  27. };
  28. wan {
  29. label = "dir-810l:orange:wan";
  30. gpios = <&gpio0 12 0>;
  31. };
  32. status {
  33. label = "dir-810l:orange:power";
  34. gpios = <&gpio0 13 0>;
  35. };
  36. };
  37. };
  38. &spi0 {
  39. status = "okay";
  40. m25p80@0 {
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. compatible = "jedec,spi-nor";
  44. reg = <0>;
  45. linux,modalias = "m25p80";
  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. };