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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: phy: renesas,rcar-gen3-pcie-phy: Convert to json-schema

Convert the Renesas R-Car Gen3 PCIe PHY Device Tree binding
documentation to json-schema.

Update the example to match reality.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/0301c3a7dae9afde115b6437a11c23ab85cb8b75.1620648490.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Geert Uytterhoeven and committed by
Vinod Koul
8a981128 6efb943b

+53 -24
-24
Documentation/devicetree/bindings/phy/rcar-gen3-phy-pcie.txt
··· 1 - * Renesas R-Car generation 3 PCIe PHY 2 - 3 - This file provides information on what the device node for the R-Car 4 - generation 3 PCIe PHY contains. 5 - 6 - Required properties: 7 - - compatible: "renesas,r8a77980-pcie-phy" if the device is a part of the 8 - R8A77980 SoC. 9 - - reg: offset and length of the register block. 10 - - clocks: clock phandle and specifier pair. 11 - - power-domains: power domain phandle and specifier pair. 12 - - resets: reset phandle and specifier pair. 13 - - #phy-cells: see phy-bindings.txt in the same directory, must be <0>. 14 - 15 - Example (R-Car V3H): 16 - 17 - pcie-phy@e65d0000 { 18 - compatible = "renesas,r8a77980-pcie-phy"; 19 - reg = <0 0xe65d0000 0 0x8000>; 20 - #phy-cells = <0>; 21 - clocks = <&cpg CPG_MOD 319>; 22 - power-domains = <&sysc 32>; 23 - resets = <&cpg 319>; 24 - };
+53
Documentation/devicetree/bindings/phy/renesas,rcar-gen3-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/renesas,rcar-gen3-pcie-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas R-Car Generation 3 PCIe PHY 8 + 9 + maintainers: 10 + - Sergei Shtylyov <sergei.shtylyov@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: renesas,r8a77980-pcie-phy 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + maxItems: 1 21 + 22 + power-domains: 23 + maxItems: 1 24 + 25 + resets: 26 + maxItems: 1 27 + 28 + '#phy-cells': 29 + const: 0 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - clocks 35 + - power-domains 36 + - resets 37 + - '#phy-cells' 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/clock/r8a77980-cpg-mssr.h> 44 + #include <dt-bindings/power/r8a77980-sysc.h> 45 + 46 + pcie-phy@e65d0000 { 47 + compatible = "renesas,r8a77980-pcie-phy"; 48 + reg = <0xe65d0000 0x8000>; 49 + #phy-cells = <0>; 50 + clocks = <&cpg CPG_MOD 319>; 51 + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; 52 + resets = <&cpg 319>; 53 + };