ACPI / APD: Add clock frequency for Hisilicon Hip08-Lite I2C controller
Subsystems (4)
PATCH v2 1/2 ACPI / APD: Add clock frequency for Hisilicon Hip08-Lite I2C controller
I2C clock frequency of Designware ip for Hisilicon Hip08 Lite is 125M, use a new ACPI HID to enable it.
---
v2:
- Reverse the order of the two patches suggested by Andy;
drivers/acpi/acpi_apd.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/acpi/acpi_apd.c +6 -0
@@ -161,6 +161,11 @@ static int st_misc_setup(struct apd_private_data *pdata) .fixed_clk_rate = 250000000, }; +static const struct apd_device_desc hip08_lite_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate =125000000 , +}; +static const struct apd_device_desc thunderx2_i2c_desc = { .setup = acpi_apd_setup, .fixed_clk_rate =125000000 ,
@@ -243,6 +248,7 @@ static int acpi_apd_create_device(struct acpi_device *adev, { "CAV9007", APD_ADDR(thunderx2_i2c_desc) }, { "HISI02A1", APD_ADDR(hip07_i2c_desc) }, { "HISI02A2", APD_ADDR(hip08_i2c_desc) }, + { "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) }, { "HISI0173", APD_ADDR(hip08_spi_desc) }, { "NXP0001", APD_ADDR(nxp_i2c_desc) }, #endif
Signature · 1 line
1.7.12.4
PATCH v2 2/2 i2c: designware: Add ACPI HID for Hisilicon Hip08-Lite I2C controller
Add ACPI HID HISI02A3 for Hisilicon Hip08 Lite, which has different clock frequency from Hip08 for I2C controller.
--- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-designware-platdrv.c +1 -0
@@ -130,6 +130,7 @@ static int dw_i2c_acpi_configure(struct platform_device *pdev) { "APMC0D0F", 0 }, { "HISI02A1", 0 }, { "HISI02A2", 0 }, + { "HISI02A3", 0 }, { } };MODULE_DEVICE_TABLE (acpi, dw_i2c_acpi_match);
Signature · 1 line
1.7.12.4
Re: [PATCH v2 2/2] i2c: designware: Add ACPI HID for Hisilicon Hip08-Lite I2C controller
Quoted 15 lines · Hanjun Guo
Add ACPI HID HISI02A3 for Hisilicon Hip08 Lite, which has different clock frequency from Hip08 for I2C controller.
Tested-by Sheng Feng <[email protected]>Signed-off-by Hanjun Guo <[email protected]>--- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 1 file changed, 1 insertion(+)drivers/i2c/busses/i2c-designware-platdrv.c +0
-0
drivers/i2c/busses/i2c-designware-platdrv.c static int dw_i2c_acpi_configure(struct platform_device *pdev) · line 136
Quoted 7 lines
drivers/i2c/busses/i2c-designware-platdrv.c +1
-0@@ -130,6 +130,7 @@ static int dw_i2c_acpi_configure(struct platform_device *pdev) { "APMC0D0F", 0 }, { "HISI02A1", 0 }, { "HISI02A2", 0 }, + { "HISI02A3", 0 }, { } };MODULE_DEVICE_TABLE (acpi, dw_i2c_acpi_match);
Re: [PATCH v2 2/2] i2c: designware: Add ACPI HID for Hisilicon Hip08-Lite I2C controller
In reply to Hanjun GuoQuoted 3 lines · Hanjun Guo
Add ACPI HID HISI02A3 for Hisilicon Hip08 Lite, which has different clock frequency from Hip08 for I2C controller.
Quoted 21 lines
Tested-by Sheng Feng <[email protected]>Signed-off-by Hanjun Guo <[email protected]>--- drivers/i2c/busses/i2c-designware-platdrv.c | 1 + 1 file changed, 1 insertion(+)drivers/i2c/busses/i2c-designware-platdrv.c +1
-0@@ -130,6 +130,7 @@ static int dw_i2c_acpi_configure(struct platform_device *pdev) { "APMC0D0F", 0 }, { "HISI02A1", 0 }, { "HISI02A2", 0 }, + { "HISI02A3", 0 }, { } };MODULE_DEVICE_TABLE (acpi, dw_i2c_acpi_match);Signature · 1 line
1.7.12.4
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 5 lines · Hanjun Guo
I2C clock frequency of Designware ip for Hisilicon Hip08 Lite is 125M, use a new ACPI HID to enable it.
Tested-by Sheng Feng <[email protected]>Signed-off-by Hanjun Guo <[email protected]>
Quoted 8 lines
---
v2:
- Reverse the order of the two patches suggested by Andy;drivers/acpi/acpi_apd.c | 6 ++++++ 1 file changed, 6 insertions(+)
Rafael J. Wysocki
maintainerQuoted 31 lines · Hanjun Guo
I2C clock frequency of Designware ip for Hisilicon Hip08 Lite is 125M, use a new ACPI HID to enable it.
Tested-by Sheng Feng <[email protected]>Signed-off-by Hanjun Guo <[email protected]>---
v2:
- Reverse the order of the two patches suggested by Andy;drivers/acpi/acpi_apd.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/acpi/acpi_apd.c +5
-0@@ -161,6 +161,11 @@ static int st_misc_setup(struct apd_private_data *pdata) .fixed_clk_rate = 250000000, }; +static const struct apd_device_desc hip08_lite_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate =125000000 , +}; +static const struct apd_device_desc thunderx2_i2c_desc = { .setup = acpi_apd_setup, .fixed_clk_rate =125000000 ,
drivers/acpi/acpi_apd.c static int acpi_apd_create_device(struct acpi_device *adev,
Quoted 8 lines
drivers/acpi/acpi_apd.c +1
-1@@ -243,6 +248,7 @@ static int acpi_apd_create_device(struct acpi_device *adev, { "CAV9007", APD_ADDR(thunderx2_i2c_desc) }, { "HISI02A1", APD_ADDR(hip07_i2c_desc) }, { "HISI02A2", APD_ADDR(hip08_i2c_desc) }, + { "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) }, { "HISI0173", APD_ADDR(hip08_spi_desc) }, { "NXP0001", APD_ADDR(nxp_i2c_desc) }, #endif --
Both patches in the series applied as 5.6 material, thanks!