Skip to content

Commit

Permalink
dt-bindings: usb: mtk-xhci: Make all clocks required
Browse files Browse the repository at this point in the history
All of the clocks listed in the binding are always wired to the XHCI
controller hardware blocks on all SoCs. The reason some clocks were made
optional in the binding was to account for the fact that depending on
the SoC, some of the clocks might be fixed (ie not controlled by
software).

Given that the devicetree should represent the hardware, make all clocks
required in the binding. Subsequent patches will make the DTS changes to
specify fixed-clocks for the clocks that aren't controllable.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220623193702.817996-3-nfraprado@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Nícolas F. R. A. Prado authored and Greg Kroah-Hartman committed Jun 27, 2022
1 parent b2c510f commit ebc4969
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ properties:
maxItems: 1

clocks:
minItems: 1
items:
- description: Controller clock used by normal mode
- description: Reference clock used by low power mode etc
Expand All @@ -76,9 +75,8 @@ properties:
- description: controller clock

clock-names:
minItems: 1
items:
- const: sys_ck # required, the following ones are optional
- const: sys_ck
- const: ref_ck
- const: mcu_ck
- const: dma_ck
Expand Down

0 comments on commit ebc4969

Please sign in to comment.