Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [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/microchip,usb2514.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Microchip USB2514 Hub Controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Fabio Estevam <festevam@gmail.com> |
| 11 | |
| 12 | allOf: |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 13 | - $ref: usb-device.yaml# |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | enum: |
| 18 | - usb424,2412 |
| 19 | - usb424,2417 |
| 20 | - usb424,2514 |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 21 | - usb424,2517 |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 22 | |
| 23 | reg: true |
| 24 | |
| 25 | reset-gpios: |
| 26 | description: GPIO connected to the RESET_N pin. |
| 27 | |
| 28 | vdd-supply: |
| 29 | description: 3.3V power supply. |
| 30 | |
| 31 | clocks: |
| 32 | description: External 24MHz clock connected to the CLKIN pin. |
| 33 | maxItems: 1 |
| 34 | |
| 35 | required: |
| 36 | - compatible |
| 37 | - reg |
| 38 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 39 | patternProperties: |
| 40 | "^.*@[0-9a-f]{1,2}$": |
| 41 | description: The hard wired USB devices |
| 42 | type: object |
| 43 | $ref: /schemas/usb/usb-device.yaml |
| 44 | additionalProperties: true |
| 45 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 46 | unevaluatedProperties: false |
| 47 | |
| 48 | examples: |
| 49 | - | |
| 50 | #include <dt-bindings/clock/imx6qdl-clock.h> |
| 51 | #include <dt-bindings/gpio/gpio.h> |
| 52 | |
| 53 | usb { |
| 54 | #address-cells = <1>; |
| 55 | #size-cells = <0>; |
| 56 | |
| 57 | usb-hub@1 { |
| 58 | compatible = "usb424,2514"; |
| 59 | reg = <1>; |
| 60 | clocks = <&clks IMX6QDL_CLK_CKO>; |
| 61 | reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>; |
| 62 | vdd-supply = <®_3v3_hub>; |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <0>; |
| 65 | |
| 66 | ethernet@1 { |
| 67 | compatible = "usbb95,772b"; |
| 68 | reg = <1>; |
| 69 | }; |
| 70 | }; |
| 71 | }; |