1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Google Kingoftown board device tree source 3 * Google Kingoftown board device tree source 4 * 4 * 5 * Copyright 2021 Google LLC. 5 * Copyright 2021 Google LLC. 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 9 10 #include "sc7180-trogdor.dtsi" 10 #include "sc7180-trogdor.dtsi" 11 #include "sc7180-trogdor-parade-ps8640.dtsi" 11 #include "sc7180-trogdor-parade-ps8640.dtsi" 12 #include "sc7180-trogdor-clamshell.dtsi" 12 #include "sc7180-trogdor-clamshell.dtsi" 13 #include "sc7180-trogdor-lte-sku.dtsi" 13 #include "sc7180-trogdor-lte-sku.dtsi" 14 #include "sc7180-trogdor-rt5682s-sku.dtsi" 14 #include "sc7180-trogdor-rt5682s-sku.dtsi" 15 15 16 / { 16 / { 17 model = "Google Kingoftown"; 17 model = "Google Kingoftown"; 18 compatible = "google,kingoftown", "qco 18 compatible = "google,kingoftown", "qcom,sc7180"; 19 }; 19 }; 20 20 21 &ap_tp_i2c { 21 &ap_tp_i2c { 22 status = "okay"; 22 status = "okay"; 23 }; 23 }; 24 24 25 ap_ts_pen_1v8: &i2c4 { 25 ap_ts_pen_1v8: &i2c4 { 26 status = "okay"; 26 status = "okay"; 27 clock-frequency = <400000>; 27 clock-frequency = <400000>; 28 28 29 ap_ts: touchscreen@10 { 29 ap_ts: touchscreen@10 { 30 compatible = "elan,ekth3500"; 30 compatible = "elan,ekth3500"; 31 reg = <0x10>; 31 reg = <0x10>; 32 pinctrl-names = "default"; 32 pinctrl-names = "default"; 33 pinctrl-0 = <&ts_int_l>, <&ts_ 33 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 34 34 35 interrupt-parent = <&tlmm>; 35 interrupt-parent = <&tlmm>; 36 interrupts = <9 IRQ_TYPE_LEVEL 36 interrupts = <9 IRQ_TYPE_LEVEL_LOW>; 37 37 38 vcc33-supply = <&pp3300_ts>; 38 vcc33-supply = <&pp3300_ts>; 39 39 40 reset-gpios = <&tlmm 8 GPIO_AC 40 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; 41 }; 41 }; 42 }; 42 }; 43 43 44 &keyboard_controller { 44 &keyboard_controller { 45 function-row-physmap = < 45 function-row-physmap = < 46 MATRIX_KEY(0x00, 0x02, 0) 46 MATRIX_KEY(0x00, 0x02, 0) /* T1 */ 47 MATRIX_KEY(0x03, 0x02, 0) 47 MATRIX_KEY(0x03, 0x02, 0) /* T2 */ 48 MATRIX_KEY(0x02, 0x02, 0) 48 MATRIX_KEY(0x02, 0x02, 0) /* T3 */ 49 MATRIX_KEY(0x01, 0x02, 0) 49 MATRIX_KEY(0x01, 0x02, 0) /* T4 */ 50 MATRIX_KEY(0x03, 0x04, 0) 50 MATRIX_KEY(0x03, 0x04, 0) /* T5 */ 51 MATRIX_KEY(0x02, 0x04, 0) 51 MATRIX_KEY(0x02, 0x04, 0) /* T6 */ 52 MATRIX_KEY(0x01, 0x04, 0) 52 MATRIX_KEY(0x01, 0x04, 0) /* T7 */ 53 MATRIX_KEY(0x02, 0x09, 0) 53 MATRIX_KEY(0x02, 0x09, 0) /* T8 */ 54 MATRIX_KEY(0x01, 0x09, 0) 54 MATRIX_KEY(0x01, 0x09, 0) /* T9 */ 55 MATRIX_KEY(0x00, 0x04, 0) 55 MATRIX_KEY(0x00, 0x04, 0) /* T10 */ 56 >; 56 >; 57 linux,keymap = < 57 linux,keymap = < 58 MATRIX_KEY(0x00, 0x02, KEY_BAC 58 MATRIX_KEY(0x00, 0x02, KEY_BACK) 59 MATRIX_KEY(0x03, 0x02, KEY_REF 59 MATRIX_KEY(0x03, 0x02, KEY_REFRESH) 60 MATRIX_KEY(0x02, 0x02, KEY_ZOO 60 MATRIX_KEY(0x02, 0x02, KEY_ZOOM) 61 MATRIX_KEY(0x01, 0x02, KEY_SCA 61 MATRIX_KEY(0x01, 0x02, KEY_SCALE) 62 MATRIX_KEY(0x03, 0x04, KEY_SYS 62 MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) 63 MATRIX_KEY(0x02, 0x04, KEY_BRI 63 MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) 64 MATRIX_KEY(0x01, 0x04, KEY_BRI 64 MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) 65 MATRIX_KEY(0x02, 0x09, KEY_MUT 65 MATRIX_KEY(0x02, 0x09, KEY_MUTE) 66 MATRIX_KEY(0x01, 0x09, KEY_VOL 66 MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) 67 MATRIX_KEY(0x00, 0x04, KEY_VOL 67 MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) 68 68 69 CROS_STD_MAIN_KEYMAP 69 CROS_STD_MAIN_KEYMAP 70 >; 70 >; 71 }; 71 }; 72 72 73 &panel { 73 &panel { 74 compatible = "edp-panel"; 74 compatible = "edp-panel"; 75 }; 75 }; 76 76 77 &pp3300_dx_edp { 77 &pp3300_dx_edp { 78 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; 78 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; 79 }; 79 }; 80 80 81 &wifi { 81 &wifi { 82 qcom,ath10k-calibration-variant = "GO_ 82 qcom,ath10k-calibration-variant = "GO_KINGOFTOWN"; 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_L", 94 gpio-line-names = "TP_INT_L", /* 0 */ 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 "", /* 10 */ 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 "", /* 20 */ 115 "", 115 "", 116 "", 116 "", 117 "AMP_EN", 117 "AMP_EN", 118 "", 118 "", 119 "", 119 "", 120 "", 120 "", 121 "", 121 "", 122 "HP_IRQ", 122 "HP_IRQ", 123 "", 123 "", 124 "", 124 "", /* 30 */ 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 "BT_UART_CTS", 132 "BT_UART_CTS", 133 "BT_UART_RTS", 133 "BT_UART_RTS", 134 "BT_UART_TXD", 134 "BT_UART_TXD", /* 40 */ 135 "BT_UART_RXD", 135 "BT_UART_RXD", 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", /* 50 */ 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", /* 60 */ 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 "", /* 70 */ 169 "", 169 "", 170 "", 170 "", 171 "", 171 "", 172 "EN_FP_RAILS", 172 "EN_FP_RAILS", 173 "UIM2_DATA", 173 "UIM2_DATA", 174 "UIM2_CLK", 174 "UIM2_CLK", 175 "UIM2_RST", 175 "UIM2_RST", 176 "UIM2_PRESENT_L", 176 "UIM2_PRESENT_L", 177 "UIM1_DATA", 177 "UIM1_DATA", 178 "UIM1_CLK", 178 "UIM1_CLK", /* 80 */ 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", /* 90 */ 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 "", /* 100 */ 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 "", /* 110 */ 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.