r5010unv2.dts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /dts-v1/;
  2. #include "bcm6328.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "NuCom R5010UN v2";
  6. compatible = "nucom,r5010unv2", "brcm,bcm6328";
  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. reset {
  17. label = "reset";
  18. gpios = <&gpio0 23 1>;
  19. linux,code = <KEY_RESTART>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio0 24 1>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. };
  26. };
  27. gpio-leds {
  28. compatible = "gpio-leds";
  29. inet_green {
  30. label = "R5010UNv2:green:inet";
  31. gpios = <&gpio0 1 1>;
  32. };
  33. inet_fail_red {
  34. label = "R5010UNv2:red:inet-fail";
  35. gpios = <&gpio0 2 1>;
  36. };
  37. dsl_red {
  38. label = "R5010UNv2:green:dsl";
  39. gpios = <&gpio0 3 1>;
  40. };
  41. power_green {
  42. label = "R5010UNv2:green:power";
  43. gpios = <&gpio0 4 1>;
  44. default-state = "on";
  45. };
  46. power_fail_red {
  47. label = "R5010UNv2:red:power-fail";
  48. gpios = <&gpio0 5 1>;
  49. };
  50. wps_green {
  51. label = "R5010UNv2:green:wps";
  52. gpios = <&gpio0 10 1>;
  53. };
  54. usb_green {
  55. label = "R5010UNv2:green:usb";
  56. gpios = <&gpio0 11 1>;
  57. };
  58. };
  59. };