summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorBryan Berg <bdb@north-eastham.org>2024-05-18 16:27:19 -0700
committerChristian Marangi <ansuelsmth@gmail.com>2024-06-27 17:11:39 +0200
commite27c7e4b9b864d732d31a039ed8d74c5d79e4f20 (patch)
tree722c924a5f287a943273216c92f88cb0574917c8 /target/linux
parentb43c0a915f5b6cdb7863de36007dcc7a4cece432 (diff)
downloadopenwrt-e27c7e4b9b864d732d31a039ed8d74c5d79e4f20.tar.gz
openwrt-e27c7e4b9b864d732d31a039ed8d74c5d79e4f20.tar.bz2
openwrt-e27c7e4b9b864d732d31a039ed8d74c5d79e4f20.zip
ipq806x: ap3935: Use gmac0 mdio controller
Updates ap3935 target to use the mdio controller built-in to gmac0, rather than having the SoC bit-bang mdio from gpio pins Signed-off-by: Bryan Berg <bdb@north-eastham.org> Link: https://github.com/openwrt/openwrt/pull/13629 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts30
1 files changed, 9 insertions, 21 deletions
diff --git a/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts b/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts
index 0c865ef7c7..ee5ed8cb9e 100644
--- a/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts
+++ b/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts
@@ -18,7 +18,6 @@
aliases {
serial0 = &gsbi7_serial;
serial1 = &gsbi2_serial;
- mdio-gpio0 = &mdio0;
ethernet0 = &gmac0;
ethernet1 = &gmac2;
@@ -299,26 +298,15 @@
};
};
-&soc {
- mdio1: mdio {
- compatible = "virtual,mdio-gpio";
- #address-cells = <1>;
- #size-cells = <0>;
-
- status = "okay";
-
- pinctrl-0 = <&mdio0_pins>;
- pinctrl-names = "default";
-
- gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
+&mdio0 {
+ status = "okay";
- phy1: ethernet-phy@1 {
- reg = <1>;
- };
+ phy1: ethernet-phy@1 {
+ reg = <1>;
+ };
- phy2: ethernet-phy@2 {
- reg = <2>;
- };
+ phy2: ethernet-phy@2 {
+ reg = <2>;
};
};
@@ -326,7 +314,7 @@
status = "okay";
qcom,id = <0>;
- mdiobus = <&mdio1>;
+ mdiobus = <&mdio0>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
@@ -344,7 +332,7 @@
status = "okay";
qcom,id = <2>;
- mdiobus = <&mdio1>;
+ mdiobus = <&mdio0>;
phy-mode = "sgmii";
phy-handle = <&phy2>;