sc8280xp-crd.dts 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022, Linaro Limited
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
  9. #include "sc8280xp.dtsi"
  10. #include "sc8280xp-pmics.dtsi"
  11. / {
  12. model = "Qualcomm SC8280XP CRD";
  13. compatible = "qcom,sc8280xp-crd", "qcom,sc8280xp";
  14. aliases {
  15. serial0 = &qup2_uart17;
  16. };
  17. backlight {
  18. compatible = "pwm-backlight";
  19. pwms = <&pmc8280c_lpg 3 1000000>;
  20. enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>;
  21. power-supply = <&vreg_edp_bl>;
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>;
  24. };
  25. chosen {
  26. stdout-path = "serial0:115200n8";
  27. };
  28. vreg_edp_bl: regulator-edp-bl {
  29. compatible = "regulator-fixed";
  30. regulator-name = "VREG_EDP_BL";
  31. regulator-min-microvolt = <3600000>;
  32. regulator-max-microvolt = <3600000>;
  33. gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>;
  34. enable-active-high;
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&edp_bl_reg_en>;
  37. regulator-boot-on;
  38. };
  39. vreg_misc_3p3: regulator-misc-3p3 {
  40. compatible = "regulator-fixed";
  41. regulator-name = "VREG_MISC_3P3";
  42. regulator-min-microvolt = <3300000>;
  43. regulator-max-microvolt = <3300000>;
  44. gpio = <&pmc8280_1_gpios 2 GPIO_ACTIVE_HIGH>;
  45. enable-active-high;
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&misc_3p3_reg_en>;
  48. regulator-boot-on;
  49. regulator-always-on;
  50. };
  51. };
  52. &apps_rsc {
  53. pmc8280-1-rpmh-regulators {
  54. compatible = "qcom,pm8350-rpmh-regulators";
  55. qcom,pmic-id = "b";
  56. vdd-l3-l5-supply = <&vreg_s11b>;
  57. vreg_s11b: smps11 {
  58. regulator-name = "vreg_s11b";
  59. regulator-min-microvolt = <1272000>;
  60. regulator-max-microvolt = <1272000>;
  61. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  62. };
  63. vreg_l3b: ldo3 {
  64. regulator-name = "vreg_l3b";
  65. regulator-min-microvolt = <1200000>;
  66. regulator-max-microvolt = <1200000>;
  67. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  68. regulator-boot-on;
  69. regulator-always-on;
  70. };
  71. vreg_l4b: ldo4 {
  72. regulator-name = "vreg_l4b";
  73. regulator-min-microvolt = <912000>;
  74. regulator-max-microvolt = <912000>;
  75. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  76. };
  77. vreg_l6b: ldo6 {
  78. regulator-name = "vreg_l6b";
  79. regulator-min-microvolt = <880000>;
  80. regulator-max-microvolt = <880000>;
  81. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  82. regulator-boot-on;
  83. };
  84. };
  85. pmc8280c-rpmh-regulators {
  86. compatible = "qcom,pm8350c-rpmh-regulators";
  87. qcom,pmic-id = "c";
  88. vreg_l1c: ldo1 {
  89. regulator-name = "vreg_l1c";
  90. regulator-min-microvolt = <1800000>;
  91. regulator-max-microvolt = <1800000>;
  92. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  93. };
  94. vreg_l7c: ldo7 {
  95. regulator-name = "vreg_l7c";
  96. regulator-min-microvolt = <2504000>;
  97. regulator-max-microvolt = <2504000>;
  98. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  99. regulator-allow-set-load;
  100. regulator-allowed-modes =
  101. <RPMH_REGULATOR_MODE_LPM
  102. RPMH_REGULATOR_MODE_HPM>;
  103. };
  104. vreg_l13c: ldo13 {
  105. regulator-name = "vreg_l13c";
  106. regulator-min-microvolt = <3072000>;
  107. regulator-max-microvolt = <3072000>;
  108. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  109. };
  110. };
  111. pmc8280-2-rpmh-regulators {
  112. compatible = "qcom,pm8350-rpmh-regulators";
  113. qcom,pmic-id = "d";
  114. vdd-l1-l4-supply = <&vreg_s11b>;
  115. vreg_l3d: ldo3 {
  116. regulator-name = "vreg_l3d";
  117. regulator-min-microvolt = <1200000>;
  118. regulator-max-microvolt = <1200000>;
  119. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  120. regulator-allow-set-load;
  121. regulator-allowed-modes =
  122. <RPMH_REGULATOR_MODE_LPM
  123. RPMH_REGULATOR_MODE_HPM>;
  124. };
  125. vreg_l4d: ldo4 {
  126. regulator-name = "vreg_l4d";
  127. regulator-min-microvolt = <1200000>;
  128. regulator-max-microvolt = <1200000>;
  129. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  130. };
  131. vreg_l6d: ldo6 {
  132. regulator-name = "vreg_l6d";
  133. regulator-min-microvolt = <880000>;
  134. regulator-max-microvolt = <880000>;
  135. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  136. };
  137. vreg_l7d: ldo7 {
  138. regulator-name = "vreg_l7d";
  139. regulator-min-microvolt = <3072000>;
  140. regulator-max-microvolt = <3072000>;
  141. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  142. };
  143. vreg_l9d: ldo9 {
  144. regulator-name = "vreg_l9d";
  145. regulator-min-microvolt = <912000>;
  146. regulator-max-microvolt = <912000>;
  147. regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
  148. };
  149. };
  150. };
  151. &pmc8280c_lpg {
  152. status = "okay";
  153. };
  154. &pmk8280_pon_pwrkey {
  155. status = "okay";
  156. };
  157. &qup0 {
  158. status = "okay";
  159. };
  160. &qup0_i2c4 {
  161. clock-frequency = <400000>;
  162. pinctrl-names = "default";
  163. pinctrl-0 = <&qup0_i2c4_default>;
  164. status = "okay";
  165. touchscreen@10 {
  166. compatible = "hid-over-i2c";
  167. reg = <0x10>;
  168. hid-descr-addr = <0x1>;
  169. interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>;
  170. vdd-supply = <&vreg_misc_3p3>;
  171. pinctrl-names = "default";
  172. pinctrl-0 = <&ts0_default>;
  173. };
  174. };
  175. &qup1 {
  176. status = "okay";
  177. };
  178. &qup2 {
  179. status = "okay";
  180. };
  181. &qup2_i2c5 {
  182. clock-frequency = <400000>;
  183. pinctrl-names = "default";
  184. pinctrl-0 = <&qup2_i2c5_default>;
  185. status = "okay";
  186. touchpad@15 {
  187. compatible = "hid-over-i2c";
  188. reg = <0x15>;
  189. hid-descr-addr = <0x1>;
  190. interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>;
  191. vdd-supply = <&vreg_misc_3p3>;
  192. pinctrl-names = "default";
  193. pinctrl-0 = <&tpad_default>;
  194. wakeup-source;
  195. };
  196. keyboard@68 {
  197. compatible = "hid-over-i2c";
  198. reg = <0x68>;
  199. hid-descr-addr = <0x1>;
  200. interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
  201. vdd-supply = <&vreg_misc_3p3>;
  202. pinctrl-names = "default";
  203. pinctrl-0 = <&kybd_default>;
  204. wakeup-source;
  205. };
  206. };
  207. &qup2_uart17 {
  208. compatible = "qcom,geni-debug-uart";
  209. status = "okay";
  210. };
  211. &remoteproc_adsp {
  212. firmware-name = "qcom/sc8280xp/qcadsp8280.mbn";
  213. status = "okay";
  214. };
  215. &remoteproc_nsp0 {
  216. firmware-name = "qcom/sc8280xp/qccdsp8280.mbn";
  217. status = "okay";
  218. };
  219. &ufs_mem_hc {
  220. reset-gpios = <&tlmm 228 GPIO_ACTIVE_LOW>;
  221. vcc-supply = <&vreg_l7c>;
  222. vcc-max-microamp = <800000>;
  223. vccq-supply = <&vreg_l3d>;
  224. vccq-max-microamp = <900000>;
  225. status = "okay";
  226. };
  227. &ufs_mem_phy {
  228. vdda-phy-supply = <&vreg_l6b>;
  229. vdda-pll-supply = <&vreg_l3b>;
  230. status = "okay";
  231. };
  232. &usb_0 {
  233. status = "okay";
  234. };
  235. &usb_0_dwc3 {
  236. /* TODO: Define USB-C connector properly */
  237. dr_mode = "host";
  238. };
  239. &usb_0_hsphy {
  240. vdda-pll-supply = <&vreg_l9d>;
  241. vdda18-supply = <&vreg_l1c>;
  242. vdda33-supply = <&vreg_l7d>;
  243. status = "okay";
  244. };
  245. &usb_0_qmpphy {
  246. vdda-phy-supply = <&vreg_l9d>;
  247. vdda-pll-supply = <&vreg_l4d>;
  248. status = "okay";
  249. };
  250. &usb_1 {
  251. status = "okay";
  252. };
  253. &usb_1_dwc3 {
  254. /* TODO: Define USB-C connector properly */
  255. dr_mode = "host";
  256. };
  257. &usb_1_hsphy {
  258. vdda-pll-supply = <&vreg_l4b>;
  259. vdda18-supply = <&vreg_l1c>;
  260. vdda33-supply = <&vreg_l13c>;
  261. status = "okay";
  262. };
  263. &usb_1_qmpphy {
  264. vdda-phy-supply = <&vreg_l4b>;
  265. vdda-pll-supply = <&vreg_l3b>;
  266. status = "okay";
  267. };
  268. &xo_board_clk {
  269. clock-frequency = <38400000>;
  270. };
  271. /* PINCTRL - additions to nodes defined in sc8280xp.dtsi */
  272. &pmc8280_1_gpios {
  273. edp_bl_en: edp-bl-en-state {
  274. pins = "gpio8";
  275. function = "normal";
  276. };
  277. edp_bl_reg_en: edp-bl-reg-en-state {
  278. pins = "gpio9";
  279. function = "normal";
  280. };
  281. misc_3p3_reg_en: misc-3p3-reg-en-state {
  282. pins = "gpio2";
  283. function = "normal";
  284. };
  285. };
  286. &pmc8280c_gpios {
  287. edp_bl_pwm: edp-bl-pwm-state {
  288. pins = "gpio8";
  289. function = "func1";
  290. };
  291. };
  292. &tlmm {
  293. gpio-reserved-ranges = <74 6>, <83 4>, <125 2>, <128 2>, <154 7>;
  294. kybd_default: kybd-default-state {
  295. disable {
  296. pins = "gpio102";
  297. function = "gpio";
  298. output-low;
  299. };
  300. int-n {
  301. pins = "gpio104";
  302. function = "gpio";
  303. bias-disable;
  304. };
  305. reset {
  306. pins = "gpio105";
  307. function = "gpio";
  308. bias-disable;
  309. };
  310. };
  311. qup0_i2c4_default: qup0-i2c4-default-state {
  312. pins = "gpio171", "gpio172";
  313. function = "qup4";
  314. bias-disable;
  315. drive-strength = <16>;
  316. };
  317. qup2_i2c5_default: qup2-i2c5-default-state {
  318. pins = "gpio81", "gpio82";
  319. function = "qup21";
  320. bias-disable;
  321. drive-strength = <16>;
  322. };
  323. tpad_default: tpad-default-state {
  324. int-n {
  325. pins = "gpio182";
  326. function = "gpio";
  327. bias-disable;
  328. };
  329. };
  330. ts0_default: ts0-default-state {
  331. int-n {
  332. pins = "gpio175";
  333. function = "gpio";
  334. bias-disable;
  335. };
  336. reset-n {
  337. pins = "gpio99";
  338. function = "gpio";
  339. output-high;
  340. drive-strength = <16>;
  341. };
  342. };
  343. };