summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSeunghwan Kim <sh_.kim@samsung.corp-partner.google.com>2021-11-08 15:55:52 +0900
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-01-19 03:12:10 +0000
commit58b2d86bb9aba8f299569fe994c77d537d572539 (patch)
tree45f8fd3eed34986f182c2eb44bb620ef048b57c9 /src
parent14a1c2778fda7e4ed25d6cd4aecfb2d4e672dbed (diff)
mb/google/dedede/var/bugzzy: Add SAR sensor
Present the Semtech SX9360 SAR sensor that protects the LTE antenna. The sensor is connected to i2c bus I2C1. BUG=b:194318328 BRANCH=dedede TEST=emerge-dedede coreboot Signed-off-by: Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com> Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I9feef9d132c60738bafb22ceb7d3468c798fab9b Reviewed-on: https://review.coreboot.org/c/coreboot/+/59609 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/dedede/Kconfig1
-rw-r--r--src/mainboard/google/dedede/variants/bugzzy/gpio.c2
-rw-r--r--src/mainboard/google/dedede/variants/bugzzy/overridetree.cb13
3 files changed, 15 insertions, 1 deletions
diff --git a/src/mainboard/google/dedede/Kconfig b/src/mainboard/google/dedede/Kconfig
index 29a94814aa..458dfc7f43 100644
--- a/src/mainboard/google/dedede/Kconfig
+++ b/src/mainboard/google/dedede/Kconfig
@@ -7,6 +7,7 @@ config BOARD_GOOGLE_BASEBOARD_DEDEDE
select DRIVERS_I2C_GPIO_MUX
select DRIVERS_I2C_HID
select DRIVERS_I2C_SX9324
+ select DRIVERS_I2C_SX9360
select DRIVERS_INTEL_DPTF
select DRIVERS_SPI_ACPI
select DRIVERS_USB_ACPI
diff --git a/src/mainboard/google/dedede/variants/bugzzy/gpio.c b/src/mainboard/google/dedede/variants/bugzzy/gpio.c
index 16cf61b22c..6d94cece96 100644
--- a/src/mainboard/google/dedede/variants/bugzzy/gpio.c
+++ b/src/mainboard/google/dedede/variants/bugzzy/gpio.c
@@ -46,6 +46,8 @@ static const struct pad_config gpio_table[] = {
PAD_NC(GPP_E0, NONE),
/* E1 : EMR_RESET_L */
PAD_CFG_GPO(GPP_E1, 0, DEEP),
+ /* E10 : LTE_SAR_SENSOR_INT */
+ PAD_CFG_GPI_APIC(GPP_E10, NONE, PLTRST, LEVEL, NONE),
/* E13 : DDI0_DDC_SCL */
PAD_CFG_NF(GPP_E13, NONE, DEEP, NF1),
/* E14 : DDI0_DDC_SDA */
diff --git a/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb b/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb
index 49f1e651f1..30e5e454dc 100644
--- a/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb
+++ b/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb
@@ -54,7 +54,7 @@ chip soc/intel/jasperlake
#| | for TPM communication |
#| | before memory is up |
#| I2C0 | Trackpad |
- #| I2C1 | Digitizer |
+ #| I2C1 | Digitizer, P-sensor(LTE) |
#| I2C2 | Touchscreen |
#| I2C3 | Camera |
#| I2C4 | Audio |
@@ -209,6 +209,17 @@ chip soc/intel/jasperlake
register "hid_desc_reg_offset" = "0x1"
device i2c 0x09 on end
end
+ chip drivers/i2c/sx9360
+ register "desc" = ""SAR Proximity Sensor - LTE""
+ register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E10_IRQ)"
+ register "uid" = "1"
+ register "proxraw_strength" = "1"
+ register "avg_pos_strength" = "256"
+ register "resolution" = "1024"
+ device i2c 28 on
+ probe DB_PORTS DB_PORTS_1C_1A_LTE
+ end
+ end
end # I2C #1
device pci 15.2 on
chip drivers/i2c/hid