Wan Ahmad Zainie | 8eb16e7 | 2020-09-21 10:44:58 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/usb/intel,keembay-dwc3.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Intel Keem Bay DWC3 USB controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad@intel.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | const: intel,keembay-dwc3 |
| 15 | |
Rob Herring | b13e2bd | 2021-12-06 11:41:12 -0600 | [diff] [blame] | 16 | reg: |
| 17 | maxItems: 1 |
| 18 | |
Wan Ahmad Zainie | 8eb16e7 | 2020-09-21 10:44:58 +0800 | [diff] [blame] | 19 | clocks: |
| 20 | maxItems: 4 |
| 21 | |
| 22 | clock-names: |
| 23 | items: |
| 24 | - const: async_master |
| 25 | - const: ref |
| 26 | - const: alt_ref |
| 27 | - const: suspend |
| 28 | |
| 29 | ranges: true |
| 30 | |
| 31 | '#address-cells': |
| 32 | enum: [ 1, 2 ] |
| 33 | |
| 34 | '#size-cells': |
| 35 | enum: [ 1, 2 ] |
| 36 | |
| 37 | # Required child node: |
| 38 | |
| 39 | patternProperties: |
Serge Semin | 492d3d2 | 2020-12-10 12:09:43 +0300 | [diff] [blame] | 40 | "^usb@[0-9a-f]+$": |
| 41 | $ref: snps,dwc3.yaml# |
Wan Ahmad Zainie | 8eb16e7 | 2020-09-21 10:44:58 +0800 | [diff] [blame] | 42 | |
| 43 | required: |
| 44 | - compatible |
| 45 | - clocks |
| 46 | - clock-names |
| 47 | - ranges |
| 48 | |
| 49 | additionalProperties: false |
| 50 | |
| 51 | examples: |
| 52 | - | |
| 53 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 54 | #include <dt-bindings/interrupt-controller/irq.h> |
| 55 | #define KEEM_BAY_A53_AUX_USB |
| 56 | #define KEEM_BAY_A53_AUX_USB_REF |
| 57 | #define KEEM_BAY_A53_AUX_USB_ALT_REF |
| 58 | #define KEEM_BAY_A53_AUX_USB_SUSPEND |
| 59 | |
| 60 | usb { |
| 61 | compatible = "intel,keembay-dwc3"; |
| 62 | clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>, |
| 63 | <&scmi_clk KEEM_BAY_A53_AUX_USB_REF>, |
| 64 | <&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>, |
| 65 | <&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>; |
| 66 | clock-names = "async_master", "ref", "alt_ref", "suspend"; |
| 67 | ranges; |
| 68 | #address-cells = <1>; |
| 69 | #size-cells = <1>; |
| 70 | |
Serge Semin | 492d3d2 | 2020-12-10 12:09:43 +0300 | [diff] [blame] | 71 | usb@34000000 { |
Wan Ahmad Zainie | 8eb16e7 | 2020-09-21 10:44:58 +0800 | [diff] [blame] | 72 | compatible = "snps,dwc3"; |
| 73 | reg = <0x34000000 0x10000>; |
| 74 | interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; |
| 75 | dr_mode = "peripheral"; |
| 76 | }; |
| 77 | }; |