wap-5813n.dts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. };
  10. gpio-keys-polled {
  11. compatible = "gpio-keys-polled";
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. poll-interval = <20>;
  15. debounce-interval = <60>;
  16. wlan {
  17. label = "wlan";
  18. gpios = <&gpio1 0 1>;
  19. linux,code = <KEY_WLAN>;
  20. };
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio1 2 1>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. wps {
  27. label = "wps";
  28. gpios = <&gpio1 3 1>;
  29. linux,code = <KEY_WPS_BUTTON>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. inet_green {
  35. label = "WAP-5813n:green:inet";
  36. gpios = <&gpio0 5 0>;
  37. };
  38. power_green {
  39. label = "WAP-5813n:green:power";
  40. gpios = <&gpio0 22 0>;
  41. default-state = "on";
  42. };
  43. wps_green {
  44. label = "WAP-5813n:green:wps";
  45. gpios = <&gpio0 23 1>;
  46. };
  47. power_red {
  48. label = "WAP-5813n:red:power";
  49. gpios = <&gpio0 24 0>;
  50. };
  51. inet_red {
  52. label = "WAP-5813n:red:inet";
  53. gpios = <&gpio0 31 0>;
  54. };
  55. };
  56. };
  57. &pflash {
  58. status = "ok";
  59. linux,part-probe = "bcm63xxpart";
  60. cfe@0 {
  61. label = "CFE";
  62. reg = <0x000000 0x010000>;
  63. read-only;
  64. };
  65. linux@10000 {
  66. label = "linux";
  67. reg = <0x010000 0x7e0000>;
  68. };
  69. nvram@7f0000 {
  70. label = "nvram";
  71. reg = <0x7f0000 0x010000>;
  72. };
  73. };