am335x-bone-common.dtsi 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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. };
  99. ocp {
  100. uart0: serial@44e09000 {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&uart0_pins>;
  103. status = "okay";
  104. };
  105. musb: usb@47400000 {
  106. status = "okay";
  107. control@44e10000 {
  108. status = "okay";
  109. };
  110. usb-phy@47401300 {
  111. status = "okay";
  112. };
  113. usb-phy@47401b00 {
  114. status = "okay";
  115. };
  116. usb@47401000 {
  117. status = "okay";
  118. };
  119. usb@47401800 {
  120. status = "okay";
  121. dr_mode = "host";
  122. };
  123. dma-controller@07402000 {
  124. status = "okay";
  125. };
  126. };
  127. i2c0: i2c@44e0b000 {
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&i2c0_pins>;
  130. status = "okay";
  131. clock-frequency = <400000>;
  132. tps: tps@24 {
  133. reg = <0x24>;
  134. };
  135. };
  136. };
  137. leds {
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&user_leds_s0>;
  140. compatible = "gpio-leds";
  141. led@2 {
  142. label = "beaglebone:green:heartbeat";
  143. gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
  144. linux,default-trigger = "heartbeat";
  145. default-state = "off";
  146. };
  147. led@3 {
  148. label = "beaglebone:green:mmc0";
  149. gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  150. linux,default-trigger = "mmc0";
  151. default-state = "off";
  152. };
  153. led@4 {
  154. label = "beaglebone:green:usr2";
  155. gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
  156. default-state = "off";
  157. };
  158. led@5 {
  159. label = "beaglebone:green:usr3";
  160. gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  161. default-state = "off";
  162. };
  163. };
  164. };
  165. /include/ "tps65217.dtsi"
  166. &tps {
  167. regulators {
  168. dcdc1_reg: regulator@0 {
  169. regulator-always-on;
  170. };
  171. dcdc2_reg: regulator@1 {
  172. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  173. regulator-name = "vdd_mpu";
  174. regulator-min-microvolt = <925000>;
  175. regulator-max-microvolt = <1325000>;
  176. regulator-boot-on;
  177. regulator-always-on;
  178. };
  179. dcdc3_reg: regulator@2 {
  180. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  181. regulator-name = "vdd_core";
  182. regulator-min-microvolt = <925000>;
  183. regulator-max-microvolt = <1150000>;
  184. regulator-boot-on;
  185. regulator-always-on;
  186. };
  187. ldo1_reg: regulator@3 {
  188. regulator-always-on;
  189. };
  190. ldo2_reg: regulator@4 {
  191. regulator-always-on;
  192. };
  193. ldo3_reg: regulator@5 {
  194. regulator-always-on;
  195. };
  196. ldo4_reg: regulator@6 {
  197. regulator-always-on;
  198. };
  199. };
  200. };
  201. &cpsw_emac0 {
  202. phy_id = <&davinci_mdio>, <0>;
  203. phy-mode = "mii";
  204. };
  205. &cpsw_emac1 {
  206. phy_id = <&davinci_mdio>, <1>;
  207. phy-mode = "mii";
  208. };
  209. &mac {
  210. pinctrl-names = "default", "sleep";
  211. pinctrl-0 = <&cpsw_default>;
  212. pinctrl-1 = <&cpsw_sleep>;
  213. };
  214. &davinci_mdio {
  215. pinctrl-names = "default", "sleep";
  216. pinctrl-0 = <&davinci_mdio_default>;
  217. pinctrl-1 = <&davinci_mdio_sleep>;
  218. };