am335x-draco.dtsi 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*
  2. * Common support for Siemens Draco SOM (AM335x based)
  3. *
  4. * Copyright (C) 2013,2014 - Stefan Roese <sr@denx.de>
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. / {
  11. chosen {
  12. stdout-path = &uart0;
  13. tick-timer = &timer2;
  14. };
  15. memory {
  16. device_type = "memory";
  17. reg = <0x80000000 0x08000000>; /* 128 MB */
  18. };
  19. ocp {
  20. uart0: serial@44e09000 {
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&uart0_pins>;
  23. status = "okay";
  24. };
  25. i2c0: i2c@44e0b000 {
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&i2c0_pins>;
  28. status = "okay";
  29. clock-frequency = <400000>;
  30. eeprom: eeprom@50 {
  31. compatible = "atmel,24c128";
  32. reg = <0x50>;
  33. pagesize = <64>;
  34. };
  35. };
  36. musb: usb@47400000 {
  37. status = "okay";
  38. control@44e10620 {
  39. status = "okay";
  40. };
  41. usb-phy@47401300 {
  42. status = "okay";
  43. };
  44. usb-phy@47401b00 {
  45. status = "okay";
  46. };
  47. usb@47401000 {
  48. status = "okay";
  49. };
  50. usb@47401800 {
  51. status = "okay";
  52. dr_mode = "host";
  53. };
  54. dma-controller@47402000 {
  55. status = "okay";
  56. };
  57. };
  58. };
  59. };
  60. &am33xx_pinmux {
  61. i2c0_pins: pinmux_i2c0_pins {
  62. pinctrl-single,pins = <
  63. 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  64. 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  65. >;
  66. };
  67. uart0_pins: pinmux_uart0_pins {
  68. pinctrl-single,pins = <
  69. 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
  70. 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
  71. >;
  72. };
  73. nandflash_pins: nandflash_pins {
  74. pinctrl-single,pins = <
  75. 0x0 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
  76. 0x4 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
  77. 0x8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
  78. 0xc (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
  79. 0x10 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
  80. 0x14 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
  81. 0x18 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
  82. 0x1c (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
  83. 0x70 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
  84. 0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_30 */
  85. 0x7c (PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
  86. 0x90 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
  87. 0x94 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
  88. 0x98 (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
  89. 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
  90. >;
  91. };
  92. };
  93. &timer3 {
  94. status = "disabled";
  95. };
  96. &uart4 {
  97. status = "disabled";
  98. };
  99. &elm {
  100. status = "okay";
  101. };
  102. &gpmc {
  103. status = "okay";
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&nandflash_pins>;
  106. ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */
  107. nand@0,0 {
  108. reg = <0 0 0>; /* CS0, offset 0 */
  109. nand-bus-width = <8>;
  110. ti,nand-ecc-opt = "bch8";
  111. gpmc,device-nand = "true";
  112. gpmc,device-width = <1>;
  113. gpmc,sync-clk-ps = <0>;
  114. gpmc,cs-on-ns = <0>;
  115. gpmc,cs-rd-off-ns = <44>;
  116. gpmc,cs-wr-off-ns = <44>;
  117. gpmc,adv-on-ns = <6>;
  118. gpmc,adv-rd-off-ns = <34>;
  119. gpmc,adv-wr-off-ns = <44>;
  120. gpmc,we-on-ns = <0>;
  121. gpmc,we-off-ns = <40>;
  122. gpmc,oe-on-ns = <0>;
  123. gpmc,oe-off-ns = <54>;
  124. gpmc,access-ns = <64>;
  125. gpmc,rd-cycle-ns = <82>;
  126. gpmc,wr-cycle-ns = <82>;
  127. gpmc,wait-on-read = "true";
  128. gpmc,wait-on-write = "true";
  129. gpmc,bus-turnaround-ns = <0>;
  130. gpmc,cycle2cycle-delay-ns = <0>;
  131. gpmc,clk-activation-ns = <0>;
  132. gpmc,wait-monitoring-ns = <0>;
  133. gpmc,wr-access-ns = <40>;
  134. gpmc,wr-data-mux-bus-ns = <0>;
  135. #address-cells = <1>;
  136. #size-cells = <1>;
  137. elm_id = <&elm>;
  138. };
  139. };
  140. /* disable the RTC node as its not accessible on the draco/dxr2 board */
  141. &rtc {
  142. status = "disabled";
  143. ti,hwmods = "disabled";
  144. };