omap3-n900.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. &twl {
  121. twl_audio: audio {
  122. compatible = "ti,twl4030-audio";
  123. ti,enable-vibra = <1>;
  124. };
  125. };
  126. &twl_gpio {
  127. ti,pullups = <0x0>;
  128. ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
  129. };
  130. &i2c2 {
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&i2c2_pins>;
  133. clock-frequency = <100000>;
  134. bq27200: bq27200@55 {
  135. compatible = "ti,bq27200";
  136. reg = <0x55>;
  137. };
  138. };
  139. &i2c3 {
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&i2c3_pins>;
  142. clock-frequency = <400000>;
  143. };
  144. &mmc1 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&mmc1_pins>;
  147. vmmc-supply = <&vmmc1>;
  148. bus-width = <4>;
  149. cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
  150. };
  151. &mmc2 {
  152. status = "disabled";
  153. };
  154. &mmc3 {
  155. status = "disabled";
  156. };
  157. &mcspi1 {
  158. /*
  159. * For some reason, touchscreen is necessary for screen to work at
  160. * all on real hw. It works well without it on emulator.
  161. *
  162. * Also... order in the device tree actually matters here.
  163. */
  164. tsc2005@0 {
  165. compatible = "tsc2005";
  166. spi-max-frequency = <6000000>;
  167. reg = <0>;
  168. };
  169. mipid@2 {
  170. compatible = "acx565akm";
  171. spi-max-frequency = <6000000>;
  172. reg = <2>;
  173. };
  174. };
  175. &usb_otg_hs {
  176. interface-type = <0>;
  177. usb-phy = <&usb2_phy>;
  178. phys = <&usb2_phy>;
  179. phy-names = "usb2-phy";
  180. mode = <2>;
  181. power = <50>;
  182. };
  183. &uart1 {
  184. status = "disabled";
  185. };
  186. &uart2 {
  187. pinctrl-names = "default";
  188. pinctrl-0 = <&uart2_pins>;
  189. };
  190. &uart3 {
  191. pinctrl-names = "default";
  192. pinctrl-0 = <&uart3_pins>;
  193. };