devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] net: Add support for Qualcomm ethqos
@ 2019-01-21  9:13 Vinod Koul
  2019-01-21  9:13 ` [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding Vinod Koul
  2019-01-23  3:38 ` [PATCH v3 0/5] net: Add support for Qualcomm ethqos David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Vinod Koul @ 2019-01-21  9:13 UTC (permalink / raw)
  To: David S Miller
  Cc: netdev, linux-arm-msm, Niklas Cassel, Bjorn Andersson, Vinod Koul,
	Rob Herring, Mark Rutland, devicetree, Giuseppe Cavallaro,
	Alexandre Torgue, Jose Abreu, Andrew Lunn, Florian Fainelli,
	Vivien Didelot

Some Qualcomm SoCs sport a ethqos controller which use DW ip, so add
the glue driver which uses stmmac driver along with DT bindings for
this device.

This controller supports rgmii mode and doesn't work with existing
phy drivers as they do not remove the phy delay delay in this mode,
so fix the two phy drivers tested with this.

Changes in v3:
 - Add description in DT and rename the file and compatible as suggested by
   Rob
 - Update changelog for QCA8K driver
 - Update AT803x phy disable delay for all RGMxx modes

Changes in v2:
 - Fix the example in dt-binding
 - Remove DT property for disable the delay and disable delay for RGMII mode
   in AT803x and QCA8K PHY drivers

Vinod Koul (5):
  dt-bindings: net: Add Qualcomm ethqos binding
  net: stmmac: Add driver for Qualcomm ethqos
  MAINTAINER: Add entry for Qualcomm ETHQOS ethernet driver
  net: phy: at803x: Disable phy delay for RGMII mode
  net: dsa: qca8k: disable delay for RGMII mode

 .../devicetree/bindings/net/qcom,ethqos.txt   |  64 ++
 MAINTAINERS                                   |   8 +
 drivers/net/dsa/qca8k.c                       |  16 +-
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |  10 +
 drivers/net/ethernet/stmicro/stmmac/Makefile  |   1 +
 .../stmicro/stmmac/dwmac-qcom-ethqos.c        | 545 ++++++++++++++++++
 drivers/net/phy/at803x.c                      |  22 +-
 7 files changed, 644 insertions(+), 22 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.txt
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

-- 
2.20.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding
  2019-01-21  9:13 [PATCH v3 0/5] net: Add support for Qualcomm ethqos Vinod Koul
@ 2019-01-21  9:13 ` Vinod Koul
  2019-01-21 15:31   ` Rob Herring
  2019-01-23  3:38 ` [PATCH v3 0/5] net: Add support for Qualcomm ethqos David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2019-01-21  9:13 UTC (permalink / raw)
  To: David S Miller
  Cc: netdev, linux-arm-msm, Niklas Cassel, Bjorn Andersson, Vinod Koul,
	Rob Herring, Mark Rutland, devicetree

Add support for Qualcomm ethqos found in some SoCs like QCS404.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 .../devicetree/bindings/net/qcom,ethqos.txt   | 64 +++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.txt

diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.txt b/Documentation/devicetree/bindings/net/qcom,ethqos.txt
new file mode 100644
index 000000000000..fcf5035810b5
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/qcom,ethqos.txt
@@ -0,0 +1,64 @@
+Qualcomm Ethernet ETHQOS device
+
+This documents dwmmac based ethernet device which supports Gigabit
+ethernet for version v2.3.0 onwards.
+
+This device has following properties:
+
+Required properties:
+
+- compatible: Should be qcom,qcs404-ethqos"
+
+- reg: Address and length of the register set for the device
+
+- reg-names: Should contain register names "stmmaceth", "rgmii"
+
+- clocks: Should contain phandle to clocks
+
+- clock-names: Should contain clock names "stmmaceth", "pclk",
+		"ptp_ref", "rgmii"
+
+- interrupts: Should contain phandle to interrupts
+
+- interrupt-names: Should contain interrupt names "macirq", "eth_lpi"
+
+Rest of the properties are defined in stmmac.txt file in same directory
+
+
+Example:
+
+ethernet: ethernet@7a80000 {
+	compatible = "qcom,qcs404-ethqos";
+	reg = <0x07a80000 0x10000>,
+		<0x07a96000 0x100>;
+	reg-names = "stmmaceth", "rgmii";
+	clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii";
+	clocks = <&gcc GCC_ETH_AXI_CLK>,
+		<&gcc GCC_ETH_SLAVE_AHB_CLK>,
+		<&gcc GCC_ETH_PTP_CLK>,
+		<&gcc GCC_ETH_RGMII_CLK>;
+	interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
+			<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
+	interrupt-names = "macirq", "eth_lpi";
+	snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>;
+	snps,reset-active-low;
+
+	snps,txpbl = <8>;
+	snps,rxpbl = <2>;
+	snps,aal;
+	snps,tso;
+
+	phy-handle = <&phy1>;
+	phy-mode = "rgmii";
+
+	mdio {
+		#address-cells = <0x1>;
+		#size-cells = <0x0>;
+		compatible = "snps,dwmac-mdio";
+		phy1: phy@4 {
+			device_type = "ethernet-phy";
+			reg = <0x4>;
+		};
+	};
+
+};
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding
  2019-01-21  9:13 ` [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding Vinod Koul
@ 2019-01-21 15:31   ` Rob Herring
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2019-01-21 15:31 UTC (permalink / raw)
  Cc: David S Miller, netdev, linux-arm-msm, Niklas Cassel,
	Bjorn Andersson, Vinod Koul, Mark Rutland, devicetree

On Mon, 21 Jan 2019 14:43:14 +0530, Vinod Koul wrote:
> Add support for Qualcomm ethqos found in some SoCs like QCS404.
> 
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
>  .../devicetree/bindings/net/qcom,ethqos.txt   | 64 +++++++++++++++++++
>  1 file changed, 64 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 0/5] net: Add support for Qualcomm ethqos
  2019-01-21  9:13 [PATCH v3 0/5] net: Add support for Qualcomm ethqos Vinod Koul
  2019-01-21  9:13 ` [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding Vinod Koul
@ 2019-01-23  3:38 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2019-01-23  3:38 UTC (permalink / raw)
  To: vkoul
  Cc: netdev, linux-arm-msm, niklas.cassel, bjorn.andersson, robh+dt,
	mark.rutland, devicetree, peppe.cavallaro, alexandre.torgue,
	joabreu, andrew, f.fainelli, vivien.didelot

From: Vinod Koul <vkoul@kernel.org>
Date: Mon, 21 Jan 2019 14:43:13 +0530

> Some Qualcomm SoCs sport a ethqos controller which use DW ip, so add
> the glue driver which uses stmmac driver along with DT bindings for
> this device.
> 
> This controller supports rgmii mode and doesn't work with existing
> phy drivers as they do not remove the phy delay delay in this mode,
> so fix the two phy drivers tested with this.
> 
> Changes in v3:
>  - Add description in DT and rename the file and compatible as suggested by
>    Rob
>  - Update changelog for QCA8K driver
>  - Update AT803x phy disable delay for all RGMxx modes
> 
> Changes in v2:
>  - Fix the example in dt-binding
>  - Remove DT property for disable the delay and disable delay for RGMII mode
>    in AT803x and QCA8K PHY drivers

Series applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-23  3:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-21  9:13 [PATCH v3 0/5] net: Add support for Qualcomm ethqos Vinod Koul
2019-01-21  9:13 ` [PATCH v3 1/5] dt-bindings: net: Add Qualcomm ethqos binding Vinod Koul
2019-01-21 15:31   ` Rob Herring
2019-01-23  3:38 ` [PATCH v3 0/5] net: Add support for Qualcomm ethqos David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).