From: Wasim Nazir <wasim.nazir@oss.qualcomm.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Richard Cochran <richardcochran@gmail.com>
Cc: kernel@oss.qualcomm.com, linux-mmc@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org,
Mohd Ayaan Anwar <quic_mohdayaa@quicinc.com>,
Wasim Nazir <wasim.nazir@oss.qualcomm.com>
Subject: [PATCH v2 11/13] arm64: dts: qcom: lemans-evk: Enable 2.5G Ethernet interface
Date: Wed, 03 Sep 2025 17:17:12 +0530 [thread overview]
Message-ID: <20250903-lemans-evk-bu-v2-11-bfa381bf8ba2@oss.qualcomm.com> (raw)
In-Reply-To: <20250903-lemans-evk-bu-v2-0-bfa381bf8ba2@oss.qualcomm.com>
From: Mohd Ayaan Anwar <quic_mohdayaa@quicinc.com>
Enable the QCA8081 2.5G Ethernet PHY on port 0. Add MDC and MDIO pin
functions for ethernet0, and enable the internal SGMII/SerDes PHY node.
Additionally, support fetching the MAC address from EEPROM via an nvmem
cell.
Signed-off-by: Mohd Ayaan Anwar <quic_mohdayaa@quicinc.com>
Signed-off-by: Wasim Nazir <wasim.nazir@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/lemans-evk.dts | 115 ++++++++++++++++++++++++++++++++
1 file changed, 115 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/lemans-evk.dts b/arch/arm64/boot/dts/qcom/lemans-evk.dts
index c9e7977466b3..69ce6a60361a 100644
--- a/arch/arm64/boot/dts/qcom/lemans-evk.dts
+++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts
@@ -16,6 +16,7 @@ / {
compatible = "qcom,lemans-evk", "qcom,qcs9100", "qcom,sa8775p";
aliases {
+ ethernet0 = ðernet0;
mmc1 = &sdhc;
serial0 = &uart10;
};
@@ -300,6 +301,94 @@ vreg_l8e: ldo8 {
};
};
+ðernet0 {
+ phy-handle = <&hsgmii_phy0>;
+ phy-mode = "2500base-x";
+
+ pinctrl-0 = <ðernet0_default>;
+ pinctrl-names = "default";
+
+ snps,mtl-rx-config = <&mtl_rx_setup>;
+ snps,mtl-tx-config = <&mtl_tx_setup>;
+
+ nvmem-cells = <&mac_addr0>;
+ nvmem-cell-names = "mac-address";
+
+ status = "okay";
+
+ mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hsgmii_phy0: ethernet-phy@1c {
+ compatible = "ethernet-phy-id004d.d101";
+ reg = <0x1c>;
+ reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>;
+ reset-assert-us = <11000>;
+ reset-deassert-us = <70000>;
+ };
+ };
+
+ mtl_rx_setup: rx-queues-config {
+ snps,rx-queues-to-use = <4>;
+ snps,rx-sched-sp;
+
+ queue0 {
+ snps,dcb-algorithm;
+ snps,map-to-dma-channel = <0x0>;
+ snps,route-up;
+ snps,priority = <0x1>;
+ };
+
+ queue1 {
+ snps,dcb-algorithm;
+ snps,map-to-dma-channel = <0x1>;
+ snps,route-ptp;
+ };
+
+ queue2 {
+ snps,avb-algorithm;
+ snps,map-to-dma-channel = <0x2>;
+ snps,route-avcp;
+ };
+
+ queue3 {
+ snps,avb-algorithm;
+ snps,map-to-dma-channel = <0x3>;
+ snps,priority = <0xc>;
+ };
+ };
+
+ mtl_tx_setup: tx-queues-config {
+ snps,tx-queues-to-use = <4>;
+
+ queue0 {
+ snps,dcb-algorithm;
+ };
+
+ queue1 {
+ snps,dcb-algorithm;
+ };
+
+ queue2 {
+ snps,avb-algorithm;
+ snps,send_slope = <0x1000>;
+ snps,idle_slope = <0x1000>;
+ snps,high_credit = <0x3e800>;
+ snps,low_credit = <0xffc18000>;
+ };
+
+ queue3 {
+ snps,avb-algorithm;
+ snps,send_slope = <0x1000>;
+ snps,idle_slope = <0x1000>;
+ snps,high_credit = <0x3e800>;
+ snps,low_credit = <0xffc18000>;
+ };
+ };
+};
+
&gpi_dma0 {
status = "okay";
};
@@ -352,6 +441,10 @@ nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
+
+ mac_addr0: mac-addr@0 {
+ reg = <0x0 0x6>;
+ };
};
};
};
@@ -498,11 +591,33 @@ &sdhc {
status = "okay";
};
+&serdes0 {
+ phy-supply = <&vreg_l5a>;
+
+ status = "okay";
+};
+
&sleep_clk {
clock-frequency = <32768>;
};
&tlmm {
+ ethernet0_default: ethernet0-default-state {
+ ethernet0_mdc: ethernet0-mdc-pins {
+ pins = "gpio8";
+ function = "emac0_mdc";
+ drive-strength = <16>;
+ bias-pull-up;
+ };
+
+ ethernet0_mdio: ethernet0-mdio-pins {
+ pins = "gpio9";
+ function = "emac0_mdio";
+ drive-strength = <16>;
+ bias-pull-up;
+ };
+ };
+
pcie0_default_state: pcie0-default-state {
clkreq-pins {
pins = "gpio1";
--
2.51.0
next prev parent reply other threads:[~2025-09-03 11:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 11:47 [PATCH v2 00/13] arm64: dts: qcom: lemans-evk: Extend board support for additional peripherals Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 01/13] dt-bindings: mmc: sdhci-msm: Document the Lemans compatible Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 02/13] arm64: dts: qcom: lemans: Add SDHC controller and SDC pin configuration Wasim Nazir
2025-09-03 15:48 ` Konrad Dybcio
2025-09-03 11:47 ` [PATCH v2 03/13] arm64: dts: qcom: lemans-evk: Add TCA9534 I/O expander Wasim Nazir
2025-09-03 15:48 ` Konrad Dybcio
2025-09-03 16:15 ` Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 04/13] arm64: dts: qcom: lemans-evk: Add nvmem-layout for EEPROM Wasim Nazir
2025-09-03 12:29 ` Konrad Dybcio
2025-09-03 14:11 ` Wasim Nazir
2025-09-03 15:08 ` Wasim Nazir
2025-09-03 15:12 ` Konrad Dybcio
2025-09-03 15:47 ` Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 05/13] arm64: dts: qcom: lemans-evk: Enable GPI DMA and QUPv3 controllers Wasim Nazir
2025-09-03 12:16 ` Dmitry Baryshkov
2025-09-03 14:09 ` Wasim Nazir
2025-09-03 14:15 ` Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 06/13] arm64: dts: qcom: lemans-evk: Enable PCIe support Wasim Nazir
2025-09-03 15:50 ` Konrad Dybcio
2025-09-03 16:14 ` Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 07/13] arm64: dts: qcom: lemans-evk: Enable remoteproc subsystems Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 08/13] arm64: dts: qcom: lemans-evk: Enable Iris video codec support Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 09/13] arm64: dts: qcom: lemans-evk: Enable first USB controller in device mode Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 10/13] arm64: dts: qcom: lemans-evk: Enable SDHCI for SD Card Wasim Nazir
2025-09-03 11:47 ` Wasim Nazir [this message]
2025-09-03 11:47 ` [PATCH v2 12/13] arm64: dts: qcom: lemans: Add gpr node Wasim Nazir
2025-09-03 11:47 ` [PATCH v2 13/13] arm64: dts: qcom: lemans-evk: Add sound card Wasim Nazir
2025-09-03 21:56 ` [PATCH v2 00/13] arm64: dts: qcom: lemans-evk: Extend board support for additional peripherals Rob Herring (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250903-lemans-evk-bu-v2-11-bfa381bf8ba2@oss.qualcomm.com \
--to=wasim.nazir@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=quic_mohdayaa@quicinc.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).