bcm283x.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. #include <dt-bindings/pinctrl/bcm2835.h>
  2. #include <dt-bindings/clock/bcm2835.h>
  3. #include <dt-bindings/clock/bcm2835-aux.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. /* This include file covers the common peripherals and configuration between
  6. * bcm2835 and bcm2836 implementations, leaving the CPU configuration to
  7. * bcm2835.dtsi and bcm2836.dtsi.
  8. */
  9. / {
  10. compatible = "brcm,bcm2835";
  11. model = "BCM2835";
  12. interrupt-parent = <&intc>;
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. chosen {
  16. bootargs = "earlyprintk console=ttyAMA0";
  17. };
  18. soc {
  19. compatible = "simple-bus";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. timer@7e003000 {
  23. compatible = "brcm,bcm2835-system-timer";
  24. reg = <0x7e003000 0x1000>;
  25. interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
  26. /* This could be a reference to BCM2835_CLOCK_TIMER,
  27. * but we don't have the driver using the common clock
  28. * support yet.
  29. */
  30. clock-frequency = <1000000>;
  31. };
  32. dma: dma@7e007000 {
  33. compatible = "brcm,bcm2835-dma";
  34. reg = <0x7e007000 0xf00>;
  35. interrupts = <1 16>,
  36. <1 17>,
  37. <1 18>,
  38. <1 19>,
  39. <1 20>,
  40. <1 21>,
  41. <1 22>,
  42. <1 23>,
  43. <1 24>,
  44. <1 25>,
  45. <1 26>,
  46. /* dma channel 11-14 share one irq */
  47. <1 27>,
  48. <1 27>,
  49. <1 27>,
  50. <1 27>,
  51. /* unused shared irq for all channels */
  52. <1 28>;
  53. interrupt-names = "dma0",
  54. "dma1",
  55. "dma2",
  56. "dma3",
  57. "dma4",
  58. "dma5",
  59. "dma6",
  60. "dma7",
  61. "dma8",
  62. "dma9",
  63. "dma10",
  64. "dma11",
  65. "dma12",
  66. "dma13",
  67. "dma14",
  68. "dma-shared-all";
  69. #dma-cells = <1>;
  70. brcm,dma-channel-mask = <0x7f35>;
  71. };
  72. intc: interrupt-controller@7e00b200 {
  73. compatible = "brcm,bcm2835-armctrl-ic";
  74. reg = <0x7e00b200 0x200>;
  75. interrupt-controller;
  76. #interrupt-cells = <2>;
  77. };
  78. watchdog@7e100000 {
  79. compatible = "brcm,bcm2835-pm-wdt";
  80. reg = <0x7e100000 0x28>;
  81. };
  82. clocks: cprman@7e101000 {
  83. compatible = "brcm,bcm2835-cprman";
  84. #clock-cells = <1>;
  85. reg = <0x7e101000 0x2000>;
  86. /* CPRMAN derives everything from the platform's
  87. * oscillator.
  88. */
  89. clocks = <&clk_osc>;
  90. };
  91. rng@7e104000 {
  92. compatible = "brcm,bcm2835-rng";
  93. reg = <0x7e104000 0x10>;
  94. };
  95. mailbox: mailbox@7e00b880 {
  96. compatible = "brcm,bcm2835-mbox";
  97. reg = <0x7e00b880 0x40>;
  98. interrupts = <0 1>;
  99. #mbox-cells = <0>;
  100. };
  101. gpio: gpio@7e200000 {
  102. compatible = "brcm,bcm2835-gpio";
  103. reg = <0x7e200000 0xb4>;
  104. /*
  105. * The GPIO IP block is designed for 3 banks of GPIOs.
  106. * Each bank has a GPIO interrupt for itself.
  107. * There is an overall "any bank" interrupt.
  108. * In order, these are GIC interrupts 17, 18, 19, 20.
  109. * Since the BCM2835 only has 2 banks, the 2nd bank
  110. * interrupt output appears to be mirrored onto the
  111. * 3rd bank's interrupt signal.
  112. * So, a bank0 interrupt shows up on 17, 20, and
  113. * a bank1 interrupt shows up on 18, 19, 20!
  114. */
  115. interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
  116. gpio-controller;
  117. #gpio-cells = <2>;
  118. interrupt-controller;
  119. #interrupt-cells = <2>;
  120. };
  121. uart0: serial@7e201000 {
  122. compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
  123. reg = <0x7e201000 0x1000>;
  124. interrupts = <2 25>;
  125. clocks = <&clocks BCM2835_CLOCK_UART>,
  126. <&clocks BCM2835_CLOCK_VPU>;
  127. clock-names = "uartclk", "apb_pclk";
  128. arm,primecell-periphid = <0x00241011>;
  129. };
  130. i2s: i2s@7e203000 {
  131. compatible = "brcm,bcm2835-i2s";
  132. reg = <0x7e203000 0x24>;
  133. clocks = <&clocks BCM2835_CLOCK_PCM>;
  134. dmas = <&dma 2>,
  135. <&dma 3>;
  136. dma-names = "tx", "rx";
  137. status = "disabled";
  138. };
  139. spi: spi@7e204000 {
  140. compatible = "brcm,bcm2835-spi";
  141. reg = <0x7e204000 0x1000>;
  142. interrupts = <2 22>;
  143. clocks = <&clocks BCM2835_CLOCK_VPU>;
  144. #address-cells = <1>;
  145. #size-cells = <0>;
  146. status = "disabled";
  147. };
  148. i2c0: i2c@7e205000 {
  149. compatible = "brcm,bcm2835-i2c";
  150. reg = <0x7e205000 0x1000>;
  151. interrupts = <2 21>;
  152. clocks = <&clocks BCM2835_CLOCK_VPU>;
  153. #address-cells = <1>;
  154. #size-cells = <0>;
  155. status = "disabled";
  156. };
  157. pixelvalve@7e206000 {
  158. compatible = "brcm,bcm2835-pixelvalve0";
  159. reg = <0x7e206000 0x100>;
  160. interrupts = <2 13>; /* pwa0 */
  161. };
  162. pixelvalve@7e207000 {
  163. compatible = "brcm,bcm2835-pixelvalve1";
  164. reg = <0x7e207000 0x100>;
  165. interrupts = <2 14>; /* pwa1 */
  166. };
  167. aux: aux@0x7e215000 {
  168. compatible = "brcm,bcm2835-aux";
  169. #clock-cells = <1>;
  170. reg = <0x7e215000 0x8>;
  171. clocks = <&clocks BCM2835_CLOCK_VPU>;
  172. };
  173. uart1: serial@7e215040 {
  174. compatible = "brcm,bcm2835-aux-uart";
  175. reg = <0x7e215040 0x40>;
  176. interrupts = <1 29>;
  177. clocks = <&aux BCM2835_AUX_CLOCK_UART>;
  178. status = "disabled";
  179. };
  180. spi1: spi@7e215080 {
  181. compatible = "brcm,bcm2835-aux-spi";
  182. reg = <0x7e215080 0x40>;
  183. interrupts = <1 29>;
  184. clocks = <&aux BCM2835_AUX_CLOCK_SPI1>;
  185. #address-cells = <1>;
  186. #size-cells = <0>;
  187. status = "disabled";
  188. };
  189. spi2: spi@7e2150c0 {
  190. compatible = "brcm,bcm2835-aux-spi";
  191. reg = <0x7e2150c0 0x40>;
  192. interrupts = <1 29>;
  193. clocks = <&aux BCM2835_AUX_CLOCK_SPI2>;
  194. #address-cells = <1>;
  195. #size-cells = <0>;
  196. status = "disabled";
  197. };
  198. pwm: pwm@7e20c000 {
  199. compatible = "brcm,bcm2835-pwm";
  200. reg = <0x7e20c000 0x28>;
  201. clocks = <&clocks BCM2835_CLOCK_PWM>;
  202. assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
  203. assigned-clock-rates = <10000000>;
  204. #pwm-cells = <2>;
  205. status = "disabled";
  206. };
  207. sdhci: sdhci@7e300000 {
  208. compatible = "brcm,bcm2835-sdhci";
  209. reg = <0x7e300000 0x100>;
  210. interrupts = <2 30>;
  211. clocks = <&clocks BCM2835_CLOCK_EMMC>;
  212. status = "disabled";
  213. };
  214. hvs@7e400000 {
  215. compatible = "brcm,bcm2835-hvs";
  216. reg = <0x7e400000 0x6000>;
  217. interrupts = <2 1>;
  218. };
  219. i2c1: i2c@7e804000 {
  220. compatible = "brcm,bcm2835-i2c";
  221. reg = <0x7e804000 0x1000>;
  222. interrupts = <2 21>;
  223. clocks = <&clocks BCM2835_CLOCK_VPU>;
  224. #address-cells = <1>;
  225. #size-cells = <0>;
  226. status = "disabled";
  227. };
  228. i2c2: i2c@7e805000 {
  229. compatible = "brcm,bcm2835-i2c";
  230. reg = <0x7e805000 0x1000>;
  231. interrupts = <2 21>;
  232. clocks = <&clocks BCM2835_CLOCK_VPU>;
  233. #address-cells = <1>;
  234. #size-cells = <0>;
  235. status = "disabled";
  236. };
  237. pixelvalve@7e807000 {
  238. compatible = "brcm,bcm2835-pixelvalve2";
  239. reg = <0x7e807000 0x100>;
  240. interrupts = <2 10>; /* pixelvalve */
  241. };
  242. hdmi: hdmi@7e902000 {
  243. compatible = "brcm,bcm2835-hdmi";
  244. reg = <0x7e902000 0x600>,
  245. <0x7e808000 0x100>;
  246. interrupts = <2 8>, <2 9>;
  247. ddc = <&i2c2>;
  248. clocks = <&clocks BCM2835_PLLH_PIX>,
  249. <&clocks BCM2835_CLOCK_HSM>;
  250. clock-names = "pixel", "hdmi";
  251. status = "disabled";
  252. };
  253. usb: usb@7e980000 {
  254. compatible = "brcm,bcm2835-usb";
  255. reg = <0x7e980000 0x10000>;
  256. interrupts = <1 9>;
  257. #address-cells = <1>;
  258. #size-cells = <0>;
  259. clocks = <&clk_usb>;
  260. clock-names = "otg";
  261. };
  262. v3d: v3d@7ec00000 {
  263. compatible = "brcm,bcm2835-v3d";
  264. reg = <0x7ec00000 0x1000>;
  265. interrupts = <1 10>;
  266. };
  267. vc4: gpu {
  268. compatible = "brcm,bcm2835-vc4";
  269. };
  270. };
  271. clocks {
  272. compatible = "simple-bus";
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. /* The oscillator is the root of the clock tree. */
  276. clk_osc: clock@3 {
  277. compatible = "fixed-clock";
  278. reg = <3>;
  279. #clock-cells = <0>;
  280. clock-output-names = "osc";
  281. clock-frequency = <19200000>;
  282. };
  283. clk_usb: clock@4 {
  284. compatible = "fixed-clock";
  285. reg = <4>;
  286. #clock-cells = <0>;
  287. clock-output-names = "otg";
  288. clock-frequency = <480000000>;
  289. };
  290. };
  291. };