hotfoot.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. compatible = "ibm,iic-405ep", "ibm,iic";
  106. reg = <0xef600500 0x00000011>;
  107. interrupt-parent = <&UIC0>;
  108. interrupts = <0x2 0x4>;
  109. rtc@68 {
  110. /* Actually a DS1339 */
  111. compatible = "dallas,ds1307";
  112. reg = <0x68>;
  113. };
  114. temp@4a {
  115. /* Not present on all boards */
  116. compatible = "national,lm75";
  117. reg = <0x4a>;
  118. };
  119. };
  120. GPIO: gpio@ef600700 {
  121. #gpio-cells = <2>;
  122. compatible = "ibm,ppc4xx-gpio";
  123. reg = <0xef600700 0x00000020>;
  124. gpio-controller;
  125. };
  126. gpio-leds {
  127. compatible = "gpio-leds";
  128. status {
  129. label = "Status";
  130. gpios = <&GPIO 1 0>;
  131. };
  132. radiorx {
  133. label = "Rx";
  134. gpios = <&GPIO 0xe 0>;
  135. };
  136. };
  137. EMAC0: ethernet@ef600800 {
  138. linux,network-index = <0x0>;
  139. device_type = "network";
  140. compatible = "ibm,emac-405ep", "ibm,emac";
  141. interrupt-parent = <&UIC0>;
  142. interrupts = <
  143. 0xf 0x4 /* Ethernet */
  144. 0x9 0x4 /* Ethernet Wake Up */>;
  145. local-mac-address = [000000000000]; /* Filled in by zImage */
  146. reg = <0xef600800 0x00000070>;
  147. mal-device = <&MAL>;
  148. mal-tx-channel = <0>;
  149. mal-rx-channel = <0>;
  150. cell-index = <0>;
  151. max-frame-size = <0x5dc>;
  152. rx-fifo-size = <0x1000>;
  153. tx-fifo-size = <0x800>;
  154. phy-mode = "mii";
  155. phy-map = <0x00000000>;
  156. };
  157. EMAC1: ethernet@ef600900 {
  158. linux,network-index = <0x1>;
  159. device_type = "network";
  160. compatible = "ibm,emac-405ep", "ibm,emac";
  161. interrupt-parent = <&UIC0>;
  162. interrupts = <
  163. 0x11 0x4 /* Ethernet */
  164. 0x9 0x4 /* Ethernet Wake Up */>;
  165. local-mac-address = [000000000000]; /* Filled in by zImage */
  166. reg = <0xef600900 0x00000070>;
  167. mal-device = <&MAL>;
  168. mal-tx-channel = <2>;
  169. mal-rx-channel = <1>;
  170. cell-index = <1>;
  171. max-frame-size = <0x5dc>;
  172. rx-fifo-size = <0x1000>;
  173. tx-fifo-size = <0x800>;
  174. mdio-device = <&EMAC0>;
  175. phy-mode = "mii";
  176. phy-map = <0x0000001>;
  177. };
  178. };
  179. EBC0: ebc {
  180. compatible = "ibm,ebc-405ep", "ibm,ebc";
  181. dcr-reg = <0x012 0x002>;
  182. #address-cells = <2>;
  183. #size-cells = <1>;
  184. /* The ranges property is supplied by the bootwrapper
  185. * and is based on the firmware's configuration of the
  186. * EBC bridge
  187. */
  188. clock-frequency = <0>; /* Filled in by zImage */
  189. nor_flash@0 {
  190. compatible = "cfi-flash";
  191. bank-width = <2>;
  192. reg = <0x0 0xff800000 0x00800000>;
  193. #address-cells = <1>;
  194. #size-cells = <1>;
  195. /* This mapping is for the 8M flash
  196. 4M flash has all ofssets -= 4M,
  197. and FeatFS partition is not present */
  198. partition@0 {
  199. label = "Bootloader";
  200. reg = <0x7c0000 0x40000>;
  201. /* read-only; */
  202. };
  203. partition@1 {
  204. label = "Env_and_Config_Primary";
  205. reg = <0x400000 0x10000>;
  206. };
  207. partition@2 {
  208. label = "Kernel";
  209. reg = <0x420000 0x100000>;
  210. };
  211. partition@3 {
  212. label = "Filesystem";
  213. reg = <0x520000 0x2a0000>;
  214. };
  215. partition@4 {
  216. label = "Env_and_Config_Secondary";
  217. reg = <0x410000 0x10000>;
  218. };
  219. partition@5 {
  220. label = "FeatFS";
  221. reg = <0x000000 0x400000>;
  222. };
  223. partition@6 {
  224. label = "Bootloader_Env";
  225. reg = <0x7d0000 0x10000>;
  226. };
  227. };
  228. };
  229. PCI0: pci@ec000000 {
  230. device_type = "pci";
  231. #interrupt-cells = <1>;
  232. #size-cells = <2>;
  233. #address-cells = <3>;
  234. compatible = "ibm,plb405ep-pci", "ibm,plb-pci";
  235. primary;
  236. reg = <0xeec00000 0x00000008 /* Config space access */
  237. 0xeed80000 0x00000004 /* IACK */
  238. 0xeed80000 0x00000004 /* Special cycle */
  239. 0xef480000 0x00000040>; /* Internal registers */
  240. /* Outbound ranges, one memory and one IO,
  241. * later cannot be changed. Chip supports a second
  242. * IO range but we don't use it for now
  243. */
  244. ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000
  245. 0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
  246. /* Inbound 2GB range starting at 0 */
  247. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  248. interrupt-parent = <&UIC0>;
  249. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  250. interrupt-map = <
  251. /* IDSEL 3 -- slot1 (optional) 27/29 A/B IRQ2/4 */
  252. 0x1800 0x0 0x0 0x1 &UIC0 0x1b 0x8
  253. 0x1800 0x0 0x0 0x2 &UIC0 0x1d 0x8
  254. /* IDSEL 4 -- slot0, 26/28 A/B IRQ1/3 */
  255. 0x2000 0x0 0x0 0x1 &UIC0 0x1a 0x8
  256. 0x2000 0x0 0x0 0x2 &UIC0 0x1c 0x8
  257. >;
  258. };
  259. };
  260. chosen {
  261. linux,stdout-path = &UART0;
  262. };
  263. };