Skip to content

Commit

Permalink
dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY
Browse files Browse the repository at this point in the history
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
mchehab authored and robherring committed Aug 16, 2021
1 parent cfcf126 commit 5dfb2d2
Showing 1 changed file with 82 additions and 0 deletions.
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>;
};
};

0 comments on commit 5dfb2d2

Please sign in to comment.