ARM: dts: imx6q-ba16: improve PHY information
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 8 Mar 2021 15:18:27 +0000 (16:18 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 06:13:43 +0000 (14:13 +0800)
Add PHY voltage supply information fixing the following kernel message:

2188000.ethernet supply phy not found, using dummy regulator

Also add PHY clock information to avoid depending on the bootloader
programming correct values.

The bootloader also sets some reserved registers in the PHY as
advised by Qualcomm, which is not supported by the bindings/kernel
driver, so the reset GPIO has not been added intentionally.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-ba16.dtsi

index 826fd51..6330d75 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii-id";
+       phy-supply = <&reg_3p3v>;
+       phy-handle = <&phy0>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy0: ethernet-phy@4 {
+                       reg = <4>;
+                       qca,clk-out-frequency = <125000000>;
+               };
+       };
 };
 
 &hdmi {