Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | # Copyright 2019 Ondrej Jirman <megous@megous.com> |
| 3 | %YAML 1.2 |
| 4 | --- |
| 5 | $id: http://devicetree.org/schemas/phy/allwinner,sun50i-h6-usb3-phy.yaml# |
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | |
| 8 | title: Allwinner H6 USB3 PHY |
| 9 | |
| 10 | maintainers: |
| 11 | - Ondrej Jirman <megous@megous.com> |
| 12 | |
| 13 | properties: |
| 14 | compatible: |
| 15 | enum: |
| 16 | - allwinner,sun50i-h6-usb3-phy |
| 17 | |
| 18 | reg: |
| 19 | maxItems: 1 |
| 20 | |
| 21 | clocks: |
| 22 | maxItems: 1 |
| 23 | |
| 24 | resets: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | "#phy-cells": |
| 28 | const: 0 |
| 29 | |
| 30 | required: |
| 31 | - compatible |
| 32 | - reg |
| 33 | - clocks |
| 34 | - resets |
| 35 | - "#phy-cells" |
| 36 | |
| 37 | additionalProperties: false |
| 38 | |
| 39 | examples: |
| 40 | - | |
| 41 | #include <dt-bindings/clock/sun50i-h6-ccu.h> |
| 42 | #include <dt-bindings/reset/sun50i-h6-ccu.h> |
| 43 | phy@5210000 { |
| 44 | compatible = "allwinner,sun50i-h6-usb3-phy"; |
| 45 | reg = <0x5210000 0x10000>; |
| 46 | clocks = <&ccu CLK_USB_PHY1>; |
| 47 | resets = <&ccu RST_USB_PHY1>; |
| 48 | #phy-cells = <0>; |
| 49 | }; |