Skip to content
Snippets Groups Projects
Commit 83b540ae authored by Felix Gerking's avatar Felix Gerking Committed by Jonas Höppner
Browse files

dts:mc3: Improve ethernet configuration

Now the correct phy reg is set explicitly. Use the driver specific bindings
for the phy reset and set the correct reset timings.

BCS 746-000932
parent aeb17f0c
No related branches found
No related tags found
2 merge requests!455CI: Update gitlab-ci,!143Add support for mc3: Devicetree changes.
......@@ -32,14 +32,6 @@ memory@40000000 {
reg = <0x0 0x40000000 0 0x40000000>;
};
phy_reset: phy-reset {
compatible = "gpio-reset";
reset-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
reset-delay-us = <2000>;
reset-post-delay-ms = <40>;
#reset-cells = <0>;
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
......@@ -184,8 +176,10 @@ &eqos {
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <&ethphy0>;
resets = <&phy_reset>;
reset-names = "stmmaceth";
snps,reset-gpio = <&gpio3 25 GPIO_ACTIVE_LOW>;
snps,reset-active-low;
snps,reset-delays-us = <0 10000 50000>;
status = "okay";
mdio {
......@@ -193,7 +187,8 @@ mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@-1 {
ethphy0: ethernet-phy@1 {
reg = <1>;
compatible = "ethernet-phy-ieee802.3-c22";
eee-broken-1000t;
eee-broken-100tx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment