mt8183-kukui-jacuzzi.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright 2021 Google LLC
  4. */
  5. #include "mt8183-kukui.dtsi"
  6. / {
  7. panel: panel {
  8. compatible = "auo,b116xw03";
  9. power-supply = <&pp3300_panel>;
  10. backlight = <&backlight_lcd0>;
  11. port {
  12. panel_in: endpoint {
  13. remote-endpoint = <&anx7625_out>;
  14. };
  15. };
  16. };
  17. pp1200_mipibrdg: pp1200-mipibrdg {
  18. compatible = "regulator-fixed";
  19. regulator-name = "pp1200_mipibrdg";
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&pp1200_mipibrdg_en>;
  22. enable-active-high;
  23. regulator-boot-on;
  24. gpio = <&pio 54 GPIO_ACTIVE_HIGH>;
  25. };
  26. pp1800_mipibrdg: pp1800-mipibrdg {
  27. compatible = "regulator-fixed";
  28. regulator-name = "pp1800_mipibrdg";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&pp1800_lcd_en>;
  31. enable-active-high;
  32. regulator-boot-on;
  33. gpio = <&pio 36 GPIO_ACTIVE_HIGH>;
  34. };
  35. pp3300_panel: pp3300-panel {
  36. compatible = "regulator-fixed";
  37. regulator-name = "pp3300_panel";
  38. regulator-min-microvolt = <3300000>;
  39. regulator-max-microvolt = <3300000>;
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&pp3300_panel_pins>;
  42. enable-active-high;
  43. regulator-boot-on;
  44. gpio = <&pio 35 GPIO_ACTIVE_HIGH>;
  45. };
  46. vddio_mipibrdg: vddio-mipibrdg {
  47. compatible = "regulator-fixed";
  48. regulator-name = "vddio_mipibrdg";
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&vddio_mipibrdg_en>;
  51. enable-active-high;
  52. regulator-boot-on;
  53. gpio = <&pio 37 GPIO_ACTIVE_HIGH>;
  54. };
  55. volume_buttons: volume-buttons {
  56. compatible = "gpio-keys";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&volume_button_pins>;
  59. button-volume-down {
  60. label = "Volume Down";
  61. linux,code = <KEY_VOLUMEDOWN>;
  62. debounce-interval = <100>;
  63. gpios = <&pio 6 GPIO_ACTIVE_LOW>;
  64. };
  65. button-volume-up {
  66. label = "Volume Up";
  67. linux,code = <KEY_VOLUMEUP>;
  68. debounce-interval = <100>;
  69. gpios = <&pio 5 GPIO_ACTIVE_LOW>;
  70. };
  71. };
  72. };
  73. &cros_ec {
  74. cros_ec_pwm: pwm {
  75. compatible = "google,cros-ec-pwm";
  76. #pwm-cells = <1>;
  77. status = "disabled";
  78. };
  79. };
  80. &dsi0 {
  81. status = "okay";
  82. /delete-property/#size-cells;
  83. /delete-property/#address-cells;
  84. /delete-node/panel@0;
  85. ports {
  86. port {
  87. dsi_out: endpoint {
  88. remote-endpoint = <&anx7625_in>;
  89. };
  90. };
  91. };
  92. };
  93. &i2c0 {
  94. status = "okay";
  95. touchscreen: touchscreen@10 {
  96. compatible = "elan,ekth3500";
  97. reg = <0x10>;
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&touchscreen_pins>;
  100. interrupts-extended = <&pio 155 IRQ_TYPE_LEVEL_LOW>;
  101. reset-gpios = <&pio 156 GPIO_ACTIVE_LOW>;
  102. };
  103. };
  104. &i2c2 {
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&i2c2_pins>;
  107. status = "okay";
  108. clock-frequency = <400000>;
  109. trackpad@15 {
  110. compatible = "elan,ekth3000";
  111. reg = <0x15>;
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&trackpad_pins>;
  114. interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>;
  115. wakeup-source;
  116. };
  117. };
  118. &i2c4 {
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&i2c4_pins>;
  121. status = "okay";
  122. clock-frequency = <100000>;
  123. anx_bridge: anx7625@58 {
  124. compatible = "analogix,anx7625";
  125. reg = <0x58>;
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&anx7625_pins>;
  128. panel_flags = <1>;
  129. enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
  130. reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>;
  131. vdd10-supply = <&pp1200_mipibrdg>;
  132. vdd18-supply = <&pp1800_mipibrdg>;
  133. vdd33-supply = <&vddio_mipibrdg>;
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. port@0 {
  137. reg = <0>;
  138. anx7625_in: endpoint {
  139. remote-endpoint = <&dsi_out>;
  140. };
  141. };
  142. port@1 {
  143. reg = <1>;
  144. anx7625_out: endpoint {
  145. remote-endpoint = <&panel_in>;
  146. };
  147. };
  148. };
  149. };
  150. &i2c_tunnel {
  151. google,remote-bus = <2>;
  152. };
  153. &pio {
  154. /* 192 lines */
  155. gpio-line-names =
  156. "SPI_AP_EC_CS_L",
  157. "SPI_AP_EC_MOSI",
  158. "SPI_AP_EC_CLK",
  159. "I2S3_DO",
  160. "USB_PD_INT_ODL",
  161. "",
  162. "",
  163. "",
  164. "",
  165. "IT6505_HPD_L",
  166. "I2S3_TDM_D3",
  167. "SOC_I2C6_1V8_SCL",
  168. "SOC_I2C6_1V8_SDA",
  169. "DPI_D0",
  170. "DPI_D1",
  171. "DPI_D2",
  172. "DPI_D3",
  173. "DPI_D4",
  174. "DPI_D5",
  175. "DPI_D6",
  176. "DPI_D7",
  177. "DPI_D8",
  178. "DPI_D9",
  179. "DPI_D10",
  180. "DPI_D11",
  181. "DPI_HSYNC",
  182. "DPI_VSYNC",
  183. "DPI_DE",
  184. "DPI_CK",
  185. "AP_MSDC1_CLK",
  186. "AP_MSDC1_DAT3",
  187. "AP_MSDC1_CMD",
  188. "AP_MSDC1_DAT0",
  189. "AP_MSDC1_DAT2",
  190. "AP_MSDC1_DAT1",
  191. "",
  192. "",
  193. "",
  194. "",
  195. "",
  196. "",
  197. "OTG_EN",
  198. "DRVBUS",
  199. "DISP_PWM",
  200. "DSI_TE",
  201. "LCM_RST_1V8",
  202. "AP_CTS_WIFI_RTS",
  203. "AP_RTS_WIFI_CTS",
  204. "SOC_I2C5_1V8_SCL",
  205. "SOC_I2C5_1V8_SDA",
  206. "SOC_I2C3_1V8_SCL",
  207. "SOC_I2C3_1V8_SDA",
  208. "",
  209. "",
  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. "",
  236. "",
  237. "SOC_I2C1_1V8_SDA",
  238. "SOC_I2C0_1V8_SDA",
  239. "SOC_I2C0_1V8_SCL",
  240. "SOC_I2C1_1V8_SCL",
  241. "AP_SPI_H1_MISO",
  242. "AP_SPI_H1_CS_L",
  243. "AP_SPI_H1_MOSI",
  244. "AP_SPI_H1_CLK",
  245. "I2S5_BCK",
  246. "I2S5_LRCK",
  247. "I2S5_DO",
  248. "BOOTBLOCK_EN_L",
  249. "MT8183_KPCOL0",
  250. "SPI_AP_EC_MISO",
  251. "UART_DBG_TX_AP_RX",
  252. "UART_AP_TX_DBG_RX",
  253. "I2S2_MCK",
  254. "I2S2_BCK",
  255. "CLK_5M_WCAM",
  256. "CLK_2M_UCAM",
  257. "I2S2_LRCK",
  258. "I2S2_DI",
  259. "SOC_I2C2_1V8_SCL",
  260. "SOC_I2C2_1V8_SDA",
  261. "SOC_I2C4_1V8_SCL",
  262. "SOC_I2C4_1V8_SDA",
  263. "",
  264. "SCL8",
  265. "SDA8",
  266. "FCAM_PWDN_L",
  267. "",
  268. "",
  269. "",
  270. "",
  271. "",
  272. "",
  273. "",
  274. "",
  275. "",
  276. "",
  277. "",
  278. "",
  279. "",
  280. "",
  281. "",
  282. "",
  283. "",
  284. "",
  285. "",
  286. "",
  287. "",
  288. "",
  289. "",
  290. "",
  291. "",
  292. "I2S_PMIC",
  293. "I2S_PMIC",
  294. "I2S_PMIC",
  295. "I2S_PMIC",
  296. "I2S_PMIC",
  297. "I2S_PMIC",
  298. "I2S_PMIC",
  299. "I2S_PMIC",
  300. "",
  301. "",
  302. "",
  303. "",
  304. "",
  305. "",
  306. /*
  307. * AP_FLASH_WP_L is crossystem ABI. Rev1 schematics
  308. * call it BIOS_FLASH_WP_R_L.
  309. */
  310. "AP_FLASH_WP_L",
  311. "EC_AP_INT_ODL",
  312. "IT6505_INT_ODL",
  313. "H1_INT_OD_L",
  314. "",
  315. "",
  316. "",
  317. "",
  318. "",
  319. "",
  320. "",
  321. "AP_SPI_FLASH_MISO",
  322. "AP_SPI_FLASH_CS_L",
  323. "AP_SPI_FLASH_MOSI",
  324. "AP_SPI_FLASH_CLK",
  325. "DA7219_IRQ",
  326. "",
  327. "",
  328. "",
  329. "",
  330. "",
  331. "",
  332. "",
  333. "",
  334. "",
  335. "",
  336. "",
  337. "",
  338. "",
  339. "",
  340. "",
  341. "",
  342. "",
  343. "",
  344. "",
  345. "",
  346. "",
  347. "",
  348. "",
  349. "",
  350. "",
  351. "";
  352. pp1200_mipibrdg_en: pp1200-mipibrdg-en {
  353. pins1 {
  354. pinmux = <PINMUX_GPIO54__FUNC_GPIO54>;
  355. output-low;
  356. };
  357. };
  358. pp1800_lcd_en: pp1800-lcd-en {
  359. pins1 {
  360. pinmux = <PINMUX_GPIO36__FUNC_GPIO36>;
  361. output-low;
  362. };
  363. };
  364. pp3300_panel_pins: pp3300-panel-pins {
  365. panel_3v3_enable: panel-3v3-enable {
  366. pinmux = <PINMUX_GPIO35__FUNC_GPIO35>;
  367. output-low;
  368. };
  369. };
  370. ppvarp_lcd_en: ppvarp-lcd-en {
  371. pins1 {
  372. pinmux = <PINMUX_GPIO66__FUNC_GPIO66>;
  373. output-low;
  374. };
  375. };
  376. ppvarn_lcd_en: ppvarn-lcd-en {
  377. pins1 {
  378. pinmux = <PINMUX_GPIO166__FUNC_GPIO166>;
  379. output-low;
  380. };
  381. };
  382. anx7625_pins: anx7625-pins {
  383. pins1 {
  384. pinmux = <PINMUX_GPIO45__FUNC_GPIO45>,
  385. <PINMUX_GPIO73__FUNC_GPIO73>;
  386. output-low;
  387. };
  388. pins2 {
  389. pinmux = <PINMUX_GPIO4__FUNC_GPIO4>;
  390. input-enable;
  391. bias-pull-up;
  392. };
  393. };
  394. touchscreen_pins: touchscreen-pins {
  395. touch-int-odl {
  396. pinmux = <PINMUX_GPIO155__FUNC_GPIO155>;
  397. input-enable;
  398. bias-pull-up;
  399. };
  400. touch-rst-l {
  401. pinmux = <PINMUX_GPIO156__FUNC_GPIO156>;
  402. output-high;
  403. };
  404. };
  405. trackpad_pins: trackpad-pins {
  406. trackpad-int {
  407. pinmux = <PINMUX_GPIO7__FUNC_GPIO7>;
  408. input-enable;
  409. bias-disable; /* pulled externally */
  410. };
  411. };
  412. vddio_mipibrdg_en: vddio-mipibrdg-en {
  413. pins1 {
  414. pinmux = <PINMUX_GPIO37__FUNC_GPIO37>;
  415. output-low;
  416. };
  417. };
  418. volume_button_pins: volume-button-pins {
  419. voldn-btn-odl {
  420. pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
  421. input-enable;
  422. bias-pull-up;
  423. };
  424. volup-btn-odl {
  425. pinmux = <PINMUX_GPIO5__FUNC_GPIO5>;
  426. input-enable;
  427. bias-pull-up;
  428. };
  429. };
  430. };