DIR-810L.dts 2.1 KB

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