public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] ACPI: APD: Add AMDI0015 as platform device
@ 2024-07-18 15:23 Shyam Sundar S K
  2024-08-09 15:38 ` Shyam Sundar S K
  0 siblings, 1 reply; 3+ messages in thread
From: Shyam Sundar S K @ 2024-07-18 15:23 UTC (permalink / raw)
  To: rafael, lenb; +Cc: linux-acpi, linux-kernel, Shyam Sundar S K, Sanket Goswami

Add AMDI0015 to the ACPI APD support list to ensure correct clock settings
for the I3C device on the latest AMD platforms.

Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 drivers/acpi/acpi_apd.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index 80f945cbec8a..6c502268879e 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -118,6 +118,11 @@ static const struct apd_device_desc wt_i2c_desc = {
 	.fixed_clk_rate = 150000000,
 };
 
+static const struct apd_device_desc wt_i3c_desc = {
+	.setup = acpi_apd_setup,
+	.fixed_clk_rate = 125000000,
+};
+
 static struct property_entry uart_properties[] = {
 	PROPERTY_ENTRY_U32("reg-io-width", 4),
 	PROPERTY_ENTRY_U32("reg-shift", 2),
@@ -232,6 +237,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
 	{ "AMD0040", APD_ADDR(fch_misc_desc)},
 	{ "AMDI0010", APD_ADDR(wt_i2c_desc) },
 	{ "AMDI0019", APD_ADDR(wt_i2c_desc) },
+	{ "AMDI0015", APD_ADDR(wt_i3c_desc) },
 	{ "AMDI0020", APD_ADDR(cz_uart_desc) },
 	{ "AMDI0022", APD_ADDR(cz_uart_desc) },
 	{ "HYGO0010", APD_ADDR(wt_i2c_desc) },
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ACPI: APD: Add AMDI0015 as platform device
  2024-07-18 15:23 [PATCH v1] ACPI: APD: Add AMDI0015 as platform device Shyam Sundar S K
@ 2024-08-09 15:38 ` Shyam Sundar S K
  2024-08-09 15:59   ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Shyam Sundar S K @ 2024-08-09 15:38 UTC (permalink / raw)
  To: rafael, lenb, Andy Shevchenko; +Cc: linux-acpi, linux-kernel, Sanket Goswami

+Andy

On 7/18/2024 20:53, Shyam Sundar S K wrote:
> Add AMDI0015 to the ACPI APD support list to ensure correct clock settings
> for the I3C device on the latest AMD platforms.
> 
> Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
> ---
>  drivers/acpi/acpi_apd.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
> index 80f945cbec8a..6c502268879e 100644
> --- a/drivers/acpi/acpi_apd.c
> +++ b/drivers/acpi/acpi_apd.c
> @@ -118,6 +118,11 @@ static const struct apd_device_desc wt_i2c_desc = {
>  	.fixed_clk_rate = 150000000,
>  };
>  
> +static const struct apd_device_desc wt_i3c_desc = {
> +	.setup = acpi_apd_setup,
> +	.fixed_clk_rate = 125000000,
> +};
> +
>  static struct property_entry uart_properties[] = {
>  	PROPERTY_ENTRY_U32("reg-io-width", 4),
>  	PROPERTY_ENTRY_U32("reg-shift", 2),
> @@ -232,6 +237,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
>  	{ "AMD0040", APD_ADDR(fch_misc_desc)},
>  	{ "AMDI0010", APD_ADDR(wt_i2c_desc) },
>  	{ "AMDI0019", APD_ADDR(wt_i2c_desc) },
> +	{ "AMDI0015", APD_ADDR(wt_i3c_desc) },

FYI..

AMDI0015 is for MIPI I3C (we call it I3C legacy) version of the
implementation.

and.. MIPI0100 is for HCI based implementation of the MIPI I3C
Specification.

Thanks,
Shyam

>  	{ "AMDI0020", APD_ADDR(cz_uart_desc) },
>  	{ "AMDI0022", APD_ADDR(cz_uart_desc) },
>  	{ "HYGO0010", APD_ADDR(wt_i2c_desc) },

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ACPI: APD: Add AMDI0015 as platform device
  2024-08-09 15:38 ` Shyam Sundar S K
@ 2024-08-09 15:59   ` Andy Shevchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2024-08-09 15:59 UTC (permalink / raw)
  To: Shyam Sundar S K; +Cc: rafael, lenb, linux-acpi, linux-kernel, Sanket Goswami

On Fri, Aug 09, 2024 at 09:08:22PM +0530, Shyam Sundar S K wrote:
> +Andy
> 
> On 7/18/2024 20:53, Shyam Sundar S K wrote:
> > Add AMDI0015 to the ACPI APD support list to ensure correct clock settings
> > for the I3C device on the latest AMD platforms.

...

> >  	{ "AMD0040", APD_ADDR(fch_misc_desc)},
> >  	{ "AMDI0010", APD_ADDR(wt_i2c_desc) },
> >  	{ "AMDI0019", APD_ADDR(wt_i2c_desc) },
> > +	{ "AMDI0015", APD_ADDR(wt_i3c_desc) },

Please, keep it sorted.

...

> FYI..

Thanks!

> AMDI0015 is for MIPI I3C (we call it I3C legacy) version of the
> implementation.
> 
> and.. MIPI0100 is for HCI based implementation of the MIPI I3C
> Specification.

This is fine as long as there is no collision, i.e. if a new (HCI I3C _HID is
required the new one should be allocated).

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-09 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 15:23 [PATCH v1] ACPI: APD: Add AMDI0015 as platform device Shyam Sundar S K
2024-08-09 15:38 ` Shyam Sundar S K
2024-08-09 15:59   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox