* ExynosAutov9 SDAK UFS phy dtbs check error
@ 2022-07-06 9:53 Krzysztof Kozlowski
2022-07-06 9:54 ` Krzysztof Kozlowski
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-06 9:53 UTC (permalink / raw)
To: Chanho Park; +Cc: linux-samsung-soc@vger.kernel.org
Hi Chanho,
When running dtbs_check I found:
arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000: clocks:
[[10]] is too short
From schema: Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
clock-names: ['ref_clk'] is too short
From schema: Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
and so on. It seems you miss there clocks.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 9:53 ExynosAutov9 SDAK UFS phy dtbs check error Krzysztof Kozlowski
@ 2022-07-06 9:54 ` Krzysztof Kozlowski
2022-07-06 10:54 ` Chanho Park
2022-07-06 11:06 ` Alim Akhtar
0 siblings, 2 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-06 9:54 UTC (permalink / raw)
To: Chanho Park, Alim Akhtar; +Cc: linux-samsung-soc@vger.kernel.org
On 06/07/2022 11:53, Krzysztof Kozlowski wrote:
> Hi Chanho,
>
> When running dtbs_check I found:
> arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000: clocks:
> [[10]] is too short
>
> From schema: Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
>
> arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
> clock-names: ['ref_clk'] is too short
>
> From schema: Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
>
>
> and so on. It seems you miss there clocks.
+Cc Alim.
Tesla FSD has the same problem:
tesla/fsd-evb.dtb: ufs-phy@15124000: clocks: [[35, 2]] is too short
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 9:54 ` Krzysztof Kozlowski
@ 2022-07-06 10:54 ` Chanho Park
2022-07-06 11:15 ` Alim Akhtar
2022-07-06 15:03 ` Krzysztof Kozlowski
2022-07-06 11:06 ` Alim Akhtar
1 sibling, 2 replies; 8+ messages in thread
From: Chanho Park @ 2022-07-06 10:54 UTC (permalink / raw)
To: 'Krzysztof Kozlowski', 'Alim Akhtar'; +Cc: linux-samsung-soc
> > When running dtbs_check I found:
> > arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000: clocks:
> > [[10]] is too short
> >
> > From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
> phy.yaml
> >
> > arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
> > clock-names: ['ref_clk'] is too short
> >
> > From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
> phy.yaml
> >
> >
> > and so on. It seems you miss there clocks.
>
> +Cc Alim.
>
> Tesla FSD has the same problem:
> tesla/fsd-evb.dtb: ufs-phy@15124000: clocks: [[35, 2]] is too short
>
Thanks for the report.
Ufs-phy clock of Fsd and Exynos Auto v9 shall be 'ref' clock only unlike previous exynos7's ufs-phy.
I'm looking into how I can fix the warning.
I simply made below patch but I'm not sure which is better between minItems/maxItems and oneOf selection.
--- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
@@ -28,17 +28,23 @@ properties:
clocks:
items:
- - description: PLL reference clock
- - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
- - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
- - description: symbol clock for output symbol ( tx0 symbol clock)
+ minItems: 1
+ maxItems: 4
+ items:
+ - description: PLL reference clock
+ - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
+ - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
+ - description: symbol clock for output symbol ( tx0 symbol clock)
clock-names:
- items:
- - const: ref_clk
- - const: rx1_symbol_clk
- - const: rx0_symbol_clk
- - const: tx0_symbol_clk
+ oneOf:
+ - items:
+ - const: ref_clk
+ - const: rx1_symbol_clk
+ - const: rx0_symbol_clk
+ - const: tx0_symbol_clk
+ - items:
+ - const: ref_clk
samsung,pmu-syscon:
$ref: '/schemas/types.yaml#/definitions/phandle-array'
Best Regards,
Chanho Park
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 9:54 ` Krzysztof Kozlowski
2022-07-06 10:54 ` Chanho Park
@ 2022-07-06 11:06 ` Alim Akhtar
1 sibling, 0 replies; 8+ messages in thread
From: Alim Akhtar @ 2022-07-06 11:06 UTC (permalink / raw)
To: 'Krzysztof Kozlowski', 'Chanho Park'; +Cc: linux-samsung-soc
>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org]
>Sent: Wednesday, July 6, 2022 3:25 PM
>To: Chanho Park <chanho61.park@samsung.com>; Alim Akhtar
><alim.akhtar@samsung.com>
>Cc: linux-samsung-soc@vger.kernel.org
>Subject: Re: ExynosAutov9 SDAK UFS phy dtbs check error
>
>On 06/07/2022 11:53, Krzysztof Kozlowski wrote:
>> Hi Chanho,
>>
>> When running dtbs_check I found:
>> arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000: clocks:
>> [[10]] is too short
>>
>> From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
>phy.yaml
>>
>> arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
>> clock-names: ['ref_clk'] is too short
>>
>> From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
>phy.yaml
>>
>>
>> and so on. It seems you miss there clocks.
>
>+Cc Alim.
>
Thanks Krzysztof adding me and for reporting.
>Tesla FSD has the same problem:
>tesla/fsd-evb.dtb: ufs-phy@15124000: clocks: [[35, 2]] is too short
>
We need to update the binding for the newer SoCs which does not have PHY-(rx,tx)-symbol-clocks.
Phy-ref clock is only required for all the SoC and based on the SoC compatible phy-{rx,tx}-symoble clocks can be selected.
>
>Best regards,
>Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 10:54 ` Chanho Park
@ 2022-07-06 11:15 ` Alim Akhtar
2022-07-07 0:45 ` Chanho Park
2022-07-06 15:03 ` Krzysztof Kozlowski
1 sibling, 1 reply; 8+ messages in thread
From: Alim Akhtar @ 2022-07-06 11:15 UTC (permalink / raw)
To: 'Chanho Park', 'Krzysztof Kozlowski'; +Cc: linux-samsung-soc
>-----Original Message-----
>From: Chanho Park [mailto:chanho61.park@samsung.com]
>Sent: Wednesday, July 6, 2022 4:25 PM
>To: 'Krzysztof Kozlowski' <krzysztof.kozlowski@linaro.org>; 'Alim Akhtar'
><alim.akhtar@samsung.com>
>Cc: linux-samsung-soc@vger.kernel.org
>Subject: RE: ExynosAutov9 SDAK UFS phy dtbs check error
>
>> > When running dtbs_check I found:
>> > arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
>clocks:
>> > [[10]] is too short
>> >
>> > From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
>> phy.yaml
>> >
>> > arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
>> > clock-names: ['ref_clk'] is too short
>> >
>> > From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
>> phy.yaml
>> >
>> >
>> > and so on. It seems you miss there clocks.
>>
>> +Cc Alim.
>>
>> Tesla FSD has the same problem:
>> tesla/fsd-evb.dtb: ufs-phy@15124000: clocks: [[35, 2]] is too short
>>
>
>Thanks for the report.
>Ufs-phy clock of Fsd and Exynos Auto v9 shall be 'ref' clock only unlike previous
>exynos7's ufs-phy.
>
>I'm looking into how I can fix the warning.
>I simply made below patch but I'm not sure which is better between
>minItems/maxItems and oneOf selection.
>
Thanks Chanho for the patch
Using "if - then" is better here, because that will be selecting what is needed for SoC in question
Let me know if you will be sending a patch for that.
>--- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
>+++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
>@@ -28,17 +28,23 @@ properties:
>
> clocks:
> items:
>- - description: PLL reference clock
>- - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
>- - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
>- - description: symbol clock for output symbol ( tx0 symbol clock)
>+ minItems: 1
>+ maxItems: 4
>+ items:
>+ - description: PLL reference clock
>+ - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
>+ - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
>+ - description: symbol clock for output symbol ( tx0 symbol clock)
>
> clock-names:
>- items:
>- - const: ref_clk
>- - const: rx1_symbol_clk
>- - const: rx0_symbol_clk
>- - const: tx0_symbol_clk
>+ oneOf:
>+ - items:
>+ - const: ref_clk
>+ - const: rx1_symbol_clk
>+ - const: rx0_symbol_clk
>+ - const: tx0_symbol_clk
>+ - items:
>+ - const: ref_clk
>
> samsung,pmu-syscon:
> $ref: '/schemas/types.yaml#/definitions/phandle-array'
>
>Best Regards,
>Chanho Park
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 10:54 ` Chanho Park
2022-07-06 11:15 ` Alim Akhtar
@ 2022-07-06 15:03 ` Krzysztof Kozlowski
2022-07-07 0:46 ` Chanho Park
1 sibling, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-06 15:03 UTC (permalink / raw)
To: Chanho Park, 'Alim Akhtar'; +Cc: linux-samsung-soc
On 06/07/2022 12:54, Chanho Park wrote:
>>> When running dtbs_check I found:
>>> arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000: clocks:
>>> [[10]] is too short
>>>
>>> From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
>> phy.yaml
>>>
>>> arch/arm64/boot/dts/exynos/exynosautov9-sadk.dtb: phy@17e04000:
>>> clock-names: ['ref_clk'] is too short
>>>
>>> From schema: Documentation/devicetree/bindings/phy/samsung,ufs-
>> phy.yaml
>>>
>>>
>>> and so on. It seems you miss there clocks.
>>
>> +Cc Alim.
>>
>> Tesla FSD has the same problem:
>> tesla/fsd-evb.dtb: ufs-phy@15124000: clocks: [[35, 2]] is too short
>>
>
> Thanks for the report.
> Ufs-phy clock of Fsd and Exynos Auto v9 shall be 'ref' clock only unlike previous exynos7's ufs-phy.
>
> I'm looking into how I can fix the warning.
> I simply made below patch but I'm not sure which is better between minItems/maxItems and oneOf selection.
>
> --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> @@ -28,17 +28,23 @@ properties:
>
> clocks:
> items:
> - - description: PLL reference clock
> - - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
> - - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
> - - description: symbol clock for output symbol ( tx0 symbol clock)
> + minItems: 1
> + maxItems: 4
> + items:
> + - description: PLL reference clock
> + - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
> + - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
> + - description: symbol clock for output symbol ( tx0 symbol clock)
>
> clock-names:
> - items:
> - - const: ref_clk
> - - const: rx1_symbol_clk
> - - const: rx0_symbol_clk
> - - const: tx0_symbol_clk
> + oneOf:
> + - items:
> + - const: ref_clk
> + - const: rx1_symbol_clk
> + - const: rx0_symbol_clk
> + - const: tx0_symbol_clk
> + - items:
> + - const: ref_clk
>
You need:
1. new compatible
2. min/maxItems in clocks/clock-names in "properties:" part.
3. allOf:if:then: adding constraints per variant to clocks and clock-names.
See:
https://elixir.bootlin.com/linux/v5.18-rc2/source/Documentation/devicetree/bindings/clock/samsung,exynos7885-clock.yaml#L53
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 11:15 ` Alim Akhtar
@ 2022-07-07 0:45 ` Chanho Park
0 siblings, 0 replies; 8+ messages in thread
From: Chanho Park @ 2022-07-07 0:45 UTC (permalink / raw)
To: 'Alim Akhtar', 'Krzysztof Kozlowski'; +Cc: linux-samsung-soc
> >I'm looking into how I can fix the warning.
> >I simply made below patch but I'm not sure which is better between
> >minItems/maxItems and oneOf selection.
> >
> Thanks Chanho for the patch
>
> Using "if - then" is better here, because that will be selecting what is
> needed for SoC in question
>
> Let me know if you will be sending a patch for that.
I'll send a patch. Thanks for your comments :)
Best Regards,
Chanho Park
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: ExynosAutov9 SDAK UFS phy dtbs check error
2022-07-06 15:03 ` Krzysztof Kozlowski
@ 2022-07-07 0:46 ` Chanho Park
0 siblings, 0 replies; 8+ messages in thread
From: Chanho Park @ 2022-07-07 0:46 UTC (permalink / raw)
To: 'Krzysztof Kozlowski', 'Alim Akhtar'; +Cc: linux-samsung-soc
> You need:
> 1. new compatible
No need a new compatible.
> 2. min/maxItems in clocks/clock-names in "properties:" part.
> 3. allOf:if:then: adding constraints per variant to clocks and clock-names.
>
> See:
> https://elixir.bootlin.com/linux/v5.18-
> rc2/source/Documentation/devicetree/bindings/clock/samsung,exynos7885-
> clock.yaml#L53
Great. Thanks for your help and I'll send a patch.
Best Regards,
Chanho Park
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-07-07 0:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06 9:53 ExynosAutov9 SDAK UFS phy dtbs check error Krzysztof Kozlowski
2022-07-06 9:54 ` Krzysztof Kozlowski
2022-07-06 10:54 ` Chanho Park
2022-07-06 11:15 ` Alim Akhtar
2022-07-07 0:45 ` Chanho Park
2022-07-06 15:03 ` Krzysztof Kozlowski
2022-07-07 0:46 ` Chanho Park
2022-07-06 11:06 ` Alim Akhtar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.