Advertisement
Guest User

DTS

a guest
Feb 11th, 2016
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  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. /dts-v1/;
  9.  
  10. /include/ "am33xx.dtsi"
  11.  
  12. / {
  13. model = "TI AM335x uSomIQ";
  14. compatible = "ti,am335x-usomiq", "ti,am33xx";
  15.  
  16. cpus {
  17. cpu@0 {
  18. cpu0-supply = <&dcdc2_reg>;
  19. };
  20. };
  21.  
  22. memory {
  23. device_type = "memory";
  24. reg = <0x80000000 0x10000000>; /* 256 MB */
  25. };
  26.  
  27. am33xx_pinmux: pinmux@44e10800 {
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&userled_pins>;
  30.  
  31. userled_pins: pinmux_userled_pins {
  32. pinctrl-single,pins = <
  33. 0x16c 0x7 /* gpmc_a5.gpio1_21, OUTPUT | MODE7 */
  34. 0x168 0x17 /* gpmc_a6.gpio1_22, OUTPUT_PULLUP | MODE7 */
  35. //0x1b4 0x7 /* gpmc_a7.gpio0_19, OUTPUT | MODE7 */
  36. 0x1b0 0x17 /* gpmc_a8.gpio0_18, OUTPUT_PULLUP | MODE7 */
  37. //0xa4 0x27 /* lcd_data1.gpio2_7, OUTPUT | MODE7 */
  38. >;
  39. };
  40. i2c0_pins: pinmux_i2c0_pins {
  41. pinctrl-single,pins = <
  42. 0x188 0x70 /* i2c0_sda, SLEWCTRL_SLOW | INPUT_PULLUP | MODE0 */
  43. 0x18c 0x70 /* i2c0_scl, SLEWCTRL_SLOW | INPUT_PULLUP | MODE0 */
  44. >;
  45. };
  46. i2c2_pins: pinmux_i2c2_pins {
  47. pinctrl-single,pins = <
  48. 0x178 0x73 /* uart1_ctsn.i2c2_sda, SLEWCTRL_SLOW | INPUT_PULLUP | MODE3 */
  49. 0x17c 0x73 /* uart1_rtsn.i2c2_scl, SLEWCTRL_SLOW | INPUT_PULLUP | MODE3 */
  50. >;
  51. };
  52. mmc1_pins: pinmux_mmc1_pins {
  53. pinctrl-single,pins = <
  54. 0x160 0x2f /* GPIO0_6 (PIN_INPUT | MUX_MODE7) */
  55. >;
  56. };
  57. spi0_pins_s0: spi0_pins_s0 {
  58. pinctrl-single,pins = <
  59. 0x150 0x30 /* spi0_sclk.spi0_sclk, INPUT_PULLUP | MODE0 */
  60. 0x154 0x30 /* spi0_d0.spi0_d0, INPUT_PULLUP | MODE0 */
  61. 0x158 0x10 /* spi0_d1.spi0_d1, OUTPUT_PULLUP | MODE0 */
  62. 0x15c 0x10 /* spi0_cs0.spi0_cs0, OUTPUT_PULLUP | MODE0 */
  63. >;
  64. };
  65. spi1_pins_s0: spi1_pins_s0 {
  66. pinctrl-single,pins = <
  67. 0x190 0x33 /* spi1_sclk.spi1_sclk, INPUT_PULLUP | MODE0 */
  68. 0x194 0x33 /* spi1_d0.spi0_d1, INPUT_PULLUP | MODE0 */
  69. 0x198 0x13 /* spi1_d1.spi1_d1, OUTPUT_PULLUP | MODE0 */
  70. //0x19c 0x13 /* spi1_cs0.spi1_cs0, OUTPUT_PULLUP | MODE0 */
  71. 0xEC 0x17 /* lcd_dat_en.gpio2_25, INTPUT | MODE7 */
  72. >;
  73. };
  74. };
  75.  
  76. xtal_max: xtal20@20M {
  77. #clock-cells = <0>;
  78. compatible = "fixed-clock";
  79. clock-frequency = <3686400>;
  80. };
  81.  
  82. ocp: ocp {
  83.  
  84. uart1: serial@44e09000 {
  85. status = "okay";
  86. };
  87.  
  88. gpio-leds {
  89. compatible = "gpio-leds";
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&userled_pins>;
  92.  
  93. led0 {
  94. label = "beaglebone:green:usr0";
  95. gpios = <&gpio2 9 0>;
  96. linux,default-trigger = "heartbeat";
  97. default-state = "off";
  98. };
  99.  
  100. led1 {
  101. label = "beaglebone:green:usr1";
  102. gpios = <&gpio2 8 0>;
  103. linux,default-trigger = "heartbeat";
  104. default-state = "off";
  105. };
  106. };
  107.  
  108.  
  109. rtc@44e3e000 {
  110. ti,system-power-controller;
  111. };
  112. };
  113. vmmcsd_fixed: fixedregulator@0 {
  114. compatible = "regulator-fixed";
  115. regulator-name = "vmmcsd_fixed";
  116. regulator-min-microvolt = <3300000>;
  117. regulator-max-microvolt = <3300000>;
  118. };
  119.  
  120. };
  121.  
  122. &i2c0 {
  123. status = "okay";
  124. clock-frequency = <400000>;
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&i2c0_pins>;
  127.  
  128. tps: tps@24 {
  129. reg = <0x24>;
  130. };
  131.  
  132. baseboard_eeprom: baseboard_eeprom@50 {
  133. compatible = "at,24c256";
  134. reg = <0x50>;
  135. };
  136. };
  137.  
  138. &spi1 {
  139. status = "okay";
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&spi1_pins_s0>;
  142.  
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. cs-gpios = <&gpio3 6 0>;
  146. maxim14830@0 {
  147. clocks = <&xtal_max>;
  148. clock-names = "xtal";
  149. compatible = "max, max310x, max14830";
  150. //clock-frequency = <3686400>;
  151. reg=<0>;
  152. //cs-gpios = <&gpio3 6 0>;
  153. interrupt-parent = <&gpio3>;
  154. interrupts = <25 0>;
  155. spi-max-frequency = <16000000>;
  156. };
  157. };
  158.  
  159. /include/ "tps65217.dtsi"
  160.  
  161. &tps {
  162. ti,pmic-shutdown-controller;
  163.  
  164. interrupt-parent = <&intc>;
  165. interrupts = <7>; /* NNMI */
  166.  
  167. regulators {
  168. dcdc1_reg: regulator@0 {
  169. regulator-always-on;
  170. };
  171.  
  172. dcdc2_reg: regulator@1 {
  173. /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
  174. regulator-name = "vdd_mpu";
  175. regulator-min-microvolt = <925000>;
  176. regulator-max-microvolt = <1325000>;
  177. regulator-boot-on;
  178. regulator-always-on;
  179. };
  180.  
  181. dcdc3_reg: regulator@2 {
  182. /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
  183. regulator-name = "vdd_core";
  184. regulator-min-microvolt = <925000>;
  185. regulator-max-microvolt = <1150000>;
  186. regulator-boot-on;
  187. regulator-always-on;
  188. };
  189.  
  190. ldo1_reg: regulator@3 {
  191. regulator-always-on;
  192. };
  193.  
  194. ldo2_reg: regulator@4 {
  195. regulator-always-on;
  196. };
  197.  
  198. ldo3_reg: regulator@5 {
  199. regulator-min-microvolt = <1800000>;
  200. regulator-max-microvolt = <3300000>;
  201. regulator-always-on;
  202. };
  203.  
  204. ldo4_reg: regulator@6 {
  205. regulator-always-on;
  206. };
  207. };
  208.  
  209. };
  210.  
  211. &cpsw_emac0 {
  212. phy_id = <&davinci_mdio>, <0>;
  213. };
  214.  
  215. &cpsw_emac1 {
  216. phy_id = <&davinci_mdio>, <1>;
  217. };
  218.  
  219. &mmc1 {
  220. pinctrl-names = "default";
  221. pinctrl-0 = <&mmc1_pins>;
  222. bus-width = <0x4>;
  223. cd-gpios = <&gpio4 19 0>; /* gpio1 is misnamed, 0 == GPIO_ACTIVE_HIGH */
  224. cd-inverted;
  225. status = "okay";
  226. vmmc-supply = <&ldo3_reg>;
  227. ti,vcc-aux-disable-is-sleep;
  228. };
  229.  
  230. &edma {
  231. ti,edma-xbar-event-map = <32 12>, /* gpevt2 -> 12 */
  232. <30 20>; /* xdma_event_intr2 -> 20 */
  233. };
  234.  
  235. &sham {
  236. status = "okay";
  237. };
  238.  
  239. &aes {
  240. status = "okay";
  241. };
  242.  
  243. &usb_otg_hs {
  244. interface_type = <1>;
  245. power = <250>;
  246. status = "okay";
  247. };
  248.  
  249. &mmc1 {
  250. vmmc-supply = <&vmmcsd_fixed>;
  251. };
  252.  
  253. &cpu {
  254. /*
  255. * To consider voltage drop between PMIC and SoC,
  256. * tolerance value is reduced to 2% from 4% and
  257. * voltage value is increased as a precaution.
  258. */
  259. operating-points = <
  260. /* kHz uV */
  261. 1000000 1350000
  262. 800000 1300000
  263. 600000 1112000
  264. 300000 969000
  265. >;
  266. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement