| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
# Copyright 2019 BayLibre, SAS |
| 3 |
%YAML 1.2 |
| 4 |
--- |
| 5 |
$id: http://devicetree.org/schemas/phy/amlogic,g12a-usb2-phy.yaml# |
| 6 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 |
|
| 8 |
title: Amlogic G12A USB2 PHY |
| 9 |
|
| 10 |
maintainers: |
| 11 |
- Neil Armstrong <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
enum: |
| 16 |
- amlogic,g12a-usb2-phy |
| 17 |
- amlogic,a1-usb2-phy |
| 18 |
|
| 19 |
reg: |
| 20 |
maxItems: 1 |
| 21 |
|
| 22 |
clocks: |
| 23 |
maxItems: 1 |
| 24 |
|
| 25 |
clock-names: |
| 26 |
items: |
| 27 |
- const: xtal |
| 28 |
|
| 29 |
resets: |
| 30 |
maxItems: 1 |
| 31 |
|
| 32 |
reset-names: |
| 33 |
items: |
| 34 |
- const: phy |
| 35 |
|
| 36 |
"#phy-cells": |
| 37 |
const: 0 |
| 38 |
|
| 39 |
phy-supply: |
| 40 |
description: |
| 41 |
Phandle to a regulator that provides power to the PHY. This |
| 42 |
regulator will be managed during the PHY power on/off sequence. |
| 43 |
|
| 44 |
power-domains: |
| 45 |
maxItems: 1 |
| 46 |
|
| 47 |
required: |
| 48 |
- compatible |
| 49 |
- reg |
| 50 |
- clocks |
| 51 |
- clock-names |
| 52 |
- resets |
| 53 |
- reset-names |
| 54 |
- "#phy-cells" |
| 55 |
|
| 56 |
if: |
| 57 |
properties: |
| 58 |
compatible: |
| 59 |
enum: |
| 60 |
- amlogic,meson-a1-usb-ctrl |
| 61 |
|
| 62 |
then: |
| 63 |
properties: |
| 64 |
power-domains: |
| 65 |
maxItems: 1 |
| 66 |
required: |
| 67 |
- power-domains |
| 68 |
|
| 69 |
additionalProperties: false |
| 70 |
|
| 71 |
examples: |
| 72 |
- | |
| 73 |
phy@36000 { |
| 74 |
compatible = "amlogic,g12a-usb2-phy"; |
| 75 |
reg = <0x36000 0x2000>; |
| 76 |
clocks = <&xtal>; |
| 77 |
clock-names = "xtal"; |
| 78 |
resets = <&phy_reset>; |
| 79 |
reset-names = "phy"; |
| 80 |
#phy-cells = <0>; |
| 81 |
}; |