0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/intel,keembay-dwc3.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Intel Keem Bay DWC3 USB controller
0008
0009 maintainers:
0010 - Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad@intel.com>
0011
0012 properties:
0013 compatible:
0014 const: intel,keembay-dwc3
0015
0016 reg:
0017 maxItems: 1
0018
0019 clocks:
0020 maxItems: 4
0021
0022 clock-names:
0023 items:
0024 - const: async_master
0025 - const: ref
0026 - const: alt_ref
0027 - const: suspend
0028
0029 ranges: true
0030
0031 '#address-cells':
0032 enum: [ 1, 2 ]
0033
0034 '#size-cells':
0035 enum: [ 1, 2 ]
0036
0037 # Required child node:
0038
0039 patternProperties:
0040 "^usb@[0-9a-f]+$":
0041 $ref: snps,dwc3.yaml#
0042
0043 required:
0044 - compatible
0045 - clocks
0046 - clock-names
0047 - ranges
0048
0049 additionalProperties: false
0050
0051 examples:
0052 - |
0053 #include <dt-bindings/interrupt-controller/arm-gic.h>
0054 #include <dt-bindings/interrupt-controller/irq.h>
0055 #define KEEM_BAY_A53_AUX_USB
0056 #define KEEM_BAY_A53_AUX_USB_REF
0057 #define KEEM_BAY_A53_AUX_USB_ALT_REF
0058 #define KEEM_BAY_A53_AUX_USB_SUSPEND
0059
0060 usb {
0061 compatible = "intel,keembay-dwc3";
0062 clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>,
0063 <&scmi_clk KEEM_BAY_A53_AUX_USB_REF>,
0064 <&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>,
0065 <&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>;
0066 clock-names = "async_master", "ref", "alt_ref", "suspend";
0067 ranges;
0068 #address-cells = <1>;
0069 #size-cells = <1>;
0070
0071 usb@34000000 {
0072 compatible = "snps,dwc3";
0073 reg = <0x34000000 0x10000>;
0074 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
0075 dr_mode = "peripheral";
0076 };
0077 };