145 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/phy/brcm,sata-phy.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Broadcom SATA3 PHY8 9maintainers:10 - Florian Fainelli <f.fainelli@gmail.com>11 12properties:13 $nodename:14 pattern: "^sata[-|_]phy(@.*)?$"15 16 compatible:17 oneOf:18 - items:19 - enum:20 - brcm,bcm7216-sata-phy21 - brcm,bcm7425-sata-phy22 - brcm,bcm7445-sata-phy23 - brcm,bcm63138-sata-phy24 - const: brcm,phy-sata325 - items:26 - const: brcm,iproc-nsp-sata-phy27 - items:28 - const: brcm,iproc-ns2-sata-phy29 - items:30 - const: brcm,iproc-sr-sata-phy31 32 reg:33 minItems: 134 maxItems: 235 36 reg-names:37 minItems: 138 items:39 - const: phy40 - const: phy-ctrl41 42 "#address-cells":43 const: 144 45 "#size-cells":46 const: 047 48patternProperties:49 "^sata-phy@[0-9]+$":50 type: object51 description: |52 Each port's PHY should be represented as a sub-node.53 54 properties:55 reg:56 description: The SATA PHY port number57 maxItems: 158 59 "#phy-cells":60 const: 061 62 brcm,enable-ssc:63 $ref: /schemas/types.yaml#/definitions/flag64 description: |65 Use spread spectrum clocking (SSC) on this port66 This property is not applicable for "brcm,iproc-ns2-sata-phy",67 "brcm,iproc-nsp-sata-phy" and "brcm,iproc-sr-sata-phy".68 69 brcm,rxaeq-mode:70 $ref: /schemas/types.yaml#/definitions/string71 description:72 String that indicates the desired RX equalizer mode.73 enum:74 - off75 - auto76 - manual77 78 brcm,rxaeq-value:79 $ref: /schemas/types.yaml#/definitions/uint3280 description: |81 When 'brcm,rxaeq-mode' is set to "manual", provides the RX82 equalizer value that should be used.83 minimum: 084 maximum: 6385 86 brcm,tx-amplitude-millivolt:87 description: |88 Transmit amplitude voltage in millivolt.89 $ref: /schemas/types.yaml#/definitions/uint3290 enum: [400, 500, 600, 800]91 92 required:93 - reg94 - "#phy-cells"95 96 additionalProperties: false97 98if:99 properties:100 compatible:101 const: brcm,iproc-ns2-sata-phy102then:103 properties:104 reg:105 minItems: 2106 107 reg-names:108 minItems: 2109else:110 properties:111 reg:112 maxItems: 1113 114 reg-names:115 maxItems: 1116 117required:118 - compatible119 - "#address-cells"120 - "#size-cells"121 - reg122 - reg-names123 124additionalProperties: false125 126examples:127 - |128 sata_phy@f0458100 {129 compatible = "brcm,bcm7445-sata-phy", "brcm,phy-sata3";130 reg = <0xf0458100 0x1e00>;131 reg-names = "phy";132 #address-cells = <1>;133 #size-cells = <0>;134 135 sata-phy@0 {136 reg = <0>;137 #phy-cells = <0>;138 };139 140 sata-phy@1 {141 reg = <1>;142 #phy-cells = <0>;143 };144 };145