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