am335x-bone-common.dtsi 6.2 KB

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