Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: phy: Convert Cygnus PCIe PHY to YAML

Convert the Broadcom Cygnus PCIe PHY Device Tree binding t YAML to help
with validation.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211214035820.2984289-6-f.fainelli@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Florian Fainelli and committed by
Rob Herring
8dbb528b 84184107

+76 -47
-47
Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.txt
··· 1 - Broadcom Cygnus PCIe PHY 2 - 3 - Required properties: 4 - - compatible: must be "brcm,cygnus-pcie-phy" 5 - - reg: base address and length of the PCIe PHY block 6 - - #address-cells: must be 1 7 - - #size-cells: must be 0 8 - 9 - Each PCIe PHY should be represented by a child node 10 - 11 - Required properties For the child node: 12 - - reg: the PHY ID 13 - 0 - PCIe RC 0 14 - 1 - PCIe RC 1 15 - - #phy-cells: must be 0 16 - 17 - Example: 18 - pcie_phy: phy@301d0a0 { 19 - compatible = "brcm,cygnus-pcie-phy"; 20 - reg = <0x0301d0a0 0x14>; 21 - 22 - pcie0_phy: phy@0 { 23 - reg = <0>; 24 - #phy-cells = <0>; 25 - }; 26 - 27 - pcie1_phy: phy@1 { 28 - reg = <1>; 29 - #phy-cells = <0>; 30 - }; 31 - }; 32 - 33 - /* users of the PCIe phy */ 34 - 35 - pcie0: pcie@18012000 { 36 - ... 37 - ... 38 - phys = <&pcie0_phy>; 39 - phy-names = "pcie-phy"; 40 - }; 41 - 42 - pcie1: pcie@18013000 { 43 - ... 44 - ... 45 - phys = <pcie1_phy>; 46 - phy-names = "pcie-phy"; 47 - };
+76
Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/phy/brcm,cygnus-pcie-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Cygnus PCIe PHY 8 + 9 + maintainers: 10 + - Ray Jui <ray.jui@broadcom.com> 11 + - Scott Branden <scott.branden@broadcom.com> 12 + 13 + properties: 14 + $nodename: 15 + pattern: "^pcie[-|_]phy(@.*)?$" 16 + 17 + compatible: 18 + items: 19 + - const: brcm,cygnus-pcie-phy 20 + 21 + reg: 22 + maxItems: 1 23 + description: > 24 + Base address and length of the PCIe PHY block 25 + 26 + "#address-cells": 27 + const: 1 28 + 29 + "#size-cells": 30 + const: 0 31 + 32 + patternProperties: 33 + "^pcie-phy@[0-9]+$": 34 + type: object 35 + description: > 36 + PCIe PHY child nodes 37 + 38 + properties: 39 + reg: 40 + maxItems: 1 41 + description: > 42 + The PCIe PHY port number 43 + 44 + "#phy-cells": 45 + const: 0 46 + 47 + required: 48 + - reg 49 + - "#phy-cells" 50 + 51 + required: 52 + - compatible 53 + - reg 54 + - "#address-cells" 55 + - "#size-cells" 56 + 57 + additionalProperties: false 58 + 59 + examples: 60 + - | 61 + pcie_phy: pcie_phy@301d0a0 { 62 + compatible = "brcm,cygnus-pcie-phy"; 63 + reg = <0x0301d0a0 0x14>; 64 + #address-cells = <1>; 65 + #size-cells = <0>; 66 + 67 + pcie0_phy: pcie-phy@0 { 68 + reg = <0>; 69 + #phy-cells = <0>; 70 + }; 71 + 72 + pcie1_phy: pcie-phy@1 { 73 + reg = <1>; 74 + #phy-cells = <0>; 75 + }; 76 + };