Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: of-simple: add compatible for Cavium

Add necessary compatible flag for Cavium's DWC3 so
dwc3-of-simple will probe.

Tested-by: Steven J. Hill <Steven.Hill@cavium.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

+29
+28
Documentation/devicetree/bindings/usb/dwc3-cavium.txt
··· 1 + Cavium SuperSpeed DWC3 USB SoC controller 2 + 3 + Required properties: 4 + - compatible: Should contain "cavium,octeon-7130-usb-uctl" 5 + 6 + Required child node: 7 + A child node must exist to represent the core DWC3 IP block. The name of 8 + the node is not important. The content of the node is defined in dwc3.txt. 9 + 10 + Example device node: 11 + 12 + uctl@1180069000000 { 13 + compatible = "cavium,octeon-7130-usb-uctl"; 14 + reg = <0x00011800 0x69000000 0x00000000 0x00000100>; 15 + ranges; 16 + #address-cells = <0x00000002>; 17 + #size-cells = <0x00000002>; 18 + refclk-frequency = <0x05f5e100>; 19 + refclk-type-ss = "dlmc_ref_clk0"; 20 + refclk-type-hs = "dlmc_ref_clk0"; 21 + power = <0x00000002 0x00000002 0x00000001>; 22 + xhci@1690000000000 { 23 + compatible = "cavium,octeon-7130-xhci", "synopsys,dwc3"; 24 + reg = <0x00016900 0x00000000 0x00000010 0x00000000>; 25 + interrupt-parent = <0x00000010>; 26 + interrupts = <0x00000009 0x00000004>; 27 + }; 28 + };
+1
drivers/usb/dwc3/dwc3-of-simple.c
··· 176 176 { .compatible = "qcom,dwc3" }, 177 177 { .compatible = "rockchip,rk3399-dwc3" }, 178 178 { .compatible = "xlnx,zynqmp-dwc3" }, 179 + { .compatible = "cavium,octeon-7130-usb-uctl" }, 179 180 { /* Sentinel */ } 180 181 }; 181 182 MODULE_DEVICE_TABLE(of, of_dwc3_simple_match);