agpf-s0.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /dts-v1/;
  2. #include "bcm6358.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Pirelli Alice Gate AGPF-S0";
  6. compatible = "pirelli,agpf-s0", "brcm,bcm6358";
  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. wps {
  17. label = "wps";
  18. gpios = <&gpio1 2 1>;
  19. linux,code = <KEY_WPS_BUTTON>;
  20. };
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio1 5 1>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. };
  27. gpio-leds {
  28. compatible = "gpio-leds";
  29. power_green {
  30. label = "AGPF-S0:green:power";
  31. gpios = <&gpio0 4 1>;
  32. default-state = "on";
  33. };
  34. power_red {
  35. label = "AGPF-S0:red:power";
  36. gpios = <&gpio0 5 1>;
  37. };
  38. service_green {
  39. label = "AGPF-S0:green:service";
  40. gpios = <&gpio0 6 1>;
  41. };
  42. service_red {
  43. label = "AGPF-S0:red:service";
  44. gpios = <&gpio0 7 1>;
  45. };
  46. dsl_green {
  47. label = "AGPF-S0:green:adsl";
  48. gpios = <&gpio0 9 1>;
  49. };
  50. dsl_red {
  51. label = "AGPF-S0:red:adsl";
  52. gpios = <&gpio0 10 1>;
  53. };
  54. wifi_green {
  55. label = "AGPF-S0:green:wifi";
  56. gpios = <&gpio0 22 1>;
  57. };
  58. wifi_red {
  59. label = "AGPF-S0:red:wifi";
  60. gpios = <&gpio0 23 1>;
  61. };
  62. inet_red {
  63. label = "AGPF-S0:red:internet";
  64. gpios = <&gpio0 24 1>;
  65. };
  66. inet_green {
  67. label = "AGPF-S0:green:internet";
  68. gpios = <&gpio0 25 1>;
  69. };
  70. usr1_green {
  71. label = "AGPF-S0:green:usr1";
  72. gpios = <&gpio0 26 1>;
  73. };
  74. usr1_red {
  75. label = "AGPF-S0:red:usr1";
  76. gpios = <&gpio0 27 1>;
  77. };
  78. usr2_green {
  79. label = "AGPF-S0:green:usr2";
  80. gpios = <&gpio0 29 1>;
  81. };
  82. usr2_red {
  83. label = "AGPF-S0:red:usr2";
  84. gpios = <&gpio0 30 1>;
  85. };
  86. };
  87. };
  88. &pflash {
  89. status = "ok";
  90. linux,part-probe = "bcm63xxpart";
  91. cfe@0 {
  92. label = "CFE";
  93. reg = <0x000000 0x020000>;
  94. read-only;
  95. };
  96. linux@20000 {
  97. label = "linux";
  98. reg = <0x020000 0xfc0000>;
  99. };
  100. nvram@fe0000 {
  101. label = "nvram";
  102. reg = <0xfe0000 0x020000>;
  103. };
  104. };