wap-5813n.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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 = "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. partitions {
  61. compatible = "fixed-partitions";
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. cfe@0 {
  65. label = "CFE";
  66. reg = <0x000000 0x010000>;
  67. read-only;
  68. };
  69. linux@10000 {
  70. label = "linux";
  71. reg = <0x010000 0x7e0000>;
  72. compatible = "brcm,bcm963xx-imagetag";
  73. };
  74. nvram@7f0000 {
  75. label = "nvram";
  76. reg = <0x7f0000 0x010000>;
  77. };
  78. };
  79. };
  80. &lsspi {
  81. switch@0 {
  82. compatible = "brcm,bcm53115";
  83. reg = <0>;
  84. spi-max-frequency = <781000>;
  85. lede,alias = "eth0";
  86. ports {
  87. #address-cells = <1>;
  88. #size-cells = <0>;
  89. lan@0 {
  90. reg = <0>;
  91. label = "lan4";
  92. };
  93. lan@1 {
  94. reg = <1>;
  95. label = "lan3";
  96. };
  97. lan@2 {
  98. reg = <2>;
  99. label = "lan2";
  100. };
  101. lan@3 {
  102. reg = <3>;
  103. label = "lan1";
  104. };
  105. wan@4 {
  106. reg = <4>;
  107. label = "wan";
  108. };
  109. cpu@5 {
  110. reg = <5>;
  111. label = "cpu";
  112. fixed-link {
  113. speed = <1000>;
  114. full-duplex;
  115. asym-pause;
  116. pause;
  117. };
  118. };
  119. };
  120. };
  121. };
  122. &pinctrl {
  123. pinctrl-names = "default";
  124. pinctrl-0 = <&pinctrl_pci>;
  125. };
  126. &uart0 {
  127. status = "ok";
  128. };