Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: Correct and extend FOTG210 schema

It turns out that this IP block exists in at least two
incarnations: FOTG200 and FOTG210. The one in the Gemini
is FOTG200, so add the variants and rectify the binding
for Gemini.

This affects things such as the placement of certain
registers.

It remains to be seen how similar this block is to the
third USB block from Faraday, FUSB220.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-1-100388af9810@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Linus Walleij and committed by
Greg Kroah-Hartman
8867258e 82b0417e

+4 -3
+4 -3
Documentation/devicetree/bindings/usb/faraday,fotg210.yaml
··· 5 5 $id: http://devicetree.org/schemas/usb/faraday,fotg210.yaml# 6 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 7 8 - title: Faraday Technology FOTG210 HS OTG USB 2.0 controller 8 + title: Faraday Technology FOTG200 series HS OTG USB 2.0 controller 9 9 10 10 maintainers: 11 11 - Linus Walleij <linus.walleij@linaro.org> ··· 17 17 properties: 18 18 compatible: 19 19 oneOf: 20 + - const: faraday,fotg200 20 21 - const: faraday,fotg210 21 22 - items: 22 23 - const: cortina,gemini-usb 23 - - const: faraday,fotg210 24 + - const: faraday,fotg200 24 25 25 26 reg: 26 27 maxItems: 1 ··· 67 66 #include <dt-bindings/clock/cortina,gemini-clock.h> 68 67 #include <dt-bindings/reset/cortina,gemini-reset.h> 69 68 usb0: usb@68000000 { 70 - compatible = "cortina,gemini-usb", "faraday,fotg210"; 69 + compatible = "cortina,gemini-usb", "faraday,fotg200"; 71 70 reg = <0x68000000 0x1000>; 72 71 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; 73 72 resets = <&syscon GEMINI_RESET_USB0>;