Tony Huang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/55133 )
Change subject: mb/google/dedede/var/kracko:Add P-sensor support ......................................................................
mb/google/dedede/var/kracko:Add P-sensor support
Configure GPIO D22/D23/E11. Add P-sensor to device tree, register would be fine tune later.
BUG=b:178092096 BRANCH=dedede TEST=built firmware and check ACPI table has P-sensor
Change-Id: I2c8feedd6efc1a471304322a17480c836e22349e Signed-off-by: Tony Huang tony-huang@quanta.corp-partner.google.com --- M src/mainboard/google/dedede/variants/kracko/gpio.c M src/mainboard/google/dedede/variants/kracko/overridetree.cb 2 files changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/55133/1
diff --git a/src/mainboard/google/dedede/variants/kracko/gpio.c b/src/mainboard/google/dedede/variants/kracko/gpio.c index ca89730..b4c00bd 100644 --- a/src/mainboard/google/dedede/variants/kracko/gpio.c +++ b/src/mainboard/google/dedede/variants/kracko/gpio.c @@ -13,6 +13,13 @@
/* D0 : WWAN_HOST_WAKE ==> WWAN_WDISABLE_L */ PAD_CFG_GPO(GPP_D0, 1, DEEP), + /* D22 : AP_I2C_SUB_SDA*/ + PAD_CFG_NF(GPP_D22, NONE, DEEP, NF1), + /* D23 : AP_I2C_SUB_SCL */ + PAD_CFG_NF(GPP_D23, NONE, DEEP, NF1), + + /* E11 : AP_I2C_SUB_INT_ODL */ + PAD_CFG_GPI_APIC(GPP_E11, NONE, PLTRST, LEVEL, NONE),
/* H17 : WWAN_RST_L */ PAD_CFG_GPO(GPP_H17, 0, PLTRST), diff --git a/src/mainboard/google/dedede/variants/kracko/overridetree.cb b/src/mainboard/google/dedede/variants/kracko/overridetree.cb index 66fb274..4cdd0f2 100644 --- a/src/mainboard/google/dedede/variants/kracko/overridetree.cb +++ b/src/mainboard/google/dedede/variants/kracko/overridetree.cb @@ -136,6 +136,14 @@ device i2c 1a on end end end #I2C 4 + device pci 19.1 on + chip drivers/i2c/sx9324 + register "desc" = ""SAR Proximity Sensor"" + register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E11_IRQ)" + register "uid" = "2" + device i2c 28 on end + end + end # I2C 5 device pci 1f.3 on chip drivers/generic/max98357a register "hid" = ""MX98360A""