| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/phy/brcm,ns2-drd-phy.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Broadcom Northstar2 USB2 Dual Role Device PHY |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Florian Fainelli <[email protected]> |
| 11 |
- Hauke Mehrtens <[email protected]> |
| 12 |
- Rafał Miłecki <[email protected]> |
| 13 |
|
| 14 |
properties: |
| 15 |
compatible: |
| 16 |
const: brcm,ns2-drd-phy |
| 17 |
|
| 18 |
reg: |
| 19 |
items: |
| 20 |
- description: DRD ICFG configurations |
| 21 |
- description: DRD IDM reset |
| 22 |
- description: CRMU core vdd, PHY and PHY PLL reset |
| 23 |
- description: Port over current polarity reversal |
| 24 |
|
| 25 |
reg-names: |
| 26 |
items: |
| 27 |
- const: icfg |
| 28 |
- const: rst-ctrl |
| 29 |
- const: crmu-ctrl |
| 30 |
- const: usb2-strap |
| 31 |
|
| 32 |
'#phy-cells': |
| 33 |
const: 0 |
| 34 |
|
| 35 |
id-gpios: |
| 36 |
maxItems: 1 |
| 37 |
description: ID GPIO line |
| 38 |
|
| 39 |
vbus-gpios: |
| 40 |
maxItems: 1 |
| 41 |
description: VBUS GPIO line |
| 42 |
|
| 43 |
required: |
| 44 |
- '#phy-cells' |
| 45 |
- compatible |
| 46 |
- reg |
| 47 |
- reg-names |
| 48 |
- id-gpios |
| 49 |
- vbus-gpios |
| 50 |
|
| 51 |
additionalProperties: false |
| 52 |
|
| 53 |
examples: |
| 54 |
- | |
| 55 |
phy@66000960 { |
| 56 |
#phy-cells = <0>; |
| 57 |
compatible = "brcm,ns2-drd-phy"; |
| 58 |
reg = <0x66000960 0x24>, <0x67012800 0x4>, <0x6501d148 0x4>, <0x664d0700 0x4>; |
| 59 |
reg-names = "icfg", "rst-ctrl", "crmu-ctrl", "usb2-strap"; |
| 60 |
id-gpios = <&gpio_g 30 0>; |
| 61 |
vbus-gpios = <&gpio_g 31 0>; |
| 62 |
}; |