| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/phy/hisilicon,inno-usb2-phy.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: HiSilicon INNO USB2 PHY |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Pengcheng Li <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The INNO USB2 PHY device should be a child node of peripheral controller that |
| 14 |
contains the PHY configuration register, and each device supports up to 2 PHY |
| 15 |
ports which are represented as child nodes of INNO USB2 PHY device. |
| 16 |
|
| 17 |
properties: |
| 18 |
compatible: |
| 19 |
enum: |
| 20 |
- hisilicon,hi3798cv200-usb2-phy |
| 21 |
- hisilicon,hi3798mv100-usb2-phy |
| 22 |
- hisilicon,inno-usb2-phy |
| 23 |
|
| 24 |
reg: |
| 25 |
maxItems: 1 |
| 26 |
|
| 27 |
clocks: |
| 28 |
maxItems: 1 |
| 29 |
|
| 30 |
resets: |
| 31 |
maxItems: 1 |
| 32 |
|
| 33 |
"#address-cells": |
| 34 |
const: 1 |
| 35 |
|
| 36 |
"#size-cells": |
| 37 |
const: 0 |
| 38 |
|
| 39 |
patternProperties: |
| 40 |
"^phy@[0-1]$": |
| 41 |
description: PHY port subnode |
| 42 |
type: object |
| 43 |
additionalProperties: false |
| 44 |
|
| 45 |
properties: |
| 46 |
reg: |
| 47 |
maximum: 1 |
| 48 |
|
| 49 |
"#phy-cells": |
| 50 |
const: 0 |
| 51 |
|
| 52 |
resets: |
| 53 |
maxItems: 1 |
| 54 |
|
| 55 |
required: |
| 56 |
- reg |
| 57 |
- "#phy-cells" |
| 58 |
- resets |
| 59 |
|
| 60 |
required: |
| 61 |
- compatible |
| 62 |
- reg |
| 63 |
- clocks |
| 64 |
- resets |
| 65 |
- "#address-cells" |
| 66 |
- "#size-cells" |
| 67 |
|
| 68 |
additionalProperties: false |
| 69 |
|
| 70 |
examples: |
| 71 |
- | |
| 72 |
#include <dt-bindings/clock/histb-clock.h> |
| 73 |
|
| 74 |
usb2-phy@120 { |
| 75 |
compatible = "hisilicon,hi3798cv200-usb2-phy"; |
| 76 |
reg = <0x120 0x4>; |
| 77 |
clocks = <&crg HISTB_USB2_PHY1_REF_CLK>; |
| 78 |
resets = <&crg 0xbc 4>; |
| 79 |
#address-cells = <1>; |
| 80 |
#size-cells = <0>; |
| 81 |
|
| 82 |
phy@0 { |
| 83 |
reg = <0>; |
| 84 |
#phy-cells = <0>; |
| 85 |
resets = <&crg 0xbc 8>; |
| 86 |
}; |
| 87 |
|
| 88 |
phy@1 { |
| 89 |
reg = <1>; |
| 90 |
#phy-cells = <0>; |
| 91 |
resets = <&crg 0xbc 9>; |
| 92 |
}; |
| 93 |
}; |