All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chanho Park <chanho61.park@samsung.com>,
	'Kishon Vijay Abraham I' <kishon@ti.com>,
	'Vinod Koul' <vkoul@kernel.org>,
	'Alim Akhtar' <alim.akhtar@samsung.com>,
	'Rob Herring' <robh+dt@kernel.org>,
	'Krzysztof Kozlowski' <krzysztof.kozlowski+dt@linaro.org>
Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/6] dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array
Date: Thu, 2 Jun 2022 13:42:22 +0200	[thread overview]
Message-ID: <b5cf82bc-363a-81f8-e3ad-7671c7c0ca4f@linaro.org> (raw)
In-Reply-To: <035e01d87668$fb2bfcf0$f183f6d0$@samsung.com>

On 02/06/2022 12:10, Chanho Park wrote:
>>>>    samsung,pmu-syscon:
>>>> -    $ref: '/schemas/types.yaml#/definitions/phandle'
>>>> -    description: phandle for PMU system controller interface, used to
>>>> -                 control pmu registers bits for ufs m-phy
>>>> +    $ref: '/schemas/types.yaml#/definitions/phandle-array'
>>>> +    items:
>>>> +      minItems: 1
>>>> +      items:
>>>> +        - description: phandle for PMU system controller interface, used
>> to
>>>> +                       control pmu registers bits for ufs m-phy
>>>> +        - description: offset of the pmu control register
>>>
>>> This does not work... Please test your bindings with different cases.
>>
>> Just to be clear - when I mentioned that minItems should be on second
>> items level, I meant it should affect the second items list, not the first.
>> Now you can have 1, 2 or 10 phandles.
> 
> I put the minItems to the second level as you mentioned but I got below error from dt_binding_check.
> 
> --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> @@ -42,8 +42,8 @@ properties:
>    samsung,pmu-syscon:
>      $ref: '/schemas/types.yaml#/definitions/phandle-array'
>      items:
> -      minItems: 1
>        items:
> +        - minItems: 1

Ah, you are right. This above is not good, but your original code was
almost good. I think it should be:

43     $ref: '/schemas/types.yaml#/definitions/phandle-array'

44     maxItems: 1

45     items:

46       minItems: 1

47       items:

48         - description: phandle for PMU sysused to

50         - description: offset of the pmu control register


Apologies for the confusion.

>          - description: phandle for PMU system controller interface, used to
>                         control pmu registers bits for ufs m-phy
>          - description: offset of the pmu control register
> 
> $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> ufs-phy@15571800: samsung,pmu-syscon:0: [4294967295, 1828] is too short


Best regards,
Krzysztof

WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chanho Park <chanho61.park@samsung.com>,
	'Kishon Vijay Abraham I' <kishon@ti.com>,
	'Vinod Koul' <vkoul@kernel.org>,
	'Alim Akhtar' <alim.akhtar@samsung.com>,
	'Rob Herring' <robh+dt@kernel.org>,
	'Krzysztof Kozlowski' <krzysztof.kozlowski+dt@linaro.org>
Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/6] dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array
Date: Thu, 2 Jun 2022 13:42:22 +0200	[thread overview]
Message-ID: <b5cf82bc-363a-81f8-e3ad-7671c7c0ca4f@linaro.org> (raw)
In-Reply-To: <035e01d87668$fb2bfcf0$f183f6d0$@samsung.com>

On 02/06/2022 12:10, Chanho Park wrote:
>>>>    samsung,pmu-syscon:
>>>> -    $ref: '/schemas/types.yaml#/definitions/phandle'
>>>> -    description: phandle for PMU system controller interface, used to
>>>> -                 control pmu registers bits for ufs m-phy
>>>> +    $ref: '/schemas/types.yaml#/definitions/phandle-array'
>>>> +    items:
>>>> +      minItems: 1
>>>> +      items:
>>>> +        - description: phandle for PMU system controller interface, used
>> to
>>>> +                       control pmu registers bits for ufs m-phy
>>>> +        - description: offset of the pmu control register
>>>
>>> This does not work... Please test your bindings with different cases.
>>
>> Just to be clear - when I mentioned that minItems should be on second
>> items level, I meant it should affect the second items list, not the first.
>> Now you can have 1, 2 or 10 phandles.
> 
> I put the minItems to the second level as you mentioned but I got below error from dt_binding_check.
> 
> --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> @@ -42,8 +42,8 @@ properties:
>    samsung,pmu-syscon:
>      $ref: '/schemas/types.yaml#/definitions/phandle-array'
>      items:
> -      minItems: 1
>        items:
> +        - minItems: 1

Ah, you are right. This above is not good, but your original code was
almost good. I think it should be:

43     $ref: '/schemas/types.yaml#/definitions/phandle-array'

44     maxItems: 1

45     items:

46       minItems: 1

47       items:

48         - description: phandle for PMU sysused to

50         - description: offset of the pmu control register


Apologies for the confusion.

>          - description: phandle for PMU system controller interface, used to
>                         control pmu registers bits for ufs m-phy
>          - description: offset of the pmu control register
> 
> $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> ufs-phy@15571800: samsung,pmu-syscon:0: [4294967295, 1828] is too short


Best regards,
Krzysztof

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chanho Park <chanho61.park@samsung.com>,
	'Kishon Vijay Abraham I' <kishon@ti.com>,
	'Vinod Koul' <vkoul@kernel.org>,
	'Alim Akhtar' <alim.akhtar@samsung.com>,
	'Rob Herring' <robh+dt@kernel.org>,
	'Krzysztof Kozlowski' <krzysztof.kozlowski+dt@linaro.org>
Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/6] dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array
Date: Thu, 2 Jun 2022 13:42:22 +0200	[thread overview]
Message-ID: <b5cf82bc-363a-81f8-e3ad-7671c7c0ca4f@linaro.org> (raw)
In-Reply-To: <035e01d87668$fb2bfcf0$f183f6d0$@samsung.com>

On 02/06/2022 12:10, Chanho Park wrote:
>>>>    samsung,pmu-syscon:
>>>> -    $ref: '/schemas/types.yaml#/definitions/phandle'
>>>> -    description: phandle for PMU system controller interface, used to
>>>> -                 control pmu registers bits for ufs m-phy
>>>> +    $ref: '/schemas/types.yaml#/definitions/phandle-array'
>>>> +    items:
>>>> +      minItems: 1
>>>> +      items:
>>>> +        - description: phandle for PMU system controller interface, used
>> to
>>>> +                       control pmu registers bits for ufs m-phy
>>>> +        - description: offset of the pmu control register
>>>
>>> This does not work... Please test your bindings with different cases.
>>
>> Just to be clear - when I mentioned that minItems should be on second
>> items level, I meant it should affect the second items list, not the first.
>> Now you can have 1, 2 or 10 phandles.
> 
> I put the minItems to the second level as you mentioned but I got below error from dt_binding_check.
> 
> --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> @@ -42,8 +42,8 @@ properties:
>    samsung,pmu-syscon:
>      $ref: '/schemas/types.yaml#/definitions/phandle-array'
>      items:
> -      minItems: 1
>        items:
> +        - minItems: 1

Ah, you are right. This above is not good, but your original code was
almost good. I think it should be:

43     $ref: '/schemas/types.yaml#/definitions/phandle-array'

44     maxItems: 1

45     items:

46       minItems: 1

47       items:

48         - description: phandle for PMU sysused to

50         - description: offset of the pmu control register


Apologies for the confusion.

>          - description: phandle for PMU system controller interface, used to
>                         control pmu registers bits for ufs m-phy
>          - description: offset of the pmu control register
> 
> $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml
> ufs-phy@15571800: samsung,pmu-syscon:0: [4294967295, 1828] is too short


Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2022-06-02 11:42 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20220602053329epcas2p402901736895e6cb802a04cc3f95d172e@epcas2p4.samsung.com>
2022-06-02  5:32 ` [PATCH v2 0/6] support secondary ufs for Exynos Auto v9 SoC Chanho Park
2022-06-02  5:32   ` Chanho Park
2022-06-02  5:32   ` Chanho Park
     [not found]   ` <CGME20220602053329epcas2p4c2baca2d161814f5d51dc48722f904b1@epcas2p4.samsung.com>
2022-06-02  5:32     ` [PATCH v2 1/6] dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  9:34       ` Krzysztof Kozlowski
2022-06-02  9:34         ` Krzysztof Kozlowski
2022-06-02  9:34         ` Krzysztof Kozlowski
2022-06-02  9:37         ` Krzysztof Kozlowski
2022-06-02  9:37           ` Krzysztof Kozlowski
2022-06-02  9:37           ` Krzysztof Kozlowski
2022-06-02 10:10           ` Chanho Park
2022-06-02 10:10             ` Chanho Park
2022-06-02 10:10             ` Chanho Park
2022-06-02 11:42             ` Krzysztof Kozlowski [this message]
2022-06-02 11:42               ` Krzysztof Kozlowski
2022-06-02 11:42               ` Krzysztof Kozlowski
     [not found]   ` <CGME20220602053329epcas2p238f5019ff98e4d9fcf5fea0001a773a9@epcas2p2.samsung.com>
2022-06-02  5:32     ` [PATCH v2 2/6] phy: samsung: ufs: constify samsung_ufs_phy_cfg Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  9:42       ` Krzysztof Kozlowski
2022-06-02  9:42         ` Krzysztof Kozlowski
2022-06-02  9:42         ` Krzysztof Kozlowski
2022-06-02 13:04         ` Chanho Park
2022-06-02 13:04           ` Chanho Park
2022-06-02 13:04           ` Chanho Park
2022-06-03  7:25           ` Krzysztof Kozlowski
2022-06-03  7:25             ` Krzysztof Kozlowski
2022-06-03  7:25             ` Krzysztof Kozlowski
     [not found]   ` <CGME20220602053329epcas2p19785735bcbf08ad274ff887797485b8c@epcas2p1.samsung.com>
2022-06-02  5:32     ` [PATCH v2 3/6] phy: samsung: ufs: support secondary ufs phy Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  9:49       ` Krzysztof Kozlowski
2022-06-02  9:49         ` Krzysztof Kozlowski
2022-06-02  9:49         ` Krzysztof Kozlowski
2022-06-02 12:59         ` Chanho Park
2022-06-02 12:59           ` Chanho Park
2022-06-02 12:59           ` Chanho Park
     [not found]   ` <CGME20220602053329epcas2p407039a6087b6c460d6687b1cc1f3872a@epcas2p4.samsung.com>
2022-06-02  5:32     ` [PATCH v2 4/6] arm64: dts: exynosautov9: adjust DT style of ufs nodes Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  9:49       ` Krzysztof Kozlowski
2022-06-02  9:49         ` Krzysztof Kozlowski
2022-06-02  9:49         ` Krzysztof Kozlowski
2022-06-06  9:22       ` Krzysztof Kozlowski
2022-06-06  9:22         ` Krzysztof Kozlowski
2022-06-06  9:22         ` Krzysztof Kozlowski
2022-06-07  5:21         ` Chanho Park
2022-06-07  5:21           ` Chanho Park
2022-06-07  5:21           ` Chanho Park
2022-06-07  6:33           ` Krzysztof Kozlowski
2022-06-07  6:33             ` Krzysztof Kozlowski
2022-06-07  6:33             ` Krzysztof Kozlowski
2022-06-07  6:48             ` Chanho Park
2022-06-07  6:48               ` Chanho Park
2022-06-07  6:48               ` Chanho Park
2022-06-07  6:32       ` (subset) " Krzysztof Kozlowski
2022-06-07  6:32         ` Krzysztof Kozlowski
2022-06-07  6:32         ` Krzysztof Kozlowski
     [not found]   ` <CGME20220602053329epcas2p3dc1aa5e50c5eab03309e67b95e2993ff@epcas2p3.samsung.com>
2022-06-02  5:32     ` [PATCH v2 5/6] arm64: dts: exynosautov9: add secondary ufs devices Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  5:32       ` Chanho Park
     [not found]   ` <CGME20220602053329epcas2p263a77beaaa17d20655bbf55874760054@epcas2p2.samsung.com>
2022-06-02  5:32     ` [PATCH v2 6/6] arm64: dts: exynosautov9-sadk: enable " Chanho Park
2022-06-02  5:32       ` Chanho Park
2022-06-02  5:32       ` Chanho Park

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5cf82bc-363a-81f8-e3ad-7671c7c0ca4f@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=alim.akhtar@samsung.com \
    --cc=chanho61.park@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kishon@ti.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.