am335x-bone-common.dtsi 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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. cpus {
  10. cpu@0 {
  11. cpu0-supply = <&dcdc2_reg>;
  12. };
  13. };
  14. memory {
  15. device_type = "memory";
  16. reg = <0x80000000 0x10000000>; /* 256 MB */
  17. };
  18. leds {
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&user_leds_s0>;
  21. compatible = "gpio-leds";
  22. led@2 {
  23. label = "beaglebone:green:heartbeat";
  24. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  25. linux,default-trigger = "heartbeat";
  26. default-state = "off";
  27. };
  28. led@3 {
  29. label = "beaglebone:green:mmc0";
  30. gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  31. linux,default-trigger = "mmc0";
  32. default-state = "off";
  33. };
  34. led@4 {
  35. label = "beaglebone:green:usr2";
  36. gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
  37. linux,default-trigger = "cpu0";
  38. default-state = "off";
  39. };
  40. led@5 {
  41. label = "beaglebone:green:usr3";
  42. gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  43. linux,default-trigger = "mmc1";
  44. default-state = "off";
  45. };
  46. };
  47. vmmcsd_fixed: fixedregulator@0 {
  48. compatible = "regulator-fixed";
  49. regulator-name = "vmmcsd_fixed";
  50. regulator-min-microvolt = <3300000>;
  51. regulator-max-microvolt = <3300000>;
  52. };
  53. };
  54. &am33xx_pinmux {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&clkout2_pin>;
  57. user_leds_s0: user_leds_s0 {
  58. pinctrl-single,pins = <
  59. 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */
  60. 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
  61. 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */
  62. 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
  63. >;
  64. };
  65. i2c0_pins: pinmux_i2c0_pins {
  66. pinctrl-single,pins = <
  67. 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
  68. 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
  69. >;
  70. };
  71. uart0_pins: pinmux_uart0_pins {
  72. pinctrl-single,pins = <
  73. 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
  74. 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
  75. >;
  76. };
  77. clkout2_pin: pinmux_clkout2_pin {
  78. pinctrl-single,pins = <
  79. 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
  80. >;
  81. };
  82. cpsw_default: cpsw_default {
  83. pinctrl-single,pins = <
  84. /* Slave 1 */
  85. 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */
  86. 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */
  87. 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */
  88. 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */
  89. 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */
  90. 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */
  91. 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */
  92. 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */
  93. 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */
  94. 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */
  95. 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */
  96. 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */
  97. 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */
  98. >;
  99. };
  100. cpsw_sleep: cpsw_sleep {
  101. pinctrl-single,pins = <
  102. /* Slave 1 reset value */
  103. 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  104. 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  105. 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  106. 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  107. 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  108. 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  109. 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  110. 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  111. 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  112. 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  113. 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  114. 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  115. 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  116. >;
  117. };
  118. davinci_mdio_default: davinci_mdio_default {
  119. pinctrl-single,pins = <
  120. /* MDIO */
  121. 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
  122. 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
  123. >;
  124. };
  125. davinci_mdio_sleep: davinci_mdio_sleep {
  126. pinctrl-single,pins = <
  127. /* MDIO reset value */
  128. 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
  129. 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
  130. >;
  131. };
  132. mmc1_pins: pinmux_mmc1_pins {
  133. pinctrl-single,pins = <
  134. 0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
  135. >;
  136. };
  137. emmc_pins: pinmux_emmc_pins {
  138. pinctrl-single,pins = <
  139. 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
  140. 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
  141. 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
  142. 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
  143. 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
  144. 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
  145. 0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
  146. 0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
  147. 0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
  148. 0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
  149. >;
  150. };
  151. };
  152. &uart0 {
  153. pinctrl-names = "default";
  154. pinctrl-0 = <&uart0_pins>;
  155. status = "okay";
  156. };
  157. &usb {
  158. status = "okay";
  159. };
  160. &usb_ctrl_mod {
  161. status = "okay";
  162. };
  163. &usb0_phy {
  164. status = "okay";
  165. };
  166. &usb1_phy {
  167. status = "okay";
  168. };
  169. &usb0 {
  170. status = "okay";
  171. dr_mode = "peripheral";
  172. };
  173. &usb1 {
  174. status = "okay";
  175. dr_mode = "host";
  176. };
  177. &cppi41dma {
  178. status = "okay";
  179. };
  180. &i2c0 {
  181. pinctrl-names = "default";
  182. pinctrl-0 = <&i2c0_pins>;
  183. status = "okay";
  184. clock-frequency = <400000>;
  185. tps: tps@24 {
  186. reg = <0x24>;
  187. };
  188. };
  189. /include/ "tps65217.dtsi"
  190. &tps {
  191. regulators {
  192. dcdc1_reg: regulator@0 {
  193. regulator-name = "vdds_dpr";
  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-name = "vio,vrtc,vdds";
  214. regulator-always-on;
  215. };
  216. ldo2_reg: regulator@4 {
  217. regulator-name = "vdd_3v3aux";
  218. regulator-always-on;
  219. };
  220. ldo3_reg: regulator@5 {
  221. regulator-name = "vdd_1v8";
  222. regulator-always-on;
  223. };
  224. ldo4_reg: regulator@6 {
  225. regulator-name = "vdd_3v3a";
  226. regulator-always-on;
  227. };
  228. };
  229. };
  230. &cpsw_emac0 {
  231. phy_id = <&davinci_mdio>, <0>;
  232. phy-mode = "mii";
  233. };
  234. &cpsw_emac1 {
  235. phy_id = <&davinci_mdio>, <1>;
  236. phy-mode = "mii";
  237. };
  238. &mac {
  239. pinctrl-names = "default", "sleep";
  240. pinctrl-0 = <&cpsw_default>;
  241. pinctrl-1 = <&cpsw_sleep>;
  242. status = "okay";
  243. };
  244. &davinci_mdio {
  245. pinctrl-names = "default", "sleep";
  246. pinctrl-0 = <&davinci_mdio_default>;
  247. pinctrl-1 = <&davinci_mdio_sleep>;
  248. status = "okay";
  249. };
  250. &mmc1 {
  251. status = "okay";
  252. bus-width = <0x4>;
  253. pinctrl-names = "default";
  254. pinctrl-0 = <&mmc1_pins>;
  255. cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  256. cd-inverted;
  257. };