0026-dts-ipq4019-Add-support-for-IPQ4019-DK04-board.patch 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. From ec3e465ecf3f7dd26f2e22170e4c5f4b9979df5d Mon Sep 17 00:00:00 2001
  2. From: Matthew McClintock <[email protected]>
  3. Date: Mon, 21 Mar 2016 15:55:21 -0500
  4. Subject: [PATCH 26/69] dts: ipq4019: Add support for IPQ4019 DK04 board
  5. This is pretty similiar to a DK01 but has a bit more IO. Some notable
  6. differences are listed below however they are not in the device tree yet
  7. as we continue adding more support
  8. - second serial port
  9. - PCIe
  10. - NAND
  11. - SD/EMMC
  12. Signed-off-by: Matthew McClintock <[email protected]>
  13. ---
  14. arch/arm/boot/dts/Makefile | 1 +
  15. arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 12 +-
  16. arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 21 +++
  17. arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 163 ++++++++++++++++++++++++
  18. 4 files changed, 189 insertions(+), 8 deletions(-)
  19. create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts
  20. create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
  21. --- a/arch/arm/boot/dts/Makefile
  22. +++ b/arch/arm/boot/dts/Makefile
  23. @@ -617,6 +617,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
  24. qcom-apq8084-ifc6540.dtb \
  25. qcom-apq8084-mtp.dtb \
  26. qcom-ipq4019-ap.dk01.1-c1.dtb \
  27. + qcom-ipq4019-ap.dk04.1-c1.dtb \
  28. qcom-ipq8064-ap148.dtb \
  29. qcom-msm8660-surf.dtb \
  30. qcom-msm8960-cdp.dtb \
  31. --- /dev/null
  32. +++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts
  33. @@ -0,0 +1,22 @@
  34. +/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  35. + *
  36. + * Permission to use, copy, modify, and/or distribute this software for any
  37. + * purpose with or without fee is hereby granted, provided that the above
  38. + * copyright notice and this permission notice appear in all copies.
  39. + *
  40. + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  41. + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  42. + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  43. + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  44. + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  45. + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  46. + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  47. + *
  48. + */
  49. +
  50. +#include "qcom-ipq4019-ap.dk04.1.dtsi"
  51. +
  52. +/ {
  53. + model = "Qualcomm Technologies, Inc. IPQ40xx/AP-DK04.1-C1";
  54. + compatible = "qcom,ap-dk04.1-c1", "qcom,ipq4019";
  55. +};
  56. --- /dev/null
  57. +++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
  58. @@ -0,0 +1,163 @@
  59. +/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  60. + *
  61. + * Permission to use, copy, modify, and/or distribute this software for any
  62. + * purpose with or without fee is hereby granted, provided that the above
  63. + * copyright notice and this permission notice appear in all copies.
  64. + *
  65. + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  66. + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  67. + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  68. + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  69. + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  70. + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  71. + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  72. + *
  73. + */
  74. +
  75. +#include "qcom-ipq4019.dtsi"
  76. +
  77. +/ {
  78. + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1";
  79. + compatible = "qcom,ipq4019";
  80. +
  81. + clocks {
  82. + xo: xo {
  83. + compatible = "fixed-clock";
  84. + clock-frequency = <48000000>;
  85. + #clock-cells = <0>;
  86. + };
  87. + };
  88. +
  89. + soc {
  90. + timer {
  91. + compatible = "arm,armv7-timer";
  92. + interrupts = <1 2 0xf08>,
  93. + <1 3 0xf08>,
  94. + <1 4 0xf08>,
  95. + <1 1 0xf08>;
  96. + clock-frequency = <48000000>;
  97. + };
  98. +
  99. + pinctrl@0x01000000 {
  100. + serial_0_pins: serial_pinmux {
  101. + mux {
  102. + pins = "gpio16", "gpio17";
  103. + function = "blsp_uart0";
  104. + bias-disable;
  105. + };
  106. + };
  107. +
  108. + serial_1_pins: serial1_pinmux {
  109. + mux {
  110. + pins = "gpio8", "gpio9";
  111. + function = "blsp_uart1";
  112. + bias-disable;
  113. + };
  114. + };
  115. +
  116. + spi_0_pins: spi_0_pinmux {
  117. + pinmux {
  118. + function = "blsp_spi0";
  119. + pins = "gpio13", "gpio14", "gpio15";
  120. + };
  121. + pinmux_cs {
  122. + function = "gpio";
  123. + pins = "gpio12";
  124. + };
  125. + pinconf {
  126. + pins = "gpio13", "gpio14", "gpio15";
  127. + drive-strength = <12>;
  128. + bias-disable;
  129. + };
  130. + pinconf_cs {
  131. + pins = "gpio12";
  132. + drive-strength = <2>;
  133. + bias-disable;
  134. + output-high;
  135. + };
  136. + };
  137. +
  138. + i2c_0_pins: i2c_0_pinmux {
  139. + pinmux {
  140. + function = "blsp_i2c0";
  141. + pins = "gpio10", "gpio11";
  142. + };
  143. + pinconf {
  144. + pins = "gpio10", "gpio11";
  145. + drive-strength = <16>;
  146. + bias-disable;
  147. + };
  148. + };
  149. + };
  150. +
  151. + blsp_dma: dma@7884000 {
  152. + status = "ok";
  153. + };
  154. +
  155. + spi_0: spi@78b5000 {
  156. + pinctrl-0 = <&spi_0_pins>;
  157. + pinctrl-names = "default";
  158. + status = "ok";
  159. + cs-gpios = <&tlmm 12 0>;
  160. +
  161. + mx25l25635e@0 {
  162. + #address-cells = <1>;
  163. + #size-cells = <1>;
  164. + reg = <0>;
  165. + compatible = "mx25l25635e";
  166. + spi-max-frequency = <24000000>;
  167. + };
  168. + };
  169. +
  170. + i2c_0: i2c@78b7000 { /* BLSP1 QUP2 */
  171. + pinctrl-0 = <&i2c_0_pins>;
  172. + pinctrl-names = "default";
  173. +
  174. + status = "ok";
  175. + };
  176. +
  177. + serial@78af000 {
  178. + pinctrl-0 = <&serial_0_pins>;
  179. + pinctrl-names = "default";
  180. + status = "ok";
  181. + };
  182. +
  183. + serial@78b0000 {
  184. + pinctrl-0 = <&serial_1_pins>;
  185. + pinctrl-names = "default";
  186. + status = "ok";
  187. + };
  188. +
  189. + usb3_ss_phy: ssphy@9a000 {
  190. + status = "ok";
  191. + };
  192. +
  193. + usb3_hs_phy: hsphy@a6000 {
  194. + status = "ok";
  195. + };
  196. +
  197. + usb3: usb3@8af8800 {
  198. + status = "ok";
  199. + };
  200. +
  201. + usb2_hs_phy: hsphy@a8000 {
  202. + status = "ok";
  203. + };
  204. +
  205. + usb2: usb2@60f8800 {
  206. + status = "ok";
  207. + };
  208. +
  209. + cryptobam: dma@8e04000 {
  210. + status = "ok";
  211. + };
  212. +
  213. + crypto@8e3a000 {
  214. + status = "ok";
  215. + };
  216. +
  217. + watchdog@b017000 {
  218. + status = "ok";
  219. + };
  220. + };
  221. +};