tn3399_openwrt/target/linux/ath79/dts/qca9558_devolo_dvl1200i.dts
David Bauer 62abbd587d ath79: correct various phy-mode properties
Upstream commit 6d4cd04 changes how the internal delays of the AR803x
based PHYs are enabled. With this commit, all internal delays are
disabled on driver probe and enabled based on the 'phy-mode' property in
the device-tree.

Before this commit, the RX delay was always enabled upon soft-reset
while the TX delay retained it's previous state. A hard reset enabled
the RX delay while the TX delay was disabled.

Because of this inconsistency, wrongly specified PHY-modes were working
correctly while the hardware was in a different state.

Fix the PHY-modes of some affected devices (and clean up misplaced
properties along the way) to keep the devices working flawlessly with
kernels >= 5.1.

Signed-off-by: David Bauer <mail@david-bauer.net>
2019-06-20 08:57:36 +02:00

53 lines
960 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi"
/ {
compatible = "devolo,dvl1200i", "qca,qca9557";
model = "devolo WiFi pro 1200i";
aliases {
led-boot = &status_blue;
led-failsafe = &status_red;
led-running = &status_blue;
led-upgrade = &status_red;
};
leds {
compatible = "gpio-leds";
status_blue: status_blue {
label = "dvl1200i:blue:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
status_red: status_red {
label = "dvl1200i:red:status";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
};
beeper {
compatible = "gpio-beeper";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
};
&eth0 {
pll-data = <0xbe000000 0x80000101 0x80001313>;
phy-mode = "rgmii-id";
};
&gmac_config {
rxdv-delay = <3>;
rxd-delay = <3>;
txen-delay = <3>;
txd-delay = <3>;
rgmii-enabled = <1>;
};