BTHOMEHUBV2B.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. /dts-v1/;
  2. /include/ "danube.dtsi"
  3. / {
  4. model = "BTHOMEHUBV2B - BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  7. leds {
  8. boot = &power_orange;
  9. failsafe = &power_red;
  10. running = &power_blue;
  11. internet = &broadband_blue;
  12. wifi = &wireless_blue;
  13. };
  14. };
  15. memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */
  16. reg = <0x0 0x4000000>;
  17. };
  18. sram@1F000000 {
  19. vmmc@107000 {
  20. status = "okay";
  21. gpios = <&gpio 31 0>;
  22. };
  23. };
  24. fpi@10000000 {
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. localbus@0 {
  28. #address-cells = <2>;
  29. #size-cells = <1>;
  30. ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
  31. 1 0 0x4000000 0x4000010>; /* addsel1 */
  32. compatible = "lantiq,localbus", "simple-bus";
  33. nor-boot@0 { /* NOR Flash: Spansion S29AL004D 512KB */
  34. compatible = "lantiq,nor"; /* "AMD AM29LV400BB" compatible on 3.3.8 */
  35. lantiq,cs = <0>;
  36. bank-width = <2>;
  37. reg = <0 0x0 0x80000>;
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. partitions {
  41. compatible = "fixed-partitions";
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. partition@0 {
  45. label = "uboot";
  46. reg = <0x00000 0x40000>; /* 256KB */
  47. };
  48. partition@40000 {
  49. label = "uboot_env";
  50. reg = <0x40000 0x10000>; /* 64KB */
  51. };
  52. partition@50000 {
  53. label = "rg_conf_1";
  54. reg = <0x50000 0x10000>;
  55. };
  56. partition@60000 {
  57. label = "rg_conf_2";
  58. reg = <0x60000 0x10000>;
  59. };
  60. partition@70000 {
  61. label = "rg_conf_factory";
  62. reg = <0x70000 0x10000>;
  63. };
  64. };
  65. };
  66. nand-parts@0 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
  67. compatible = "gen_nand", "lantiq,nand-xway";
  68. lantiq,cs = <1>;
  69. bank-width = <2>;
  70. reg = <1 0x0 0x2000000 >;
  71. #address-cells = <1>;
  72. #size-cells = <1>;
  73. req-mask = <0x1>; /* PCI request lines to mask during NAND access */
  74. partitions {
  75. compatible = "fixed-partitions";
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. ath9k_cal: partition@0 {
  79. label = "art"; /* Atheros 9160 wifi b/g/n radio EEPROM */
  80. reg = <0x00000 0x4000>;
  81. read-only;
  82. };
  83. partition@4000 {
  84. label = "kernel";
  85. reg = <0x4000 0x200000>;
  86. };
  87. partition@164000 {
  88. label = "ubi";
  89. reg = <0x204000 0x1DFC000>;
  90. };
  91. };
  92. };
  93. ath9k_eep {
  94. compatible = "ath9k,eeprom";
  95. ath,eep-flash = <&ath9k_cal 0x0000>;
  96. ath,mac-increment = <1>;
  97. ath,pci-slot = <14>;
  98. ath,eep-endian;
  99. };
  100. };
  101. gpio: pinmux@E100B10 {
  102. compatible = "lantiq,pinctrl-xway";
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&state_default>;
  105. #gpio-cells = <2>;
  106. gpio-controller;
  107. reg = <0xE100B10 0xA0>;
  108. state_default: pinmux {
  109. stp {
  110. lantiq,groups = "stp";
  111. lantiq,function = "stp";
  112. lantiq,output = <1>;
  113. lantiq,open-drain = <0>;
  114. lantiq,pull = <0>;
  115. };
  116. nand_out {
  117. lantiq,groups = "nand cle", "nand ale";
  118. lantiq,function = "ebu";
  119. lantiq,output = <1>;
  120. lantiq,open-drain = <0>;
  121. lantiq,pull = <0>;
  122. };
  123. nand_cs1 {
  124. lantiq,groups = "nand cs1";
  125. lantiq,function = "ebu";
  126. lantiq,open-drain = <0>;
  127. lantiq,pull = <0>;
  128. };
  129. exin {
  130. lantiq,groups = "exin1";
  131. lantiq,function = "exin";
  132. };
  133. pci_in {
  134. lantiq,groups = "req1";
  135. lantiq,function = "pci";
  136. lantiq,output = <0>;
  137. lantiq,open-drain = <1>;
  138. lantiq,pull = <2>;
  139. };
  140. pci_out {
  141. lantiq,groups = "gnt1";
  142. lantiq,function = "pci";
  143. lantiq,output = <1>;
  144. lantiq,open-drain = <0>;
  145. lantiq,pull = <0>;
  146. };
  147. pci_rst {
  148. lantiq,pins = "io21";
  149. lantiq,output = <1>;
  150. lantiq,open-drain = <0>;
  151. };
  152. btn_in {
  153. lantiq,pins = "io2", "io15", "io22";
  154. lantiq,output = <0>;
  155. lantiq,open-drain = <1>;
  156. lantiq,pull = <2>;
  157. };
  158. };
  159. };
  160. etop@E180000 {
  161. compatible = "lantiq,etop-xway";
  162. reg = <0xE180000 0x40000>;
  163. interrupt-parent = <&icu0>;
  164. interrupts = <73 78>;
  165. phy-mode = "rmii";
  166. mac-address = [ 00 11 22 33 44 55 ];
  167. };
  168. ifxhcd@E101000 {
  169. status = "okay";
  170. };
  171. stp0: stp@E100BB0 {
  172. status = "okay";
  173. #gpio-cells = <2>;
  174. compatible = "lantiq,gpio-stp-xway";
  175. gpio-controller;
  176. reg = <0xE100BB0 0x40>;
  177. lantiq,shadow = <0xfff>;
  178. lantiq,groups = <0x3>;
  179. };
  180. pci@E105400 {
  181. status = "okay";
  182. lantiq,bus-clock = <33333333>;
  183. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  184. interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
  185. gpio-reset = <&gpio 21 0>;
  186. req-mask = <0x1>; /* GNT1 */
  187. };
  188. };
  189. gpio-keys-polled {
  190. compatible = "gpio-keys-polled";
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. poll-interval = <100>;
  194. reset {
  195. label = "reset";
  196. gpios = <&gpio 2 1>;
  197. linux,code = <0x198>;
  198. };
  199. findhandset {
  200. label = "findhandset";
  201. gpios = <&gpio 15 1>;
  202. linux,code = <0x101>;
  203. };
  204. wps {
  205. label = "wps";
  206. gpios = <&gpio 22 1>;
  207. linux,code = <0x211>;
  208. };
  209. };
  210. gpio-leds {
  211. compatible = "gpio-leds";
  212. upgrading-orange {
  213. label = "bthomehubv2b:orange:upgrading";
  214. gpios = <&stp0 5 0>;
  215. };
  216. phone-orange {
  217. label = "bthomehubv2b:orange:phone";
  218. gpios = <&stp0 6 0>;
  219. };
  220. phone-blue {
  221. label = "bthomehubv2b:blue:phone";
  222. gpios = <&stp0 7 0>;
  223. };
  224. wireless-orange {
  225. label = "bthomehubv2b:orange:wireless";
  226. gpios = <&stp0 8 0>;
  227. };
  228. wireless_blue: wireless-blue {
  229. label = "bthomehubv2b:blue:wireless";
  230. gpios = <&stp0 9 0>;
  231. };
  232. broadband-red {
  233. label = "bthomehubv2b:red:broadband";
  234. gpios = <&stp0 10 0>;
  235. };
  236. broadband-orange {
  237. label = "bthomehubv2b:orange:broadband";
  238. gpios = <&stp0 11 0>;
  239. };
  240. broadband_blue: broadband-blue {
  241. label = "bthomehubv2b:blue:broadband";
  242. gpios = <&stp0 12 0>;
  243. };
  244. power_red: power-red {
  245. label = "bthomehubv2b:red:power";
  246. gpios = <&stp0 13 0>;
  247. };
  248. power_orange: power-orange {
  249. label = "bthomehubv2b:orange:power";
  250. gpios = <&stp0 14 0>;
  251. default-state = "keep";
  252. };
  253. power_blue: power-blue {
  254. label = "bthomehubv2b:blue:power";
  255. gpios = <&stp0 15 0>;
  256. };
  257. };
  258. };