mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
82 lines
1.6 KiB
Diff
82 lines
1.6 KiB
Diff
From 829ec1663e492824458f2b0f0cdbbe0662a65e1e Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Tue, 7 Jun 2022 15:31:00 +0200
|
|
Subject: [PATCH] arm64: dts: qcom: cp01-c1: add MDIO PHY-s
|
|
|
|
Add the required DT nodes for the onboard QCA8075 and QCA8081 ethernet
|
|
PHY-s.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts | 55 ++++++++++++++++++++
|
|
1 file changed, 55 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts
|
|
@@ -77,6 +77,22 @@
|
|
bias-pull-down;
|
|
};
|
|
};
|
|
+
|
|
+ mdio_pins: mdio-state {
|
|
+ mdc-pins {
|
|
+ pins = "gpio64";
|
|
+ function = "mdc";
|
|
+ drive-strength = <8>;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+
|
|
+ mdio-pins {
|
|
+ pins = "gpio65";
|
|
+ function = "mdio";
|
|
+ drive-strength = <8>;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&qpic_bam {
|
|
@@ -135,3 +151,42 @@
|
|
perst-gpios = <&tlmm 60 GPIO_ACTIVE_LOW>;
|
|
wake-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
+
|
|
+&mdio {
|
|
+ status = "okay";
|
|
+
|
|
+ pinctrl-0 = <&mdio_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
|
|
+
|
|
+ ethernet-phy@0 {
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <0>;
|
|
+ };
|
|
+
|
|
+ ethernet-phy@1 {
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <1>;
|
|
+ };
|
|
+
|
|
+ ethernet-phy@2 {
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <2>;
|
|
+ };
|
|
+
|
|
+ ethernet-phy@3 {
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <3>;
|
|
+ };
|
|
+
|
|
+ ethernet-phy@4 {
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <4>;
|
|
+ };
|
|
+
|
|
+ ethernet-phy@24 {
|
|
+ compatible = "ethernet-phy-id004d.d101";
|
|
+ reg = <24>;
|
|
+ reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+};
|