[PATCH linux dev-5.15 v1 1/2] dt-binding: usb: Add NPCM UDC binding documentation

Tomer Maimon tmaimon77 at gmail.com
Thu Aug 11 18:48:49 AEST 2022


This patch adds device tree binding documentation for the NPCM BMC USB
Device Controller (UDC).

Signed-off-by: Tomer Maimon <tmaimon77 at gmail.com>
---
 .../devicetree/bindings/usb/npcm-udc.txt      | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/npcm-udc.txt

diff --git a/Documentation/devicetree/bindings/usb/npcm-udc.txt b/Documentation/devicetree/bindings/usb/npcm-udc.txt
new file mode 100644
index 000000000000..938d163ad681
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/npcm-udc.txt
@@ -0,0 +1,33 @@
+Nuvoton NPCM USB Device controller.
+
+This DT-binding describe Nuvoton NPCM USB Device controller (UDC) device node.
+The UDC is based on Chipidea Subsystem Device Controller IP.
+
+Required properties:
+- compatible	  : "nuvoton,npcm750-udc" for Poleg NPCM7XX.
+		    "nuvoton,npcm845-udc" for Arbel NPCM8XX.
+- reg             : Offset and length of the register set for the device,
+		    Offset and length of the DTD buffer.
+- interrupts      : Contain the UDC interrupt.
+- clocks          : phandle of UDC reference clock.
+- clock-names     : Should be "clk_usb_bridge".
+
+Note: Each npcm-udc which should have an alias correctly numbered
+in "aliases" node.
+
+e.g.
+aliases {
+	udc1 = &udc1;
+};
+
+Example:
+		udc0:udc at f0830000 {
+			compatible = "nuvoton,npcm750-udc";
+			reg = <0xf0830000 0x1000
+			       0xfffd0000 0x800>;
+			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+			clocks = <&clk NPCM7XX_CLK_SU>;
+			clock-names = "clk_usb_bridge";
+		};
+
-- 
2.33.0



More information about the openbmc mailing list