am335x-bone-common.dtsi 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. leds {
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&user_leds_s0>;
  23. compatible = "gpio-leds";
  24. led@2 {
  25. label = "beaglebone:green:heartbeat";
  26. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  27. linux,default-trigger = "heartbeat";
  28. default-state = "off";
  29. };
  30. led@3 {
  31. label = "beaglebone:green:mmc0";
  32. gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  33. linux,default-trigger = "mmc0";
  34. default-state = "off";
  35. };
  36. led@4 {
  37. label = "beaglebone:green:usr2";
  38. gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
  39. linux,default-trigger = "cpu0";
  40. default-state = "off";
  41. };
  42. led@5 {
  43. label = "beaglebone:green:usr3";
  44. gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  45. linux,default-trigger = "mmc1";
  46. default-state = "off";
  47. };
  48. };
  49. };
  50. &am33xx_pinmux {
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&clkout2_pin>;
  53. user_leds_s0: user_leds_s0 {
  54. pinctrl-single,pins = <
  55. 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */
  56. 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
  57. 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */
  58. 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
  59. >;
  60. };
  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. clkout2_pin: pinmux_clkout2_pin {
  74. pinctrl-single,pins = <
  75. 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
  76. >;
  77. };
  78. cpsw_default: cpsw_default {
  79. pinctrl-single,pins = <
  80. /* Slave 1 */
  81. 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */
  82. 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */
  83. 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */
  84. 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */
  85. 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */
  86. 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */
  87. 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */
  88. 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */
  89. 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */
  90. 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */
  91. 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */
  92. 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */
  93. 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */
  94. >;
  95. };
  96. cpsw_sleep: cpsw_sleep {
  97. pinctrl-single,pins = <
  98. /* Slave 1 reset value */
  99. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  100. 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  101. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  102. 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  103. 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  104. 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  105. 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  106. 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  107. 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  108. 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  109. 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  110. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  111. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  112. >;
  113. };
  114. davinci_mdio_default: davinci_mdio_default {
  115. pinctrl-single,pins = <
  116. /* MDIO */
  117. 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  118. 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  119. >;
  120. };
  121. davinci_mdio_sleep: davinci_mdio_sleep {
  122. pinctrl-single,pins = <
  123. /* MDIO reset value */
  124. 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  125. 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  126. >;
  127. };
  128. mmc1_pins: pinmux_mmc1_pins {
  129. pinctrl-single,pins = <
  130. 0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
  131. >;
  132. };
  133. emmc_pins: pinmux_emmc_pins {
  134. pinctrl-single,pins = <
  135. 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
  136. 0x84 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_csn2.mmc1_cmd */
  137. 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
  138. 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
  139. 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
  140. 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
  141. 0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
  142. 0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
  143. 0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
  144. 0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
  145. >;
  146. };
  147. };
  148. &uart0 {
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&uart0_pins>;
  151. status = "okay";
  152. };
  153. &usb {
  154. status = "okay";
  155. control@44e10000 {
  156. status = "okay";
  157. };
  158. usb-phy@47401300 {
  159. status = "okay";
  160. };
  161. usb-phy@47401b00 {
  162. status = "okay";
  163. };
  164. usb@47401000 {
  165. status = "okay";
  166. };
  167. usb@47401800 {
  168. status = "okay";
  169. dr_mode = "host";
  170. };
  171. dma-controller@07402000 {
  172. status = "okay";
  173. };
  174. };
  175. &i2c0 {
  176. pinctrl-names = "default";
  177. pinctrl-0 = <&i2c0_pins>;
  178. status = "okay";
  179. clock-frequency = <400000>;
  180. tps: tps@24 {
  181. reg = <0x24>;
  182. };
  183. };
  184. /include/ "tps65217.dtsi"
  185. &tps {
  186. regulators {
  187. dcdc1_reg: regulator@0 {
  188. regulator-always-on;
  189. };
  190. dcdc2_reg: regulator@1 {
  191. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  192. regulator-name = "vdd_mpu";
  193. regulator-min-microvolt = <925000>;
  194. regulator-max-microvolt = <1325000>;
  195. regulator-boot-on;
  196. regulator-always-on;
  197. };
  198. dcdc3_reg: regulator@2 {
  199. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  200. regulator-name = "vdd_core";
  201. regulator-min-microvolt = <925000>;
  202. regulator-max-microvolt = <1150000>;
  203. regulator-boot-on;
  204. regulator-always-on;
  205. };
  206. ldo1_reg: regulator@3 {
  207. regulator-always-on;
  208. };
  209. ldo2_reg: regulator@4 {
  210. regulator-always-on;
  211. };
  212. ldo3_reg: regulator@5 {
  213. regulator-always-on;
  214. };
  215. ldo4_reg: regulator@6 {
  216. regulator-always-on;
  217. };
  218. };
  219. vmmcsd_fixed: fixedregulator@0 {
  220. compatible = "regulator-fixed";
  221. regulator-name = "vmmcsd_fixed";
  222. regulator-min-microvolt = <3300000>;
  223. regulator-max-microvolt = <3300000>;
  224. };
  225. };
  226. &cpsw_emac0 {
  227. phy_id = <&davinci_mdio>, <0>;
  228. phy-mode = "mii";
  229. };
  230. &cpsw_emac1 {
  231. phy_id = <&davinci_mdio>, <1>;
  232. phy-mode = "mii";
  233. };
  234. &mac {
  235. pinctrl-names = "default", "sleep";
  236. pinctrl-0 = <&cpsw_default>;
  237. pinctrl-1 = <&cpsw_sleep>;
  238. };
  239. &davinci_mdio {
  240. pinctrl-names = "default", "sleep";
  241. pinctrl-0 = <&davinci_mdio_default>;
  242. pinctrl-1 = <&davinci_mdio_sleep>;
  243. };
  244. &mmc1 {
  245. status = "okay";
  246. bus-width = <0x4>;
  247. pinctrl-names = "default";
  248. pinctrl-0 = <&mmc1_pins>;
  249. cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  250. cd-inverted;
  251. };