hg556a-c.dts 1.9 KB

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