1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/dsa/qca8k.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Atheros QCA83xx switch family
10 - John Crispin <john@phrozen.org>
13 If the QCA8K switch is connect to an SoC's external mdio-bus, each subnode
14 describing a port needs to have a valid phandle referencing the internal PHY
15 it is connected to. This is because there is no N:N mapping of port and PHY
16 ID. To declare the internal mdio-bus configuration, declare an MDIO node in
17 the switch node and declare the phandle for the port, referencing the internal
18 PHY it is connected to. In this config, an internal mdio-bus is registered and
19 the MDIO master is used for communication. Mixed external and internal
20 mdio-bus configurations are not supported by the hardware.
31 qca,qca8328: referenced as AR8328(N)-AK1(A/B) QFN 176 pin package
32 qca,qca8327: referenced as AR8327(N)-AL1A DR-QFN 148 pin package
33 qca,qca8334: referenced as QCA8334-AL3C QFN 88 pin package
34 qca,qca8337: referenced as QCA8337N-AL3(B/C) DR-QFN 148 pin package
41 GPIO to be used to reset the whole device
44 qca,ignore-power-on-sel:
45 $ref: /schemas/types.yaml#/definitions/flag
47 Ignore power-on pin strapping to configure LED open-drain or EEPROM
48 presence. This is needed for devices with incorrect configuration or when
49 the OEM has decided not to use pin strapping and falls back to SW regs.
52 $ref: /schemas/types.yaml#/definitions/flag
54 Set LEDs to open-drain mode. This requires the qca,ignore-power-on-sel to
55 be set, otherwise the driver will fail at probe. This is required if the
56 OEM does not use pin strapping to set this mode and prefers to set it
57 using SW regs. The pin strappings related to LED open-drain mode are
58 B68 on the QCA832x and B49 on the QCA833x.
61 $ref: /schemas/net/mdio.yaml#
62 unevaluatedProperties: false
63 description: Qca8k switch have an internal mdio to access switch port.
64 If this is not present, the legacy mapping is used and the
65 internal mdio access is used.
66 With the legacy mapping the reg corresponding to the internal
67 mdio is the switch reg with an offset of -1.
70 "^(ethernet-)?ports$":
79 "^(ethernet-)?port@[0-6]$":
81 description: Ethernet switch ports
86 qca,sgmii-rxclk-falling-edge:
87 $ref: /schemas/types.yaml#/definitions/flag
89 Set the receive clock phase to falling edge. Mostly commonly used on
90 the QCA8327 with CPU port 0 set to SGMII.
92 qca,sgmii-txclk-falling-edge:
93 $ref: /schemas/types.yaml#/definitions/flag
95 Set the transmit clock phase to falling edge.
98 $ref: /schemas/types.yaml#/definitions/flag
100 For SGMII CPU port, explicitly enable PLL, TX and RX chain along with
101 Signal Detection. On the QCA8327 this should not be enabled, otherwise
102 the SGMII port will not initialize. When used on the QCA8337, revision 3
103 or greater, a warning will be displayed. When the CPU port is set to
104 SGMII on the QCA8337, it is advised to set this unless a communication
107 unevaluatedProperties: false
119 additionalProperties: true
123 #include <dt-bindings/gpio/gpio.h>
126 #address-cells = <1>;
129 external_phy_port1: ethernet-phy@0 {
133 external_phy_port2: ethernet-phy@1 {
137 external_phy_port3: ethernet-phy@2 {
141 external_phy_port4: ethernet-phy@3 {
145 external_phy_port5: ethernet-phy@4 {
150 compatible = "qca,qca8337";
151 #address-cells = <1>;
153 reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
157 #address-cells = <1>;
174 phy-handle = <&external_phy_port1>;
180 phy-handle = <&external_phy_port2>;
186 phy-handle = <&external_phy_port3>;
192 phy-handle = <&external_phy_port4>;
198 phy-handle = <&external_phy_port5>;
204 #include <dt-bindings/gpio/gpio.h>
207 #address-cells = <1>;
211 compatible = "qca,qca8337";
212 #address-cells = <1>;
214 reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
218 #address-cells = <1>;
235 phy-mode = "internal";
236 phy-handle = <&internal_phy_port1>;
242 phy-mode = "internal";
243 phy-handle = <&internal_phy_port2>;
249 phy-mode = "internal";
250 phy-handle = <&internal_phy_port3>;
256 phy-mode = "internal";
257 phy-handle = <&internal_phy_port4>;
263 phy-mode = "internal";
264 phy-handle = <&internal_phy_port5>;
272 qca,sgmii-rxclk-falling-edge;
282 #address-cells = <1>;
285 internal_phy_port1: ethernet-phy@0 {
289 internal_phy_port2: ethernet-phy@1 {
293 internal_phy_port3: ethernet-phy@2 {
297 internal_phy_port4: ethernet-phy@3 {
301 internal_phy_port5: ethernet-phy@4 {