omap3-n900.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. };
  24. &omap3_pmx_core {
  25. pinctrl-names = "default";
  26. i2c1_pins: pinmux_i2c1_pins {
  27. pinctrl-single,pins = <
  28. 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  29. 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  30. >;
  31. };
  32. i2c2_pins: pinmux_i2c2_pins {
  33. pinctrl-single,pins = <
  34. 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  35. 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  36. >;
  37. };
  38. i2c3_pins: pinmux_i2c3_pins {
  39. pinctrl-single,pins = <
  40. 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  41. 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  42. >;
  43. };
  44. };
  45. &i2c1 {
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&i2c1_pins>;
  48. clock-frequency = <2200000>;
  49. twl: twl@48 {
  50. reg = <0x48>;
  51. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  52. interrupt-parent = <&intc>;
  53. };
  54. };
  55. #include "twl4030.dtsi"
  56. #include "twl4030_omap3.dtsi"
  57. &twl_gpio {
  58. ti,pullups = <0x0>;
  59. ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
  60. };
  61. &i2c2 {
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&i2c2_pins>;
  64. clock-frequency = <400000>;
  65. };
  66. &i2c3 {
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&i2c3_pins>;
  69. clock-frequency = <100000>;
  70. };
  71. &mmc1 {
  72. status = "disabled";
  73. };
  74. &mmc2 {
  75. status = "disabled";
  76. };
  77. &mmc3 {
  78. status = "disabled";
  79. };
  80. &mcspi1 {
  81. /*
  82. * For some reason, touchscreen is necessary for screen to work at
  83. * all on real hw. It works well without it on emulator.
  84. *
  85. * Also... order in the device tree actually matters here.
  86. */
  87. tsc2005@0 {
  88. compatible = "tsc2005";
  89. spi-max-frequency = <6000000>;
  90. reg = <0>;
  91. };
  92. mipid@2 {
  93. compatible = "acx565akm";
  94. spi-max-frequency = <6000000>;
  95. reg = <2>;
  96. };
  97. };
  98. &usb_otg_hs {
  99. interface-type = <0>;
  100. usb-phy = <&usb2_phy>;
  101. phys = <&usb2_phy>;
  102. phy-names = "usb2-phy";
  103. mode = <2>;
  104. power = <50>;
  105. };