dove-cm-a510.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /*
  2. * Device Tree include for Compulab CM-A510 System-on-Module
  3. *
  4. * Copyright (C) 2015, Sebastian Hesselbarth <[email protected]>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This file is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; version 2 of the
  14. * License.
  15. *
  16. * This file is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. /*
  45. * The CM-A510 comes with several optional components:
  46. *
  47. * Memory options:
  48. * D512: 512M
  49. * D1024: 1G
  50. *
  51. * NAND options:
  52. * N512: 512M NAND
  53. *
  54. * Ethernet options:
  55. * E1: PHY RTL8211D on internal GbE (SMI address 0x03)
  56. * E2: Additional ethernet NIC RTL8111D on PCIe1
  57. *
  58. * Audio options:
  59. * A: TI TLV320AIC23b audio codec (I2C address 0x1a)
  60. *
  61. * Touchscreen options:
  62. * I: TI TSC2046 touchscreen controller (on SPI1)
  63. *
  64. * USB options:
  65. * U2: 2 dual-role USB2.0 ports
  66. * U4: 2 additional USB2.0 host ports (via USB1)
  67. *
  68. * WiFi options:
  69. * W: Broadcom BCM4319 802.11b/g/n (USI WM-N-BM-01 on SDIO1)
  70. *
  71. * GPIOs used on CM-A510:
  72. * 1 GbE PHY reset (active low)
  73. * 3 WakeUp
  74. * 8 PowerOff (active low)
  75. * 13 Touchscreen pen irq (active low)
  76. * 65 System LED (active high)
  77. * 69 USB Hub reset (active low)
  78. * 70 WLAN reset (active low)
  79. * 71 WLAN regulator (active high)
  80. */
  81. #include "dove.dtsi"
  82. / {
  83. model = "Compulab CM-A510";
  84. compatible = "compulab,cm-a510", "marvell,dove";
  85. /*
  86. * Set the minimum memory size here and let the
  87. * bootloader set the real size.
  88. */
  89. memory {
  90. device_type = "memory";
  91. reg = <0x00000000 0x20000000>;
  92. };
  93. leds {
  94. compatible = "gpio-leds";
  95. /* Set upper NAND data bit to GPO */
  96. pinctrl-0 = <&pmx_nand_gpo>;
  97. pinctrl-names = "default";
  98. system {
  99. label = "cm-a510:system:green";
  100. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  101. default-state = "keep";
  102. };
  103. };
  104. regulators {
  105. compatible = "simple-bus";
  106. #address-cells = <1>;
  107. #size-cells = <0>;
  108. wifi_power: regulator@1 {
  109. compatible = "regulator-fixed";
  110. regulator-name = "WiFi Power";
  111. regulator-min-microvolt = <3300000>;
  112. regulator-max-microvolt = <3300000>;
  113. gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
  114. };
  115. };
  116. };
  117. /* Optional RTL8211D GbE PHY on SMI address 0x03 */
  118. &ethphy {
  119. reg = <3>;
  120. status = "disabled";
  121. };
  122. &i2c0 {
  123. /* Optional TI TLV320AIC23b audio codec */
  124. opt_audio: audio@1a {
  125. compatible = "ti,tlv320aic23";
  126. reg = <0x1a>;
  127. status = "disabled";
  128. };
  129. };
  130. /* Optional RTL8111D GbE NIC on PCIe1 */
  131. &pcie { status = "disabled"; };
  132. &pcie1 {
  133. pinctrl-0 = <&pmx_pcie1_clkreq>;
  134. pinctrl-names = "default";
  135. status = "disabled";
  136. };
  137. &pinctrl {
  138. pmx_uart2: pmx-uart2 {
  139. marvell,pins = "mpp14", "mpp15";
  140. marvell,function = "uart2";
  141. };
  142. };
  143. /* Optional Broadcom BCM4319 802.11b/g/n WiFi module */
  144. &sdio1 {
  145. non-removable;
  146. vmmc-supply = <&wifi_power>;
  147. reset-gpio = <&gpio2 6 GPIO_ACTIVE_LOW>;
  148. status = "disabled";
  149. };
  150. &spi0 {
  151. status = "okay";
  152. /* 1M Flash Winbond W25Q80BL */
  153. flash@0 {
  154. compatible = "winbond,w25q80";
  155. spi-max-frequency = <80000000>;
  156. reg = <0>;
  157. };
  158. };
  159. &spi1 {
  160. pinctrl-0 = <&pmx_spi1_20_23>;
  161. pinctrl-names = "default";
  162. status = "disabled";
  163. /* Optional TI TSC2046 touchscreen controller */
  164. opt_touch: touchscreen@0 {
  165. compatible = "ti,tsc2046";
  166. spi-max-frequency = <2500000>;
  167. reg = <0>;
  168. pinctrl-0 = <&pmx_gpio_13>;
  169. pinctrl-names = "default";
  170. interrupts-extended = <&gpio0 13 IRQ_TYPE_EDGE_FALLING>;
  171. };
  172. };
  173. &uart2 {
  174. pinctrl-0 = <&pmx_uart2>;
  175. pinctrl-names = "default";
  176. };