rk3288-veyron-jaq.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Google Veyron Jaq Rev 1+ board device tree source
  4. *
  5. * Copyright 2015 Google, Inc
  6. */
  7. /dts-v1/;
  8. #include "rk3288-veyron-chromebook.dtsi"
  9. #include "cros-ec-sbs.dtsi"
  10. / {
  11. model = "Google Jaq";
  12. compatible = "google,veyron-jaq-rev5", "google,veyron-jaq-rev4",
  13. "google,veyron-jaq-rev3", "google,veyron-jaq-rev2",
  14. "google,veyron-jaq-rev1", "google,veyron-jaq",
  15. "google,veyron", "rockchip,rk3288";
  16. };
  17. &backlight {
  18. /* Jaq panel PWM must be >= 3%, so start non-zero brightness at 8 */
  19. brightness-levels = <8 255>;
  20. num-interpolated-steps = <247>;
  21. };
  22. &rk808 {
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
  25. dvs-gpios = <&gpio7 RK_PB4 GPIO_ACTIVE_HIGH>,
  26. <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
  27. regulators {
  28. mic_vcc: LDO_REG2 {
  29. regulator-name = "mic_vcc";
  30. regulator-always-on;
  31. regulator-boot-on;
  32. regulator-min-microvolt = <1800000>;
  33. regulator-max-microvolt = <1800000>;
  34. regulator-state-mem {
  35. regulator-off-in-suspend;
  36. };
  37. };
  38. };
  39. };
  40. &sdio0 {
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. btmrvl: btmrvl@2 {
  44. compatible = "marvell,sd8897-bt";
  45. reg = <2>;
  46. interrupt-parent = <&gpio4>;
  47. interrupts = <RK_PD7 IRQ_TYPE_LEVEL_LOW>;
  48. marvell,wakeup-pin = /bits/ 16 <13>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&bt_host_wake_l>;
  51. };
  52. };
  53. &sdmmc {
  54. disable-wp;
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_pin
  57. &sdmmc_bus4>;
  58. };
  59. &vcc_5v {
  60. enable-active-high;
  61. gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>;
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&drv_5v>;
  64. };
  65. &vcc50_hdmi {
  66. enable-active-high;
  67. gpio = <&gpio5 RK_PC3 GPIO_ACTIVE_HIGH>;
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&vcc50_hdmi_en>;
  70. };
  71. &gpio0 {
  72. gpio-line-names = "PMIC_SLEEP_AP",
  73. "DDRIO_PWROFF",
  74. "DDRIO_RETEN",
  75. "TS3A227E_INT_L",
  76. "PMIC_INT_L",
  77. "PWR_KEY_L",
  78. "AP_LID_INT_L",
  79. "EC_IN_RW",
  80. "AC_PRESENT_AP",
  81. /*
  82. * RECOVERY_SW_L is Chrome OS ABI. Schematics call
  83. * it REC_MODE_L.
  84. */
  85. "RECOVERY_SW_L",
  86. "OTP_OUT",
  87. "HOST1_PWR_EN",
  88. "USBOTG_PWREN_H",
  89. "AP_WARM_RESET_H",
  90. "nFALUT2",
  91. "I2C0_SDA_PMIC",
  92. "I2C0_SCL_PMIC",
  93. "SUSPEND_L",
  94. "USB_INT";
  95. };
  96. &gpio2 {
  97. gpio-line-names = "CONFIG0",
  98. "CONFIG1",
  99. "CONFIG2",
  100. "",
  101. "",
  102. "",
  103. "",
  104. "CONFIG3",
  105. "",
  106. "EMMC_RST_L",
  107. "",
  108. "",
  109. "BL_PWR_EN",
  110. "AVDD_1V8_DISP_EN";
  111. };
  112. &gpio3 {
  113. gpio-line-names = "FLASH0_D0",
  114. "FLASH0_D1",
  115. "FLASH0_D2",
  116. "FLASH0_D3",
  117. "FLASH0_D4",
  118. "FLASH0_D5",
  119. "FLASH0_D6",
  120. "FLASH0_D7",
  121. "",
  122. "",
  123. "",
  124. "",
  125. "",
  126. "",
  127. "",
  128. "",
  129. "FLASH0_CS2/EMMC_CMD",
  130. "",
  131. "FLASH0_DQS/EMMC_CLKO";
  132. };
  133. &gpio4 {
  134. gpio-line-names = "",
  135. "",
  136. "",
  137. "",
  138. "",
  139. "",
  140. "",
  141. "",
  142. "",
  143. "",
  144. "",
  145. "",
  146. "",
  147. "",
  148. "",
  149. "",
  150. "UART0_RXD",
  151. "UART0_TXD",
  152. "UART0_CTS",
  153. "UART0_RTS",
  154. "SDIO0_D0",
  155. "SDIO0_D1",
  156. "SDIO0_D2",
  157. "SDIO0_D3",
  158. "SDIO0_CMD",
  159. "SDIO0_CLK",
  160. "BT_DEV_WAKE", /* Maybe missing from mighty? */
  161. "",
  162. "WIFI_ENABLE_H",
  163. "BT_ENABLE_L",
  164. "WIFI_HOST_WAKE",
  165. "BT_HOST_WAKE";
  166. };
  167. &gpio5 {
  168. gpio-line-names = "",
  169. "",
  170. "",
  171. "",
  172. "",
  173. "",
  174. "",
  175. "",
  176. "",
  177. "",
  178. "",
  179. "",
  180. "SPI0_CLK",
  181. "SPI0_CS0",
  182. "SPI0_TXD",
  183. "SPI0_RXD",
  184. "",
  185. "",
  186. "",
  187. "VCC50_HDMI_EN";
  188. };
  189. &gpio6 {
  190. gpio-line-names = "I2S0_SCLK",
  191. "I2S0_LRCK_RX",
  192. "I2S0_LRCK_TX",
  193. "I2S0_SDI",
  194. "I2S0_SDO0",
  195. "HP_DET_H",
  196. "ALS_INT",
  197. "INT_CODEC",
  198. "I2S0_CLK",
  199. "I2C2_SDA",
  200. "I2C2_SCL",
  201. "MICDET",
  202. "",
  203. "",
  204. "",
  205. "",
  206. "SDMMC_D0",
  207. "SDMMC_D1",
  208. "SDMMC_D2",
  209. "SDMMC_D3",
  210. "SDMMC_CLK",
  211. "SDMMC_CMD";
  212. };
  213. &gpio7 {
  214. gpio-line-names = "LCDC_BL",
  215. "PWM_LOG",
  216. "BL_EN",
  217. "TRACKPAD_INT",
  218. "TPM_INT_H",
  219. "SDMMC_DET_L",
  220. /*
  221. * AP_FLASH_WP_L is Chrome OS ABI. Schematics call
  222. * it FW_WP_AP.
  223. */
  224. "AP_FLASH_WP_L",
  225. "EC_INT",
  226. "CPU_NMI",
  227. "DVSOK",
  228. "SDMMC_WP", /* mighty only */
  229. "EDP_HPD",
  230. "DVS1",
  231. "nFALUT1", /* nFAULT1 on jaq */
  232. "LCD_EN",
  233. "DVS2",
  234. "VCC5V_GOOD_H",
  235. "I2C4_SDA_TP",
  236. "I2C4_SCL_TP",
  237. "I2C5_SDA_HDMI",
  238. "I2C5_SCL_HDMI",
  239. "5V_DRV",
  240. "UART2_RXD",
  241. "UART2_TXD";
  242. };
  243. &gpio8 {
  244. gpio-line-names = "RAM_ID0",
  245. "RAM_ID1",
  246. "RAM_ID2",
  247. "RAM_ID3",
  248. "I2C1_SDA_TPM",
  249. "I2C1_SCL_TPM",
  250. "SPI2_CLK",
  251. "SPI2_CS0",
  252. "SPI2_RXD",
  253. "SPI2_TXD";
  254. };
  255. &pinctrl {
  256. pinctrl-names = "default", "sleep";
  257. pinctrl-0 = <
  258. /* Common for sleep and wake, but no owners */
  259. &ddr0_retention
  260. &ddrio_pwroff
  261. &global_pwroff
  262. /* Wake only */
  263. &suspend_l_wake
  264. &bt_dev_wake_awake
  265. >;
  266. pinctrl-1 = <
  267. /* Common for sleep and wake, but no owners */
  268. &ddr0_retention
  269. &ddrio_pwroff
  270. &global_pwroff
  271. /* Sleep only */
  272. &suspend_l_sleep
  273. &bt_dev_wake_sleep
  274. >;
  275. buck-5v {
  276. drv_5v: drv-5v {
  277. rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
  278. };
  279. };
  280. hdmi {
  281. vcc50_hdmi_en: vcc50-hdmi-en {
  282. rockchip,pins = <5 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
  283. };
  284. };
  285. pmic {
  286. dvs_1: dvs-1 {
  287. rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
  288. };
  289. dvs_2: dvs-2 {
  290. rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
  291. };
  292. };
  293. };