mt8183-kukui-kakadu.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright 2020 Google LLC
  4. */
  5. #include "mt8183-kukui.dtsi"
  6. #include <dt-bindings/input/gpio-keys.h>
  7. / {
  8. ppvarn_lcd: ppvarn-lcd {
  9. compatible = "regulator-fixed";
  10. regulator-name = "ppvarn_lcd";
  11. pinctrl-names = "default";
  12. pinctrl-0 = <&ppvarn_lcd_en>;
  13. enable-active-high;
  14. gpio = <&pio 66 GPIO_ACTIVE_HIGH>;
  15. };
  16. ppvarp_lcd: ppvarp-lcd {
  17. compatible = "regulator-fixed";
  18. regulator-name = "ppvarp_lcd";
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&ppvarp_lcd_en>;
  21. enable-active-high;
  22. gpio = <&pio 166 GPIO_ACTIVE_HIGH>;
  23. };
  24. pp1800_lcd: pp1800-lcd {
  25. compatible = "regulator-fixed";
  26. regulator-name = "pp1800_lcd";
  27. pinctrl-names = "default";
  28. pinctrl-0 = <&pp1800_lcd_en>;
  29. enable-active-high;
  30. gpio = <&pio 36 GPIO_ACTIVE_HIGH>;
  31. };
  32. gpio-keys {
  33. compatible = "gpio-keys";
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&pen_eject>;
  36. switch-pen-insert {
  37. label = "Pen Insert";
  38. /* Insert = low, eject = high */
  39. gpios = <&pio 6 GPIO_ACTIVE_LOW>;
  40. linux,code = <SW_PEN_INSERTED>;
  41. linux,input-type = <EV_SW>;
  42. wakeup-event-action = <EV_ACT_DEASSERTED>;
  43. wakeup-source;
  44. };
  45. };
  46. };
  47. &bluetooth {
  48. firmware-name = "nvm_00440302_i2s_eu.bin";
  49. };
  50. &i2c0 {
  51. status = "okay";
  52. touchscreen: touchscreen@10 {
  53. compatible = "hid-over-i2c";
  54. reg = <0x10>;
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&open_touch>;
  57. interrupt-parent = <&pio>;
  58. interrupts = <155 IRQ_TYPE_EDGE_FALLING>;
  59. post-power-on-delay-ms = <10>;
  60. hid-descr-addr = <0x0001>;
  61. };
  62. };
  63. &mt6358_vcama2_reg {
  64. regulator-min-microvolt = <2800000>;
  65. regulator-max-microvolt = <2800000>;
  66. };
  67. &i2c2 {
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&i2c2_pins>;
  70. status = "okay";
  71. clock-frequency = <400000>;
  72. vbus-supply = <&mt6358_vcamio_reg>;
  73. eeprom@58 {
  74. compatible = "atmel,24c32";
  75. reg = <0x58>;
  76. pagesize = <32>;
  77. vcc-supply = <&mt6358_vcama2_reg>;
  78. };
  79. };
  80. &i2c4 {
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&i2c4_pins>;
  83. status = "okay";
  84. clock-frequency = <400000>;
  85. vbus-supply = <&mt6358_vcn18_reg>;
  86. eeprom@54 {
  87. compatible = "atmel,24c32";
  88. reg = <0x54>;
  89. pagesize = <32>;
  90. vcc-supply = <&mt6358_vcn18_reg>;
  91. };
  92. };
  93. &mipi_tx0 {
  94. drive-strength-microamp = <5800>;
  95. };
  96. &pio {
  97. /* 192 lines */
  98. gpio-line-names =
  99. "SPI_AP_EC_CS_L",
  100. "SPI_AP_EC_MOSI",
  101. "SPI_AP_EC_CLK",
  102. "I2S3_DO",
  103. "USB_PD_INT_ODL",
  104. "",
  105. "",
  106. "",
  107. "",
  108. "IT6505_HPD_L",
  109. "I2S3_TDM_D3",
  110. "SOC_I2C6_1V8_SCL",
  111. "SOC_I2C6_1V8_SDA",
  112. "DPI_D0",
  113. "DPI_D1",
  114. "DPI_D2",
  115. "DPI_D3",
  116. "DPI_D4",
  117. "DPI_D5",
  118. "DPI_D6",
  119. "DPI_D7",
  120. "DPI_D8",
  121. "DPI_D9",
  122. "DPI_D10",
  123. "DPI_D11",
  124. "DPI_HSYNC",
  125. "DPI_VSYNC",
  126. "DPI_DE",
  127. "DPI_CK",
  128. "AP_MSDC1_CLK",
  129. "AP_MSDC1_DAT3",
  130. "AP_MSDC1_CMD",
  131. "AP_MSDC1_DAT0",
  132. "AP_MSDC1_DAT2",
  133. "AP_MSDC1_DAT1",
  134. "",
  135. "",
  136. "",
  137. "",
  138. "",
  139. "",
  140. "OTG_EN",
  141. "DRVBUS",
  142. "DISP_PWM",
  143. "DSI_TE",
  144. "LCM_RST_1V8",
  145. "AP_CTS_WIFI_RTS",
  146. "AP_RTS_WIFI_CTS",
  147. "SOC_I2C5_1V8_SCL",
  148. "SOC_I2C5_1V8_SDA",
  149. "SOC_I2C3_1V8_SCL",
  150. "SOC_I2C3_1V8_SDA",
  151. "",
  152. "",
  153. "",
  154. "",
  155. "",
  156. "",
  157. "",
  158. "",
  159. "",
  160. "",
  161. "",
  162. "",
  163. "",
  164. "",
  165. "",
  166. "",
  167. "",
  168. "",
  169. "",
  170. "",
  171. "",
  172. "",
  173. "",
  174. "",
  175. "",
  176. "",
  177. "",
  178. "",
  179. "",
  180. "SOC_I2C1_1V8_SDA",
  181. "SOC_I2C0_1V8_SDA",
  182. "SOC_I2C0_1V8_SCL",
  183. "SOC_I2C1_1V8_SCL",
  184. "AP_SPI_H1_MISO",
  185. "AP_SPI_H1_CS_L",
  186. "AP_SPI_H1_MOSI",
  187. "AP_SPI_H1_CLK",
  188. "I2S5_BCK",
  189. "I2S5_LRCK",
  190. "I2S5_DO",
  191. "BOOTBLOCK_EN_L",
  192. "MT8183_KPCOL0",
  193. "SPI_AP_EC_MISO",
  194. "UART_DBG_TX_AP_RX",
  195. "UART_AP_TX_DBG_RX",
  196. "I2S2_MCK",
  197. "I2S2_BCK",
  198. "CLK_5M_WCAM",
  199. "CLK_2M_UCAM",
  200. "I2S2_LRCK",
  201. "I2S2_DI",
  202. "SOC_I2C2_1V8_SCL",
  203. "SOC_I2C2_1V8_SDA",
  204. "SOC_I2C4_1V8_SCL",
  205. "SOC_I2C4_1V8_SDA",
  206. "",
  207. "SCL8",
  208. "SDA8",
  209. "FCAM_PWDN_L",
  210. "",
  211. "",
  212. "",
  213. "",
  214. "",
  215. "",
  216. "",
  217. "",
  218. "",
  219. "",
  220. "",
  221. "",
  222. "",
  223. "",
  224. "",
  225. "",
  226. "",
  227. "",
  228. "",
  229. "",
  230. "",
  231. "",
  232. "",
  233. "",
  234. "",
  235. "I2S_PMIC",
  236. "I2S_PMIC",
  237. "I2S_PMIC",
  238. "I2S_PMIC",
  239. "I2S_PMIC",
  240. "I2S_PMIC",
  241. "I2S_PMIC",
  242. "I2S_PMIC",
  243. "",
  244. "",
  245. "",
  246. "",
  247. "",
  248. "",
  249. /*
  250. * AP_FLASH_WP_L is crossystem ABI. Rev1 schematics
  251. * call it BIOS_FLASH_WP_R_L.
  252. */
  253. "AP_FLASH_WP_L",
  254. "EC_AP_INT_ODL",
  255. "IT6505_INT_ODL",
  256. "H1_INT_OD_L",
  257. "",
  258. "",
  259. "",
  260. "",
  261. "",
  262. "",
  263. "",
  264. "AP_SPI_FLASH_MISO",
  265. "AP_SPI_FLASH_CS_L",
  266. "AP_SPI_FLASH_MOSI",
  267. "AP_SPI_FLASH_CLK",
  268. "DA7219_IRQ",
  269. "",
  270. "",
  271. "",
  272. "",
  273. "",
  274. "",
  275. "",
  276. "",
  277. "",
  278. "",
  279. "",
  280. "",
  281. "",
  282. "",
  283. "",
  284. "",
  285. "",
  286. "",
  287. "",
  288. "",
  289. "",
  290. "",
  291. "",
  292. "",
  293. "",
  294. "";
  295. ppvarp_lcd_en: ppvarp-lcd-en {
  296. pins1 {
  297. pinmux = <PINMUX_GPIO66__FUNC_GPIO66>;
  298. output-low;
  299. };
  300. };
  301. ppvarn_lcd_en: ppvarn-lcd-en {
  302. pins1 {
  303. pinmux = <PINMUX_GPIO166__FUNC_GPIO166>;
  304. output-low;
  305. };
  306. };
  307. pp1800_lcd_en: pp1800-lcd-en {
  308. pins1 {
  309. pinmux = <PINMUX_GPIO36__FUNC_GPIO36>;
  310. output-low;
  311. };
  312. };
  313. open_touch: open_touch {
  314. irq_pin {
  315. pinmux = <PINMUX_GPIO155__FUNC_GPIO155>;
  316. input-enable;
  317. bias-pull-up;
  318. };
  319. rst_pin {
  320. pinmux = <PINMUX_GPIO156__FUNC_GPIO156>;
  321. /*
  322. * The pen driver doesn't currently support driving
  323. * this reset line. By specifying output-high here
  324. * we're relying on the fact that this pin has a default
  325. * pulldown at boot (which makes sure the pen was in
  326. * reset if it was powered) and then we set it high here
  327. * to take it out of reset. Better would be if the pen
  328. * driver could control this and we could remove
  329. * "output-high" here.
  330. */
  331. output-high;
  332. };
  333. };
  334. pen_eject: peneject {
  335. pen_eject {
  336. pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
  337. input-enable;
  338. /* External pull-up. */
  339. bias-disable;
  340. };
  341. };
  342. };
  343. &qca_wifi {
  344. qcom,ath10k-calibration-variant = "GO_KAKADU";
  345. };
  346. &panel {
  347. status = "okay";
  348. compatible = "boe,tv105wum-nw0";
  349. };