~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/qcom,qca807x.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/net/qcom,qca807x.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Qualcomm QCA807x Ethernet PHY
  8 
  9 maintainers:
 10   - Christian Marangi <ansuelsmth@gmail.com>
 11   - Robert Marko <robert.marko@sartura.hr>
 12 
 13 description: |
 14   Qualcomm QCA8072/5 Ethernet PHY is PHY package of 2 or 5
 15   IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and
 16   1000BASE-T PHY-s.
 17 
 18   They feature 2 SerDes, one for PSGMII or QSGMII connection with
 19   MAC, while second one is SGMII for connection to MAC or fiber.
 20 
 21   Both models have a combo port that supports 1000BASE-X and
 22   100BASE-FX fiber.
 23 
 24   Each PHY inside of QCA807x series has 4 digitally controlled
 25   output only pins that natively drive LED-s for up to 2 attached
 26   LEDs. Some vendor also use these 4 output for GPIO usage without
 27   attaching LEDs.
 28 
 29   Note that output pins can be set to drive LEDs OR GPIO, mixed
 30   definition are not accepted.
 31 
 32 $ref: ethernet-phy-package.yaml#
 33 
 34 properties:
 35   compatible:
 36     enum:
 37       - qcom,qca8072-package
 38       - qcom,qca8075-package
 39 
 40   qcom,package-mode:
 41     description: |
 42       PHY package can be configured in 3 mode following this table:
 43 
 44                     First Serdes mode       Second Serdes mode
 45       Option 1      PSGMII for copper       Disabled
 46                     ports 0-4
 47       Option 2      PSGMII for copper       1000BASE-X / 100BASE-FX
 48                     ports 0-4
 49       Option 3      QSGMII for copper       SGMII for
 50                     ports 0-3               copper port 4
 51 
 52       PSGMII mode (option 1 or 2) is configured dynamically based on
 53       the presence of a connected SFP device.
 54     $ref: /schemas/types.yaml#/definitions/string
 55     enum:
 56       - qsgmii
 57       - psgmii
 58     default: psgmii
 59 
 60   qcom,tx-drive-strength-milliwatt:
 61     description: set the TX Amplifier value in mv.
 62     $ref: /schemas/types.yaml#/definitions/uint32
 63     enum: [140, 160, 180, 200, 220,
 64            240, 260, 280, 300, 320,
 65            400, 500, 600]
 66     default: 600
 67 
 68 patternProperties:
 69   ^ethernet-phy@[a-f0-9]+$:
 70     $ref: ethernet-phy.yaml#
 71 
 72     properties:
 73       qcom,dac-full-amplitude:
 74         description:
 75           Set Analog MDI driver amplitude to FULL.
 76 
 77           With this not defined, amplitude is set to DSP.
 78           (amplitude is adjusted based on cable length)
 79 
 80           With this enabled and qcom,dac-full-bias-current
 81           and qcom,dac-disable-bias-current-tweak disabled,
 82           bias current is half.
 83         type: boolean
 84 
 85       qcom,dac-full-bias-current:
 86         description:
 87           Set Analog MDI driver bias current to FULL.
 88 
 89           With this not defined, bias current is set to DSP.
 90           (bias current is adjusted based on cable length)
 91 
 92           Actual bias current might be different with
 93           qcom,dac-disable-bias-current-tweak disabled.
 94         type: boolean
 95 
 96       qcom,dac-disable-bias-current-tweak:
 97         description: |
 98           Set Analog MDI driver bias current to disable tweak
 99           to bias current.
100 
101           With this not defined, bias current tweak are enabled
102           by default.
103 
104           With this enabled the following tweak are NOT applied:
105           - With both FULL amplitude and FULL bias current: bias current
106             is set to half.
107           - With only DSP amplitude: bias current is set to half and
108             is set to 1/4 with cable < 10m.
109           - With DSP bias current (included both DSP amplitude and
110             DSP bias current): bias current is half the detected current
111             with cable < 10m.
112         type: boolean
113 
114       gpio-controller: true
115 
116       '#gpio-cells':
117         const: 2
118 
119     if:
120       required:
121         - gpio-controller
122     then:
123       properties:
124         leds: false
125 
126     unevaluatedProperties: false
127 
128 required:
129   - compatible
130 
131 unevaluatedProperties: false
132 
133 examples:
134   - |
135     #include <dt-bindings/leds/common.h>
136 
137     mdio {
138         #address-cells = <1>;
139         #size-cells = <0>;
140 
141         ethernet-phy-package@0 {
142             #address-cells = <1>;
143             #size-cells = <0>;
144             compatible = "qcom,qca8075-package";
145             reg = <0>;
146 
147             qcom,package-mode = "qsgmii";
148 
149             ethernet-phy@0 {
150                 reg = <0>;
151 
152                 leds {
153                     #address-cells = <1>;
154                     #size-cells = <0>;
155 
156                     led@0 {
157                         reg = <0>;
158                         color = <LED_COLOR_ID_GREEN>;
159                         function = LED_FUNCTION_LAN;
160                         default-state = "keep";
161                     };
162                 };
163             };
164 
165             ethernet-phy@1 {
166                 reg = <1>;
167             };
168 
169             ethernet-phy@2 {
170                 reg = <2>;
171 
172                 gpio-controller;
173                 #gpio-cells = <2>;
174             };
175 
176             ethernet-phy@3 {
177                 reg = <3>;
178             };
179 
180             ethernet-phy@4 {
181                 reg = <4>;
182             };
183         };
184     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php