Skip to contentSkip to conversation

i3c: master: svc: fix compatibility string mismatch with binding doc

PATCH Applied Frank Li 5 participants 11 messages Oct 17, 2023 – Dec 13, 2023

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/2 i3c: master: svc: fix compatibility string mismatch with binding doc

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'.

Rename 'silvaco,i3c-master' to 'silvaco,i3c-master-v1' to ensure compatibility with the documentation.

---

Notes:
Change from v2 to v3
- Miquèl think drop silvaco,i3c-master totally. I grep dts tree. No upstream dts use silvaco,i3c-master yet.
I have not add "Reviewed-by: Miquel Raynal <[email protected]>",
it is different solution with previous one even just one line change.
I think v2/v3 both is good, feel free to pick each one.

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

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

 drivers/i3c/master/svc-i3c-master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i3c/master/svc-i3c-master.c +1 -1
index cf932ee056ef9..e307ba2b965e6 100644
@@ -1650,7 +1650,7 @@ 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-v1"},
 	{ /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, svc_i3c_master_of_match_tbl);
Signature · 1 line
2.34.1
author maintainer
#1 lore raw

PATCH v2 2/2 arm64: dts: freescale: imx93: add i3c1 and i3c2

Add I3C1 and I3C2.

---

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(+)
arch/arm64/boot/dts/freescale/imx93.dtsi +26 -0
index 6f85a05ee7e1a..c6ad9ba9eb9af 100644
@@ -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>;
Signature · 1 line
2.34.1
author maintainer
#2 lore raw

Re: [PATCH v2 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2

Quoted 4 lines · Frank Li

Add I3C1 and I3C2.

---

@Guo Shawn:

Driver part already merged.

Please pick up dts part

Frank

Quoted 55 lines

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(+)
arch/arm64/boot/dts/freescale/imx93.dtsi +26 -0
index 6f85a05ee7e1a..c6ad9ba9eb9af 100644
@@ -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>;
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v2 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2

Quoted 11 lines · Frank Li
Quoted 4 lines · Frank Li

Add I3C1 and I3C2.

---

@Guo Shawn:

Driver part already merged.

Please pick up dts part

It's merge window. What do you expect exactly?

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH v2 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2

Quoted 11 lines · Shawn Guo
Quoted 10 lines · Frank Li
Quoted 4 lines · Frank Li

Add I3C1 and I3C2.

---

@Guo Shawn:

Driver part already merged.

Quoted 8 lines
Quoted 1 line

Please pick up dts part

Rob had a comment [1] about SoC specific compatible. That's not what we want?

Shawn

[1] https://lkml.iu.edu/hypermail/linux/kernel/2310.2/03035.html

Yeah, Rob's request here looks valid to me. Should just be a bindings change Frank & fall back to the "silvaco,i3c-master-v1" compatible.

Cheers,
Conor.

author maintainer
#6 lore raw

Re: [PATCH v2 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2

Quoted 19 lines · Conor Dooley
Quoted 18 lines · Shawn Guo
Quoted 11 lines · Frank Li
Quoted 4 lines · Frank Li

Add I3C1 and I3C2.

---

@Guo Shawn:

Driver part already merged.

Please pick up dts part

Rob had a comment [1] about SoC specific compatible. That's not what we want?

Shawn

Quoted 7 lines
Quoted 1 line

[1] https://lkml.iu.edu/hypermail/linux/kernel/2310.2/03035.html

Yeah, Rob's request here looks valid to me. Should just be a bindings change Frank & fall back to the "silvaco,i3c-master-v1" compatible.

Cheers,
Conor.

@shawn:
rob agree on "silvaco,i3c-master-v1" compatible.

Frank

#7 lore raw

Re: [PATCH v2 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2

Quoted 22 lines · Frank Li
Quoted 21 lines · Conor Dooley
Quoted 19 lines · Shawn Guo
Quoted 11 lines · Frank Li
Quoted 4 lines · Frank Li

Add I3C1 and I3C2.

---

@Guo Shawn:

Driver part already merged.

Please pick up dts part

Rob had a comment [1] about SoC specific compatible. That's not what we want?

Shawn

[1] https://lkml.iu.edu/hypermail/linux/kernel/2310.2/03035.html

Quoted 8 lines
Quoted 5 lines

Yeah, Rob's request here looks valid to me. Should just be a bindings change Frank & fall back to the "silvaco,i3c-master-v1" compatible.

Cheers,
Conor.

@shawn:
rob agree on "silvaco,i3c-master-v1" compatible.

Hmm, not sure I have seen that. Here is what I saw from Rob:

"
The real problem here is not whether we have "v1" or not, but you need an SoC specific compatible. Unless there's a public spec where we can know exactly how many resets, clocks, interrupts, etc.
"

Shawn

author maintainer
#8 lore raw

Re: [PATCH v2 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2

Quoted 32 lines · Shawn Guo
Quoted 22 lines · Frank Li
Quoted 21 lines · Conor Dooley
Quoted 19 lines · Shawn Guo
Quoted 11 lines · Frank Li
Quoted 4 lines · Frank Li

Add I3C1 and I3C2.

---

@Guo Shawn:

Driver part already merged.

Please pick up dts part

Rob had a comment [1] about SoC specific compatible. That's not what we want?

Shawn

[1] https://lkml.iu.edu/hypermail/linux/kernel/2310.2/03035.html

Quoted 8 lines
Quoted 5 lines

Yeah, Rob's request here looks valid to me. Should just be a bindings change Frank & fall back to the "silvaco,i3c-master-v1" compatible.

Cheers,
Conor.

@shawn:
rob agree on "silvaco,i3c-master-v1" compatible.

Quoted 7 lines

Hmm, not sure I have seen that. Here is what I saw from Rob:

"
The real problem here is not whether we have "v1" or not, but you need an SoC specific compatible. Unless there's a public spec where we can know exactly how many resets, clocks, interrupts, etc.
"

@Rob:
Previous existed binding doc is "silvaco,i3c-master-v1". So far
this IP in our difference SOC have the same resets and clocks, and only one interrrupts.
current existed i3c controller compatible string is

snps,dw-i3c-master-1.00a
cdns,i3c-master
mipi-i3c-hci

mipi-i3c-hci is standard. "snps", "cdns" are similar as prefix
"silivaco".
I think the same IP vendor and same IP version should have same
resets, clocks, and interrupts. So far still not met exception yet.

Frank

Quoted 2 lines

Shawn

maintainer Applied
#10 lore raw
In reply to Frank Li
Quoted 8 lines · Frank Li

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'.

Rename 'silvaco,i3c-master' to 'silvaco,i3c-master-v1' to ensure compatibility with the documentation.

[...]

Applied, thanks!

[1/2] i3c: master: svc: fix compatibility string mismatch with binding doc

      commit: 8911eae9c8a947e5c1cc4fcce40473f1f5e475cd

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com