forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY
Document the bindings for HiKey 970 (hi3670) PCIe PHY interface, supported via the pcie-kirin driver. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Link: https://lore.kernel.org/r/461495431dd28ad2779658659f137db4bd747aa8.1628061310.git.mchehab+huawei@kernel.org Signed-off-by: Rob Herring <[email protected]>
- Loading branch information
1 parent
cfcf126
commit 5dfb2d2
Showing
1 changed file
with
82 additions
and
0 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/phy/hisilicon,phy-hi3670-pcie.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: HiSilicon Kirin970 PCIe PHY | ||
|
||
maintainers: | ||
- Mauro Carvalho Chehab <[email protected]> | ||
|
||
description: |+ | ||
Bindings for PCIe PHY on HiSilicon Kirin 970. | ||
properties: | ||
compatible: | ||
const: hisilicon,hi970-pcie-phy | ||
|
||
"#phy-cells": | ||
const: 0 | ||
|
||
reg: | ||
maxItems: 1 | ||
description: PHY Control registers | ||
|
||
phy-supply: | ||
description: The PCIe PHY power supply | ||
|
||
clocks: | ||
items: | ||
- description: PCIe PHY clock | ||
- description: PCIe AUX clock | ||
- description: PCIe APB PHY clock | ||
- description: PCIe APB SYS clock | ||
- description: PCIe ACLK clock | ||
|
||
clock-names: | ||
items: | ||
- const: phy_ref | ||
- const: aux | ||
- const: apb_phy | ||
- const: apb_sys | ||
- const: aclk | ||
|
||
hisilicon,eye-diagram-param: | ||
$ref: /schemas/types.yaml#/definitions/uint32-array | ||
description: Eye diagram for phy. | ||
|
||
required: | ||
- "#phy-cells" | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- hisilicon,eye-diagram-param | ||
- phy-supply | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/hi3670-clock.h> | ||
soc { | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
pcie_phy: pcie-phy@fc000000 { | ||
compatible = "hisilicon,hi970-pcie-phy"; | ||
reg = <0x0 0xfc000000 0x0 0x80000>; | ||
#phy-cells = <0>; | ||
phy-supply = <&ldo33>; | ||
clocks = <&crg_ctrl HI3670_CLK_GATE_PCIEPHY_REF>, | ||
<&crg_ctrl HI3670_CLK_GATE_PCIEAUX>, | ||
<&crg_ctrl HI3670_PCLK_GATE_PCIE_PHY>, | ||
<&crg_ctrl HI3670_PCLK_GATE_PCIE_SYS>, | ||
<&crg_ctrl HI3670_ACLK_GATE_PCIE>; | ||
clock-names = "phy_ref", "aux", | ||
"apb_phy", "apb_sys", "aclk"; | ||
hisilicon,eye-diagram-param = <0xffffffff 0xffffffff | ||
0xffffffff 0xffffffff 0xffffffff>; | ||
}; | ||
}; |