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

dt-bindings: phy: Add StarFive JH7110 PCIe PHY

Add StarFive JH7110 SoC PCIe 2.0 PHY dt-binding.
PCIe PHY0 (phy@10210000) can be used as USB 3.0 PHY.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Reviewed-by: Hal Feng <hal.feng@starfivetech.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230629075115.11934-3-minda.chen@starfivetech.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Minda Chen and committed by
Vinod Koul
69d41115 2689c9c4

+58
+58
Documentation/devicetree/bindings/phy/starfive,jh7110-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/starfive,jh7110-pcie-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: StarFive JH7110 PCIe 2.0 PHY 8 + 9 + maintainers: 10 + - Minda Chen <minda.chen@starfivetech.com> 11 + 12 + properties: 13 + compatible: 14 + const: starfive,jh7110-pcie-phy 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + "#phy-cells": 20 + const: 0 21 + 22 + starfive,sys-syscon: 23 + $ref: /schemas/types.yaml#/definitions/phandle-array 24 + items: 25 + - items: 26 + - description: phandle to System Register Controller sys_syscon node. 27 + - description: PHY connect offset of SYS_SYSCONSAIF__SYSCFG register for USB PHY. 28 + description: 29 + The phandle to System Register Controller syscon node and the PHY connect offset 30 + of SYS_SYSCONSAIF__SYSCFG register. Connect PHY to USB3 controller. 31 + 32 + starfive,stg-syscon: 33 + $ref: /schemas/types.yaml#/definitions/phandle-array 34 + items: 35 + - items: 36 + - description: phandle to System Register Controller stg_syscon node. 37 + - description: PHY mode offset of STG_SYSCONSAIF__SYSCFG register. 38 + - description: PHY enable for USB offset of STG_SYSCONSAIF__SYSCFG register. 39 + description: 40 + The phandle to System Register Controller syscon node and the offset 41 + of STG_SYSCONSAIF__SYSCFG register for PCIe PHY. Total 2 regsisters offset. 42 + 43 + required: 44 + - compatible 45 + - reg 46 + - "#phy-cells" 47 + 48 + additionalProperties: false 49 + 50 + examples: 51 + - | 52 + phy@10210000 { 53 + compatible = "starfive,jh7110-pcie-phy"; 54 + reg = <0x10210000 0x10000>; 55 + #phy-cells = <0>; 56 + starfive,sys-syscon = <&sys_syscon 0x18>; 57 + starfive,stg-syscon = <&stg_syscon 0x148 0x1f4>; 58 + };