homehub2a.dts 2.5 KB

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