From 5bf6347cf8e9c20fcb51aacaa8e3fcf24fea59da Mon Sep 17 00:00:00 2001 From: Seunghwan Kim Date: Fri, 15 Jun 2018 15:26:47 +0900 Subject: [PATCH] mb/google/poppy/variants/nautilus: Add SAR sensor device into devicetree.cb This change defines SAR sensor device into devicetree.cb. Since only LTE sku has SAR sensor, we will use GPP_B20 as a device_present_gpio. BUG=None BRANCH=poppy TEST=Verified SAR sensor device is loaded by driver in Chrome OS Change-Id: Ib4969e4b82d18b1b1a599de8226c2d7d4bda7915 Signed-off-by: Seunghwan Kim Reviewed-on: https://review.coreboot.org/27149 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- .../google/poppy/variants/nautilus/devicetree.cb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/poppy/variants/nautilus/devicetree.cb b/src/mainboard/google/poppy/variants/nautilus/devicetree.cb index 8de2413fcf..68246c695e 100644 --- a/src/mainboard/google/poppy/variants/nautilus/devicetree.cb +++ b/src/mainboard/google/poppy/variants/nautilus/devicetree.cb @@ -328,7 +328,16 @@ chip soc/intel/skylake device i2c 50 on end end end # I2C #1 - device pci 15.2 on end # I2C #2 + device pci 15.2 on + chip drivers/i2c/generic + register "hid" = ""SX9321"" + register "name" = ""SEMTECH SX9321"" + register "desc" = ""SAR Proximity Sensor"" + register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A18_IRQ)" + register "device_present_gpio" = "GPP_B20" + device i2c 28 on end + end + end # I2C #2 device pci 15.3 on chip drivers/i2c/hid register "generic.hid" = ""ACPI0C50""