Advertisement
Guest User

Untitled

a guest
May 3rd, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 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. /include/ "am335x-bone-common.dtsi"
  13.  
  14. &am33xx_pinmux {
  15. rstctl_pins: pinmux_rstctl_pins {
  16. pinctrl-single,pins = <
  17. /* eMMC_RSTn */
  18. 0x50 0x17 /* gpmc_a4.gpio1_20, OUTPUT | MODE7 | PULLUP */
  19. >;
  20. };
  21.  
  22. pruss_pins: pruss_pins {
  23. pinctrl-single,pins = <
  24.  
  25. /* Page 754 of am335x TRM */
  26.  
  27. /* GPIOs for LEDs */
  28. 0x00 0x07 /* conf_gpmc_ad0.gpio1[0], OUTPUT | MODE7 */
  29. 0x04 0x07 /* conf_gpmc_ad1.gpio1[1], OUTPUT | MODE7 */
  30. 0x10 0x07 /* conf_gpmc_ad4.gpio1[4], OUTPUT | MODE7 */
  31. 0x7C 0x07 /* conf_gpmc_csn0.gpio1[29], OUTPUT | MODE7 */
  32. 0xE0 0x07 /* conf_lcd_vsync.gpio2[22], OUTPUT | MODE7 */
  33. 0xE4 0x07 /* conf_lcd_hsync.gpio2[23], OUTPUT | MODE7 */
  34. 0xE8 0x07 /* conf_lcd_pclk.gpio2[24], OUTPUT | MODE7 */
  35. 0xEC 0x07 /* conf_lcd_ac_bias_en.gpio2[25], OUTPUT | MODE7 */
  36.  
  37. /* GPIOs for low-speed a/d */
  38. 0xB8 0x07 /* conf_lcd_data6.gpio2[12], OUTPUT | MODE7 */
  39. 0xBC 0x07 /* conf_lcd_data7.gpio2[13], OUTPUT | MODE7 */
  40.  
  41. /* GPIOs for gain SPI */
  42. 0x2C 0x07 /* conf_gpmc_ad11.gpio0[27], OUTPUT | MODE7 */
  43. 0x8C 0x37 /* conf_gpmc_clk.gpio2[1], INPUT | MODE7 */
  44. 0x84 0x07 /* conf_gpmc_csn2.gpio1[31], OUTPUT | MODE7 */
  45. 0x80 0x07 /* conf_gpmc_csn1.gpio1[30], OUTPUT | MODE7 */
  46. 0x14 0x07 /* conf_gpmc_ad5.gpio1[5], OUTPUT | MODE7 */
  47.  
  48. /* PRU Pins */
  49. 0x30 0x16 /* gpmc_ad12.pr1_pru0_pru_r30[14], OUTPUT_PULLUP | MODE6 */
  50. 0x34 0x16 /* gpmc_ad13.pr1_pru0_pru_r30[15], OUTPUT_PULLUP | MODE6 */
  51. 0x38 0x36 /* gpmc_ad14.pr1_pru0_pru_r31[14], INPUT_PULLUP | MODE6 */
  52. 0x3C 0x36 /* gpmc_ad15.pr1_pru0_pru_r31[15], INPUT_PULLUP | MODE6 */
  53.  
  54. 0x190 0x15 /* conf_mcasp0_aclkx.pr1_pru0_pru_r30[0], OUTPUT_PULLUP | MODE5 */
  55. 0x194 0x15 /* conf_mcasp0_fsx.pr1_pru0_pru_r30[1], OUTPUT_PULLUP | MODE5 */
  56. 0x198 0x15 /* conf_mcasp0_axr0.pr1_pru0_pru_r30[2], OUTPUT_PULLUP | MODE5 */
  57. 0x19C 0x35 /* conf_mcasp0_ahclkr.pr1_pru0_pru_r31[3], OUTPUT_PULLUP | MODE5 */
  58. 0x1A4 0x15 /* conf_mcasp0_fsr.pr1_pru0_pru_r30[5], OUTPUT_PULLUP | MODE5 */
  59. 0x1AC 0x15 /* conf_mcasp0_ahclkx.pr1_pru0_pru_r30[7], OUTPUT_PULLUP | MODE5 */
  60.  
  61.  
  62.  
  63. >;
  64. };
  65.  
  66. spi0_pins_s0: spi0_pins_s0 {
  67. pinctrl-single,pins = <
  68. 0x150 0x30 /* spi0_sclk, INPUT_PULLUP | MODE0 */
  69. 0x154 0x30 /* spi0_d0, INPUT_PULLUP | MODE0 */
  70. 0x158 0x10 /* spi0_d1, OUTPUT_PULLUP | MODE0 */
  71. 0x15c 0x10 /* spi0_cs0, OUTPUT_PULLUP | MODE0 */
  72. 0x160 0x10 /* spi0_cs1, OUTPUT_PULLUP | MODE0 */
  73. >;
  74. };
  75.  
  76. spi1_pins_s0: spi1_pins_s0 {
  77. pinctrl-single,pins = <
  78. 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 */
  79. 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */
  80. 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
  81. 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
  82. >;
  83. };
  84.  
  85. };
  86.  
  87. &ldo3_reg {
  88. regulator-min-microvolt = <1800000>;
  89. regulator-max-microvolt = <1800000>;
  90. regulator-always-on;
  91. };
  92.  
  93. &rstctl {
  94. status = "okay";
  95. compatible = "gpio-rctrl";
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&rstctl_pins>;
  98.  
  99. #reset-cells = <2>;
  100.  
  101. gpios = <&gpio2 20 0x00>;
  102. gpio-names = "eMMC_RSTn";
  103. };
  104.  
  105. &mmc1 {
  106. vmmc-supply = <&vmmcsd_fixed>;
  107. };
  108.  
  109. &mmc2 {
  110. vmmc-supply = <&vmmcsd_fixed>;
  111. bus-width = <8>;
  112. ti,non-removable;
  113. status = "okay";
  114.  
  115. reset = <&rstctl 0 0>;
  116. reset-names = "eMMC_RSTn-CONSUMER";
  117. };
  118.  
  119.  
  120. &cpu {
  121. /*
  122. * To consider voltage drop between PMIC and SoC,
  123. * tolerance value is reduced to 2% from 4% and
  124. * voltage value is increased as a precaution.
  125. */
  126. operating-points = <
  127. /* kHz uV */
  128. 1000000 1350000
  129. 800000 1300000
  130. 600000 1112000
  131. 300000 969000
  132. >;
  133. };
  134.  
  135. &spi0 {
  136. status = "okay";
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&spi0_pins_s0>;
  139.  
  140. spidev0: spidev@0 {
  141. compatible = "linux,spidev";
  142. reg = <0>;
  143. spi-max-frequency = <48000000>;
  144. };
  145.  
  146. };
  147.  
  148.  
  149. &spi1 {
  150. status = "disabled";
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&spi1_pins_s0>;
  153.  
  154. spidev1: spidev@0 {
  155. compatible = "linux,spidev";
  156. reg = <0>;
  157. spi-max-frequency = <48000000>;
  158. };
  159. };
  160.  
  161. &pruss {
  162.  
  163. status = "okay";
  164. pinctrl-names = "default";
  165. pinctrl-0 = <&pruss_pins>;
  166.  
  167. /*
  168. sage_sampler: sage_sampler@0 {
  169. compatible = "sd,sage_sampler";
  170. };
  171. */
  172.  
  173. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement