dsl-274xb-f.dts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /dts-v1/;
  2. #include "bcm6328.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "D-Link DSL-2740B/DSL-2741B rev F1";
  6. compatible = "d-link,dsl-274xb-f", "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. wifi {
  17. label = "wifi";
  18. gpios = <&gpio0 10 1>;
  19. linux,code = <KEY_WLAN>;
  20. };
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio0 23 1>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. wps {
  27. label = "wps";
  28. gpios = <&gpio0 24 1>;
  29. linux,code = <KEY_WPS_BUTTON>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. inet_red {
  35. label = "dsl-274xb:red:internet";
  36. gpios = <&gpio0 2 1>;
  37. };
  38. dsl_green {
  39. label = "dsl-274xb:green:dsl";
  40. gpios = <&gpio0 3 1>;
  41. };
  42. power_green {
  43. label = "dsl-274xb:green:power";
  44. gpios = <&gpio0 4 1>;
  45. default-state = "on";
  46. };
  47. power_red {
  48. label = "dsl-274xb:red:power";
  49. gpios = <&gpio0 8 1>;
  50. };
  51. wps_blue {
  52. label = "dsl-274xb:blue:wps";
  53. gpios = <&gpio0 9 1>;
  54. };
  55. inet_green {
  56. label = "dsl-274xb:green:internet";
  57. gpios = <&gpio0 11 1>;
  58. };
  59. };
  60. };