DIR-810L.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. gpio-keys-polled {
  9. compatible = "gpio-keys-polled";
  10. #address-cells = <1>;
  11. #size-cells = <0>;
  12. poll-interval = <20>;
  13. reset {
  14. label = "reset";
  15. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  16. linux,code = <BTN_0>;
  17. };
  18. wps {
  19. label = "wps";
  20. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  21. linux,code = <BTN_0>;
  22. };
  23. };
  24. gpio-leds {
  25. compatible = "gpio-leds";
  26. power {
  27. label = "dir-810l:green:power";
  28. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  29. };
  30. wan {
  31. label = "dir-810l:orange:wan";
  32. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  33. };
  34. status {
  35. label = "dir-810l:orange:power";
  36. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  37. };
  38. };
  39. };
  40. &spi0 {
  41. status = "okay";
  42. m25p80@0 {
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. compatible = "jedec,spi-nor";
  46. reg = <0>;
  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. };