From 3a073a021286bef3fed0ca7884872c5890420d60 Mon Sep 17 00:00:00 2001 From: Chukun Pan Date: Sun, 28 Jan 2024 23:10:36 +0800 Subject: [PATCH] qualcommax: dts: add reset delay to qca8081 phy The qca8081 phy needs to set the reset delay time, otherwise it will not be detected by the mdio bus. Fixes: 75ad5c2 ("qualcommax: switch to qca8081 upstream PHY driver") Signed-off-by: Chukun Pan --- .../files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts | 2 ++ .../files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts | 2 ++ .../files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts | 1 + .../files/arch/arm64/boot/dts/qcom/ipq8072-ax880.dts | 4 +++- .../files/arch/arm64/boot/dts/qcom/ipq8072-ax9000.dts | 1 + .../files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts | 1 + .../files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts | 1 + .../files/arch/arm64/boot/dts/qcom/ipq8074-wax630.dts | 1 + 8 files changed, 12 insertions(+), 1 deletion(-) diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts index d40b3f0d2417..9503f4b92aec 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-eap102.dts @@ -330,12 +330,14 @@ qca8081_24: ethernet-phy@24 { compatible = "ethernet-phy-id004d.d101"; reg = <24>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; }; qca8081_28: ethernet-phy@28 { compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts index 8b055800e11c..51bb533d1e85 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-mf269.dts @@ -388,12 +388,14 @@ qca8081_24: ethernet-phy@24 { compatible = "ethernet-phy-id004d.d101"; reg = <24>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; }; qca8081_28: ethernet-phy@28 { compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts index 495ebad17a31..877a487b978f 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-aw1000.dts @@ -267,6 +267,7 @@ qca8081: ethernet-phy@28 { compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax880.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax880.dts index bb4634d054b3..7133969d35fc 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax880.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax880.dts @@ -309,10 +309,11 @@ pinctrl-0 = <&mdio_pins>; pinctrl-names = "default"; - + qca8081_24: ethernet-phy@24 { compatible = "ethernet-phy-id004d.d101"; reg = <24>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; leds { @@ -331,6 +332,7 @@ qca8081_28: ethernet-phy@28 { compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; leds { diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax9000.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax9000.dts index 0408c6ed8593..0ebdeb81940c 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax9000.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-ax9000.dts @@ -377,6 +377,7 @@ qca8081: ethernet-phy@24 { compatible = "ethernet-phy-id004d.d101"; reg = <24>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; leds { diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts index 4519a7a6bf49..3dec53f156af 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-dl-wrx36.dts @@ -162,6 +162,7 @@ qca8081: ethernet-phy@28 { compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; leds { diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts index 1e8e50875f77..be6953f9423a 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts @@ -294,6 +294,7 @@ qca8081: ethernet-phy@4{ compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; }; diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wax630.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wax630.dts index 685e4243ddbf..48b1fee1ea54 100644 --- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wax630.dts +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wax630.dts @@ -202,6 +202,7 @@ qca8081: ethernet-phy@28 { compatible = "ethernet-phy-id004d.d101"; reg = <28>; + reset-deassert-us = <10000>; reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; }; }; -- 2.30.2