diff options
author | Jan Samek <jan.samek@siemens.com> | 2022-11-14 13:47:25 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-18 16:04:34 +0000 |
commit | 6f8fd5d39733668dbf4254970c0042c32c2df6f2 (patch) | |
tree | 82cc28d367c060ada476efa1b731aa2dca82f583 | |
parent | 15606481974b6c8cd266b4cfe0e473e18592f611 (diff) |
mb/siemens/mc_ehl2/devicetree.cb: Use RV3028 bus_speed instead of dummy i2c device
Instead of creating a dummy I2C device in order to force Linux to
decrease the I2C bus speed, use the own 'bus_speed' field of RV3028
device config structure.
Linux should always set the bus speed to the speed of the slowest
device sitting on the bus. Hence the dummy device is not needed
here anymore.
BUG=none
TEST=See if the RV3028 RTC is visible and working (date/time can
be set/read) in Linux. At the time, a driver modification is needed
to add a match table for the "MCRY3028" ACPI HID. A proper kernel
patch is pending.
Change-Id: I6e269dc67d1fe2a6747fcf3bee224def7b553f08
Signed-off-by: Jan Samek <jan.samek@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69544
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
-rw-r--r-- | src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb index 3b54f24896..4dd062cb55 100644 --- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb +++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb @@ -147,6 +147,7 @@ chip soc/intel/elkhartlake device pci 15.1 on # I2C1 # Enable external RTC chip chip drivers/i2c/rv3028c7 + register "bus_speed" = "I2C_SPEED_STANDARD" register "set_user_date" = "1" register "user_year" = "04" register "user_month" = "07" @@ -156,12 +157,6 @@ chip soc/intel/elkhartlake register "cap_charge" = "CHARGE_OFF" device i2c 0x52 on end # RTC RV3028-C7 end - # Add dummy I2C device to limit BUS speed to 100 kHz in OS - chip drivers/i2c/generic - register "hid" = ""PRP0001"" - register "speed" = "I2C_SPEED_STANDARD" - device i2c 0x7f on end - end end device pci 15.2 on # I2C2 # Add dummy I2C device to limit BUS speed to 100 kHz in OS |