17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 27ef62cebSEmmanuel Vadot# Copyright 2022 Linaro Ltd. 37ef62cebSEmmanuel Vadot%YAML 1.2 47ef62cebSEmmanuel Vadot--- 57ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/faraday,fotg210.yaml# 67ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 77ef62cebSEmmanuel Vadot 8*cb7aa33aSEmmanuel Vadottitle: Faraday Technology FOTG200 series HS OTG USB 2.0 controller 97ef62cebSEmmanuel Vadot 107ef62cebSEmmanuel Vadotmaintainers: 117ef62cebSEmmanuel Vadot - Linus Walleij <linus.walleij@linaro.org> 127ef62cebSEmmanuel Vadot 137ef62cebSEmmanuel VadotallOf: 147ef62cebSEmmanuel Vadot - $ref: usb-drd.yaml# 157ef62cebSEmmanuel Vadot - $ref: usb-hcd.yaml# 167ef62cebSEmmanuel Vadot 177ef62cebSEmmanuel Vadotproperties: 187ef62cebSEmmanuel Vadot compatible: 197ef62cebSEmmanuel Vadot oneOf: 20*cb7aa33aSEmmanuel Vadot - const: faraday,fotg200 217ef62cebSEmmanuel Vadot - const: faraday,fotg210 227ef62cebSEmmanuel Vadot - items: 237ef62cebSEmmanuel Vadot - const: cortina,gemini-usb 24*cb7aa33aSEmmanuel Vadot - const: faraday,fotg200 257ef62cebSEmmanuel Vadot 267ef62cebSEmmanuel Vadot reg: 277ef62cebSEmmanuel Vadot maxItems: 1 287ef62cebSEmmanuel Vadot 297ef62cebSEmmanuel Vadot interrupts: 307ef62cebSEmmanuel Vadot maxItems: 1 317ef62cebSEmmanuel Vadot 327ef62cebSEmmanuel Vadot clocks: 337ef62cebSEmmanuel Vadot maxItems: 1 347ef62cebSEmmanuel Vadot 357ef62cebSEmmanuel Vadot clock-names: 367ef62cebSEmmanuel Vadot items: 377ef62cebSEmmanuel Vadot - const: PCLK 387ef62cebSEmmanuel Vadot 397ef62cebSEmmanuel Vadot resets: 407ef62cebSEmmanuel Vadot maxItems: 1 417ef62cebSEmmanuel Vadot 427ef62cebSEmmanuel Vadot syscon: 437ef62cebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 447ef62cebSEmmanuel Vadot description: a phandle to the global Gemini system controller on 457ef62cebSEmmanuel Vadot Gemini systems 467ef62cebSEmmanuel Vadot 477ef62cebSEmmanuel Vadot dr_mode: true 487ef62cebSEmmanuel Vadot 497ef62cebSEmmanuel Vadot phys: 507ef62cebSEmmanuel Vadot maxItems: 1 517ef62cebSEmmanuel Vadot 527ef62cebSEmmanuel Vadot phy-names: 537ef62cebSEmmanuel Vadot const: usb2-phy 547ef62cebSEmmanuel Vadot 557ef62cebSEmmanuel Vadotrequired: 567ef62cebSEmmanuel Vadot - compatible 577ef62cebSEmmanuel Vadot - reg 587ef62cebSEmmanuel Vadot - interrupts 597ef62cebSEmmanuel Vadot - clocks 607ef62cebSEmmanuel Vadot - clock-names 617ef62cebSEmmanuel Vadot 627ef62cebSEmmanuel VadotadditionalProperties: false 637ef62cebSEmmanuel Vadot 647ef62cebSEmmanuel Vadotexamples: 657ef62cebSEmmanuel Vadot - | 667ef62cebSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 677ef62cebSEmmanuel Vadot #include <dt-bindings/clock/cortina,gemini-clock.h> 687ef62cebSEmmanuel Vadot #include <dt-bindings/reset/cortina,gemini-reset.h> 697ef62cebSEmmanuel Vadot usb0: usb@68000000 { 70*cb7aa33aSEmmanuel Vadot compatible = "cortina,gemini-usb", "faraday,fotg200"; 717ef62cebSEmmanuel Vadot reg = <0x68000000 0x1000>; 727ef62cebSEmmanuel Vadot interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; 737ef62cebSEmmanuel Vadot resets = <&syscon GEMINI_RESET_USB0>; 747ef62cebSEmmanuel Vadot clocks = <&syscon GEMINI_CLK_GATE_USB0>; 757ef62cebSEmmanuel Vadot clock-names = "PCLK"; 767ef62cebSEmmanuel Vadot syscon = <&syscon>; 777ef62cebSEmmanuel Vadot dr_mode = "host"; 787ef62cebSEmmanuel Vadot }; 79