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