i2c:dw: Add APM X-Gene ACPI I2C device support
Subsystems (4)
v2 cover i2c:dw: Add APM X-Gene ACPI I2C device support
Add APM X-Gene ACPI I2C device support. These patches follow the same implementation as AMD I2C driver - changes in ACPI APD and Designware I2C drivers.
v2:
* Spilt the acpi_apd change with defines for AMD and X-Gene I2C's
---
Loc Ho (2):
acpi:apd: Add APM X-Gene ACPI I2C device support i2c:dw: Add APM X-Gene ACPI I2C device support
drivers/acpi/acpi_apd.c | 16 +++++++++++++++- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 2 files changed, 16 insertions(+), 1 deletions(-)
PATCH v2 1/2 acpi:apd: Add APM X-Gene ACPI I2C device support
Add APM X-Gene ACPI I2C device support by hooks into existent ACPI apd driver. To fully enable support, require another patch to add the X-Gene ACPI node into the DW I2C driver.
--- drivers/acpi/acpi_apd.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-)
drivers/acpi/acpi_apd.c +15 -1
@@ -51,7 +51,7 @@ struct apd_private_data {const struct apd_device_desc *dev_desc; }; -#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE +#if defined(CONFIG_X86_AMD_PLATFORM_DEVICE ) || defined(CONFIG_ARM64 )#define APD_ADDR (desc) ((unsigned long)&desc)static int acpi_apd_setup (struct apd_private_data *pdata)
@@ -71,6 +71,7 @@ static int acpi_apd_setup(struct apd_private_data *pdata)return 0 ; } +#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE static struct apd_device_desc cz_i2c_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 133000000,
@@ -80,6 +81,14 @@ static struct apd_device_desc cz_uart_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 48000000, }; +#endif + +#ifdef CONFIG_ARM64 +static struct apd_device_desc xgene_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate =100000000 , +}; +#endif #else
@@ -132,9 +141,14 @@ static int acpi_apd_create_device(struct acpi_device *adev,static const struct acpi_device_id acpi_apd_device_ids[] = {/* Generic apd devices */ +#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE {"AMD0010" ,APD_ADDR (cz_i2c_desc) }, {"AMD0020" ,APD_ADDR (cz_uart_desc) }, {"AMD0030" , }, +#endif +#ifdef CONFIG_ARM64 + {"APMC0D0F" ,APD_ADDR (xgene_i2c_desc) }, +#endif { } };
Signature · 1 line
1.7.1
Re: [PATCH v2 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support
Quoted 50 lines · Loc Ho
Add APM X-Gene ACPI I2C device support by hooks into existent ACPI apd driver. To fully enable support, require another patch to add the X-Gene ACPI node into the DW I2C driver.
Signed-off-by Loc Ho <[email protected]>--- drivers/acpi/acpi_apd.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-)drivers/acpi/acpi_apd.c +11
-1@@ -51,7 +51,7 @@ struct apd_private_data {const struct apd_device_desc *dev_desc; }; -#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE +#if defined(CONFIG_X86_AMD_PLATFORM_DEVICE ) || defined(CONFIG_ARM64 )#define APD_ADDR (desc) ((unsigned long)&desc)static int acpi_apd_setup (struct apd_private_data *pdata)@@ -71,6 +71,7 @@ static int acpi_apd_setup(struct apd_private_data *pdata)return 0 ; } +#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE static struct apd_device_desc cz_i2c_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 133000000,@@ -80,6 +81,14 @@ static struct apd_device_desc cz_uart_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 48000000, }; +#endif + +#ifdef CONFIG_ARM64 +static struct apd_device_desc xgene_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate =100000000 , +}; +#endif #else @@ -132,9 +141,14 @@ static int acpi_apd_create_device(struct acpi_device *adev,static const struct acpi_device_id acpi_apd_device_ids[] = {/* Generic apd devices */ +#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
drivers/acpi/acpi_apd.c static int acpi_apd_create_device(struct acpi_device *adev, · line 154
Quoted 10 lines
drivers/acpi/acpi_apd.c +4
-0{ "AMD0010", APD_ADDR(cz_i2c_desc) }, { "AMD0020", APD_ADDR(cz_uart_desc) }, { "AMD0030", }, +#endif +#ifdef CONFIG_ARM64 + { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, +#endif { } };
PATCH v2 2/2 i2c:dw: Add APM X-Gene ACPI I2C device support
In reply to Loc HoEnable APM X-Gene ACPI I2C device support by adding the corresponding ACPI ID. The platform ACPI APD corresponding change is required to provide the proper clock frequency input.
--- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/i2c/busses/i2c-designware-platdrv.c +1 -0
@@ -117,6 +117,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = { { "80860F41", 0 }, { "808622C1", 0 }, { "AMD0010", 0 }, + { "APMC0D0F", 0 }, { } };MODULE_DEVICE_TABLE (acpi, dw_i2c_acpi_match);
Signature · 1 line
1.7.1
Hi,
I'm not sure if this has been discussed earlier. But after looking at the the acpi_apd driver, all we need is just the platform-specific input clock frequency value used by the drivers/i2c/busses/i2c-designware-core.c: i2c_dw_init() to calculate the values to program into the DW_IC_SS_SCL_HCNT and DW_IC_SS_SCL_LCNT registers.
So, instead of hard-coding this value into the driver/acpi/acpi_apd.c (which really has nothing to do with the I2C driver), what if we introduce a new ACPI key-value pair in the ACPI DSDT such as:
Device(I2C0) // I2C controller
{
Name(_HID, "AMDI0510")
Name(_UID, 0)
Name(_CRS, ResourceTemplate() {
Memory32Fixed (ReadWrite, 0xE1000000, 0x1000)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive,,,) {
389 } // GSIV
})
Name (_DSD, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package (2) {"clock-source-frequency", 100000000 }
}
}) // _DSD()
}Then, in the drivers/i2c/busses/i2c-designware-platdrv.c, we can add the code to parse this information. This way, the I2C driver can just retrieve this value from the ACPI table of each platform, which should make it easier to manage. Eventually, we can free I2C driver from the driver/acpi/acpi_apd.c, which is currently only used by AMD x86 platform.
Also, this approach would allow the I2C drivers in other OSes to use this same information in the ACPI table. If this approach is okay, I can provide a patch to implement this.
Thanks,
Suravee
Quoted 22 lines · Loc Ho
Add APM X-Gene ACPI I2C device support. These patches follow the same implementation as AMD I2C driver - changes in ACPI APD and Designware I2C drivers.
v2:
* Spilt theacpi_apdchange with defines for AMD and X-Gene I2C'sSigned-off-by Loc Ho <[email protected]>---
Loc Ho (2):
acpi:apd: Add APM X-Gene ACPI I2C device support i2c:dw: Add APM X-Gene ACPI I2C device supportdrivers/acpi/acpi_apd.c | 16 +++++++++++++++- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 2 files changed, 16 insertions(+), 1 deletions(-)--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Mika Westerberg
maintainerQuoted 5 lines · Suravee Suthikulanit
I'm not sure if this has been discussed earlier. But after looking at the the
acpi_apddriver, all we need is just the platform-specific input clock frequency value used by thedrivers/i2c/busses/i2c-designware-core.c:i2c_dw_init()to calculate the values to program into theDW_IC_SS_SCL_HCNTandDW_IC_SS_SCL_LCNTregisters.
There is a way to pass *CNT values already from ACPI to the driver -- It looks for method called FMCN (or SSCN) and retrieves the values from there if found.
The driver could be modified not to require clock if it already knows *CNT values.
Quoted 4 lines
So, instead of hard-coding this value into the
driver/acpi/acpi_apd.c(which really has nothing to do with the I2C driver), what if we introduce a new ACPI key-value pair in the ACPI DSDT such as:
Quoted 13 lines
Device(I2C0) // I2C controller
{
Name(_HID, "AMDI0510")
Name(_UID, 0)
Name(_CRS, ResourceTemplate() {
Memory32Fixed (ReadWrite, 0xE1000000, 0x1000)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive,,,) { 389
} // GSIV
})
Name (_DSD, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package (2) {"clock-source-frequency", 100000000 }If this is to be done then I think it is better to use Linux clk framework to provide the clock (with corresponding properties in place).
But ACPI specification wants clocks as PowerResources and those do not have support for reading rate of the clock.
Quoted 3 lines
}
}) // _DSD()
}Quoted 9 lines · Mika Westerberg
Quoted 5 lines · Suravee Suthikulanit
Quoted 5 lines
I'm not sure if this has been discussed earlier. But after looking at the the
acpi_apddriver, all we need is just the platform-specific input clock frequency value used by thedrivers/i2c/busses/i2c-designware-core.c:i2c_dw_init()to calculate the values to program into theDW_IC_SS_SCL_HCNTandDW_IC_SS_SCL_LCNTregisters.There is a way to pass *CNT values already from ACPI to the driver -- It looks for method called FMCN (or SSCN) and retrieves the values from there if found.
Right, I also noticed this afterward. By the way, are FMCN and SSCN documented anywhere in the ACPI spec? I am trying to figure out how to update the ACPI table to add this information for the AMD Seattle (ARM64) platform, and I will also submit a patch to add the new HID for this driver.
Quoted 3 lines
The driver could be modified not to require clock if it already knows *CNT values.
Sounds good.
Thanks,
Suravee
Mika Westerberg
maintainerQuoted 9 lines · Suravee Suthikulpanit
Quoted 6 lines · Mika Westerberg
Quoted 5 lines · Suravee Suthikulanit
Quoted 5 lines
I'm not sure if this has been discussed earlier. But after looking at the the
acpi_apddriver, all we need is just the platform-specific input clock frequency value used by thedrivers/i2c/busses/i2c-designware-core.c:i2c_dw_init()to calculate the values to program into theDW_IC_SS_SCL_HCNTandDW_IC_SS_SCL_LCNTregisters.
Quoted 8 lines
Quoted 3 lines
There is a way to pass *CNT values already from ACPI to the driver -- It looks for method called FMCN (or SSCN) and retrieves the values from there if found.
Right, I also noticed this afterward. By the way, are FMCN and SSCN documented anywhere in the ACPI spec? I am trying to figure out how to update the ACPI table to add this information for the AMD Seattle (ARM64) platform, and I will also submit a patch to add the new HID for this driver.
No, they are Intel inventions for the Windows I2C driver.
Here is what I know about it:
SSCN - Standard Mode CNTs
FMCN - Fast Mode CNTs
They both return a package:
Package() {
HCNT,
LCNT,
SDA_hold_time,
}Hi,
Quoted 23 lines
Quoted 8 lines · Mika Westerberg
Quoted 6 lines · Suravee Suthikulanit
Quoted 5 lines
Quoted 5 lines
I'm not sure if this has been discussed earlier. But after looking at the the
acpi_apddriver, all we need is just the platform-specific input clock frequency value used by thedrivers/i2c/busses/i2c-designware-core.c:i2c_dw_init()to calculate the values to program into theDW_IC_SS_SCL_HCNTandDW_IC_SS_SCL_LCNTregisters.Quoted 8 lines
Quoted 3 lines
There is a way to pass *CNT values already from ACPI to the driver -- It looks for method called FMCN (or SSCN) and retrieves the values from there if found.
Right, I also noticed this afterward. By the way, are FMCN and SSCN documented anywhere in the ACPI spec? I am trying to figure out how to update the ACPI table to add this information for the AMD Seattle (ARM64) platform, and I will also submit a patch to add the new HID for this driver.
No, they are Intel inventions for the Windows I2C driver.
Here is what I know about it:
SSCN - Standard Mode CNTs
FMCN - Fast Mode CNTs
Quoted 7 lines
They both return a package:
Package() { HCNT, LCNT, SDA_hold_time, }
Can we not just add an AML method that will return the operation clock frequency that the I2C driver can use? If the method doesn't existed, we will just bail and do nothing or assume what ever default behavior?
-Loc
Mika Westerberg
maintainerQuoted 3 lines · Loc Ho
Can we not just add an AML method that will return the operation clock frequency that the I2C driver can use? If the method doesn't existed, we will just bail and do nothing or assume what ever default behavior?
Why would you add yet another method? There already are existing ACPI *CNT methods that you can use, and are used in systems out there.
Quoted 7 lines · Mika Westerberg
Quoted 3 lines · Loc Ho
Can we not just add an AML method that will return the operation clock frequency that the I2C driver can use? If the method doesn't existed, we will just bail and do nothing or assume what ever default behavior?
Why would you add yet another method? There already are existing ACPI *CNT methods that you can use, and are used in systems out there.
One thing to remember that *CNT methods allow more precise machine and per bus specific tunings against different HW characteristics like pull-up resistance, line load, propagation delay, etc.
Signature · 1 line
Jarkko
Quoted 25 lines · Mika Westerberg
Quoted 9 lines · Suravee Suthikulpanit
Quoted 6 lines · Mika Westerberg
Quoted 5 lines · Suravee Suthikulanit
Quoted 5 lines
I'm not sure if this has been discussed earlier. But after looking at the the
acpi_apddriver, all we need is just the platform-specific input clock frequency value used by thedrivers/i2c/busses/i2c-designware-core.c:i2c_dw_init()to calculate the values to program into theDW_IC_SS_SCL_HCNTandDW_IC_SS_SCL_LCNTregisters.Quoted 8 lines
Quoted 3 lines
There is a way to pass *CNT values already from ACPI to the driver -- It looks for method called FMCN (or SSCN) and retrieves the values from there if found.
Right, I also noticed this afterward. By the way, are FMCN and SSCN documented anywhere in the ACPI spec? I am trying to figure out how to update the ACPI table to add this information for the AMD Seattle (ARM64) platform, and I will also submit a patch to add the new HID for this driver.
No, they are Intel inventions for the Windows I2C driver.
Here is what I know about it:
SSCN - Standard Mode CNTs
FMCN - Fast Mode CNTs
Quoted 7 lines
They both return a package:
Package() { HCNT, LCNT, SDA_hold_time, }
1) Regarding
https://msdn.microsoft.com/en-us/library/windows/hardware/dn919852(v=vs.85).aspx
, Window I2C driver should pass MITT test. There are 5 I2C devices connect to one I2C bus for test. And those devices defined different "ConnectionSpeed" over the I2C bus by ACPI resource "I2CSerialBus".
During test, I2C bus should run in different "ConnectionSpeed" of device.
That means windows driver can modify I2C bus speed to match the "ConnectionSpeed" of device on-the-fly. Static value from SSCN and FMCN can not work for WITT test cases.
It sounds like odd that multi-speed can be applied over one I2C bus, But everything goes well.
Does this behavior(multi-speed) violate the I2C spec?
2) In theory, I2C core driver also can get ACPI resource "ConnectionSpeed" of device during creating new I2C device. Is it worth to add a new feature for parsing and using "ConnectionSpeed" of device for determining bus speed?
3) For ACPI DW adapter, current driver only support Fast mode. I would like to support other modes after previous 2 questions are clear.
Mika Westerberg
maintainerQuoted 6 lines · Ken Xue
1) Regarding
https://msdn.microsoft.com/en-us/library/windows/hardware/dn919852(v=vs.85).aspx
, Window I2C driver should pass MITT test. There are 5 I2C devices connect to one I2C bus for test. And those devices defined different "ConnectionSpeed" over the I2C bus by ACPI resource "I2CSerialBus".
Quoted 6 lines
During test, I2C bus should run in different "ConnectionSpeed" of device.
That means windows driver can modify I2C bus speed to match the "ConnectionSpeed" of device on-the-fly. Static value from SSCN and FMCN can not work for WITT test cases.
That is why there are *CNT methods for all supported I2C modes:
- SSCN() - returns for standard mode (100kHz)
- FMCN() - returns for fast mode (400kHz)
- FPCN() - returns for fast mode+ (1MHz)
for High-speed mode I'm not sure what the method name is ;-)
Then the Windows driver switches between those based on what the ConnectionSpeed is in the ACPI I2C connector.
Quoted 16 lines · Mika Westerberg
Quoted 6 lines · Ken Xue
1) Regarding
https://msdn.microsoft.com/en-us/library/windows/hardware/dn919852(v=vs.85).aspx
, Window I2C driver should pass MITT test. There are 5 I2C devices connect to one I2C bus for test. And those devices defined different "ConnectionSpeed" over the I2C bus by ACPI resource "I2CSerialBus".Quoted 6 lines
During test, I2C bus should run in different "ConnectionSpeed" of device.
That means windows driver can modify I2C bus speed to match the "ConnectionSpeed" of device on-the-fly. Static value from SSCN and FMCN can not work for WITT test cases.
That is why there are *CNT methods for all supported I2C modes:
Quoted 8 lines
-
SSCN()- returns for standard mode (100kHz)
-FMCN()- returns for fast mode (400kHz)
-FPCN()- returns for fast mode+ (1MHz)for High-speed mode I'm not sure what the method name is ;-)
Then the Windows driver switches between those based on what the ConnectionSpeed is in the ACPI I2C connector.
Window driver can set Bus speed based on "ConnectionSpeed". But Current Linux driver only sets Bus speed during probe. How can Linux diver determine which Bus speed should be applied, if all *CNT methods return non-zero?
Mika Westerberg
maintainerQuoted 23 lines · Ken Xue
Quoted 22 lines · Mika Westerberg
Quoted 6 lines · Ken Xue
1) Regarding
https://msdn.microsoft.com/en-us/library/windows/hardware/dn919852(v=vs.85).aspx
, Window I2C driver should pass MITT test. There are 5 I2C devices connect to one I2C bus for test. And those devices defined different "ConnectionSpeed" over the I2C bus by ACPI resource "I2CSerialBus".Quoted 6 lines
During test, I2C bus should run in different "ConnectionSpeed" of device.
That means windows driver can modify I2C bus speed to match the "ConnectionSpeed" of device on-the-fly. Static value from SSCN and FMCN can not work for WITT test cases.
That is why there are *CNT methods for all supported I2C modes:
-
SSCN()- returns for standard mode (100kHz)
-FMCN()- returns for fast mode (400kHz)
-FPCN()- returns for fast mode+ (1MHz)for High-speed mode I'm not sure what the method name is ;-)
Quoted 7 lines
Quoted 2 lines
Then the Windows driver switches between those based on what the ConnectionSpeed is in the ACPI I2C connector.
Window driver can set Bus speed based on "ConnectionSpeed". But Current Linux driver only sets Bus speed during probe. How can Linux diver determine which Bus speed should be applied, if all *CNT methods return non-zero?
By default Linux driver uses 400kHz so it picks values returned from FMCN(). You can hack clk_freq in the driver to use 100kHz which then picks SSCN().
There is no support for reading ConnectionSpeed in Linux yet.
Why/how can Linux driver make use of such non-ACPI defined methods?
Thanks,
Ivan
-----Original Message-----
From: Mika Westerberg [mailto:[email protected]]
Sent: Wednesday, December 23, 2015 17:53
To: Xue, Ken
Cc: [email protected]; Suthikulpanit, Suravee; Loc Ho; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Hurwitz, Sherry; Duran, Leo; Hanjun Guo; Al Stone; Zheng, Ivan; Yu, Xiangliang
Subject: Re: [PATCH v2 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support
Quoted 7 lines · Ken Xue
1) Regarding
https://msdn.microsoft.com/en-us/library/windows/hardware/dn919852(v=v
s.85).aspx , Window I2C driver should pass MITT test. There are 5 I2C devices connect to one I2C bus for test. And those devices defined different "ConnectionSpeed" over the I2C bus by ACPI resource "I2CSerialBus".
Quoted 6 lines
During test, I2C bus should run in different "ConnectionSpeed" of device.
That means windows driver can modify I2C bus speed to match the "ConnectionSpeed" of device on-the-fly. Static value from SSCN and FMCN can not work for WITT test cases.
That is why there are *CNT methods for all supported I2C modes:
- SSCN() - returns for standard mode (100kHz)
- FMCN() - returns for fast mode (400kHz)
- FPCN() - returns for fast mode+ (1MHz)
for High-speed mode I'm not sure what the method name is ;-)
Then the Windows driver switches between those based on what the ConnectionSpeed is in the ACPI I2C connector.
Mika Westerberg
maintainerQuoted 1 line · Ivan
Why/how can Linux driver make use of such non-ACPI defined methods?
What do you mean exactly?
I added support for these (well, SSCN and FMCN) because I found out that some vendors include such methods with their BIOS implementation. Windows driver uses these if present and so do we.
Thanks Mika for the background.
I'm a BIOS engineer and my point is that such non-ACPI defined methods rely on BIOS implementation, so how the generic I2C driver works on a platform without such methods? Should the vendor implement their own driver in such case?
I think Windows driver use ConnectionSpeed field in I2CSerialBus declaration for a certain device and it's defined in ACPI 5.0.
Thanks,
Ivan
-----Original Message-----
From: Mika Westerberg [mailto:[email protected]]
Sent: Wednesday, December 23, 2015 18:10
To: Zheng, Ivan
Cc: Xue, Ken; [email protected]; Suthikulpanit, Suravee; Loc Ho; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Hurwitz, Sherry; Duran, Leo; Hanjun Guo; Al Stone; Yu, Xiangliang
Subject: Re: [PATCH v2 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support
Quoted 1 line · Ivan
Why/how can Linux driver make use of such non-ACPI defined methods?
What do you mean exactly?
I added support for these (well, SSCN and FMCN) because I found out that some vendors include such methods with their BIOS implementation. Windows driver uses these if present and so do we.
Mika Westerberg
maintainerQuoted 4 lines · Ivan
I'm a BIOS engineer and my point is that such non-ACPI defined methods rely on BIOS implementation, so how the generic I2C driver works on a platform without such methods? Should the vendor implement their own driver in such case?
Those methods are by *no* means meant for generic driver. They are specific to DesignWare I2C driver.
If you need to specify bus speed that the device is supposed to use, you put it to the I2cSerialBus() resource (ConnectionSpeed)...
Quoted 2 lines
I think Windows driver use ConnectionSpeed field in I2CSerialBus declaration for a certain device and it's defined in ACPI 5.0.
..like you say here.
We just need to add support for ConnectionSpeed to Linux I2C core.
Quoted 6 lines · Ken Xue
Quoted 1 line · Mika Westerberg
On Tue, Dec 15, 2015 at 08:52:19AM -0600, Suravee Suthikulpanit wrote:
During test, I2C bus should run in different "ConnectionSpeed" of device.
Quoted 7 lines
That means windows driver can modify I2C bus speed to match the "ConnectionSpeed" of device on-the-fly. Static value from SSCN and FMCN can not work for WITT test cases.
It sounds like odd that multi-speed can be applied over one I2C bus, But everything goes well.
Does this behavior(multi-speed) violate the I2C spec?
I can't remember if the spec says it, but I would say the bus should run at the speed of the slowest attached peripheral as they all have to listen for the address-byte being sent at the start of each i2c transaction.
Signature · 2 lines
Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius
Quoted 4 lines · Loc Ho
Add APM X-Gene ACPI I2C device support. These patches follow the same implementation as AMD I2C driver - changes in ACPI APD and Designware I2C drivers.
Quoted 8 lines
v2:
* Spilt theacpi_apdchange with defines for AMD and X-Gene I2C'sSigned-off-by Loc Ho <[email protected]>---
Loc Ho (2):
acpi:apd: Add APM X-Gene ACPI I2C device support i2c:dw: Add APM X-Gene ACPI I2C device support
Both patches applied, thanks!
Hi,
Quoted 8 lines · Rafael J. Wysocki
Quoted 7 lines · Loc Ho
Add APM X-Gene ACPI I2C device support. These patches follow the same implementation as AMD I2C driver - changes in ACPI APD and Designware I2C drivers.
v2:
* Spilt theacpi_apdchange with defines for AMD and X-Gene I2C's
Quoted 8 lines
Quoted 5 lines
Signed-off-by Loc Ho <[email protected]>---
Loc Ho (2):
acpi:apd: Add APM X-Gene ACPI I2C device support i2c:dw: Add APM X-Gene ACPI I2C device supportBoth patches applied, thanks!
Thanks...
-Loc