Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/ingenic,musb.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Ingenic JZ47xx USB IP DT bindings
0008 
0009 maintainers:
0010   - Paul Cercueil <paul@crapouillou.net>
0011 
0012 properties:
0013   $nodename:
0014     pattern: '^usb@.*'
0015 
0016   compatible:
0017     oneOf:
0018       - enum:
0019           - ingenic,jz4770-musb
0020           - ingenic,jz4740-musb
0021       - items:
0022           - const: ingenic,jz4725b-musb
0023           - const: ingenic,jz4740-musb
0024 
0025   reg:
0026     maxItems: 1
0027 
0028   clocks:
0029     maxItems: 1
0030 
0031   clock-names:
0032     items:
0033       - const: udc
0034 
0035   interrupts:
0036     maxItems: 1
0037 
0038   interrupt-names:
0039     items:
0040       - const: mc
0041 
0042   phys:
0043     maxItems: 1
0044 
0045   usb-role-switch:
0046     type: boolean
0047 
0048 required:
0049   - compatible
0050   - reg
0051   - clocks
0052   - clock-names
0053   - interrupts
0054   - interrupt-names
0055   - phys
0056 
0057 additionalProperties: false
0058 
0059 examples:
0060   - |
0061     #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
0062     usb_phy: usb-phy {
0063       compatible = "usb-nop-xceiv";
0064       #phy-cells = <0>;
0065     };
0066 
0067     udc: usb@13040000 {
0068       compatible = "ingenic,jz4740-musb";
0069       reg = <0x13040000 0x10000>;
0070 
0071       interrupt-parent = <&intc>;
0072       interrupts = <24>;
0073       interrupt-names = "mc";
0074 
0075       clocks = <&cgu JZ4740_CLK_UDC>;
0076       clock-names = "udc";
0077 
0078       phys = <&usb_phy>;
0079     };