hg556a-c.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /dts-v1/;
  2. #include "bcm6358.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Huawei EchoLife HG556a (version C)";
  6. compatible = "huawei,hg556a-c", "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 = <&gpio1 4 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. lan1_green {
  40. label = "HW556:green:lan1";
  41. gpios = <&gpio0 0 1>;
  42. };
  43. lan2_green {
  44. label = "HW556:green:lan2";
  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. message_red {
  57. label = "HW556:red:message";
  58. gpios = <&gpio0 12 1>;
  59. };
  60. lan1_red {
  61. label = "HW556:red:lan1";
  62. gpios = <&gpio0 13 1>;
  63. };
  64. hspa_red {
  65. label = "HW556:red:hspa";
  66. gpios = <&gpio0 15 1>;
  67. };
  68. lan2_red {
  69. label = "HW556:red:lan2";
  70. gpios = <&gpio0 22 1>;
  71. };
  72. lan3_green {
  73. label = "HW556:green:lan3";
  74. gpios = <&gpio0 23 1>;
  75. };
  76. lan3_red {
  77. label = "HW556:red:lan3";
  78. gpios = <&gpio0 26 1>;
  79. };
  80. lan4_green {
  81. label = "HW556:green:lan4";
  82. gpios = <&gpio0 27 1>;
  83. };
  84. lan4_red {
  85. label = "HW556:red:lan4";
  86. gpios = <&gpio0 28 1>;
  87. };
  88. };
  89. };
  90. &pflash {
  91. status = "ok";
  92. linux,part-probe = "bcm63xxpart";
  93. cfe@0 {
  94. label = "CFE";
  95. reg = <0x000000 0x020000>;
  96. read-only;
  97. };
  98. linux@20000 {
  99. label = "linux";
  100. reg = <0x020000 0xec0000>;
  101. };
  102. cal_data@ee0000 {
  103. label = "cal_data";
  104. reg = <0xee0000 0x100000>;
  105. read-only;
  106. };
  107. nvram@fe0000 {
  108. label = "nvram";
  109. reg = <0xfe0000 0x020000>;
  110. };
  111. };