hg556a-a.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /dts-v1/;
  2. #include "bcm6358.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Huawei EchoLife HG556a (version A)";
  6. compatible = "huawei,hg556a-a", "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. help {
  17. label = "help";
  18. gpios = <&gpio0 8 1>;
  19. linux,code = <KEY_HELP>;
  20. };
  21. wlan {
  22. label = "wlan";
  23. gpios = <&gpio0 9 1>;
  24. linux,code = <KEY_WLAN>;
  25. };
  26. restart {
  27. label = "restart";
  28. gpios = <&gpio0 10 1>;
  29. linux,code = <KEY_RESTART>;
  30. };
  31. reset {
  32. label = "reset";
  33. gpios = <&gpio0 11 1>;
  34. linux,code = <KEY_CONFIG>;
  35. };
  36. };
  37. gpio-leds {
  38. compatible = "gpio-leds";
  39. message_red {
  40. label = "HW556:red:message";
  41. gpios = <&gpio0 0 1>;
  42. };
  43. hspa_red {
  44. label = "HW556:red:hspa";
  45. gpios = <&gpio0 1 1>;
  46. };
  47. dsl_red {
  48. label = "HW556:red:dsl";
  49. gpios = <&gpio0 2 1>;
  50. };
  51. power_red {
  52. label = "HW556:red:power";
  53. gpios = <&gpio0 3 1>;
  54. default-state = "on";
  55. };
  56. all_red {
  57. label = "HW556:red:all";
  58. gpios = <&gpio0 6 1>;
  59. default-state = "on";
  60. };
  61. lan1_green {
  62. label = "HW556:green:lan1";
  63. gpios = <&gpio0 12 1>;
  64. };
  65. lan1_red {
  66. label = "HW556:red:lan1";
  67. gpios = <&gpio0 13 1>;
  68. };
  69. lan2_green {
  70. label = "HW556:green:lan2";
  71. gpios = <&gpio0 15 1>;
  72. };
  73. lan2_red {
  74. label = "HW556:red:lan2";
  75. gpios = <&gpio0 22 1>;
  76. };
  77. lan3_green {
  78. label = "HW556:green:lan3";
  79. gpios = <&gpio0 23 1>;
  80. };
  81. lan3_red {
  82. label = "HW556:red:lan3";
  83. gpios = <&gpio0 26 1>;
  84. };
  85. lan4_green {
  86. label = "HW556:green:lan4";
  87. gpios = <&gpio0 27 1>;
  88. };
  89. lan4_red {
  90. label = "HW556:red:lan4";
  91. gpios = <&gpio0 28 1>;
  92. };
  93. };
  94. };
  95. &pflash {
  96. status = "ok";
  97. linux,part-probe = "bcm63xxpart";
  98. cfe@0 {
  99. label = "CFE";
  100. reg = <0x000000 0x020000>;
  101. read-only;
  102. };
  103. linux@20000 {
  104. label = "linux";
  105. reg = <0x020000 0xec0000>;
  106. };
  107. cal_data@ee0000 {
  108. label = "cal_data";
  109. reg = <0xee0000 0x100000>;
  110. read-only;
  111. };
  112. nvram@fe0000 {
  113. label = "nvram";
  114. reg = <0xfe0000 0x020000>;
  115. };
  116. };