hotfoot.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. /*
  2. * Device Tree Source for ESTeem 195E Hotfoot
  3. *
  4. * Copyright 2009 AbsoluteValue Systems <solomon@linux-wlan.com>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without
  8. * any warranty of any kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. model = "est,hotfoot";
  15. compatible = "est,hotfoot";
  16. dcr-parent = <&{/cpus/cpu@0}>;
  17. aliases {
  18. ethernet0 = &EMAC0;
  19. ethernet1 = &EMAC1;
  20. serial0 = &UART0;
  21. serial1 = &UART1;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. cpu@0 {
  27. device_type = "cpu";
  28. model = "PowerPC,405EP";
  29. reg = <0x00000000>;
  30. clock-frequency = <0>; /* Filled in by zImage */
  31. timebase-frequency = <0>; /* Filled in by zImage */
  32. i-cache-line-size = <0x20>;
  33. d-cache-line-size = <0x20>;
  34. i-cache-size = <0x4000>;
  35. d-cache-size = <0x4000>;
  36. dcr-controller;
  37. dcr-access-method = "native";
  38. };
  39. };
  40. memory {
  41. device_type = "memory";
  42. reg = <0x00000000 0x00000000>; /* Filled in by zImage */
  43. };
  44. UIC0: interrupt-controller {
  45. compatible = "ibm,uic";
  46. interrupt-controller;
  47. cell-index = <0>;
  48. dcr-reg = <0x0c0 0x009>;
  49. #address-cells = <0>;
  50. #size-cells = <0>;
  51. #interrupt-cells = <2>;
  52. };
  53. plb {
  54. compatible = "ibm,plb3";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. ranges;
  58. clock-frequency = <0>; /* Filled in by zImage */
  59. SDRAM0: memory-controller {
  60. compatible = "ibm,sdram-405ep";
  61. dcr-reg = <0x010 0x002>;
  62. };
  63. MAL: mcmal {
  64. compatible = "ibm,mcmal-405ep", "ibm,mcmal";
  65. dcr-reg = <0x180 0x062>;
  66. num-tx-chans = <4>;
  67. num-rx-chans = <2>;
  68. interrupt-parent = <&UIC0>;
  69. interrupts = <
  70. 0xb 0x4 /* TXEOB */
  71. 0xc 0x4 /* RXEOB */
  72. 0xa 0x4 /* SERR */
  73. 0xd 0x4 /* TXDE */
  74. 0xe 0x4 /* RXDE */>;
  75. };
  76. POB0: opb {
  77. compatible = "ibm,opb-405ep", "ibm,opb";
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. ranges = <0xef600000 0xef600000 0x00a00000>;
  81. dcr-reg = <0x0a0 0x005>;
  82. clock-frequency = <0>; /* Filled in by zImage */
  83. /* Hotfoot has UART0/UART1 swapped */
  84. UART0: serial@ef600400 {
  85. device_type = "serial";
  86. compatible = "ns16550";
  87. reg = <0xef600400 0x00000008>;
  88. virtual-reg = <0xef600400>;
  89. clock-frequency = <0>; /* Filled in by zImage */
  90. current-speed = <0x9600>;
  91. interrupt-parent = <&UIC0>;
  92. interrupts = <0x1 0x4>;
  93. };
  94. UART1: serial@ef600300 {
  95. device_type = "serial";
  96. compatible = "ns16550";
  97. reg = <0xef600300 0x00000008>;
  98. virtual-reg = <0xef600300>;
  99. clock-frequency = <0>; /* Filled in by zImage */
  100. current-speed = <0x9600>;
  101. interrupt-parent = <&UIC0>;
  102. interrupts = <0x0 0x4>;
  103. };
  104. IIC: i2c@ef600500 {
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. compatible = "ibm,iic-405ep", "ibm,iic";
  108. reg = <0xef600500 0x00000011>;
  109. interrupt-parent = <&UIC0>;
  110. interrupts = <0x2 0x4>;
  111. rtc@68 {
  112. /* Actually a DS1339 */
  113. compatible = "dallas,ds1307";
  114. reg = <0x68>;
  115. };
  116. temp@4a {
  117. /* Not present on all boards */
  118. compatible = "national,lm75";
  119. reg = <0x4a>;
  120. };
  121. };
  122. GPIO: gpio@ef600700 {
  123. #gpio-cells = <2>;
  124. compatible = "ibm,ppc4xx-gpio";
  125. reg = <0xef600700 0x00000020>;
  126. gpio-controller;
  127. };
  128. gpio-leds {
  129. compatible = "gpio-leds";
  130. status {
  131. label = "Status";
  132. gpios = <&GPIO 1 0>;
  133. };
  134. radiorx {
  135. label = "Rx";
  136. gpios = <&GPIO 0xe 0>;
  137. };
  138. };
  139. EMAC0: ethernet@ef600800 {
  140. linux,network-index = <0x0>;
  141. device_type = "network";
  142. compatible = "ibm,emac-405ep", "ibm,emac";
  143. interrupt-parent = <&UIC0>;
  144. interrupts = <
  145. 0xf 0x4 /* Ethernet */
  146. 0x9 0x4 /* Ethernet Wake Up */>;
  147. local-mac-address = [000000000000]; /* Filled in by zImage */
  148. reg = <0xef600800 0x00000070>;
  149. mal-device = <&MAL>;
  150. mal-tx-channel = <0>;
  151. mal-rx-channel = <0>;
  152. cell-index = <0>;
  153. max-frame-size = <0x5dc>;
  154. rx-fifo-size = <0x1000>;
  155. tx-fifo-size = <0x800>;
  156. phy-mode = "mii";
  157. phy-map = <0x00000000>;
  158. };
  159. EMAC1: ethernet@ef600900 {
  160. linux,network-index = <0x1>;
  161. device_type = "network";
  162. compatible = "ibm,emac-405ep", "ibm,emac";
  163. interrupt-parent = <&UIC0>;
  164. interrupts = <
  165. 0x11 0x4 /* Ethernet */
  166. 0x9 0x4 /* Ethernet Wake Up */>;
  167. local-mac-address = [000000000000]; /* Filled in by zImage */
  168. reg = <0xef600900 0x00000070>;
  169. mal-device = <&MAL>;
  170. mal-tx-channel = <2>;
  171. mal-rx-channel = <1>;
  172. cell-index = <1>;
  173. max-frame-size = <0x5dc>;
  174. rx-fifo-size = <0x1000>;
  175. tx-fifo-size = <0x800>;
  176. mdio-device = <&EMAC0>;
  177. phy-mode = "mii";
  178. phy-map = <0x0000001>;
  179. };
  180. };
  181. EBC0: ebc {
  182. compatible = "ibm,ebc-405ep", "ibm,ebc";
  183. dcr-reg = <0x012 0x002>;
  184. #address-cells = <2>;
  185. #size-cells = <1>;
  186. /* The ranges property is supplied by the bootwrapper
  187. * and is based on the firmware's configuration of the
  188. * EBC bridge
  189. */
  190. clock-frequency = <0>; /* Filled in by zImage */
  191. nor_flash@0 {
  192. compatible = "cfi-flash";
  193. bank-width = <2>;
  194. reg = <0x0 0xff800000 0x00800000>;
  195. #address-cells = <1>;
  196. #size-cells = <1>;
  197. /* This mapping is for the 8M flash
  198. 4M flash has all ofssets -= 4M,
  199. and FeatFS partition is not present */
  200. partition@0 {
  201. label = "Bootloader";
  202. reg = <0x7c0000 0x40000>;
  203. /* read-only; */
  204. };
  205. partition@1 {
  206. label = "Env_and_Config_Primary";
  207. reg = <0x400000 0x10000>;
  208. };
  209. partition@2 {
  210. label = "Kernel";
  211. reg = <0x420000 0x100000>;
  212. };
  213. partition@3 {
  214. label = "Filesystem";
  215. reg = <0x520000 0x2a0000>;
  216. };
  217. partition@4 {
  218. label = "Env_and_Config_Secondary";
  219. reg = <0x410000 0x10000>;
  220. };
  221. partition@5 {
  222. label = "FeatFS";
  223. reg = <0x000000 0x400000>;
  224. };
  225. partition@6 {
  226. label = "Bootloader_Env";
  227. reg = <0x7d0000 0x10000>;
  228. };
  229. };
  230. };
  231. PCI0: pci@ec000000 {
  232. device_type = "pci";
  233. #interrupt-cells = <1>;
  234. #size-cells = <2>;
  235. #address-cells = <3>;
  236. compatible = "ibm,plb405ep-pci", "ibm,plb-pci";
  237. primary;
  238. reg = <0xeec00000 0x00000008 /* Config space access */
  239. 0xeed80000 0x00000004 /* IACK */
  240. 0xeed80000 0x00000004 /* Special cycle */
  241. 0xef480000 0x00000040>; /* Internal registers */
  242. /* Outbound ranges, one memory and one IO,
  243. * later cannot be changed. Chip supports a second
  244. * IO range but we don't use it for now
  245. */
  246. ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000
  247. 0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
  248. /* Inbound 2GB range starting at 0 */
  249. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  250. interrupt-parent = <&UIC0>;
  251. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  252. interrupt-map = <
  253. /* IDSEL 3 -- slot1 (optional) 27/29 A/B IRQ2/4 */
  254. 0x1800 0x0 0x0 0x1 &UIC0 0x1b 0x8
  255. 0x1800 0x0 0x0 0x2 &UIC0 0x1d 0x8
  256. /* IDSEL 4 -- slot0, 26/28 A/B IRQ1/3 */
  257. 0x2000 0x0 0x0 0x1 &UIC0 0x1a 0x8
  258. 0x2000 0x0 0x0 0x2 &UIC0 0x1c 0x8
  259. >;
  260. };
  261. };
  262. chosen {
  263. linux,stdout-path = &UART0;
  264. };
  265. };