0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003 * Copyright 2021 Google LLC
0004 */
0005
0006 #include "mt8183-kukui.dtsi"
0007
0008 / {
0009 panel: panel {
0010 compatible = "auo,b116xw03";
0011 power-supply = <&pp3300_panel>;
0012 backlight = <&backlight_lcd0>;
0013
0014 port {
0015 panel_in: endpoint {
0016 remote-endpoint = <&anx7625_out>;
0017 };
0018 };
0019 };
0020
0021 pp1200_mipibrdg: pp1200-mipibrdg {
0022 compatible = "regulator-fixed";
0023 regulator-name = "pp1200_mipibrdg";
0024 pinctrl-names = "default";
0025 pinctrl-0 = <&pp1200_mipibrdg_en>;
0026
0027 enable-active-high;
0028 regulator-boot-on;
0029
0030 gpio = <&pio 54 GPIO_ACTIVE_HIGH>;
0031 };
0032
0033 pp1800_mipibrdg: pp1800-mipibrdg {
0034 compatible = "regulator-fixed";
0035 regulator-name = "pp1800_mipibrdg";
0036 pinctrl-names = "default";
0037 pinctrl-0 = <&pp1800_lcd_en>;
0038
0039 enable-active-high;
0040 regulator-boot-on;
0041
0042 gpio = <&pio 36 GPIO_ACTIVE_HIGH>;
0043 };
0044
0045 pp3300_panel: pp3300-panel {
0046 compatible = "regulator-fixed";
0047 regulator-name = "pp3300_panel";
0048 regulator-min-microvolt = <3300000>;
0049 regulator-max-microvolt = <3300000>;
0050 pinctrl-names = "default";
0051 pinctrl-0 = <&pp3300_panel_pins>;
0052
0053 enable-active-high;
0054 regulator-boot-on;
0055
0056 gpio = <&pio 35 GPIO_ACTIVE_HIGH>;
0057 };
0058
0059 vddio_mipibrdg: vddio-mipibrdg {
0060 compatible = "regulator-fixed";
0061 regulator-name = "vddio_mipibrdg";
0062 pinctrl-names = "default";
0063 pinctrl-0 = <&vddio_mipibrdg_en>;
0064
0065 enable-active-high;
0066 regulator-boot-on;
0067
0068 gpio = <&pio 37 GPIO_ACTIVE_HIGH>;
0069 };
0070
0071 volume_buttons: volume-buttons {
0072 compatible = "gpio-keys";
0073 pinctrl-names = "default";
0074 pinctrl-0 = <&volume_button_pins>;
0075
0076 button-volume-down {
0077 label = "Volume Down";
0078 linux,code = <KEY_VOLUMEDOWN>;
0079 debounce-interval = <100>;
0080
0081 gpios = <&pio 6 GPIO_ACTIVE_LOW>;
0082 };
0083
0084 button-volume-up {
0085 label = "Volume Up";
0086 linux,code = <KEY_VOLUMEUP>;
0087 debounce-interval = <100>;
0088
0089 gpios = <&pio 5 GPIO_ACTIVE_LOW>;
0090 };
0091 };
0092 };
0093
0094 &cros_ec {
0095 cros_ec_pwm: pwm {
0096 compatible = "google,cros-ec-pwm";
0097 #pwm-cells = <1>;
0098 status = "disabled";
0099 };
0100 };
0101
0102 &dsi0 {
0103 status = "okay";
0104 /delete-node/panel@0;
0105 ports {
0106 port {
0107 dsi_out: endpoint {
0108 remote-endpoint = <&anx7625_in>;
0109 };
0110 };
0111 };
0112 };
0113
0114 &i2c0 {
0115 status = "okay";
0116
0117 touchscreen: touchscreen@10 {
0118 compatible = "elan,ekth3500";
0119 reg = <0x10>;
0120
0121 pinctrl-names = "default";
0122 pinctrl-0 = <&touchscreen_pins>;
0123
0124 interrupts-extended = <&pio 155 IRQ_TYPE_LEVEL_LOW>;
0125
0126 reset-gpios = <&pio 156 GPIO_ACTIVE_LOW>;
0127 };
0128 };
0129
0130 &i2c2 {
0131 pinctrl-names = "default";
0132 pinctrl-0 = <&i2c2_pins>;
0133 status = "okay";
0134 clock-frequency = <400000>;
0135
0136 trackpad@15 {
0137 compatible = "elan,ekth3000";
0138 reg = <0x15>;
0139
0140 pinctrl-names = "default";
0141 pinctrl-0 = <&trackpad_pins>;
0142
0143 interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>;
0144
0145 wakeup-source;
0146 };
0147 };
0148
0149 &i2c4 {
0150 pinctrl-names = "default";
0151 pinctrl-0 = <&i2c4_pins>;
0152 status = "okay";
0153 clock-frequency = <100000>;
0154
0155 anx_bridge: anx7625@58 {
0156 compatible = "analogix,anx7625";
0157 reg = <0x58>;
0158 pinctrl-names = "default";
0159 pinctrl-0 = <&anx7625_pins>;
0160 panel_flags = <1>;
0161 enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>;
0162 reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>;
0163 vdd10-supply = <&pp1200_mipibrdg>;
0164 vdd18-supply = <&pp1800_mipibrdg>;
0165 vdd33-supply = <&vddio_mipibrdg>;
0166
0167 #address-cells = <1>;
0168 #size-cells = <0>;
0169 port@0 {
0170 reg = <0>;
0171
0172 anx7625_in: endpoint {
0173 remote-endpoint = <&dsi_out>;
0174 };
0175 };
0176
0177 port@1 {
0178 reg = <1>;
0179
0180 anx7625_out: endpoint {
0181 remote-endpoint = <&panel_in>;
0182 };
0183 };
0184 };
0185 };
0186
0187 &i2c_tunnel {
0188 google,remote-bus = <2>;
0189 };
0190
0191 &pio {
0192 /* 192 lines */
0193 gpio-line-names =
0194 "SPI_AP_EC_CS_L",
0195 "SPI_AP_EC_MOSI",
0196 "SPI_AP_EC_CLK",
0197 "I2S3_DO",
0198 "USB_PD_INT_ODL",
0199 "",
0200 "",
0201 "",
0202 "",
0203 "IT6505_HPD_L",
0204 "I2S3_TDM_D3",
0205 "SOC_I2C6_1V8_SCL",
0206 "SOC_I2C6_1V8_SDA",
0207 "DPI_D0",
0208 "DPI_D1",
0209 "DPI_D2",
0210 "DPI_D3",
0211 "DPI_D4",
0212 "DPI_D5",
0213 "DPI_D6",
0214 "DPI_D7",
0215 "DPI_D8",
0216 "DPI_D9",
0217 "DPI_D10",
0218 "DPI_D11",
0219 "DPI_HSYNC",
0220 "DPI_VSYNC",
0221 "DPI_DE",
0222 "DPI_CK",
0223 "AP_MSDC1_CLK",
0224 "AP_MSDC1_DAT3",
0225 "AP_MSDC1_CMD",
0226 "AP_MSDC1_DAT0",
0227 "AP_MSDC1_DAT2",
0228 "AP_MSDC1_DAT1",
0229 "",
0230 "",
0231 "",
0232 "",
0233 "",
0234 "",
0235 "OTG_EN",
0236 "DRVBUS",
0237 "DISP_PWM",
0238 "DSI_TE",
0239 "LCM_RST_1V8",
0240 "AP_CTS_WIFI_RTS",
0241 "AP_RTS_WIFI_CTS",
0242 "SOC_I2C5_1V8_SCL",
0243 "SOC_I2C5_1V8_SDA",
0244 "SOC_I2C3_1V8_SCL",
0245 "SOC_I2C3_1V8_SDA",
0246 "",
0247 "",
0248 "",
0249 "",
0250 "",
0251 "",
0252 "",
0253 "",
0254 "",
0255 "",
0256 "",
0257 "",
0258 "",
0259 "",
0260 "",
0261 "",
0262 "",
0263 "",
0264 "",
0265 "",
0266 "",
0267 "",
0268 "",
0269 "",
0270 "",
0271 "",
0272 "",
0273 "",
0274 "",
0275 "SOC_I2C1_1V8_SDA",
0276 "SOC_I2C0_1V8_SDA",
0277 "SOC_I2C0_1V8_SCL",
0278 "SOC_I2C1_1V8_SCL",
0279 "AP_SPI_H1_MISO",
0280 "AP_SPI_H1_CS_L",
0281 "AP_SPI_H1_MOSI",
0282 "AP_SPI_H1_CLK",
0283 "I2S5_BCK",
0284 "I2S5_LRCK",
0285 "I2S5_DO",
0286 "BOOTBLOCK_EN_L",
0287 "MT8183_KPCOL0",
0288 "SPI_AP_EC_MISO",
0289 "UART_DBG_TX_AP_RX",
0290 "UART_AP_TX_DBG_RX",
0291 "I2S2_MCK",
0292 "I2S2_BCK",
0293 "CLK_5M_WCAM",
0294 "CLK_2M_UCAM",
0295 "I2S2_LRCK",
0296 "I2S2_DI",
0297 "SOC_I2C2_1V8_SCL",
0298 "SOC_I2C2_1V8_SDA",
0299 "SOC_I2C4_1V8_SCL",
0300 "SOC_I2C4_1V8_SDA",
0301 "",
0302 "SCL8",
0303 "SDA8",
0304 "FCAM_PWDN_L",
0305 "",
0306 "",
0307 "",
0308 "",
0309 "",
0310 "",
0311 "",
0312 "",
0313 "",
0314 "",
0315 "",
0316 "",
0317 "",
0318 "",
0319 "",
0320 "",
0321 "",
0322 "",
0323 "",
0324 "",
0325 "",
0326 "",
0327 "",
0328 "",
0329 "",
0330 "I2S_PMIC",
0331 "I2S_PMIC",
0332 "I2S_PMIC",
0333 "I2S_PMIC",
0334 "I2S_PMIC",
0335 "I2S_PMIC",
0336 "I2S_PMIC",
0337 "I2S_PMIC",
0338 "",
0339 "",
0340 "",
0341 "",
0342 "",
0343 "",
0344 /*
0345 * AP_FLASH_WP_L is crossystem ABI. Rev1 schematics
0346 * call it BIOS_FLASH_WP_R_L.
0347 */
0348 "AP_FLASH_WP_L",
0349 "EC_AP_INT_ODL",
0350 "IT6505_INT_ODL",
0351 "H1_INT_OD_L",
0352 "",
0353 "",
0354 "",
0355 "",
0356 "",
0357 "",
0358 "",
0359 "AP_SPI_FLASH_MISO",
0360 "AP_SPI_FLASH_CS_L",
0361 "AP_SPI_FLASH_MOSI",
0362 "AP_SPI_FLASH_CLK",
0363 "DA7219_IRQ",
0364 "",
0365 "",
0366 "",
0367 "",
0368 "",
0369 "",
0370 "",
0371 "",
0372 "",
0373 "",
0374 "",
0375 "",
0376 "",
0377 "",
0378 "",
0379 "",
0380 "",
0381 "",
0382 "",
0383 "",
0384 "",
0385 "",
0386 "",
0387 "",
0388 "",
0389 "";
0390
0391 pp1200_mipibrdg_en: pp1200-mipibrdg-en {
0392 pins1 {
0393 pinmux = <PINMUX_GPIO54__FUNC_GPIO54>;
0394 output-low;
0395 };
0396 };
0397
0398 pp1800_lcd_en: pp1800-lcd-en {
0399 pins1 {
0400 pinmux = <PINMUX_GPIO36__FUNC_GPIO36>;
0401 output-low;
0402 };
0403 };
0404
0405 pp3300_panel_pins: pp3300-panel-pins {
0406 panel_3v3_enable: panel-3v3-enable {
0407 pinmux = <PINMUX_GPIO35__FUNC_GPIO35>;
0408 output-low;
0409 };
0410 };
0411
0412 ppvarp_lcd_en: ppvarp-lcd-en {
0413 pins1 {
0414 pinmux = <PINMUX_GPIO66__FUNC_GPIO66>;
0415 output-low;
0416 };
0417 };
0418
0419 ppvarn_lcd_en: ppvarn-lcd-en {
0420 pins1 {
0421 pinmux = <PINMUX_GPIO166__FUNC_GPIO166>;
0422 output-low;
0423 };
0424 };
0425
0426 anx7625_pins: anx7625-pins {
0427 pins1 {
0428 pinmux = <PINMUX_GPIO45__FUNC_GPIO45>,
0429 <PINMUX_GPIO73__FUNC_GPIO73>;
0430 output-low;
0431 };
0432 pins2 {
0433 pinmux = <PINMUX_GPIO4__FUNC_GPIO4>;
0434 input-enable;
0435 bias-pull-up;
0436 };
0437 };
0438
0439 touchscreen_pins: touchscreen-pins {
0440 touch_int_odl {
0441 pinmux = <PINMUX_GPIO155__FUNC_GPIO155>;
0442 input-enable;
0443 bias-pull-up;
0444 };
0445
0446 touch_rst_l {
0447 pinmux = <PINMUX_GPIO156__FUNC_GPIO156>;
0448 output-high;
0449 };
0450 };
0451
0452 trackpad_pins: trackpad-pins {
0453 trackpad_int {
0454 pinmux = <PINMUX_GPIO7__FUNC_GPIO7>;
0455 input-enable;
0456 bias-disable; /* pulled externally */
0457 };
0458 };
0459
0460 vddio_mipibrdg_en: vddio-mipibrdg-en {
0461 pins1 {
0462 pinmux = <PINMUX_GPIO37__FUNC_GPIO37>;
0463 output-low;
0464 };
0465 };
0466
0467 volume_button_pins: volume-button-pins {
0468 voldn-btn-odl {
0469 pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
0470 input-enable;
0471 bias-pull-up;
0472 };
0473
0474 volup-btn-odl {
0475 pinmux = <PINMUX_GPIO5__FUNC_GPIO5>;
0476 input-enable;
0477 bias-pull-up;
0478 };
0479 };
0480 };
0481