apq8016-sbc.dtsi 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. /*
  2. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #include "msm8916.dtsi"
  14. #include "pm8916.dtsi"
  15. #include "apq8016-sbc-soc-pins.dtsi"
  16. #include "apq8016-sbc-pmic-pins.dtsi"
  17. / {
  18. aliases {
  19. serial0 = &blsp1_uart2;
  20. serial1 = &blsp1_uart1;
  21. usid0 = &pm8916_0;
  22. i2c0 = &blsp_i2c2;
  23. i2c1 = &blsp_i2c6;
  24. i2c3 = &blsp_i2c4;
  25. spi0 = &blsp_spi5;
  26. spi1 = &blsp_spi3;
  27. };
  28. chosen {
  29. stdout-path = "serial0";
  30. };
  31. soc {
  32. dma@7884000 {
  33. status = "okay";
  34. };
  35. serial@78af000 {
  36. label = "LS-UART0";
  37. status = "okay";
  38. pinctrl-names = "default", "sleep";
  39. pinctrl-0 = <&blsp1_uart1_default>;
  40. pinctrl-1 = <&blsp1_uart1_sleep>;
  41. };
  42. serial@78b0000 {
  43. label = "LS-UART1";
  44. status = "okay";
  45. pinctrl-names = "default", "sleep";
  46. pinctrl-0 = <&blsp1_uart2_default>;
  47. pinctrl-1 = <&blsp1_uart2_sleep>;
  48. };
  49. i2c@78b6000 {
  50. /* On Low speed expansion */
  51. label = "LS-I2C0";
  52. status = "okay";
  53. };
  54. i2c@78b8000 {
  55. /* On High speed expansion */
  56. label = "HS-I2C2";
  57. status = "okay";
  58. adv_bridge: bridge@39 {
  59. status = "okay";
  60. compatible = "adi,adv7533";
  61. reg = <0x39>;
  62. interrupt-parent = <&msmgpio>;
  63. interrupts = <31 2>;
  64. adi,dsi-lanes = <4>;
  65. pd-gpios = <&msmgpio 32 0>;
  66. avdd-supply = <&pm8916_l6>;
  67. v1p2-supply = <&pm8916_l6>;
  68. v3p3-supply = <&pm8916_l17>;
  69. pinctrl-names = "default","sleep";
  70. pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
  71. pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
  72. ports {
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. port@0 {
  76. reg = <0>;
  77. adv7533_in: endpoint {
  78. remote-endpoint = <&dsi0_out>;
  79. };
  80. };
  81. port@1 {
  82. reg = <1>;
  83. adv7533_out: endpoint {
  84. remote-endpoint = <&hdmi_con>;
  85. };
  86. };
  87. };
  88. };
  89. };
  90. i2c@78ba000 {
  91. /* On Low speed expansion */
  92. label = "LS-I2C1";
  93. status = "okay";
  94. };
  95. spi@78b7000 {
  96. /* On High speed expansion */
  97. label = "HS-SPI1";
  98. status = "okay";
  99. };
  100. spi@78b9000 {
  101. /* On Low speed expansion */
  102. label = "LS-SPI0";
  103. status = "okay";
  104. };
  105. leds {
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&msmgpio_leds>,
  108. <&pm8916_gpios_leds>,
  109. <&pm8916_mpps_leds>;
  110. compatible = "gpio-leds";
  111. led@1 {
  112. label = "apq8016-sbc:green:user1";
  113. gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
  114. linux,default-trigger = "heartbeat";
  115. default-state = "off";
  116. };
  117. led@2 {
  118. label = "apq8016-sbc:green:user2";
  119. gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
  120. linux,default-trigger = "mmc0";
  121. default-state = "off";
  122. };
  123. led@3 {
  124. label = "apq8016-sbc:green:user3";
  125. gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
  126. linux,default-trigger = "mmc1";
  127. default-state = "off";
  128. };
  129. led@4 {
  130. label = "apq8016-sbc:green:user4";
  131. gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
  132. linux,default-trigger = "none";
  133. default-state = "off";
  134. };
  135. led@5 {
  136. label = "apq8016-sbc:yellow:wlan";
  137. gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
  138. linux,default-trigger = "wlan";
  139. default-state = "off";
  140. };
  141. led@6 {
  142. label = "apq8016-sbc:blue:bt";
  143. gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
  144. linux,default-trigger = "bt";
  145. default-state = "off";
  146. };
  147. };
  148. sdhci@07824000 {
  149. vmmc-supply = <&pm8916_l8>;
  150. vqmmc-supply = <&pm8916_l5>;
  151. pinctrl-names = "default", "sleep";
  152. pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
  153. pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
  154. status = "okay";
  155. };
  156. sdhci@07864000 {
  157. vmmc-supply = <&pm8916_l11>;
  158. vqmmc-supply = <&pm8916_l12>;
  159. pinctrl-names = "default", "sleep";
  160. pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
  161. pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
  162. cd-gpios = <&msmgpio 38 0x1>;
  163. status = "okay";
  164. };
  165. usb@78d9000 {
  166. extcon = <&usb_id>, <&usb_id>;
  167. status = "okay";
  168. };
  169. ehci@78d9000 {
  170. status = "okay";
  171. };
  172. phy@78d9000 {
  173. v1p8-supply = <&pm8916_l7>;
  174. v3p3-supply = <&pm8916_l13>;
  175. vddcx-supply = <&pm8916_s1>;
  176. extcon = <&usb_id>, <&usb_id>;
  177. dr_mode = "otg";
  178. status = "okay";
  179. switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
  180. pinctrl-names = "default";
  181. pinctrl-0 = <&usb_sw_sel_pm>;
  182. };
  183. lpass@07708000 {
  184. status = "okay";
  185. };
  186. mdss@1a00000 {
  187. status = "okay";
  188. mdp@1a01000 {
  189. status = "okay";
  190. };
  191. dsi@1a98000 {
  192. status = "okay";
  193. vdda-supply = <&pm8916_l2>;
  194. vddio-supply = <&pm8916_l6>;
  195. ports {
  196. port@1 {
  197. endpoint {
  198. remote-endpoint = <&adv7533_in>;
  199. data-lanes = <0 1 2 3>;
  200. };
  201. };
  202. };
  203. };
  204. dsi-phy@1a98300 {
  205. status = "okay";
  206. vddio-supply = <&pm8916_l6>;
  207. };
  208. };
  209. };
  210. usb2513 {
  211. compatible = "smsc,usb3503";
  212. reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
  213. initial-mode = <1>;
  214. };
  215. usb_id: usb-id {
  216. compatible = "linux,extcon-usb-gpio";
  217. id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
  218. pinctrl-names = "default";
  219. pinctrl-0 = <&usb_id_default>;
  220. };
  221. hdmi-out {
  222. compatible = "hdmi-connector";
  223. type = "a";
  224. port {
  225. hdmi_con: endpoint {
  226. remote-endpoint = <&adv7533_out>;
  227. };
  228. };
  229. };
  230. };
  231. &smd_rpm_regulators {
  232. vdd_l1_l2_l3-supply = <&pm8916_s3>;
  233. vdd_l5-supply = <&pm8916_s3>;
  234. vdd_l4_l5_l6-supply = <&pm8916_s4>;
  235. vdd_l7-supply = <&pm8916_s4>;
  236. s1 {
  237. regulator-min-microvolt = <375000>;
  238. regulator-max-microvolt = <1562000>;
  239. };
  240. s3 {
  241. regulator-min-microvolt = <375000>;
  242. regulator-max-microvolt = <1562000>;
  243. };
  244. s4 {
  245. regulator-min-microvolt = <1800000>;
  246. regulator-max-microvolt = <1800000>;
  247. regulator-always-on;
  248. regulator-boot-on;
  249. };
  250. l1 {
  251. regulator-min-microvolt = <375000>;
  252. regulator-max-microvolt = <1525000>;
  253. };
  254. l2 {
  255. regulator-min-microvolt = <375000>;
  256. regulator-max-microvolt = <1525000>;
  257. };
  258. l3 {
  259. regulator-min-microvolt = <375000>;
  260. regulator-max-microvolt = <1525000>;
  261. };
  262. l4 {
  263. regulator-min-microvolt = <1750000>;
  264. regulator-max-microvolt = <3337000>;
  265. };
  266. l5 {
  267. regulator-min-microvolt = <1750000>;
  268. regulator-max-microvolt = <3337000>;
  269. };
  270. l6 {
  271. regulator-min-microvolt = <1750000>;
  272. regulator-max-microvolt = <3337000>;
  273. };
  274. l7 {
  275. regulator-min-microvolt = <1750000>;
  276. regulator-max-microvolt = <3337000>;
  277. };
  278. l8 {
  279. regulator-min-microvolt = <1750000>;
  280. regulator-max-microvolt = <3337000>;
  281. };
  282. l9 {
  283. regulator-min-microvolt = <1750000>;
  284. regulator-max-microvolt = <3337000>;
  285. };
  286. l10 {
  287. regulator-min-microvolt = <1750000>;
  288. regulator-max-microvolt = <3337000>;
  289. };
  290. l11 {
  291. regulator-min-microvolt = <1750000>;
  292. regulator-max-microvolt = <3337000>;
  293. };
  294. l12 {
  295. regulator-min-microvolt = <1750000>;
  296. regulator-max-microvolt = <3337000>;
  297. };
  298. l13 {
  299. regulator-min-microvolt = <1750000>;
  300. regulator-max-microvolt = <3337000>;
  301. };
  302. l14 {
  303. regulator-min-microvolt = <1750000>;
  304. regulator-max-microvolt = <3337000>;
  305. };
  306. /**
  307. * 1.8v required on LS expansion
  308. * for mezzanine boards
  309. */
  310. l15 {
  311. regulator-min-microvolt = <1750000>;
  312. regulator-max-microvolt = <3337000>;
  313. regulator-always-on;
  314. };
  315. l16 {
  316. regulator-min-microvolt = <1750000>;
  317. regulator-max-microvolt = <3337000>;
  318. };
  319. l17 {
  320. regulator-min-microvolt = <1750000>;
  321. regulator-max-microvolt = <3337000>;
  322. };
  323. l18 {
  324. regulator-min-microvolt = <1750000>;
  325. regulator-max-microvolt = <3337000>;
  326. };
  327. };