cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sc7180-trogdor-pompom.dtsi (5334B)


      1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
      2/*
      3 * Google Pompom board device tree source
      4 *
      5 * Copyright 2020 Google LLC.
      6 */
      7
      8#include "sc7180-trogdor.dtsi"
      9#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
     10
     11/ {
     12	thermal-zones {
     13		5v-choke-thermal {
     14			polling-delay-passive = <0>;
     15			polling-delay = <250>;
     16
     17			thermal-sensors = <&pm6150_adc_tm 1>;
     18
     19			trips {
     20				5v-choke-crit {
     21					temperature = <125000>;
     22					hysteresis = <1000>;
     23					type = "critical";
     24				};
     25			};
     26		};
     27	};
     28};
     29
     30&alc5682 {
     31	realtek,dmic-clk-driving-high;
     32};
     33
     34&ap_tp_i2c {
     35	status = "okay";
     36};
     37
     38&cpu6_alert0 {
     39	temperature = <60000>;
     40};
     41
     42&cpu6_alert1 {
     43	temperature = <65000>;
     44};
     45
     46&cpu6_thermal {
     47	sustainable-power = <1124>;
     48};
     49
     50&cpu7_alert0 {
     51	temperature = <60000>;
     52};
     53
     54&cpu7_alert1 {
     55	temperature = <65000>;
     56};
     57
     58&cpu7_thermal {
     59	sustainable-power = <1124>;
     60};
     61
     62&cpu8_alert0 {
     63	temperature = <60000>;
     64};
     65
     66&cpu8_alert1 {
     67	temperature = <65000>;
     68};
     69
     70&cpu8_thermal {
     71	sustainable-power = <1124>;
     72};
     73
     74&cpu9_alert0 {
     75	temperature = <60000>;
     76};
     77
     78&cpu9_alert1 {
     79	temperature = <65000>;
     80};
     81
     82&cpu9_thermal {
     83	sustainable-power = <1124>;
     84};
     85
     86&gpio_keys {
     87	status = "okay";
     88};
     89
     90ap_ts_pen_1v8: &i2c4 {
     91	status = "okay";
     92	clock-frequency = <400000>;
     93
     94	ap_ts: touchscreen@10 {
     95		compatible = "hid-over-i2c";
     96		reg = <0x10>;
     97		pinctrl-names = "default";
     98		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
     99
    100		interrupt-parent = <&tlmm>;
    101		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
    102
    103		post-power-on-delay-ms = <20>;
    104		hid-descr-addr = <0x0001>;
    105
    106		vdd-supply = <&pp3300_ts>;
    107	};
    108};
    109
    110&keyboard_controller {
    111	function-row-physmap = <
    112		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
    113		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
    114		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
    115		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
    116		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
    117		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
    118		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
    119		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
    120		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
    121		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
    122	>;
    123	linux,keymap = <
    124		MATRIX_KEY(0x00, 0x02, KEY_BACK)
    125		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
    126		MATRIX_KEY(0x02, 0x02, KEY_ZOOM)
    127		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
    128		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
    129		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
    130		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
    131		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
    132		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
    133		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
    134
    135		CROS_STD_MAIN_KEYMAP
    136	>;
    137};
    138
    139&panel {
    140	compatible = "kingdisplay,kd116n21-30nv-a010";
    141};
    142
    143&pen_insert {
    144	/* Insert = high, eject = low */
    145	gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
    146};
    147
    148&pm6150_adc {
    149	5v-choke-thermistor@4e {
    150		reg = <ADC5_AMUX_THM2_100K_PU>;
    151		qcom,ratiometric;
    152		qcom,hw-settle-time = <200>;
    153	};
    154};
    155
    156&pm6150_adc_tm {
    157	status = "okay";
    158
    159	5v-choke-thermistor@1 {
    160		reg = <1>;
    161		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
    162		qcom,ratiometric;
    163		qcom,hw-settle-time-us = <200>;
    164	};
    165};
    166
    167&sdhc_2 {
    168	status = "okay";
    169};
    170
    171&sound {
    172	model = "sc7180-rt5682-max98357a-2mic";
    173	pinctrl-names = "default";
    174	pinctrl-0 = <&dmic_sel>;
    175	dmic-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
    176};
    177
    178&usb_c1 {
    179	status = "disabled";
    180};
    181
    182&wifi {
    183	qcom,ath10k-calibration-variant = "GO_POMPOM";
    184};
    185
    186/* PINCTRL - board-specific pinctrl */
    187
    188&tlmm {
    189	gpio-line-names = "TP_INT_ODL",
    190			  "AP_RAM_ID0",
    191			  "AP_SKU_ID2",
    192			  "AP_RAM_ID1",
    193			  "",
    194			  "AP_RAM_ID2",
    195			  "AP_TP_I2C_SDA",
    196			  "AP_TP_I2C_SCL",
    197			  "TS_RESET_L",
    198			  "TS_INT_L",
    199			  "",
    200			  "EDP_BRIJ_IRQ",
    201			  "AP_EDP_BKLTEN",
    202			  "",
    203			  "",
    204			  "EDP_BRIJ_I2C_SDA",
    205			  "EDP_BRIJ_I2C_SCL",
    206			  "HUB_RST_L",
    207			  "",
    208			  "",
    209			  "",
    210			  "",
    211			  "",
    212			  "AMP_EN",
    213			  "P_SENSOR_INT_L",
    214			  "AP_SAR_SENSOR_SDA",
    215			  "AP_SAR_SENSOR_SCL",
    216			  "",
    217			  "HP_IRQ",
    218			  "",
    219			  "EN_PP3300_DX_EDP",
    220			  "AP_BRD_ID2",
    221			  "BRIJ_SUSPEND",
    222			  "AP_BRD_ID0",
    223			  "AP_H1_SPI_MISO",
    224			  "AP_H1_SPI_MOSI",
    225			  "AP_H1_SPI_CLK",
    226			  "AP_H1_SPI_CS_L",
    227			  "",
    228			  "",
    229			  "",
    230			  "",
    231			  "H1_AP_INT_ODL",
    232			  "",
    233			  "UART_AP_TX_DBG_RX",
    234			  "UART_DBG_TX_AP_RX",
    235			  "HP_I2C_SDA",
    236			  "HP_I2C_SCL",
    237			  "FORCED_USB_BOOT",
    238			  "AMP_BCLK",
    239			  "AMP_LRCLK",
    240			  "AMP_DIN",
    241			  "PEN_PDCT_L",
    242			  "HP_BCLK",
    243			  "HP_LRCLK",
    244			  "HP_DOUT",
    245			  "HP_DIN",
    246			  "HP_MCLK",
    247			  "AP_SKU_ID0",
    248			  "AP_EC_SPI_MISO",
    249			  "AP_EC_SPI_MOSI",
    250			  "AP_EC_SPI_CLK",
    251			  "AP_EC_SPI_CS_L",
    252			  "AP_SPI_CLK",
    253			  "AP_SPI_MOSI",
    254			  "AP_SPI_MISO",
    255			  /*
    256			   * AP_FLASH_WP_L is crossystem ABI. Schematics
    257			   * call it BIOS_FLASH_WP_L.
    258			   */
    259			  "AP_FLASH_WP_L",
    260			  "",
    261			  "AP_SPI_CS0_L",
    262			  "SD_CD_ODL",
    263			  "",
    264			  "",
    265			  "",
    266			  "",
    267			  "",
    268			  "UIM2_DATA",
    269			  "UIM2_CLK",
    270			  "UIM2_RST",
    271			  "UIM2_PRESENT",
    272			  "UIM1_DATA",
    273			  "UIM1_CLK",
    274			  "UIM1_RST",
    275			  "",
    276			  "EN_PP3300_CODEC",
    277			  "EN_PP3300_HUB",
    278			  "",
    279			  "DMIC_SEL",
    280			  "",
    281			  "",
    282			  "",
    283			  "AP_SKU_ID1",
    284			  "AP_RST_REQ",
    285			  "",
    286			  "AP_BRD_ID1",
    287			  "AP_EC_INT_R_L",
    288			  "",
    289			  "",
    290			  "",
    291			  "",
    292			  "",
    293			  "",
    294			  "",
    295			  "",
    296			  "",
    297			  "EDP_BRIJ_EN",
    298			  "",
    299			  "",
    300			  "",
    301			  "",
    302			  "",
    303			  "",
    304			  "",
    305			  "",
    306			  "",
    307			  "",
    308			  "AP_TS_PEN_I2C_SDA",
    309			  "AP_TS_PEN_I2C_SCL",
    310			  "DP_HOT_PLUG_DET",
    311			  "EC_IN_RW_ODL";
    312
    313	dmic_sel: dmic-sel {
    314		pinmux {
    315			pins = "gpio86";
    316			function = "gpio";
    317		};
    318
    319		pinconf {
    320			pins = "gpio86";
    321			bias-pull-down;
    322		};
    323	};
    324};