dt-bindings: i3c: Fix silvaco,i3c-master compatible string
Frank Li
maintainerPATCH 1/2 dt-bindings: i3c: Fix silvaco,i3c-master compatible string
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
--- Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml +2 -2
@@ -14,7 +14,7 @@ allOf: properties: compatible: - const: silvaco,i3c-master-v1 + const: silvaco,i3c-master reg: maxItems: 1
@@ -49,7 +49,7 @@ unevaluatedProperties: false examples: - | i3c-master@a0000000 { - compatible = "silvaco,i3c-master-v1"; + compatible = "silvaco,i3c-master"; clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>; clock-names = "pclk", "fast_clk", "slow_clk"; interrupt-parent = <&gic>;
Signature · 1 line
2.34.1
Frank Li
maintainerPATCH 2/2 arm64: dts: freescale: imx93: add i3c1 and i3c2
Add I3C1 and I3C2.
--- arch/arm64/boot/dts/freescale/imx93.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/freescale/imx93.dtsi +26 -0
@@ -242,6 +242,19 @@ tpm2: pwm@44320000 { status = "disabled"; }; + i3c1: i3c-master@44330000 { + compatible = "silvaco,i3c-master"; + 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"; + 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
Rob Herring
maintainerRe: [PATCH 2/2] arm64: dts: freescale: imx93: add i3c1 and i3c2
Quoted 12 lines · Frank Li
Add I3C1 and I3C2.
Signed-off-by Frank Li <[email protected]>--- arch/arm64/boot/dts/freescale/imx93.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+)arch/arm64/boot/dts/freescale/imx93.dtsi +0
-0
arch/arm64/boot/dts/freescale/imx93.dtsi tpm2: pwm@44320000 { · line 246
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx93.dtsi +2
-0@@ -242,6 +242,19 @@ tpm2: pwm@44320000 { status = "disabled"; }; + i3c1: i3c-master@44330000 { + compatible = "silvaco,i3c-master";
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
Quoted 2 lines · Frank Li
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
And what makes the driver right & the binding wrong? AFAICT, this is an IP sold by silvaco & the -v1 suffix was explicitly requested during review of the binding.
Thanks,
Conor.
Quoted 31 lines
Signed-off-by Frank Li <[email protected]>--- Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml +2
-2@@ -14,7 +14,7 @@ allOf: properties: compatible: - const: silvaco,i3c-master-v1 + const: silvaco,i3c-master reg: maxItems: 1@@ -49,7 +49,7 @@ unevaluatedProperties: false examples: - | i3c-master@a0000000 { - compatible = "silvaco,i3c-master-v1"; + compatible = "silvaco,i3c-master"; clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>; clock-names = "pclk", "fast_clk", "slow_clk"; interrupt-parent = <&gic>;Signature · 1 line
2.34.1
Frank Li
maintainerQuoted 7 lines · Conor Dooley
Quoted 2 lines · Frank Li
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
And what makes the driver right & the binding wrong? AFAICT, this is an IP sold by silvaco & the -v1 suffix was explicitly requested during review of the binding.
The driver existed for the long time. DTS files already use silvaco,i3c-master.
There are two options, one change doc, the other change dts and drivers. I think change doc is easiest ways.
If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
If everyone prefer change drivers and dts, I can work on new patch. Just break back compatiblity.
Frank
Quoted 35 lines
Thanks,
Conor.Quoted 31 lines
Signed-off-by Frank Li <[email protected]>--- Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml +2
-2@@ -14,7 +14,7 @@ allOf: properties: compatible: - const: silvaco,i3c-master-v1 + const: silvaco,i3c-master reg: maxItems: 1@@ -49,7 +49,7 @@ unevaluatedProperties: false examples: - | i3c-master@a0000000 { - compatible = "silvaco,i3c-master-v1"; + compatible = "silvaco,i3c-master"; clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>; clock-names = "pclk", "fast_clk", "slow_clk"; interrupt-parent = <&gic>;Signature · 1 line
2.34.1
Quoted 12 lines · Frank Li
Quoted 7 lines · Conor Dooley
Quoted 2 lines · Frank Li
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
And what makes the driver right & the binding wrong? AFAICT, this is an IP sold by silvaco & the -v1 suffix was explicitly requested during review of the binding.
The driver existed for the long time. DTS files already use silvaco,i3c-master.
Quoted 7 lines
There are two options, one change doc, the other change dts and drivers. I think change doc is easiest ways.
If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
If everyone prefer change drivers and dts, I can work on new patch. Just break back compatiblity.
No, because Rob explicitly pointed out too generic name.
https://lore.kernel.org/all/[email protected]/
Is it some way to avoid implementing feedback or how does it work?
Best regards,
Krzysztof
Frank Li
maintainerQuoted 18 lines · Krzysztof Kozlowski
Quoted 17 lines · Frank Li
Quoted 7 lines · Conor Dooley
Quoted 2 lines · Frank Li
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
And what makes the driver right & the binding wrong? AFAICT, this is an IP sold by silvaco & the -v1 suffix was explicitly requested during review of the binding.
The driver existed for the long time. DTS files already use silvaco,i3c-master.
There are two options, one change doc, the other change dts and drivers. I think change doc is easiest ways.
If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
Quoted 7 lines
Quoted 2 lines
If everyone prefer change drivers and dts, I can work on new patch. Just break back compatiblity.
No, because Rob explicitly pointed out too generic name.
https://lore.kernel.org/all/[email protected]/Is it some way to avoid implementing feedback or how does it work?
Downstream use silvaco,i3c-master to match driver. Anyways, miss match happened.
option 1: fix doc
option 2: fix driver and dts
what do you perfer?
Quoted 4 lines
Best regards,
Krzysztof
Quoted 22 lines · Frank Li
Quoted 21 lines · Krzysztof Kozlowski
Quoted 19 lines · Frank Li
Quoted 7 lines · Conor Dooley
Quoted 2 lines · Frank Li
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
And what makes the driver right & the binding wrong? AFAICT, this is an IP sold by silvaco & the -v1 suffix was explicitly requested during review of the binding.
The driver existed for the long time. DTS files already use silvaco,i3c-master.
There are two options, one change doc, the other change dts and drivers. I think change doc is easiest ways.
If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
If everyone prefer change drivers and dts, I can work on new patch. Just break back compatiblity.
Quoted 6 lines
Quoted 4 lines
No, because Rob explicitly pointed out too generic name.
https://lore.kernel.org/all/[email protected]/Is it some way to avoid implementing feedback or how does it work?
Downstream use silvaco,i3c-master to match driver. Anyways, miss match
Too bad for downstream.
Quoted 6 lines
happened.
option 1: fix doc
option 2: fix driver and dtswhat do you perfer?
Fix driver and dts, keep existing compatible as deprecated.
Best regards,
Krzysztof
Miquel Raynal
maintainerHi Krzysztof,
[email protected] wrote on Mon, 16 Oct 2023 22:43:28 +0200:
Quoted 20 lines · Frank Li
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Frank Li
Quoted 17 lines · Conor Dooley
Quoted 7 lines · Frank Li
Quoted 2 lines
In driver, compatible string is silvaco,i3c-master instead of silvaco,i3c-master-v1.
And what makes the driver right & the binding wrong? AFAICT, this is an IP sold by silvaco & the -v1 suffix was explicitly requested during review of the binding.
The driver existed for the long time. DTS files already use silvaco,i3c-master.
There are two options, one change doc, the other change dts and drivers. I think change doc is easiest ways.
If there are v2 in future, we can added silvaco,i3c-master-v2 in future.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
If everyone prefer change drivers and dts, I can work on new patch. Just break back compatiblity.
No, because Rob explicitly pointed out too generic name.
https://lore.kernel.org/all/[email protected]/Is it some way to avoid implementing feedback or how does it work?
Not at all, it's my (faithful) fault, I did update the bindings upon Rob request and apparently kept the previous string in the driver.
After thinking again I would drop silvaco,i3c-master entirely from the driver, it was never intended to keep it.
Thanks,
Miquèl