staging: hikey9xx: convert phy-kirin970-usb3.txt to yaml

Use the new YAML for this physical layer.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/03535ba996b3d82d522ce9c529bc2ce8e1d8d531.1600338981.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mauro Carvalho Chehab 2020-09-17 12:42:12 +02:00 committed by Greg Kroah-Hartman
parent aa125e7187
commit 8436f932d8
2 changed files with 72 additions and 25 deletions

View File

@ -1,25 +0,0 @@
Hisilicon Kirin970 usb PHY
-----------------------
Required properties:
- compatible: should be "hisilicon,hi3670-usb-phy"
- #phy-cells: must be 0
- hisilicon,pericrg-syscon: phandle of syscon used to control phy.
- hisilicon,pctrl-syscon: phandle of syscon used to control phy.
- hisilicon,sctrl-syscon: phandle of syscon used to control phy.
- hisilicon,usb31-misc-syscon: phandle of syscon used to control phy.
- eye-diagram-param: parameter set for phy
- usb3-phy-tx-vboost-lvl: parameter set for phy
Refer to phy/phy-bindings.txt for the generic PHY binding properties
Example:
usb_phy: usbphy {
compatible = "hisilicon,hi3670-usb-phy";
#phy-cells = <0>;
hisilicon,pericrg-syscon = <&crg_ctrl>;
hisilicon,pctrl-syscon = <&pctrl>;
hisilicon,sctrl-syscon = <&sctrl>;
hisilicon,usb31-misc-syscon = <&usb31_misc>;
eye-diagram-param = <0xFDFEE4>;
usb3-phy-tx-vboost-lvl = <0x5>;
};

View File

@ -0,0 +1,72 @@
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/hisilicon,hi3670-usb3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Hisilicon Kirin970 USB PHY
maintainers:
- Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
description: |+
Bindings for USB3 PHY on HiSilicon Kirin 970.
properties:
compatible:
const: hisilicon,hi3670-usb-phy
"#phy-cells":
const: 0
hisilicon,pericrg-syscon:
$ref: '/schemas/types.yaml#/definitions/phandle'
description: phandle of syscon used to control iso refclk.
hisilicon,pctrl-syscon:
$ref: '/schemas/types.yaml#/definitions/phandle'
description: phandle of syscon used to control usb tcxo.
hisilicon,sctrl-syscon:
$ref: '/schemas/types.yaml#/definitions/phandle'
description: phandle of syscon used to control phy deep sleep.
hisilicon,eye-diagram-param:
$ref: /schemas/types.yaml#/definitions/uint32
description: Eye diagram for phy.
hisilicon,tx-vboost-lvl:
$ref: /schemas/types.yaml#/definitions/uint32
description: TX level vboost for phy.
required:
- compatible
- hisilicon,pericrg-syscon
- hisilicon,pctrl-syscon
- hisilicon,sctrl-syscon
- hisilicon,eye-diagram-param
- hisilicon,tx-vboost-lvl
- "#phy-cells"
additionalProperties: false
examples:
- |
bus {
#address-cells = <2>;
#size-cells = <2>;
usb3_otg_bc: usb3_otg_bc@ff200000 {
compatible = "syscon", "simple-mfd";
reg = <0x0 0xff200000 0x0 0x1000>;
usb_phy {
compatible = "hisilicon,hi3670-usb-phy";
#phy-cells = <0>;
hisilicon,pericrg-syscon = <&crg_ctrl>;
hisilicon,pctrl-syscon = <&pctrl>;
hisilicon,sctrl-syscon = <&sctrl>;
hisilicon,eye-diagram-param = <0xfdfee4>;
hisilicon,tx-vboost-lvl = <0x5>;
};
};
};