public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc
@ 2023-10-16 21:18 Frank Li
  2023-10-16 21:18 ` [PATCH 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2 Frank Li
  2023-10-17 14:03 ` [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc Miquel Raynal
  0 siblings, 2 replies; 3+ messages in thread
From: Frank Li @ 2023-10-16 21:18 UTC (permalink / raw)
  To: krzysztof.kozlowski
  Cc: Frank.li, alexander.stein, alexandre.belloni, conor+dt,
	conor.culhane, conor, devicetree, festevam, haibo.chen, imx, joe,
	kernel, krzysztof.kozlowski+dt, linux-arm-kernel, linux-i3c,
	linux-imx, linux-kernel, miquel.raynal, peng.fan, ping.bai,
	robh+dt, s.hauer, shawnguo, sherry.sun, xiaoning.wang

In the binding documentation, the compatible string is specified as
'silvaco,i3c-master-v1', but in the driver, it is defined as
'silvaco,i3c-master'.

Add 'silvaco,i3c-master-v1' to the driver and deprecates
'silvaco,i3c-master' to ensure compatibility with the documentation.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---

Notes:
    Change from v1 to v2
    - update driver by using compatible string silvaco,i3c-master-v1

 drivers/i3c/master/svc-i3c-master.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c
index cf932ee056ef..4c74b11b13c6 100644
--- a/drivers/i3c/master/svc-i3c-master.c
+++ b/drivers/i3c/master/svc-i3c-master.c
@@ -1650,7 +1650,8 @@ static const struct dev_pm_ops svc_i3c_pm_ops = {
 };
 
 static const struct of_device_id svc_i3c_master_of_match_tbl[] = {
-	{ .compatible = "silvaco,i3c-master" },
+	{ .compatible = "silvaco,i3c-master" }, /* deprecated */
+	{ .compatible = "silvaco,i3c-master-v1"},
 	{ /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, svc_i3c_master_of_match_tbl);
-- 
2.34.1


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

* [PATCH 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2
  2023-10-16 21:18 [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc Frank Li
@ 2023-10-16 21:18 ` Frank Li
  2023-10-17 14:03 ` [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc Miquel Raynal
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2023-10-16 21:18 UTC (permalink / raw)
  To: krzysztof.kozlowski
  Cc: Frank.li, alexander.stein, alexandre.belloni, conor+dt,
	conor.culhane, conor, devicetree, festevam, haibo.chen, imx, joe,
	kernel, krzysztof.kozlowski+dt, linux-arm-kernel, linux-i3c,
	linux-imx, linux-kernel, miquel.raynal, peng.fan, ping.bai,
	robh+dt, s.hauer, shawnguo, sherry.sun, xiaoning.wang

Add I3C1 and I3C2.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---

Notes:
    Change from v1 to v2
    - using compatible string silvaco,i3c-master-v1

 arch/arm64/boot/dts/freescale/imx93.dtsi | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 6f85a05ee7e1..c6ad9ba9eb9a 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -242,6 +242,19 @@ tpm2: pwm@44320000 {
 				status = "disabled";
 			};
 
+			i3c1: i3c-master@44330000 {
+				compatible = "silvaco,i3c-master-v1";
+				reg = <0x44330000 0x10000>;
+				interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+				#address-cells = <3>;
+				#size-cells = <0>;
+				clocks = <&clk IMX93_CLK_BUS_AON>,
+					 <&clk IMX93_CLK_I3C1_GATE>,
+					 <&clk IMX93_CLK_I3C1_SLOW>;
+				clock-names = "pclk", "fast_clk", "slow_clk";
+				status = "disabled";
+			};
+
 			lpi2c1: i2c@44340000 {
 				compatible = "fsl,imx93-lpi2c", "fsl,imx7ulp-lpi2c";
 				reg = <0x44340000 0x10000>;
@@ -496,6 +509,19 @@ tpm6: pwm@42510000 {
 				status = "disabled";
 			};
 
+			i3c2: i3c-master@42520000 {
+				compatible = "silvaco,i3c-master-v1";
+				reg = <0x42520000 0x10000>;
+				interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
+				#address-cells = <3>;
+				#size-cells = <0>;
+				clocks = <&clk IMX93_CLK_BUS_WAKEUP>,
+					 <&clk IMX93_CLK_I3C2_GATE>,
+					 <&clk IMX93_CLK_I3C2_SLOW>;
+				clock-names = "pclk", "fast_clk", "slow_clk";
+				status = "disabled";
+			};
+
 			lpi2c3: i2c@42530000 {
 				compatible = "fsl,imx93-lpi2c", "fsl,imx7ulp-lpi2c";
 				reg = <0x42530000 0x10000>;
-- 
2.34.1


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

* Re: [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc
  2023-10-16 21:18 [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc Frank Li
  2023-10-16 21:18 ` [PATCH 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2 Frank Li
@ 2023-10-17 14:03 ` Miquel Raynal
  1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2023-10-17 14:03 UTC (permalink / raw)
  To: Frank Li
  Cc: krzysztof.kozlowski, alexander.stein, alexandre.belloni, conor+dt,
	conor.culhane, conor, devicetree, festevam, haibo.chen, imx, joe,
	kernel, krzysztof.kozlowski+dt, linux-arm-kernel, linux-i3c,
	linux-imx, linux-kernel, peng.fan, ping.bai, robh+dt, s.hauer,
	shawnguo, sherry.sun, xiaoning.wang

Hi Frank,

Frank.Li@nxp.com wrote on Mon, 16 Oct 2023 17:18:53 -0400:

> In the binding documentation, the compatible string is specified as
> 'silvaco,i3c-master-v1', but in the driver, it is defined as
> 'silvaco,i3c-master'.
> 
> Add 'silvaco,i3c-master-v1' to the driver and deprecates
> 'silvaco,i3c-master' to ensure compatibility with the documentation.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

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

end of thread, other threads:[~2023-10-17 14:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-16 21:18 [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc Frank Li
2023-10-16 21:18 ` [PATCH 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2 Frank Li
2023-10-17 14:03 ` [PATCH 1/2] i3c: master: svc: fix compatibility string mismatch with binding doc Miquel Raynal

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