omap3-n900.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. /*
  2. * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
  3. * Copyright 2013 Aaro Koskinen <aaro.koskinen@iki.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 (or later) as
  7. * published by the Free Software Foundation.
  8. */
  9. /dts-v1/;
  10. #include "omap34xx.dtsi"
  11. / {
  12. model = "Nokia N900";
  13. compatible = "nokia,omap3-n900", "ti,omap3";
  14. cpus {
  15. cpu@0 {
  16. cpu0-supply = <&vcc>;
  17. };
  18. };
  19. memory {
  20. device_type = "memory";
  21. reg = <0x80000000 0x10000000>; /* 256 MB */
  22. };
  23. gpio_keys {
  24. compatible = "gpio-keys";
  25. camera_lens_cover {
  26. label = "Camera Lens Cover";
  27. gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
  28. linux,input-type = <5>; /* EV_SW */
  29. linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
  30. gpio-key,wakeup;
  31. };
  32. camera_focus {
  33. label = "Camera Focus";
  34. gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
  35. linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
  36. gpio-key,wakeup;
  37. };
  38. camera_capture {
  39. label = "Camera Capture";
  40. gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
  41. linux,code = <0xd4>; /* KEY_CAMERA */
  42. gpio-key,wakeup;
  43. };
  44. lock_button {
  45. label = "Lock Button";
  46. gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
  47. linux,code = <0x98>; /* KEY_SCREENLOCK */
  48. gpio-key,wakeup;
  49. };
  50. keypad_slide {
  51. label = "Keypad Slide";
  52. gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
  53. linux,input-type = <5>; /* EV_SW */
  54. linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
  55. gpio-key,wakeup;
  56. };
  57. proximity_sensor {
  58. label = "Proximity Sensor";
  59. gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
  60. linux,input-type = <5>; /* EV_SW */
  61. linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
  62. };
  63. };
  64. };
  65. &omap3_pmx_core {
  66. pinctrl-names = "default";
  67. uart2_pins: pinmux_uart2_pins {
  68. pinctrl-single,pins = <
  69. 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */
  70. 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
  71. >;
  72. };
  73. uart3_pins: pinmux_uart3_pins {
  74. pinctrl-single,pins = <
  75. 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */
  76. 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */
  77. >;
  78. };
  79. i2c1_pins: pinmux_i2c1_pins {
  80. pinctrl-single,pins = <
  81. 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  82. 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  83. >;
  84. };
  85. i2c2_pins: pinmux_i2c2_pins {
  86. pinctrl-single,pins = <
  87. 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  88. 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  89. >;
  90. };
  91. i2c3_pins: pinmux_i2c3_pins {
  92. pinctrl-single,pins = <
  93. 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  94. 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  95. >;
  96. };
  97. mmc1_pins: pinmux_mmc1_pins {
  98. pinctrl-single,pins = <
  99. 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
  100. 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */
  101. 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */
  102. 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
  103. 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
  104. 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
  105. >;
  106. };
  107. };
  108. &i2c1 {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&i2c1_pins>;
  111. clock-frequency = <2200000>;
  112. twl: twl@48 {
  113. reg = <0x48>;
  114. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  115. interrupt-parent = <&intc>;
  116. };
  117. };
  118. #include "twl4030.dtsi"
  119. #include "twl4030_omap3.dtsi"
  120. &vaux1 {
  121. regulator-name = "V28";
  122. regulator-min-microvolt = <2800000>;
  123. regulator-max-microvolt = <2800000>;
  124. regulator-always-on; /* due battery cover sensor */
  125. };
  126. &vaux2 {
  127. regulator-name = "VCSI";
  128. regulator-min-microvolt = <1800000>;
  129. regulator-max-microvolt = <1800000>;
  130. };
  131. &vaux3 {
  132. regulator-name = "VMMC2_30";
  133. regulator-min-microvolt = <2800000>;
  134. regulator-max-microvolt = <3000000>;
  135. };
  136. &vaux4 {
  137. regulator-name = "VCAM_ANA_28";
  138. regulator-min-microvolt = <2800000>;
  139. regulator-max-microvolt = <2800000>;
  140. };
  141. &vmmc1 {
  142. regulator-name = "VMMC1";
  143. regulator-min-microvolt = <1850000>;
  144. regulator-max-microvolt = <3150000>;
  145. };
  146. &vmmc2 {
  147. regulator-name = "V28_A";
  148. regulator-min-microvolt = <2800000>;
  149. regulator-max-microvolt = <3000000>;
  150. regulator-always-on; /* due VIO leak to AIC34 VDDs */
  151. };
  152. &vpll1 {
  153. regulator-name = "VPLL";
  154. regulator-min-microvolt = <1800000>;
  155. regulator-max-microvolt = <1800000>;
  156. regulator-always-on;
  157. };
  158. &vpll2 {
  159. regulator-name = "VSDI_CSI";
  160. regulator-min-microvolt = <1800000>;
  161. regulator-max-microvolt = <1800000>;
  162. regulator-always-on;
  163. };
  164. &vsim {
  165. regulator-name = "VMMC2_IO_18";
  166. regulator-min-microvolt = <1800000>;
  167. regulator-max-microvolt = <1800000>;
  168. };
  169. &vio {
  170. regulator-name = "VIO";
  171. regulator-min-microvolt = <1800000>;
  172. regulator-max-microvolt = <1800000>;
  173. };
  174. &vintana1 {
  175. regulator-name = "VINTANA1";
  176. /* fixed to 1500000 */
  177. regulator-always-on;
  178. };
  179. &vintana2 {
  180. regulator-name = "VINTANA2";
  181. regulator-min-microvolt = <2750000>;
  182. regulator-max-microvolt = <2750000>;
  183. regulator-always-on;
  184. };
  185. &vintdig {
  186. regulator-name = "VINTDIG";
  187. /* fixed to 1500000 */
  188. regulator-always-on;
  189. };
  190. &twl {
  191. twl_audio: audio {
  192. compatible = "ti,twl4030-audio";
  193. ti,enable-vibra = <1>;
  194. };
  195. };
  196. &twl_gpio {
  197. ti,pullups = <0x0>;
  198. ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
  199. };
  200. &i2c2 {
  201. pinctrl-names = "default";
  202. pinctrl-0 = <&i2c2_pins>;
  203. clock-frequency = <100000>;
  204. bq27200: bq27200@55 {
  205. compatible = "ti,bq27200";
  206. reg = <0x55>;
  207. };
  208. };
  209. &i2c3 {
  210. pinctrl-names = "default";
  211. pinctrl-0 = <&i2c3_pins>;
  212. clock-frequency = <400000>;
  213. };
  214. &mmc1 {
  215. pinctrl-names = "default";
  216. pinctrl-0 = <&mmc1_pins>;
  217. vmmc-supply = <&vmmc1>;
  218. bus-width = <4>;
  219. cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
  220. };
  221. &mmc2 {
  222. status = "disabled";
  223. };
  224. &mmc3 {
  225. status = "disabled";
  226. };
  227. &mcspi1 {
  228. /*
  229. * For some reason, touchscreen is necessary for screen to work at
  230. * all on real hw. It works well without it on emulator.
  231. *
  232. * Also... order in the device tree actually matters here.
  233. */
  234. tsc2005@0 {
  235. compatible = "tsc2005";
  236. spi-max-frequency = <6000000>;
  237. reg = <0>;
  238. };
  239. mipid@2 {
  240. compatible = "acx565akm";
  241. spi-max-frequency = <6000000>;
  242. reg = <2>;
  243. };
  244. };
  245. &usb_otg_hs {
  246. interface-type = <0>;
  247. usb-phy = <&usb2_phy>;
  248. phys = <&usb2_phy>;
  249. phy-names = "usb2-phy";
  250. mode = <2>;
  251. power = <50>;
  252. };
  253. &uart1 {
  254. status = "disabled";
  255. };
  256. &uart2 {
  257. pinctrl-names = "default";
  258. pinctrl-0 = <&uart2_pins>;
  259. };
  260. &uart3 {
  261. pinctrl-names = "default";
  262. pinctrl-0 = <&uart3_pins>;
  263. };