mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 14:13:39 +00:00

Extend support to Microchip hubs USB2512 & USB2513 which are identical to USB2514 but offer less downstream ports (i.e. respectively 2 and 3 ports). Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250213094338.1611389-2-catalin.popescu@leica-geosystems.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
91 lines
1.9 KiB
YAML
91 lines
1.9 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/usb/microchip,usb2514.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Microchip USB2514 Hub Controller
|
|
|
|
maintainers:
|
|
- Fabio Estevam <festevam@gmail.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- usb424,2412
|
|
- usb424,2417
|
|
- usb424,2514
|
|
- usb424,2517
|
|
- items:
|
|
- enum:
|
|
- usb424,2512
|
|
- usb424,2513
|
|
- const: usb424,2514
|
|
|
|
reg: true
|
|
|
|
reset-gpios:
|
|
description: GPIO connected to the RESET_N pin.
|
|
|
|
vdd-supply:
|
|
description: 3.3V power supply.
|
|
|
|
vdda-supply:
|
|
description: 3.3V analog power supply.
|
|
|
|
clocks:
|
|
description: External 24MHz clock connected to the CLKIN pin.
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
patternProperties:
|
|
"^.*@[0-9a-f]{1,2}$":
|
|
description: The hard wired USB devices
|
|
type: object
|
|
$ref: /schemas/usb/usb-device.yaml
|
|
additionalProperties: true
|
|
|
|
allOf:
|
|
- $ref: usb-device.yaml#
|
|
- if:
|
|
not:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: usb424,2514
|
|
then:
|
|
properties:
|
|
vdda-supply: false
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/imx6qdl-clock.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
usb {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
usb-hub@1 {
|
|
compatible = "usb424,2514";
|
|
reg = <1>;
|
|
clocks = <&clks IMX6QDL_CLK_CKO>;
|
|
reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
|
|
vdd-supply = <®_3v3_hub>;
|
|
vdda-supply = <®_3v3a_hub>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ethernet@1 {
|
|
compatible = "usbb95,772b";
|
|
reg = <1>;
|
|
};
|
|
};
|
|
};
|