Re: [PATCH 6/7] dt-bindings: usb: mtu3: add two optional clocks

From: Rob Herring
Date: Tue Apr 04 2023 - 09:43:59 EST


On Mon, Apr 03, 2023 at 10:52:29AM +0800, Chunfeng Yun wrote:
> Add optional clock 'xhci_ck' and 'frmcnt_ck';
> Add optional property "assigned-clock" and "assigned-clock-parents";
>
> Signed-off-by: Chunfeng Yun <chunfeng.yun@xxxxxxxxxxxx>
> ---
> .../devicetree/bindings/usb/mediatek,mtu3.yaml | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
> index d2655173e108..50c15f2ce14d 100644
> --- a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
> +++ b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
> @@ -66,6 +66,8 @@ properties:
> - description: Reference clock used by low power mode etc
> - description: Mcu bus clock for register access
> - description: DMA bus clock for data transfer
> + - description: DRD controller clock
> + - description: Frame count clock
>
> clock-names:
> minItems: 1
> @@ -74,6 +76,16 @@ properties:
> - const: ref_ck
> - const: mcu_ck
> - const: dma_ck
> + - const: xhci_ck
> + - const: frmcnt_ck
> +
> + assigned-clocks:
> + minItems: 1
> + maxItems: 6
> +
> + assigned-clock-parents:
> + minItems: 1
> + maxItems: 6

You don't need to include assigned-clocks properties. They are
implicitly allowed (when clocks is present).

Rob