1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Google Pazquel board device tree source 4 * 5 * Copyright 2021 Google LLC. 6 */ 7 8#include "sc7180-trogdor-clamshell.dtsi" 9 10&ap_sar_sensor { 11 compatible = "semtech,sx9324"; 12 semtech,ph0-pin = <1 3 3>; 13 semtech,ph1-pin = <3 1 3>; 14 semtech,ph2-pin = <1 3 3>; 15 semtech,ph3-pin = <0 0 0>; 16 semtech,ph01-resolution = <1024>; 17 semtech,ph23-resolution = <1024>; 18 semtech,startup-sensor = <1>; 19 semtech,ph01-proxraw-strength = <3>; 20 semtech,ph23-proxraw-strength = <1>; 21 semtech,avg-pos-strength = <128>; 22 semtech,input-analog-gain = <0>; 23 semtech,cs-idle-sleep = "gnd"; 24 25 /delete-property/ svdd-supply; 26 vdd-supply = <&pp1800_prox>; 27}; 28 29/delete-node/&trackpad; 30&ap_tp_i2c { 31 status = "okay"; 32 trackpad: trackpad@15 { 33 compatible = "hid-over-i2c"; 34 reg = <0x15>; 35 pinctrl-names = "default"; 36 pinctrl-0 = <&tp_int_odl>; 37 38 interrupt-parent = <&tlmm>; 39 interrupts = <0 IRQ_TYPE_EDGE_FALLING>; 40 41 vdd-supply = <&pp3300_fp_tp>; 42 post-power-on-delay-ms = <100>; 43 hid-descr-addr = <0x0001>; 44 45 wakeup-source; 46 }; 47}; 48 49&keyboard_controller { 50 function-row-physmap = < 51 MATRIX_KEY(0x00, 0x02, 0) /* T1 */ 52 MATRIX_KEY(0x03, 0x02, 0) /* T2 */ 53 MATRIX_KEY(0x02, 0x02, 0) /* T3 */ 54 MATRIX_KEY(0x01, 0x02, 0) /* T4 */ 55 MATRIX_KEY(0x03, 0x04, 0) /* T5 */ 56 MATRIX_KEY(0x02, 0x04, 0) /* T6 */ 57 MATRIX_KEY(0x01, 0x04, 0) /* T7 */ 58 MATRIX_KEY(0x02, 0x09, 0) /* T8 */ 59 MATRIX_KEY(0x01, 0x09, 0) /* T9 */ 60 MATRIX_KEY(0x00, 0x04, 0) /* T10 */ 61 >; 62 linux,keymap = < 63 MATRIX_KEY(0x00, 0x02, KEY_BACK) 64 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 65 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 66 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 67 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 68 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 69 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 70 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 71 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 72 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 73 CROS_STD_MAIN_KEYMAP 74 >; 75}; 76 77&panel { 78 compatible = "edp-panel"; 79}; 80 81&pp3300_dx_edp { 82 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; 83}; 84 85/* PINCTRL - modifications to sc7180-trogdor.dtsi */ 86 87&en_pp3300_dx_edp { 88 pins = "gpio67"; 89}; 90 91/* PINCTRL - board-specific pinctrl */ 92 93&tlmm { 94 gpio-line-names = "TP_INT_ODL", 95 "AP_RAM_ID0", 96 "AP_SKU_ID2", 97 "AP_RAM_ID1", 98 "", 99 "AP_RAM_ID2", 100 "AP_TP_I2C_SDA", 101 "AP_TP_I2C_SCL", 102 "TS_RESET_L", 103 "TS_INT_L", 104 "", 105 "EDP_BRIJ_IRQ", 106 "AP_EDP_BKLTEN", 107 "", 108 "", 109 "EDP_BRIJ_I2C_SDA", 110 "EDP_BRIJ_I2C_SCL", 111 "HUB_RST_L", 112 "", 113 "", 114 "", 115 "", 116 "", 117 "AMP_EN", 118 "P_SENSOR_INT_L", 119 "AP_SAR_SENSOR_SDA", 120 "AP_SAR_SENSOR_SCL", 121 "", 122 "HP_IRQ", 123 "", 124 "", 125 "AP_BRD_ID2", 126 "BRIJ_SUSPEND", 127 "AP_BRD_ID0", 128 "AP_H1_SPI_MISO", 129 "AP_H1_SPI_MOSI", 130 "AP_H1_SPI_CLK", 131 "AP_H1_SPI_CS_L", 132 "", 133 "", 134 "", 135 "", 136 "H1_AP_INT_ODL", 137 "", 138 "UART_AP_TX_DBG_RX", 139 "UART_DBG_TX_AP_RX", 140 "HP_I2C_SDA", 141 "HP_I2C_SCL", 142 "FORCED_USB_BOOT", 143 "AMP_BCLK", 144 "AMP_LRCLK", 145 "AMP_DIN", 146 "", 147 "HP_BCLK", 148 "HP_LRCLK", 149 "HP_DOUT", 150 "HP_DIN", 151 "HP_MCLK", 152 "AP_SKU_ID0", 153 "AP_EC_SPI_MISO", 154 "AP_EC_SPI_MOSI", 155 "AP_EC_SPI_CLK", 156 "AP_EC_SPI_CS_L", 157 "AP_SPI_CLK", 158 "AP_SPI_MOSI", 159 "AP_SPI_MISO", 160 /* 161 * AP_FLASH_WP_L is crossystem ABI. Schematics 162 * call it BIOS_FLASH_WP_L. 163 */ 164 "AP_FLASH_WP_L", 165 "EN_PP3300_DX_EDP", 166 "AP_SPI_CS0_L", 167 "", 168 "", 169 "", 170 "", 171 "", 172 "", 173 "UIM2_DATA", 174 "UIM2_CLK", 175 "UIM2_RST", 176 "UIM2_PRESENT", 177 "UIM1_DATA", 178 "UIM1_CLK", 179 "UIM1_RST", 180 "", 181 "CODEC_PWR_EN", 182 "HUB_EN", 183 "", 184 "", 185 "", 186 "", 187 "", 188 "AP_SKU_ID1", 189 "AP_RST_REQ", 190 "", 191 "AP_BRD_ID1", 192 "AP_EC_INT_L", 193 "", 194 "", 195 "", 196 "", 197 "", 198 "", 199 "", 200 "", 201 "", 202 "EDP_BRIJ_EN", 203 "", 204 "", 205 "", 206 "", 207 "", 208 "", 209 "", 210 "", 211 "", 212 "", 213 "AP_TS_PEN_I2C_SDA", 214 "AP_TS_PEN_I2C_SCL", 215 "DP_HOT_PLUG_DET", 216 "EC_IN_RW_ODL"; 217}; 218