[coreboot-gerrit] Change in coreboot[master]: mb/google/octopus: Enable Proximity Sensor
Hannah Williams (Code Review)
gerrit at coreboot.org
Thu Apr 19 03:24:16 CEST 2018
Hannah Williams has uploaded this change for review. ( https://review.coreboot.org/25733
Change subject: mb/google/octopus: Enable Proximity Sensor
......................................................................
mb/google/octopus: Enable Proximity Sensor
Configure i2c-1 for sx9311
BUG=b:78150874
Signed-off-by: Hannah Williams <hannah.williams at intel.com>
Change-Id: I8326aadab2c3c4042b8c859e637f279c39fd19db
---
M src/mainboard/google/octopus/variants/baseboard/devicetree.cb
1 file changed, 14 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/25733/1
diff --git a/src/mainboard/google/octopus/variants/baseboard/devicetree.cb b/src/mainboard/google/octopus/variants/baseboard/devicetree.cb
index 7072b78..88db9e9 100644
--- a/src/mainboard/google/octopus/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/octopus/variants/baseboard/devicetree.cb
@@ -61,6 +61,11 @@
.fall_time_ns = 30,
}"
+ # Proximity Sensor at 400kHz
+ register "i2c[1]" = "{
+ .speed = I2C_SPEED_FAST,
+ }"
+
# Enable I2C5 for audio codec at 400kHz
register "i2c[5]" = "{
.speed = I2C_SPEED_FAST,
@@ -138,7 +143,15 @@
device i2c 0x9 on end
end
end # - I2C 0
- device pci 16.1 on end # - I2C 1
+ device pci 16.1 on
+ chip drivers/i2c/generic
+ register "hid" = ""SX9311""
+ register "desc" = ""P-Sensor""
+ register "irq" = "ACPI_IRQ_EDGE_LOW(GPIO_214_IRQ)"
+ register "probed" = "1"
+ device i2c 0x28 on end
+ end
+ end # - I2C 1
device pci 16.2 on end # - I2C 2
device pci 16.3 on end # - I2C 3
device pci 17.0 on end # - I2C 4
--
To view, visit https://review.coreboot.org/25733
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8326aadab2c3c4042b8c859e637f279c39fd19db
Gerrit-Change-Number: 25733
Gerrit-PatchSet: 1
Gerrit-Owner: Hannah Williams <hannah.williams at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180419/d030115f/attachment.html>
More information about the coreboot-gerrit
mailing list