am335x-bone-common.dtsi 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /*
  2. * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. / {
  9. model = "TI AM335x BeagleBone";
  10. compatible = "ti,am335x-bone", "ti,am33xx";
  11. chosen {
  12. stdout-path = &uart0;
  13. };
  14. cpus {
  15. cpu@0 {
  16. cpu0-supply = <&dcdc2_reg>;
  17. };
  18. };
  19. memory {
  20. device_type = "memory";
  21. reg = <0x80000000 0x10000000>; /* 256 MB */
  22. };
  23. am33xx_pinmux: pinmux@44e10800 {
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&clkout2_pin>;
  26. user_leds_s0: user_leds_s0 {
  27. pinctrl-single,pins = <
  28. 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */
  29. 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
  30. 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */
  31. 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
  32. >;
  33. };
  34. i2c0_pins: pinmux_i2c0_pins {
  35. pinctrl-single,pins = <
  36. 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  37. 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  38. >;
  39. };
  40. uart0_pins: pinmux_uart0_pins {
  41. pinctrl-single,pins = <
  42. 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
  43. 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
  44. >;
  45. };
  46. clkout2_pin: pinmux_clkout2_pin {
  47. pinctrl-single,pins = <
  48. 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
  49. >;
  50. };
  51. cpsw_default: cpsw_default {
  52. pinctrl-single,pins = <
  53. /* Slave 1 */
  54. 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */
  55. 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */
  56. 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */
  57. 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */
  58. 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */
  59. 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */
  60. 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */
  61. 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */
  62. 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */
  63. 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */
  64. 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */
  65. 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */
  66. 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */
  67. >;
  68. };
  69. cpsw_sleep: cpsw_sleep {
  70. pinctrl-single,pins = <
  71. /* Slave 1 reset value */
  72. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  73. 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  74. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  75. 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  76. 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  77. 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  78. 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  79. 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  80. 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  81. 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  82. 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  83. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  84. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  85. >;
  86. };
  87. davinci_mdio_default: davinci_mdio_default {
  88. pinctrl-single,pins = <
  89. /* MDIO */
  90. 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  91. 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  92. >;
  93. };
  94. davinci_mdio_sleep: davinci_mdio_sleep {
  95. pinctrl-single,pins = <
  96. /* MDIO reset value */
  97. 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  98. 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  99. >;
  100. };
  101. };
  102. ocp {
  103. uart0: serial@44e09000 {
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&uart0_pins>;
  106. status = "okay";
  107. };
  108. musb: usb@47400000 {
  109. status = "okay";
  110. control@44e10000 {
  111. status = "okay";
  112. };
  113. usb-phy@47401300 {
  114. status = "okay";
  115. };
  116. usb-phy@47401b00 {
  117. status = "okay";
  118. };
  119. usb@47401000 {
  120. status = "okay";
  121. };
  122. usb@47401800 {
  123. status = "okay";
  124. dr_mode = "host";
  125. };
  126. dma-controller@07402000 {
  127. status = "okay";
  128. };
  129. };
  130. i2c0: i2c@44e0b000 {
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&i2c0_pins>;
  133. status = "okay";
  134. clock-frequency = <400000>;
  135. tps: tps@24 {
  136. reg = <0x24>;
  137. };
  138. };
  139. };
  140. leds {
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&user_leds_s0>;
  143. compatible = "gpio-leds";
  144. led@2 {
  145. label = "beaglebone:green:heartbeat";
  146. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  147. linux,default-trigger = "heartbeat";
  148. default-state = "off";
  149. };
  150. led@3 {
  151. label = "beaglebone:green:mmc0";
  152. gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  153. linux,default-trigger = "mmc0";
  154. default-state = "off";
  155. };
  156. led@4 {
  157. label = "beaglebone:green:usr2";
  158. gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
  159. default-state = "off";
  160. };
  161. led@5 {
  162. label = "beaglebone:green:usr3";
  163. gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  164. default-state = "off";
  165. };
  166. };
  167. };
  168. /include/ "tps65217.dtsi"
  169. &tps {
  170. regulators {
  171. dcdc1_reg: regulator@0 {
  172. regulator-always-on;
  173. };
  174. dcdc2_reg: regulator@1 {
  175. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  176. regulator-name = "vdd_mpu";
  177. regulator-min-microvolt = <925000>;
  178. regulator-max-microvolt = <1325000>;
  179. regulator-boot-on;
  180. regulator-always-on;
  181. };
  182. dcdc3_reg: regulator@2 {
  183. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  184. regulator-name = "vdd_core";
  185. regulator-min-microvolt = <925000>;
  186. regulator-max-microvolt = <1150000>;
  187. regulator-boot-on;
  188. regulator-always-on;
  189. };
  190. ldo1_reg: regulator@3 {
  191. regulator-always-on;
  192. };
  193. ldo2_reg: regulator@4 {
  194. regulator-always-on;
  195. };
  196. ldo3_reg: regulator@5 {
  197. regulator-always-on;
  198. };
  199. ldo4_reg: regulator@6 {
  200. regulator-always-on;
  201. };
  202. };
  203. };
  204. &cpsw_emac0 {
  205. phy_id = <&davinci_mdio>, <0>;
  206. phy-mode = "mii";
  207. };
  208. &cpsw_emac1 {
  209. phy_id = <&davinci_mdio>, <1>;
  210. phy-mode = "mii";
  211. };
  212. &mac {
  213. pinctrl-names = "default", "sleep";
  214. pinctrl-0 = <&cpsw_default>;
  215. pinctrl-1 = <&cpsw_sleep>;
  216. };
  217. &davinci_mdio {
  218. pinctrl-names = "default", "sleep";
  219. pinctrl-0 = <&davinci_mdio_default>;
  220. pinctrl-1 = <&davinci_mdio_sleep>;
  221. };