hg556a-a.dts 2.0 KB

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