omap3-n900.dts 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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. display_pins: pinmux_display_pins {
  108. pinctrl-single,pins = <
  109. 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */
  110. >;
  111. };
  112. };
  113. &i2c1 {
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&i2c1_pins>;
  116. clock-frequency = <2200000>;
  117. twl: twl@48 {
  118. reg = <0x48>;
  119. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  120. interrupt-parent = <&intc>;
  121. };
  122. };
  123. #include "twl4030.dtsi"
  124. #include "twl4030_omap3.dtsi"
  125. &vaux1 {
  126. regulator-name = "V28";
  127. regulator-min-microvolt = <2800000>;
  128. regulator-max-microvolt = <2800000>;
  129. regulator-always-on; /* due battery cover sensor */
  130. };
  131. &vaux2 {
  132. regulator-name = "VCSI";
  133. regulator-min-microvolt = <1800000>;
  134. regulator-max-microvolt = <1800000>;
  135. };
  136. &vaux3 {
  137. regulator-name = "VMMC2_30";
  138. regulator-min-microvolt = <2800000>;
  139. regulator-max-microvolt = <3000000>;
  140. };
  141. &vaux4 {
  142. regulator-name = "VCAM_ANA_28";
  143. regulator-min-microvolt = <2800000>;
  144. regulator-max-microvolt = <2800000>;
  145. };
  146. &vmmc1 {
  147. regulator-name = "VMMC1";
  148. regulator-min-microvolt = <1850000>;
  149. regulator-max-microvolt = <3150000>;
  150. };
  151. &vmmc2 {
  152. regulator-name = "V28_A";
  153. regulator-min-microvolt = <2800000>;
  154. regulator-max-microvolt = <3000000>;
  155. regulator-always-on; /* due VIO leak to AIC34 VDDs */
  156. };
  157. &vpll1 {
  158. regulator-name = "VPLL";
  159. regulator-min-microvolt = <1800000>;
  160. regulator-max-microvolt = <1800000>;
  161. regulator-always-on;
  162. };
  163. &vpll2 {
  164. regulator-name = "VSDI_CSI";
  165. regulator-min-microvolt = <1800000>;
  166. regulator-max-microvolt = <1800000>;
  167. regulator-always-on;
  168. };
  169. &vsim {
  170. regulator-name = "VMMC2_IO_18";
  171. regulator-min-microvolt = <1800000>;
  172. regulator-max-microvolt = <1800000>;
  173. };
  174. &vio {
  175. regulator-name = "VIO";
  176. regulator-min-microvolt = <1800000>;
  177. regulator-max-microvolt = <1800000>;
  178. };
  179. &vintana1 {
  180. regulator-name = "VINTANA1";
  181. /* fixed to 1500000 */
  182. regulator-always-on;
  183. };
  184. &vintana2 {
  185. regulator-name = "VINTANA2";
  186. regulator-min-microvolt = <2750000>;
  187. regulator-max-microvolt = <2750000>;
  188. regulator-always-on;
  189. };
  190. &vintdig {
  191. regulator-name = "VINTDIG";
  192. /* fixed to 1500000 */
  193. regulator-always-on;
  194. };
  195. &twl {
  196. twl_audio: audio {
  197. compatible = "ti,twl4030-audio";
  198. ti,enable-vibra = <1>;
  199. };
  200. };
  201. &twl_gpio {
  202. ti,pullups = <0x0>;
  203. ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
  204. };
  205. &i2c2 {
  206. pinctrl-names = "default";
  207. pinctrl-0 = <&i2c2_pins>;
  208. clock-frequency = <100000>;
  209. tlv320aic3x: tlv320aic3x@18 {
  210. compatible = "ti,tlv320aic3x";
  211. reg = <0x18>;
  212. gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
  213. ai3x-gpio-func = <
  214. 0 /* AIC3X_GPIO1_FUNC_DISABLED */
  215. 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
  216. >;
  217. AVDD-supply = <&vmmc2>;
  218. DRVDD-supply = <&vmmc2>;
  219. IOVDD-supply = <&vio>;
  220. DVDD-supply = <&vio>;
  221. };
  222. tlv320aic3x_aux: tlv320aic3x@19 {
  223. compatible = "ti,tlv320aic3x";
  224. reg = <0x19>;
  225. gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
  226. AVDD-supply = <&vmmc2>;
  227. DRVDD-supply = <&vmmc2>;
  228. IOVDD-supply = <&vio>;
  229. DVDD-supply = <&vio>;
  230. };
  231. lp5523: lp5523@32 {
  232. compatible = "national,lp5523";
  233. reg = <0x32>;
  234. clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
  235. enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
  236. chan0 {
  237. chan-name = "lp5523:kb1";
  238. led-cur = /bits/ 8 <50>;
  239. max-cur = /bits/ 8 <100>;
  240. };
  241. chan1 {
  242. chan-name = "lp5523:kb2";
  243. led-cur = /bits/ 8 <50>;
  244. max-cur = /bits/ 8 <100>;
  245. };
  246. chan2 {
  247. chan-name = "lp5523:kb3";
  248. led-cur = /bits/ 8 <50>;
  249. max-cur = /bits/ 8 <100>;
  250. };
  251. chan3 {
  252. chan-name = "lp5523:kb4";
  253. led-cur = /bits/ 8 <50>;
  254. max-cur = /bits/ 8 <100>;
  255. };
  256. chan4 {
  257. chan-name = "lp5523:b";
  258. led-cur = /bits/ 8 <50>;
  259. max-cur = /bits/ 8 <100>;
  260. };
  261. chan5 {
  262. chan-name = "lp5523:g";
  263. led-cur = /bits/ 8 <50>;
  264. max-cur = /bits/ 8 <100>;
  265. };
  266. chan6 {
  267. chan-name = "lp5523:r";
  268. led-cur = /bits/ 8 <50>;
  269. max-cur = /bits/ 8 <100>;
  270. };
  271. chan7 {
  272. chan-name = "lp5523:kb5";
  273. led-cur = /bits/ 8 <50>;
  274. max-cur = /bits/ 8 <100>;
  275. };
  276. chan8 {
  277. chan-name = "lp5523:kb6";
  278. led-cur = /bits/ 8 <50>;
  279. max-cur = /bits/ 8 <100>;
  280. };
  281. };
  282. bq27200: bq27200@55 {
  283. compatible = "ti,bq27200";
  284. reg = <0x55>;
  285. };
  286. };
  287. &i2c3 {
  288. pinctrl-names = "default";
  289. pinctrl-0 = <&i2c3_pins>;
  290. clock-frequency = <400000>;
  291. };
  292. &mmc1 {
  293. pinctrl-names = "default";
  294. pinctrl-0 = <&mmc1_pins>;
  295. vmmc-supply = <&vmmc1>;
  296. bus-width = <4>;
  297. cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
  298. };
  299. &mmc2 {
  300. status = "disabled";
  301. };
  302. &mmc3 {
  303. status = "disabled";
  304. };
  305. &gpmc {
  306. ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
  307. /* gpio-irq for dma: 65 */
  308. onenand@0,0 {
  309. #address-cells = <1>;
  310. #size-cells = <1>;
  311. reg = <0 0 0x10000000>;
  312. gpmc,sync-read;
  313. gpmc,sync-write;
  314. gpmc,burst-length = <16>;
  315. gpmc,burst-read;
  316. gpmc,burst-wrap;
  317. gpmc,burst-write;
  318. gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
  319. gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
  320. gpmc,cs-on-ns = <0>;
  321. gpmc,cs-rd-off-ns = <87>;
  322. gpmc,cs-wr-off-ns = <87>;
  323. gpmc,adv-on-ns = <0>;
  324. gpmc,adv-rd-off-ns = <10>;
  325. gpmc,adv-wr-off-ns = <10>;
  326. gpmc,oe-on-ns = <15>;
  327. gpmc,oe-off-ns = <87>;
  328. gpmc,we-on-ns = <0>;
  329. gpmc,we-off-ns = <87>;
  330. gpmc,rd-cycle-ns = <112>;
  331. gpmc,wr-cycle-ns = <112>;
  332. gpmc,access-ns = <81>;
  333. gpmc,page-burst-access-ns = <15>;
  334. gpmc,bus-turnaround-ns = <0>;
  335. gpmc,cycle2cycle-delay-ns = <0>;
  336. gpmc,wait-monitoring-ns = <0>;
  337. gpmc,clk-activation-ns = <5>;
  338. gpmc,wr-data-mux-bus-ns = <30>;
  339. gpmc,wr-access-ns = <81>;
  340. gpmc,sync-clk-ps = <15000>;
  341. /*
  342. * MTD partition table corresponding to Nokia's
  343. * Maemo 5 (Fremantle) release.
  344. */
  345. partition@0 {
  346. label = "bootloader";
  347. reg = <0x00000000 0x00020000>;
  348. read-only;
  349. };
  350. partition@1 {
  351. label = "config";
  352. reg = <0x00020000 0x00060000>;
  353. };
  354. partition@2 {
  355. label = "log";
  356. reg = <0x00080000 0x00040000>;
  357. };
  358. partition@3 {
  359. label = "kernel";
  360. reg = <0x000c0000 0x00200000>;
  361. };
  362. partition@4 {
  363. label = "initfs";
  364. reg = <0x002c0000 0x00200000>;
  365. };
  366. partition@5 {
  367. label = "rootfs";
  368. reg = <0x004c0000 0x0fb40000>;
  369. };
  370. };
  371. };
  372. &mcspi1 {
  373. /*
  374. * For some reason, touchscreen is necessary for screen to work at
  375. * all on real hw. It works well without it on emulator.
  376. *
  377. * Also... order in the device tree actually matters here.
  378. */
  379. tsc2005@0 {
  380. compatible = "tsc2005";
  381. spi-max-frequency = <6000000>;
  382. reg = <0>;
  383. };
  384. mipid@2 {
  385. compatible = "acx565akm";
  386. spi-max-frequency = <6000000>;
  387. reg = <2>;
  388. pinctrl-names = "default";
  389. pinctrl-0 = <&display_pins>;
  390. };
  391. };
  392. &usb_otg_hs {
  393. interface-type = <0>;
  394. usb-phy = <&usb2_phy>;
  395. phys = <&usb2_phy>;
  396. phy-names = "usb2-phy";
  397. mode = <2>;
  398. power = <50>;
  399. };
  400. &uart1 {
  401. status = "disabled";
  402. };
  403. &uart2 {
  404. pinctrl-names = "default";
  405. pinctrl-0 = <&uart2_pins>;
  406. };
  407. &uart3 {
  408. pinctrl-names = "default";
  409. pinctrl-0 = <&uart3_pins>;
  410. };