[PATCH] dt-bindings: usb: xlnx,usb2: Make clocks required

Radhey Shyam Pandey <[email protected]>
Newsgroups org.kernel.vger.linux-usb,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Add s_axi_aclk AXI4 clock support as a required property. Traditionally
this IP was used on MicroBlaze platforms which had fixed clocks enabled
all the time. But since it is a PL IP, it can also be used on SoC
platforms like Zynq UltraScale+ MPSoC which combines processing system
(PS) and user programmable logic (PL) into the same device. On these
platforms instead of fixed enabled clocks it is mandatory to explicitly
enable IP clocks for proper functionality.

So make clocks and clock-names required properties.

Signed-off-by: Radhey Shyam Pandey <[email protected]>
---
Similiar changes were done for emaclite YAML in commit
60dbdc6e08d6 dt-bindings: net: emaclite: Add clock support
---
 Documentation/devicetree/bindings/usb/xlnx,usb2.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/xlnx,usb2.yaml b/Documentation/devicetree/bindings/usb/xlnx,usb2.yaml
index f295aa9d9ee7..156d3676f9f9 100644
--- a/Documentation/devicetree/bindings/usb/xlnx,usb2.yaml
+++ b/Documentation/devicetree/bindings/usb/xlnx,usb2.yaml
@@ -34,6 +34,8 @@ required:
   - compatible
   - reg
   - interrupts
+  - clocks
+  - clock-names
 
 additionalProperties: false
 
@@ -43,5 +45,7 @@ examples:
         compatible = "xlnx,usb2-device-4.00.a";
         interrupts = <0x0 0x39 0x1>;
         reg = <0xee000000 0xc00>;
+        clocks = <&dummy>;
+        clock-names = "s_axi_aclk";
         xlnx,has-builtin-dma;
     };

base-commit: 6b8c8af514d739d0335f5579b585e02babe8a727
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.