~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/phy/rockchip,pcie3-phy.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Rockchip PCIe v3 phy
  8 
  9 maintainers:
 10   - Heiko Stuebner <heiko@sntech.de>
 11 
 12 properties:
 13   compatible:
 14     enum:
 15       - rockchip,rk3568-pcie3-phy
 16       - rockchip,rk3588-pcie3-phy
 17 
 18   reg:
 19     maxItems: 1
 20 
 21   clocks:
 22     minItems: 1
 23     maxItems: 3
 24 
 25   clock-names:
 26     minItems: 1
 27     maxItems: 3
 28 
 29   data-lanes:
 30     description: which lanes (by position) should be mapped to which
 31       controller (value). 0 means lane disabled, higher value means used.
 32       (controller-number +1 )
 33     $ref: /schemas/types.yaml#/definitions/uint32-array
 34     minItems: 2
 35     maxItems: 16
 36     items:
 37       minimum: 0
 38       maximum: 16
 39 
 40   "#phy-cells":
 41     const: 0
 42 
 43   resets:
 44     maxItems: 1
 45 
 46   reset-names:
 47     const: phy
 48 
 49   rockchip,phy-grf:
 50     $ref: /schemas/types.yaml#/definitions/phandle
 51     description: phandle to the syscon managing the phy "general register files"
 52 
 53   rockchip,pipe-grf:
 54     $ref: /schemas/types.yaml#/definitions/phandle
 55     description: phandle to the syscon managing the pipe "general register files"
 56 
 57   rockchip,rx-common-refclk-mode:
 58     description: which lanes (by position) should be configured to run in
 59       RX common reference clock mode. 0 means disabled, 1 means enabled.
 60     $ref: /schemas/types.yaml#/definitions/uint32-array
 61     minItems: 1
 62     maxItems: 16
 63     items:
 64       minimum: 0
 65       maximum: 1
 66 
 67 required:
 68   - compatible
 69   - reg
 70   - rockchip,phy-grf
 71   - "#phy-cells"
 72 
 73 allOf:
 74   - if:
 75       properties:
 76         compatible:
 77           enum:
 78             - rockchip,rk3588-pcie3-phy
 79     then:
 80       properties:
 81         clocks:
 82           maxItems: 1
 83         clock-names:
 84           items:
 85             - const: pclk
 86     else:
 87       properties:
 88         clocks:
 89           minItems: 3
 90 
 91         clock-names:
 92           items:
 93             - const: refclk_m
 94             - const: refclk_n
 95             - const: pclk
 96 
 97 additionalProperties: false
 98 
 99 examples:
100   - |
101     #include <dt-bindings/clock/rk3568-cru.h>
102     pcie30phy: phy@fe8c0000 {
103       compatible = "rockchip,rk3568-pcie3-phy";
104       reg = <0xfe8c0000 0x20000>;
105       #phy-cells = <0>;
106       clocks = <&pmucru CLK_PCIE30PHY_REF_M>,
107                <&pmucru CLK_PCIE30PHY_REF_N>,
108                <&cru PCLK_PCIE30PHY>;
109       clock-names = "refclk_m", "refclk_n", "pclk";
110       resets = <&cru SRST_PCIE30PHY>;
111       reset-names = "phy";
112       rockchip,phy-grf = <&pcie30_phy_grf>;
113     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php