homehub2a.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /dts-v1/;
  2. #include "bcm6358.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "BT Home Hub 2.0 Type A";
  6. compatible = "thomson,homehub2a", "brcm,bcm6358";
  7. chosen {
  8. bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. };
  10. spi-gpio {
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. compatible = "spi-gpio";
  14. gpio-mosi = <&gpio0 7 0>;
  15. gpio-sck = <&gpio0 6 0>;
  16. cs-gpios = <&gpio0 5 0>;
  17. num-chipselects = <1>;
  18. hc595: gpio-spi-controller@0 {
  19. compatible = "fairchild,74hc595";
  20. reg = <0>;
  21. registers-number = <2>;
  22. spi-max-frequency = <100000>;
  23. gpio-controller;
  24. #gpio-cells = <2>;
  25. };
  26. };
  27. gpio-keys-polled {
  28. compatible = "gpio-keys-polled";
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. poll-interval = <20>;
  32. debounce-interval = <60>;
  33. phone {
  34. label = "phone";
  35. gpios = <&gpio0 1 1>;
  36. linux,code = <KEY_PHONE>;
  37. };
  38. reset {
  39. label = "reset";
  40. gpios = <&gpio0 9 1>;
  41. linux,code = <KEY_RESTART>;
  42. };
  43. wps {
  44. label = "wps";
  45. gpios = <&gpio0 11 1>;
  46. linux,code = <KEY_WPS_BUTTON>;
  47. };
  48. };
  49. gpio-leds {
  50. compatible = "gpio-leds";
  51. power_red {
  52. label = "HOMEHUB2A:red:power";
  53. gpios = <&hc595 0 1>;
  54. };
  55. power_green {
  56. label = "HOMEHUB2A:green:power";
  57. gpios = <&hc595 1 1>;
  58. default-state = "on";
  59. };
  60. power_blue {
  61. label = "HOMEHUB2A:blue:power";
  62. gpios = <&hc595 2 1>;
  63. };
  64. broadband_red {
  65. label = "HOMEHUB2A:red:broadband";
  66. gpios = <&hc595 3 1>;
  67. };
  68. broadband_green {
  69. label = "HOMEHUB2A:green:broadband";
  70. gpios = <&hc595 4 1>;
  71. };
  72. broadband_blue {
  73. label = "HOMEHUB2A:blue:broadband";
  74. gpios = <&hc595 5 1>;
  75. };
  76. wireless_red {
  77. label = "HOMEHUB2A:red:wireless";
  78. gpios = <&hc595 6 1>;
  79. };
  80. wireless_green {
  81. label = "HOMEHUB2A:green:wireless";
  82. gpios = <&hc595 7 1>;
  83. };
  84. wireless_blue {
  85. label = "HOMEHUB2A:blue:wireless";
  86. gpios = <&hc595 8 1>;
  87. };
  88. phone_red {
  89. label = "HOMEHUB2A:red:phone";
  90. gpios = <&hc595 9 1>;
  91. };
  92. phone_green {
  93. label = "HOMEHUB2A:green:phone";
  94. gpios = <&hc595 10 1>;
  95. };
  96. phone_blue {
  97. label = "HOMEHUB2A:blue:phone";
  98. gpios = <&hc595 11 1>;
  99. };
  100. upgrading_red {
  101. label = "HOMEHUB2A:red:upgrading";
  102. gpios = <&hc595 12 1>;
  103. };
  104. upgrading_green {
  105. label = "HOMEHUB2A:green:upgrading";
  106. gpios = <&hc595 13 1>;
  107. };
  108. upgrading_blue {
  109. label = "HOMEHUB2A:blue:upgrading";
  110. gpios = <&hc595 14 1>;
  111. };
  112. };
  113. };
  114. &pflash {
  115. status = "ok";
  116. linux,part-probe = "bcm63xxpart";
  117. cfe@0 {
  118. label = "CFE";
  119. reg = <0x000000 0x020000>;
  120. };
  121. linux@20000 {
  122. label = "linux";
  123. reg = <0x020000 0xfc0000>;
  124. };
  125. nvram@fe0000 {
  126. label = "nvram";
  127. reg = <0xfe0000 0x020000>;
  128. };
  129. };