diff mbox series

[3/3] arm64: dts: qcom: qcs404: Add AR8035 Phy node

Message ID 20190123174839.5321-3-vkoul@kernel.org
State New
Headers show
Series None | expand

Commit Message

Vinod Koul Jan. 23, 2019, 5:48 p.m. UTC
EVB-4000 has ethernet port with AR8035 Phy, so add phy node

Co-developed-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>

Signed-off-by: Vinod Koul <vkoul@kernel.org>

---
 arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
2.20.1

Comments

Niklas Cassel Jan. 24, 2019, 10:06 p.m. UTC | #1
On Wed, Jan 23, 2019 at 11:18:39PM +0530, Vinod Koul wrote:
> EVB-4000 has ethernet port with AR8035 Phy, so add phy node

> 

> Co-developed-by: Niklas Cassel <niklas.cassel@linaro.org>

> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>

> Signed-off-by: Vinod Koul <vkoul@kernel.org>

> ---

>  arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts | 11 +++++++++++

>  1 file changed, 11 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts

> index 5c02e874be12..ec85647cfed1 100644

> --- a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts

> +++ b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts

> @@ -21,6 +21,17 @@

>  	pinctrl-names = "default";

>  	pinctrl-0 = <&ethernet_defaults>;

>  

> +	phy-handle = <&phy1>;

> +	phy-mode = "rgmii";

> +	mdio {

> +		#address-cells = <0x1>;

> +		#size-cells = <0x0>;

> +		compatible = "snps,dwmac-mdio";

> +		phy1: phy@4 {


Hello Vinod,

The AR8035 PHY is compliant with IEEE802.3u clause 22, so please add:
compatible = "ethernet-phy-ieee802.3-c22";

Also, please squash this commit with PATCH 2/3.
The previous patch sets status = "ok" without having a PHY defined,
but I also don't see any reason to keep 2/3 and 3/3 as separate patches.

Kind regards,
Niklas

> +			device_type = "ethernet-phy";

> +			reg = <0x4>;

> +		};

> +	};

>  };

>  

>  &tlmm {

> -- 

> 2.20.1

>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts
index 5c02e874be12..ec85647cfed1 100644
--- a/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts
+++ b/arch/arm64/boot/dts/qcom/qcs404-evb-4000.dts
@@ -21,6 +21,17 @@ 
 	pinctrl-names = "default";
 	pinctrl-0 = <&ethernet_defaults>;
 
+	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>;
+		};
+	};
 };
 
 &tlmm {