linux-loongson/Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml
Rob Herring (Arm) 4c3d05da59 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>
2025-07-22 18:58:31 +05:30

66 lines
1.2 KiB
YAML

# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/brcm,sr-usb-combo-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Broadcom Stingray USB PHY
maintainers:
- Ray Jui <rjui@broadcom.com>
- Scott Branden <sbranden@broadcom.com>
properties:
compatible:
enum:
- brcm,sr-usb-combo-phy
- brcm,sr-usb-hs-phy
reg:
maxItems: 1
'#phy-cells':
description: PHY cell count indicating PHY type
enum: [ 0, 1 ]
required:
- compatible
- reg
- '#phy-cells'
allOf:
- if:
properties:
compatible:
contains:
const: brcm,sr-usb-combo-phy
then:
properties:
'#phy-cells':
const: 1
- if:
properties:
compatible:
contains:
const: brcm,sr-usb-hs-phy
then:
properties:
'#phy-cells':
const: 0
additionalProperties: false
examples:
- |
usb-phy@0 {
compatible = "brcm,sr-usb-combo-phy";
reg = <0x00000000 0x100>;
#phy-cells = <1>;
};
- |
usb-phy@20000 {
compatible = "brcm,sr-usb-hs-phy";
reg = <0x00020000 0x100>;
#phy-cells = <0>;
};