mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
5ed5807364
Convert Hisilicon Kirin 960 USB3 PHY bindings to DT schema format using json-schema. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/edfeafe6b5a60a84d08095fb380f32e61af46d40.1599206213.git.mchehab+huawei@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/phy/hisilicon,hi3660-usb3.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Hisilicon Kirin 960 USB PHY
|
|
|
|
maintainers:
|
|
- Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|
|
description: |+
|
|
Bindings for USB3 PHY on HiSilicon Kirin 960.
|
|
|
|
properties:
|
|
compatible:
|
|
const: hisilicon,hi3660-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,eye-diagram-param:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: Eye diagram for phy.
|
|
|
|
required:
|
|
- compatible
|
|
- hisilicon,pericrg-syscon
|
|
- hisilicon,pctrl-syscon
|
|
- hisilicon,eye-diagram-param
|
|
- "#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,hi3660-usb-phy";
|
|
#phy-cells = <0>;
|
|
hisilicon,pericrg-syscon = <&crg_ctrl>;
|
|
hisilicon,pctrl-syscon = <&pctrl>;
|
|
hisilicon,eye-diagram-param = <0x22466e4>;
|
|
};
|
|
};
|
|
};
|