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

dt-bindings: phy: rockchip: Convert RK3399 PCIe PHY to schema

Convert the Rockchip RK3399 PCIe PHY to DT schema format. Move the
example to the GRF binding as that has the complete block.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250415011824.2320039-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
1d6fc048 e75d564f

+56 -38
+45
Documentation/devicetree/bindings/phy/rockchip,rk3399-pcie-phy.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/phy/rockchip,rk3399-pcie-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Rockchip RK3399 PCIE PHY 8 + 9 + maintainers: 10 + - Heiko Stuebner <heiko@sntech.de> 11 + 12 + properties: 13 + compatible: 14 + const: rockchip,rk3399-pcie-phy 15 + 16 + '#phy-cells': 17 + oneOf: 18 + - const: 0 19 + deprecated: true 20 + - const: 1 21 + description: One lane per phy mode 22 + 23 + clocks: 24 + maxItems: 1 25 + 26 + clock-names: 27 + const: refclk 28 + 29 + resets: 30 + maxItems: 1 31 + 32 + reset-names: 33 + const: phy 34 + 35 + required: 36 + - compatible 37 + - '#phy-cells' 38 + - clocks 39 + - clock-names 40 + - resets 41 + - reset-names 42 + 43 + additionalProperties: false 44 + 45 + ...
-36
Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt
··· 1 - Rockchip PCIE PHY 2 - ----------------------- 3 - 4 - Required properties: 5 - - compatible: rockchip,rk3399-pcie-phy 6 - - clocks: Must contain an entry in clock-names. 7 - See ../clocks/clock-bindings.txt for details. 8 - - clock-names: Must be "refclk" 9 - - resets: Must contain an entry in reset-names. 10 - See ../reset/reset.txt for details. 11 - - reset-names: Must be "phy" 12 - 13 - Required properties for legacy PHY mode (deprecated): 14 - - #phy-cells: must be 0 15 - 16 - Required properties for per-lane PHY mode (preferred): 17 - - #phy-cells: must be 1 18 - 19 - Example: 20 - 21 - grf: syscon@ff770000 { 22 - compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; 23 - #address-cells = <1>; 24 - #size-cells = <1>; 25 - 26 - ... 27 - 28 - pcie_phy: pcie-phy { 29 - compatible = "rockchip,rk3399-pcie-phy"; 30 - #phy-cells = <0>; 31 - clocks = <&cru SCLK_PCIEPHY_REF>; 32 - clock-names = "refclk"; 33 - resets = <&cru SRST_PCIEPHY>; 34 - reset-names = "phy"; 35 - }; 36 - };
+11 -2
Documentation/devicetree/bindings/soc/rockchip/grf.yaml
··· 201 201 202 202 pcie-phy: 203 203 type: object 204 - description: 205 - Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt 204 + $ref: /schemas/phy/rockchip,rk3399-pcie-phy.yaml# 205 + unevaluatedProperties: false 206 206 207 207 patternProperties: 208 208 "^phy@[0-9a-f]+$": ··· 324 324 clock-names = "dphy-ref", "dphy-cfg", "grf"; 325 325 power-domains = <&power RK3399_PD_VIO>; 326 326 #phy-cells = <0>; 327 + }; 328 + 329 + pcie-phy { 330 + compatible = "rockchip,rk3399-pcie-phy"; 331 + #phy-cells = <1>; 332 + clocks = <&cru SCLK_PCIEPHY_REF>; 333 + clock-names = "refclk"; 334 + resets = <&cru SRST_PCIEPHY>; 335 + reset-names = "phy"; 327 336 }; 328 337 329 338 phy@f780 {