mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
staging: mt7621-dts: fix pinctrl properties for ethernet
[ Upstream commit 0a93c0d758 ]
Add pinctrl properties with rgmii1 & mdio pins under ethernet node which
was wrongfully put under an external phy node.
GMAC1 will start working with this fix.
Link: https://lore.kernel.org/netdev/02ecce91-7aad-4392-c9d7-f45ca1b31e0b@arinc9.com/T/
Move GB-PC2 specific phy_external node to its own device tree.
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20220125153903.1469-5-arinc.unal@arinc9.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
47c31fe8ca
commit
00e0739ca1
|
|
@ -12,10 +12,16 @@ &default_gpio {
|
||||||
function = "gpio";
|
function = "gpio";
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac1 {
|
ðernet {
|
||||||
status = "ok";
|
gmac1: mac@1 {
|
||||||
};
|
status = "ok";
|
||||||
|
phy-handle = <&phy_external>;
|
||||||
|
};
|
||||||
|
|
||||||
&phy_external {
|
mdio-bus {
|
||||||
status = "ok";
|
phy_external: ethernet-phy@5 {
|
||||||
|
reg = <5>;
|
||||||
|
phy-mode = "rgmii-rxid";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -412,6 +412,9 @@ ethernet: ethernet@1e100000 {
|
||||||
|
|
||||||
mediatek,ethsys = <ðsys>;
|
mediatek,ethsys = <ðsys>;
|
||||||
|
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
|
||||||
|
|
||||||
gmac0: mac@0 {
|
gmac0: mac@0 {
|
||||||
compatible = "mediatek,eth-mac";
|
compatible = "mediatek,eth-mac";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
@ -429,22 +432,12 @@ gmac1: mac@1 {
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
status = "off";
|
status = "off";
|
||||||
phy-mode = "rgmii-rxid";
|
phy-mode = "rgmii-rxid";
|
||||||
phy-handle = <&phy_external>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio-bus {
|
mdio-bus {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
phy_external: ethernet-phy@5 {
|
|
||||||
status = "off";
|
|
||||||
reg = <5>;
|
|
||||||
phy-mode = "rgmii-rxid";
|
|
||||||
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&rgmii2_pins>;
|
|
||||||
};
|
|
||||||
|
|
||||||
switch0: switch0@0 {
|
switch0: switch0@0 {
|
||||||
compatible = "mediatek,mt7621";
|
compatible = "mediatek,mt7621";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user