0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/samsung,exynos-usb2.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Samsung Exynos SoC USB 2.0 EHCI/OHCI Controller
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - samsung,exynos4210-ehci
0016 - samsung,exynos4210-ohci
0017
0018 clocks:
0019 maxItems: 1
0020
0021 clock-names:
0022 items:
0023 - const: usbhost
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 phys:
0029 minItems: 1
0030 maxItems: 3
0031
0032 phy-names:
0033 items:
0034 enum: [host, hsic0, hsic1]
0035 minItems: 1
0036 maxItems: 3
0037
0038 reg:
0039 maxItems: 1
0040
0041 samsung,vbus-gpio:
0042 description:
0043 Only for controller in EHCI mode, if present, specifies the GPIO that
0044 needs to be pulled up for the bus to be powered.
0045
0046 required:
0047 - compatible
0048 - clocks
0049 - clock-names
0050 - interrupts
0051 - phys
0052 - phy-names
0053 - reg
0054
0055 allOf:
0056 - $ref: usb-hcd.yaml#
0057 - if:
0058 properties:
0059 compatible:
0060 contains:
0061 const: samsung,exynos4210-ohci
0062 then:
0063 properties:
0064 samsung,vbus-gpio: false
0065
0066 unevaluatedProperties: false
0067
0068 examples:
0069 - |
0070 #include <dt-bindings/clock/exynos5420.h>
0071 #include <dt-bindings/interrupt-controller/arm-gic.h>
0072
0073 usb@12110000 {
0074 compatible = "samsung,exynos4210-ehci";
0075 reg = <0x12110000 0x100>;
0076 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
0077 clocks = <&clock CLK_USBH20>;
0078 clock-names = "usbhost";
0079 phys = <&usb2_phy 0>;
0080 phy-names = "host";
0081
0082 #address-cells = <1>;
0083 #size-cells = <0>;
0084
0085 hub@1 {
0086 compatible = "usb0424,9514";
0087 reg = <1>;
0088 #address-cells = <1>;
0089 #size-cells = <0>;
0090
0091 usbether@1 {
0092 compatible = "usb0424,ec00";
0093 reg = <1>;
0094 local-mac-address = [00 00 00 00 00 00];
0095 };
0096 };
0097 };
0098
0099 usb@12120000 {
0100 compatible = "samsung,exynos4210-ohci";
0101 reg = <0x12120000 0x100>;
0102 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
0103 clocks = <&clock CLK_USBH20>;
0104 clock-names = "usbhost";
0105 phys = <&usb2_phy 0>;
0106 phy-names = "host";
0107 };