wap-5813n.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /dts-v1/;
  2. #include "bcm6368.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Comtrend WAP-5813n";
  6. compatible = "comtrend,wap-5813n", "brcm,bcm6368";
  7. chosen {
  8. bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. gpio-keys-polled {
  12. compatible = "gpio-keys-polled";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. poll-interval = <20>;
  16. debounce-interval = <60>;
  17. wlan {
  18. label = "wlan";
  19. gpios = <&pinctrl 32 1>;
  20. linux,code = <KEY_WLAN>;
  21. };
  22. reset {
  23. label = "reset";
  24. gpios = <&pinctrl 34 1>;
  25. linux,code = <KEY_RESTART>;
  26. };
  27. wps {
  28. label = "wps";
  29. gpios = <&pinctrl 35 1>;
  30. linux,code = <KEY_WPS_BUTTON>;
  31. };
  32. };
  33. gpio-leds {
  34. compatible = "gpio-leds";
  35. inet_green {
  36. label = "WAP-5813n:green:inet";
  37. gpios = <&pinctrl 5 0>;
  38. };
  39. power_green {
  40. label = "WAP-5813n:green:power";
  41. gpios = <&pinctrl 22 0>;
  42. default-state = "on";
  43. };
  44. wps_green {
  45. label = "WAP-5813n:green:wps";
  46. gpios = <&pinctrl 23 1>;
  47. };
  48. power_red {
  49. label = "WAP-5813n:red:power";
  50. gpios = <&pinctrl 24 0>;
  51. };
  52. inet_red {
  53. label = "WAP-5813n:red:inet";
  54. gpios = <&pinctrl 31 0>;
  55. };
  56. };
  57. };
  58. &pflash {
  59. status = "ok";
  60. linux,part-probe = "bcm63xxpart";
  61. partitions {
  62. compatible = "fixed-partitions";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. cfe@0 {
  66. label = "CFE";
  67. reg = <0x000000 0x010000>;
  68. read-only;
  69. };
  70. linux@10000 {
  71. label = "linux";
  72. reg = <0x010000 0x7e0000>;
  73. compatible = "brcm,bcm963xx-imagetag";
  74. };
  75. nvram@7f0000 {
  76. label = "nvram";
  77. reg = <0x7f0000 0x010000>;
  78. };
  79. };
  80. };
  81. &lsspi {
  82. switch@0 {
  83. compatible = "brcm,bcm53115";
  84. reg = <0>;
  85. spi-max-frequency = <781000>;
  86. lede,alias = "eth0";
  87. ports {
  88. #address-cells = <1>;
  89. #size-cells = <0>;
  90. lan@0 {
  91. reg = <0>;
  92. label = "lan4";
  93. };
  94. lan@1 {
  95. reg = <1>;
  96. label = "lan3";
  97. };
  98. lan@2 {
  99. reg = <2>;
  100. label = "lan2";
  101. };
  102. lan@3 {
  103. reg = <3>;
  104. label = "lan1";
  105. };
  106. wan@4 {
  107. reg = <4>;
  108. label = "wan";
  109. };
  110. cpu@5 {
  111. reg = <5>;
  112. label = "cpu";
  113. fixed-link {
  114. speed = <1000>;
  115. full-duplex;
  116. asym-pause;
  117. pause;
  118. };
  119. };
  120. };
  121. };
  122. };
  123. &pinctrl {
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&pinctrl_pci>;
  126. };
  127. &uart0 {
  128. status = "ok";
  129. };