qcom-apq8064-sony-xperia-lagan-yuga.dts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "qcom-apq8064-v2.0.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/mfd/qcom-rpm.h>
  6. #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
  7. / {
  8. model = "Sony Xperia Z";
  9. compatible = "sony,xperia-yuga", "qcom,apq8064";
  10. aliases {
  11. serial0 = &gsbi5_serial;
  12. };
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. gpio-keys {
  17. compatible = "gpio-keys";
  18. pinctrl-names = "default";
  19. pinctrl-0 = <&gpio_keys_pin_a>;
  20. key-camera-focus {
  21. label = "camera_focus";
  22. gpios = <&pm8921_gpio 3 GPIO_ACTIVE_LOW>;
  23. linux,input-type = <1>;
  24. linux,code = <KEY_CAMERA_FOCUS>;
  25. };
  26. key-camera-snapshot {
  27. label = "camera_snapshot";
  28. gpios = <&pm8921_gpio 4 GPIO_ACTIVE_LOW>;
  29. linux,input-type = <1>;
  30. linux,code = <KEY_CAMERA>;
  31. };
  32. key-volume-down {
  33. label = "volume_down";
  34. gpios = <&pm8921_gpio 29 GPIO_ACTIVE_LOW>;
  35. linux,input-type = <1>;
  36. linux,code = <KEY_VOLUMEDOWN>;
  37. };
  38. key-volume-up {
  39. label = "volume_up";
  40. gpios = <&pm8921_gpio 35 GPIO_ACTIVE_LOW>;
  41. linux,input-type = <1>;
  42. linux,code = <KEY_VOLUMEUP>;
  43. };
  44. };
  45. soc {
  46. pinctrl@800000 {
  47. gsbi5_uart_pin_a: gsbi5-uart-pin-active {
  48. rx {
  49. pins = "gpio52";
  50. function = "gsbi5";
  51. drive-strength = <2>;
  52. bias-pull-up;
  53. };
  54. tx {
  55. pins = "gpio51";
  56. function = "gsbi5";
  57. drive-strength = <4>;
  58. bias-disable;
  59. };
  60. };
  61. sdcc3_cd_pin_a: sdcc3-cd-pin-active {
  62. pins = "gpio26";
  63. function = "gpio";
  64. drive-strength = <2>;
  65. bias-disable;
  66. };
  67. };
  68. rpm@108000 {
  69. regulators {
  70. vin_l1_l2_l12_l18-supply = <&pm8921_s4>;
  71. vin_lvs_1_3_6-supply = <&pm8921_s4>;
  72. vin_lvs_4_5_7-supply = <&pm8921_s4>;
  73. vin_ncp-supply = <&pm8921_l6>;
  74. vin_lvs2-supply = <&pm8921_s4>;
  75. vin_l24-supply = <&pm8921_s1>;
  76. vin_l25-supply = <&pm8921_s1>;
  77. vin_l27-supply = <&pm8921_s7>;
  78. vin_l28-supply = <&pm8921_s7>;
  79. /* Buck SMPS */
  80. s1 {
  81. regulator-always-on;
  82. regulator-min-microvolt = <1225000>;
  83. regulator-max-microvolt = <1225000>;
  84. qcom,switch-mode-frequency = <3200000>;
  85. bias-pull-down;
  86. };
  87. s2 {
  88. regulator-min-microvolt = <1300000>;
  89. regulator-max-microvolt = <1300000>;
  90. qcom,switch-mode-frequency = <1600000>;
  91. bias-pull-down;
  92. };
  93. s3 {
  94. regulator-min-microvolt = <500000>;
  95. regulator-max-microvolt = <1150000>;
  96. qcom,switch-mode-frequency = <4800000>;
  97. bias-pull-down;
  98. };
  99. s4 {
  100. regulator-always-on;
  101. regulator-min-microvolt = <1800000>;
  102. regulator-max-microvolt = <1800000>;
  103. qcom,switch-mode-frequency = <1600000>;
  104. bias-pull-down;
  105. qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>;
  106. };
  107. s7 {
  108. regulator-min-microvolt = <1300000>;
  109. regulator-max-microvolt = <1300000>;
  110. qcom,switch-mode-frequency = <3200000>;
  111. };
  112. s8 {
  113. regulator-min-microvolt = <2200000>;
  114. regulator-max-microvolt = <2200000>;
  115. qcom,switch-mode-frequency = <1600000>;
  116. };
  117. /* PMOS LDO */
  118. l1 {
  119. regulator-always-on;
  120. regulator-min-microvolt = <1100000>;
  121. regulator-max-microvolt = <1100000>;
  122. bias-pull-down;
  123. };
  124. l2 {
  125. regulator-min-microvolt = <1200000>;
  126. regulator-max-microvolt = <1200000>;
  127. bias-pull-down;
  128. };
  129. l3 {
  130. regulator-min-microvolt = <3075000>;
  131. regulator-max-microvolt = <3075000>;
  132. bias-pull-down;
  133. };
  134. l4 {
  135. regulator-always-on;
  136. regulator-min-microvolt = <1800000>;
  137. regulator-max-microvolt = <1800000>;
  138. bias-pull-down;
  139. };
  140. l5 {
  141. regulator-min-microvolt = <2950000>;
  142. regulator-max-microvolt = <2950000>;
  143. bias-pull-down;
  144. };
  145. l6 {
  146. regulator-min-microvolt = <2950000>;
  147. regulator-max-microvolt = <2950000>;
  148. bias-pull-down;
  149. };
  150. l7 {
  151. regulator-min-microvolt = <1850000>;
  152. regulator-max-microvolt = <2950000>;
  153. bias-pull-down;
  154. };
  155. l8 {
  156. regulator-min-microvolt = <2800000>;
  157. regulator-max-microvolt = <2800000>;
  158. bias-pull-down;
  159. };
  160. l9 {
  161. regulator-min-microvolt = <3000000>;
  162. regulator-max-microvolt = <3000000>;
  163. bias-pull-down;
  164. };
  165. l10 {
  166. regulator-min-microvolt = <2900000>;
  167. regulator-max-microvolt = <2900000>;
  168. bias-pull-down;
  169. };
  170. l11 {
  171. regulator-min-microvolt = <3000000>;
  172. regulator-max-microvolt = <3000000>;
  173. bias-pull-down;
  174. };
  175. l12 {
  176. regulator-min-microvolt = <1200000>;
  177. regulator-max-microvolt = <1200000>;
  178. bias-pull-down;
  179. };
  180. l14 {
  181. regulator-min-microvolt = <1800000>;
  182. regulator-max-microvolt = <1800000>;
  183. bias-pull-down;
  184. };
  185. l15 {
  186. regulator-min-microvolt = <1800000>;
  187. regulator-max-microvolt = <2950000>;
  188. bias-pull-down;
  189. };
  190. l16 {
  191. regulator-min-microvolt = <2800000>;
  192. regulator-max-microvolt = <2800000>;
  193. bias-pull-down;
  194. };
  195. l17 {
  196. regulator-min-microvolt = <2000000>;
  197. regulator-max-microvolt = <2000000>;
  198. bias-pull-down;
  199. };
  200. l18 {
  201. regulator-min-microvolt = <1200000>;
  202. regulator-max-microvolt = <1200000>;
  203. bias-pull-down;
  204. };
  205. l21 {
  206. regulator-min-microvolt = <1050000>;
  207. regulator-max-microvolt = <1050000>;
  208. bias-pull-down;
  209. };
  210. l22 {
  211. regulator-min-microvolt = <2600000>;
  212. regulator-max-microvolt = <2600000>;
  213. bias-pull-down;
  214. };
  215. l23 {
  216. regulator-min-microvolt = <1800000>;
  217. regulator-max-microvolt = <1800000>;
  218. bias-pull-down;
  219. };
  220. l24 {
  221. regulator-min-microvolt = <750000>;
  222. regulator-max-microvolt = <1150000>;
  223. bias-pull-down;
  224. };
  225. l25 {
  226. regulator-always-on;
  227. regulator-min-microvolt = <1250000>;
  228. regulator-max-microvolt = <1250000>;
  229. bias-pull-down;
  230. };
  231. l27 {
  232. regulator-min-microvolt = <1100000>;
  233. regulator-max-microvolt = <1100000>;
  234. };
  235. l28 {
  236. regulator-min-microvolt = <1050000>;
  237. regulator-max-microvolt = <1050000>;
  238. bias-pull-down;
  239. };
  240. l29 {
  241. regulator-min-microvolt = <2000000>;
  242. regulator-max-microvolt = <2000000>;
  243. bias-pull-down;
  244. };
  245. /* Low Voltage Switch */
  246. lvs1 {
  247. bias-pull-down;
  248. };
  249. lvs2 {
  250. bias-pull-down;
  251. };
  252. lvs3 {
  253. bias-pull-down;
  254. };
  255. lvs4 {
  256. bias-pull-down;
  257. };
  258. lvs5 {
  259. bias-pull-down;
  260. };
  261. lvs6 {
  262. bias-pull-down;
  263. };
  264. lvs7 {
  265. bias-pull-down;
  266. };
  267. usb-switch {};
  268. hdmi-switch {};
  269. ncp {
  270. regulator-min-microvolt = <1800000>;
  271. regulator-max-microvolt = <1800000>;
  272. qcom,switch-mode-frequency = <1600000>;
  273. };
  274. };
  275. };
  276. qcom,ssbi@500000 {
  277. pmic@0 {
  278. gpio@150 {
  279. gpio_keys_pin_a: gpio-keys-active-state {
  280. pins = "gpio3", "gpio4", "gpio29", "gpio35";
  281. function = "normal";
  282. bias-pull-up;
  283. drive-push-pull;
  284. input-enable;
  285. power-source = <2>;
  286. qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
  287. qcom,pull-up-strength = <0>;
  288. };
  289. };
  290. };
  291. };
  292. usb@12500000 {
  293. status = "okay";
  294. dr_mode = "otg";
  295. ulpi {
  296. phy {
  297. v3p3-supply = <&pm8921_l3>;
  298. v1p8-supply = <&pm8921_l4>;
  299. };
  300. };
  301. };
  302. gsbi@1a200000 {
  303. status = "okay";
  304. qcom,mode = <GSBI_PROT_I2C_UART>;
  305. serial@1a240000 {
  306. status = "okay";
  307. pinctrl-names = "default";
  308. pinctrl-0 = <&gsbi5_uart_pin_a>;
  309. };
  310. };
  311. amba {
  312. sdcc1: mmc@12400000 {
  313. status = "okay";
  314. vmmc-supply = <&pm8921_l5>;
  315. vqmmc-supply = <&pm8921_s4>;
  316. };
  317. sdcc3: mmc@12180000 {
  318. status = "okay";
  319. vmmc-supply = <&pm8921_l6>;
  320. cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
  321. pinctrl-names = "default";
  322. pinctrl-0 = <&sdcc3_pins>, <&sdcc3_cd_pin_a>;
  323. };
  324. };
  325. riva-pil@3204000 {
  326. status = "okay";
  327. pinctrl-names = "default";
  328. pinctrl-0 = <&riva_wlan_pin_a>, <&riva_bt_pin_a>, <&riva_fm_pin_a>;
  329. };
  330. };
  331. };