mb/google/octopus/variants/bobba: Add SX9310 sensor to devicetree
Add semtech SAR sensor. BUG=b:143449140 BRANCH=octopus TEST=Boot kernel with sx931x driver, i2cdetect show UU on slave address. Change-Id: Icfb8acf1bac73973748aa7443c95147c60bad770 Signed-off-by: Pan Sheng-Liang <sheng-liang.pan@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36850 Reviewed-by: Justin TerAvest <teravest@chromium.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
92fe375737
commit
ef36cdd06d
|
@ -8,6 +8,7 @@ config BOARD_GOOGLE_BASEBOARD_OCTOPUS
|
|||
select DRIVERS_I2C_DA7219
|
||||
select DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_HID
|
||||
select DRIVERS_I2C_SX9310
|
||||
select DRIVERS_SPI_ACPI
|
||||
select DRIVERS_USB_ACPI
|
||||
select EC_GOOGLE_CHROMEEC
|
||||
|
|
|
@ -67,6 +67,12 @@ chip soc/intel/apollolake
|
|||
.rise_time_ns = 88,
|
||||
.fall_time_ns = 16,
|
||||
},
|
||||
.i2c[1] = {
|
||||
.speed = I2C_SPEED_FAST,
|
||||
.rise_time_ns = 66,
|
||||
.fall_time_ns = 90,
|
||||
.data_hold_time_ns = 350,
|
||||
},
|
||||
.i2c[5] = {
|
||||
.speed = I2C_SPEED_FAST,
|
||||
.rise_time_ns = 104,
|
||||
|
@ -109,6 +115,37 @@ chip soc/intel/apollolake
|
|||
device generic 0 on end
|
||||
end
|
||||
end # - I2C 0
|
||||
device pci 16.1 on
|
||||
chip drivers/i2c/sx9310
|
||||
register "desc" = ""SAR Proximity Sensor""
|
||||
register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_214_IRQ)"
|
||||
register "uid" = "1"
|
||||
register "reg_prox_ctrl0" = "0x10"
|
||||
register "reg_prox_ctrl1" = "0x00"
|
||||
register "reg_prox_ctrl2" = "0x84"
|
||||
register "reg_prox_ctrl3" = "0x0e"
|
||||
register "reg_prox_ctrl4" = "0x07"
|
||||
register "reg_prox_ctrl5" = "0xc6"
|
||||
register "reg_prox_ctrl6" = "0x20"
|
||||
register "reg_prox_ctrl7" = "0x0d"
|
||||
register "reg_prox_ctrl8" = "0x8d"
|
||||
register "reg_prox_ctrl9" = "0x43"
|
||||
register "reg_prox_ctrl10" = "0x11"
|
||||
register "reg_prox_ctrl11" = "0x00"
|
||||
register "reg_prox_ctrl12" = "0x00"
|
||||
register "reg_prox_ctrl13" = "0x00"
|
||||
register "reg_prox_ctrl14" = "0x00"
|
||||
register "reg_prox_ctrl15" = "0x00"
|
||||
register "reg_prox_ctrl16" = "0x00"
|
||||
register "reg_prox_ctrl17" = "0x00"
|
||||
register "reg_prox_ctrl18" = "0x00"
|
||||
register "reg_prox_ctrl19" = "0x00"
|
||||
register "reg_sar_ctrl0" = "0x50"
|
||||
register "reg_sar_ctrl1" = "0x8a"
|
||||
register "reg_sar_ctrl2" = "0x3c"
|
||||
device i2c 28 on end
|
||||
end
|
||||
end # - I2C 1
|
||||
device pci 17.1 on
|
||||
chip drivers/i2c/da7219
|
||||
register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)"
|
||||
|
|
Loading…
Reference in New Issue