Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ properties:
description:
PHY regulator

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ properties:
- description: offset of the control register
- description: shift within the control register

power-domains:
maxItems: 1

patternProperties:
"^mdio[0-9]$":
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ properties:
interrupt-names:
const: macirq

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/eswin,eic7700-eth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ properties:
- description: Optional offset of register controlling TXD delay
- description: Optional offset of register controlling RXD delay

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/intel,dwmac-plat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ properties:
interrupt-names:
const: macirq

power-domains:
maxItems: 1

required:
- compatible
- clocks
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ properties:
- mii
- rgmii-id

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ properties:
- mii
- rmii

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ properties:
description:
To select RMII reference clock from external.

power-domains:
maxItems: 1

required:
- compatible
- clocks
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/nxp,lpc1850-dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ properties:
items:
- const: stmmaceth

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ properties:
- const: rx
- const: ptp_ref

power-domains:
maxItems: 1

required:
- clocks
- clock-names
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/qcom,ethqos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ properties:
phy-names:
const: serdes

power-domains:
maxItems: 1

required:
- compatible
- clocks
Expand Down
107 changes: 107 additions & 0 deletions Documentation/devicetree/bindings/net/qcom,sa8255p-ethqos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/qcom,sa8255p-ethqos.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Ethernet ETHQOS device (firmware managed)

maintainers:
- Bjorn Andersson <andersson@kernel.org>
- Konrad Dybcio <konradybcio@kernel.org>
- Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

description:
dwmac based Qualcomm ethernet devices which support Gigabit
ethernet (version v2.3.0 and onwards) with clocks, interconnects, etc.
managed by firmware

allOf:
- $ref: snps,dwmac.yaml#

properties:
compatible:
const: qcom,sa8255p-ethqos

reg:
maxItems: 2

reg-names:
items:
- const: stmmaceth
- const: rgmii

interrupts:
items:
- description: Combined signal for various interrupt events
- description: The interrupt that occurs when HW safety error triggered

interrupt-names:
items:
- const: macirq
- const: sfty

power-domains:
minItems: 2
maxItems: 2

power-domain-names:
items:
- const: core
- const: mdio

phys:
maxItems: 1

phy-names:
items:
- const: serdes

iommus:
maxItems: 1

dma-coherent: true

required:
- compatible
- reg-names
- power-domains
- power-domain-names

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>

ethernet: ethernet@23040000 {
compatible = "qcom,sa8255p-ethqos";
reg = <0x23040000 0x10000>,
<0x23056000 0x100>;
reg-names = "stmmaceth", "rgmii";

iommus = <&apps_smmu 0x120 0x7>;

interrupts = <GIC_SPI 946 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 782 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "sfty";

dma-coherent;

snps,tso;
snps,pbl = <32>;
rx-fifo-depth = <16384>;
tx-fifo-depth = <16384>;

phy-handle = <&ethernet_phy>;
phy-mode = "2500base-x";

snps,mtl-rx-config = <&mtl_rx_setup1>;
snps,mtl-tx-config = <&mtl_tx_setup1>;

power-domains = <&scmi8_pd 0>, <&scmi8_pd 1>;
power-domain-names = "core", "mdio";

phys = <&serdes1>;
phy-names = "serdes";
};
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ properties:
phandle pointing to a PCS sub-node compatible with
renesas,rzn1-miic.yaml#

power-domains:
maxItems: 1

required:
- compatible

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ properties:
Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml#
(Refer RZ/T2H portion in the DT-binding file)

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ properties:
phy-supply:
description: PHY regulator

power-domains:
maxItems: 1

required:
- compatible
- clocks
Expand Down
5 changes: 4 additions & 1 deletion Documentation/devicetree/bindings/net/snps,dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ properties:
- nuvoton,ma35d1-dwmac
- nxp,s32g2-dwmac
- qcom,qcs404-ethqos
- qcom,sa8255p-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
Expand Down Expand Up @@ -185,7 +186,8 @@ properties:
- const: ahb

power-domains:
maxItems: 1
minItems: 1
maxItems: 2

mac-mode:
$ref: ethernet-controller.yaml#/properties/phy-connection-type
Expand Down Expand Up @@ -630,6 +632,7 @@ allOf:
- ingenic,x1830-mac
- ingenic,x2000-mac
- qcom,qcs404-ethqos
- qcom,sa8255p-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ properties:
reset-names:
const: stmmaceth

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ properties:
interrupt-names:
maxItems: 1

power-domains:
maxItems: 1

resets:
maxItems: 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ properties:
The argument one is the offset of phy mode selection, the
argument two is the shift of phy mode selection.

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/stm32-dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ properties:
minItems: 1
maxItems: 2

power-domains:
maxItems: 1

required:
- compatible
- clocks
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/tesla,fsd-ethqos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ properties:
- rgmii-rxid
- rgmii-txid

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ properties:
items:
- const: macirq

power-domains:
maxItems: 1

required:
- clocks
- clock-names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ properties:
interrupt-names:
const: macirq

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/qcom,sa8255p-dwmac-sgmii-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm SerDes/SGMII ethernet PHY controller (firmware managed)

maintainers:
- Bartosz Golaszewski <brgl@kernel.org>

description:
The SerDes PHY sits between the MAC and the external PHY and provides
separate Rx Tx lines.

properties:
compatible:
const: qcom,sa8255p-dwmac-sgmii-phy

reg:
items:
- description: serdes

power-domains:
maxItems: 1

power-domain-names:
maxItems: 1

"#phy-cells":
const: 0

required:
- compatible
- reg
- "#phy-cells"
- power-domains
- power-domain-names

additionalProperties: false

examples:
- |
phy@8901000 {
compatible = "qcom,sa8255p-dwmac-sgmii-phy";
reg = <0x08901000 0xe10>;
#phy-cells = <0>;
power-domains = <&scmi7_dvfs 0>;
power-domain-names = "serdes";
};
Loading
Loading