omap3-n900.dts 4.4 KB

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