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. vmmcsd_fixed: fixedregulator@0 {
  50. compatible = "regulator-fixed";
  51. regulator-name = "vmmcsd_fixed";
  52. regulator-min-microvolt = <3300000>;
  53. regulator-max-microvolt = <3300000>;
  54. };
  55. };
  56. &am33xx_pinmux {
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&clkout2_pin>;
  59. user_leds_s0: user_leds_s0 {
  60. pinctrl-single,pins = <
  61. 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */
  62. 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
  63. 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */
  64. 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
  65. >;
  66. };
  67. i2c0_pins: pinmux_i2c0_pins {
  68. pinctrl-single,pins = <
  69. 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  70. 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  71. >;
  72. };
  73. uart0_pins: pinmux_uart0_pins {
  74. pinctrl-single,pins = <
  75. 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
  76. 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
  77. >;
  78. };
  79. clkout2_pin: pinmux_clkout2_pin {
  80. pinctrl-single,pins = <
  81. 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
  82. >;
  83. };
  84. cpsw_default: cpsw_default {
  85. pinctrl-single,pins = <
  86. /* Slave 1 */
  87. 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */
  88. 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */
  89. 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */
  90. 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */
  91. 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */
  92. 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */
  93. 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */
  94. 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */
  95. 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */
  96. 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */
  97. 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */
  98. 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */
  99. 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */
  100. >;
  101. };
  102. cpsw_sleep: cpsw_sleep {
  103. pinctrl-single,pins = <
  104. /* Slave 1 reset value */
  105. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  106. 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  107. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  108. 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  109. 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  110. 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  111. 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  112. 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  113. 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  114. 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  115. 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  116. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  117. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  118. >;
  119. };
  120. davinci_mdio_default: davinci_mdio_default {
  121. pinctrl-single,pins = <
  122. /* MDIO */
  123. 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  124. 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  125. >;
  126. };
  127. davinci_mdio_sleep: davinci_mdio_sleep {
  128. pinctrl-single,pins = <
  129. /* MDIO reset value */
  130. 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  131. 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  132. >;
  133. };
  134. mmc1_pins: pinmux_mmc1_pins {
  135. pinctrl-single,pins = <
  136. 0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
  137. >;
  138. };
  139. emmc_pins: pinmux_emmc_pins {
  140. pinctrl-single,pins = <
  141. 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
  142. 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
  143. 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
  144. 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
  145. 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
  146. 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
  147. 0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
  148. 0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
  149. 0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
  150. 0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
  151. >;
  152. };
  153. };
  154. &uart0 {
  155. pinctrl-names = "default";
  156. pinctrl-0 = <&uart0_pins>;
  157. status = "okay";
  158. };
  159. &usb {
  160. status = "okay";
  161. control@44e10000 {
  162. status = "okay";
  163. };
  164. usb-phy@47401300 {
  165. status = "okay";
  166. };
  167. usb-phy@47401b00 {
  168. status = "okay";
  169. };
  170. usb@47401000 {
  171. status = "okay";
  172. };
  173. usb@47401800 {
  174. status = "okay";
  175. dr_mode = "host";
  176. };
  177. dma-controller@07402000 {
  178. status = "okay";
  179. };
  180. };
  181. &i2c0 {
  182. pinctrl-names = "default";
  183. pinctrl-0 = <&i2c0_pins>;
  184. status = "okay";
  185. clock-frequency = <400000>;
  186. tps: tps@24 {
  187. reg = <0x24>;
  188. };
  189. };
  190. /include/ "tps65217.dtsi"
  191. &tps {
  192. regulators {
  193. dcdc1_reg: regulator@0 {
  194. regulator-always-on;
  195. };
  196. dcdc2_reg: regulator@1 {
  197. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  198. regulator-name = "vdd_mpu";
  199. regulator-min-microvolt = <925000>;
  200. regulator-max-microvolt = <1325000>;
  201. regulator-boot-on;
  202. regulator-always-on;
  203. };
  204. dcdc3_reg: regulator@2 {
  205. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  206. regulator-name = "vdd_core";
  207. regulator-min-microvolt = <925000>;
  208. regulator-max-microvolt = <1150000>;
  209. regulator-boot-on;
  210. regulator-always-on;
  211. };
  212. ldo1_reg: regulator@3 {
  213. regulator-always-on;
  214. };
  215. ldo2_reg: regulator@4 {
  216. regulator-always-on;
  217. };
  218. ldo3_reg: regulator@5 {
  219. regulator-always-on;
  220. };
  221. ldo4_reg: regulator@6 {
  222. regulator-always-on;
  223. };
  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. };