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

dt-bindings: phy: Convert brcm,sr-usb-combo-phy to DT schema

Convert the Broadcom Stingray USB PHY binding to DT schema format. It's
a straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20250627220126.214577-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
4c3d05da 99dd7fae

+65 -32
+65
Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-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,sr-usb-combo-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Stingray USB PHY 8 + 9 + maintainers: 10 + - Ray Jui <rjui@broadcom.com> 11 + - Scott Branden <sbranden@broadcom.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - brcm,sr-usb-combo-phy 17 + - brcm,sr-usb-hs-phy 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + '#phy-cells': 23 + description: PHY cell count indicating PHY type 24 + enum: [ 0, 1 ] 25 + 26 + required: 27 + - compatible 28 + - reg 29 + - '#phy-cells' 30 + 31 + allOf: 32 + - if: 33 + properties: 34 + compatible: 35 + contains: 36 + const: brcm,sr-usb-combo-phy 37 + then: 38 + properties: 39 + '#phy-cells': 40 + const: 1 41 + - if: 42 + properties: 43 + compatible: 44 + contains: 45 + const: brcm,sr-usb-hs-phy 46 + then: 47 + properties: 48 + '#phy-cells': 49 + const: 0 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + - | 55 + usb-phy@0 { 56 + compatible = "brcm,sr-usb-combo-phy"; 57 + reg = <0x00000000 0x100>; 58 + #phy-cells = <1>; 59 + }; 60 + - | 61 + usb-phy@20000 { 62 + compatible = "brcm,sr-usb-hs-phy"; 63 + reg = <0x00020000 0x100>; 64 + #phy-cells = <0>; 65 + };
-32
Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt
··· 1 - Broadcom Stingray USB PHY 2 - 3 - Required properties: 4 - - compatible : should be one of the listed compatibles 5 - - "brcm,sr-usb-combo-phy" is combo PHY has two PHYs, one SS and one HS. 6 - - "brcm,sr-usb-hs-phy" is a single HS PHY. 7 - - reg: offset and length of the PHY blocks registers 8 - - #phy-cells: 9 - - Must be 1 for brcm,sr-usb-combo-phy as it expects one argument to indicate 10 - the PHY number of two PHYs. 0 for HS PHY and 1 for SS PHY. 11 - - Must be 0 for brcm,sr-usb-hs-phy. 12 - 13 - Refer to phy/phy-bindings.txt for the generic PHY binding properties 14 - 15 - Example: 16 - usbphy0: usb-phy@0 { 17 - compatible = "brcm,sr-usb-combo-phy"; 18 - reg = <0x00000000 0x100>; 19 - #phy-cells = <1>; 20 - }; 21 - 22 - usbphy1: usb-phy@10000 { 23 - compatible = "brcm,sr-usb-combo-phy"; 24 - reg = <0x00010000 0x100>, 25 - #phy-cells = <1>; 26 - }; 27 - 28 - usbphy2: usb-phy@20000 { 29 - compatible = "brcm,sr-usb-hs-phy"; 30 - reg = <0x00020000 0x100>, 31 - #phy-cells = <0>; 32 - };