* [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus
@ 2022-04-11 11:20 Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 2/3] mips: dts: ralink: mt7621: mux phy4 to gmac1 for GB-PC1 Arınç ÜNAL
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Arınç ÜNAL @ 2022-04-11 11:20 UTC (permalink / raw)
To: Sergio Paracuellos, Rob Herring, Krzysztof Kozlowski,
Thomas Bogendoerfer, Matthias Brugger
Cc: linux-mips, devicetree, linux-arm-kernel, linux-mediatek,
linux-kernel, Arınç ÜNAL
Add mdio label to the mdio-bus node to easily refer to it.
Use the newly created label on the GB-PC2 devicetree.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
v2: add "ralink:" to the commit summary
---
.../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 18 ++++++++----------
arch/mips/boot/dts/ralink/mt7621.dtsi | 2 +-
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
index a7fce8de6147..b427ae9e081f 100644
--- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
+++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
@@ -93,17 +93,15 @@ gpio-pinmux {
};
};
-ðernet {
- gmac1: mac@1 {
- status = "okay";
- phy-handle = <ðphy7>;
- };
+&gmac1 {
+ status = "okay";
+ phy-handle = <ðphy7>;
+};
- mdio-bus {
- ethphy7: ethernet-phy@7 {
- reg = <7>;
- phy-mode = "rgmii-rxid";
- };
+&mdio {
+ ethphy7: ethernet-phy@7 {
+ reg = <7>;
+ phy-mode = "rgmii-rxid";
};
};
diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi
index 3222684915ac..40d0f28446ca 100644
--- a/arch/mips/boot/dts/ralink/mt7621.dtsi
+++ b/arch/mips/boot/dts/ralink/mt7621.dtsi
@@ -342,7 +342,7 @@ gmac1: mac@1 {
phy-mode = "rgmii-rxid";
};
- mdio-bus {
+ mdio: mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/3] mips: dts: ralink: mt7621: mux phy4 to gmac1 for GB-PC1
2022-04-11 11:20 [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Arınç ÜNAL
@ 2022-04-11 11:20 ` Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 3/3] mips: dts: ralink: mt7621: remove defining gpio function for pin groups Arınç ÜNAL
2022-04-27 8:59 ` [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Thomas Bogendoerfer
2 siblings, 0 replies; 4+ messages in thread
From: Arınç ÜNAL @ 2022-04-11 11:20 UTC (permalink / raw)
To: Sergio Paracuellos, Rob Herring, Krzysztof Kozlowski,
Thomas Bogendoerfer, Matthias Brugger
Cc: linux-mips, devicetree, linux-arm-kernel, linux-mediatek,
linux-kernel, Arınç ÜNAL
Mux the MT7530 switch's phy4 to the SoC's gmac1 on the GB-PC1 devicetree.
This achieves 2 Gbps total bandwidth to the CPU using the second RGMII.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
v2: add "ralink:" to the commit summary
---
.../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
index 5892bcf71595..75f3b0425487 100644
--- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
+++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
@@ -103,14 +103,21 @@ &pinctrl {
state_default: state-default {
gpio-pinmux {
- groups = "rgmii2", "uart3", "wdt";
+ groups = "uart3", "wdt";
function = "gpio";
};
};
};
-ðernet {
- pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+&gmac1 {
+ status = "okay";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
};
&switch0 {
@@ -119,10 +126,5 @@ port@0 {
status = "okay";
label = "ethblack";
};
-
- port@4 {
- status = "okay";
- label = "ethblue";
- };
};
};
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 3/3] mips: dts: ralink: mt7621: remove defining gpio function for pin groups
2022-04-11 11:20 [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 2/3] mips: dts: ralink: mt7621: mux phy4 to gmac1 for GB-PC1 Arınç ÜNAL
@ 2022-04-11 11:20 ` Arınç ÜNAL
2022-04-27 8:59 ` [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Thomas Bogendoerfer
2 siblings, 0 replies; 4+ messages in thread
From: Arınç ÜNAL @ 2022-04-11 11:20 UTC (permalink / raw)
To: Sergio Paracuellos, Rob Herring, Krzysztof Kozlowski,
Thomas Bogendoerfer, Matthias Brugger
Cc: linux-mips, devicetree, linux-arm-kernel, linux-mediatek,
linux-kernel, Arınç ÜNAL
All pin groups function as gpio unless set otherwise. Therefore, remove
this unnecessary binding.
Tested on UniElec U7621-06-16M on OpenWrt.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
v2: add "ralink:" to the commit summary
---
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 12 ------------
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 12 ------------
2 files changed, 24 deletions(-)
diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
index 75f3b0425487..c307a0edb91f 100644
--- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
+++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
@@ -97,18 +97,6 @@ &pcie {
status = "okay";
};
-&pinctrl {
- pinctrl-names = "default";
- pinctrl-0 = <&state_default>;
-
- state_default: state-default {
- gpio-pinmux {
- groups = "uart3", "wdt";
- function = "gpio";
- };
- };
-};
-
&gmac1 {
status = "okay";
phy-handle = <ðphy4>;
diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
index b427ae9e081f..8268d738e74f 100644
--- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
+++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
@@ -81,18 +81,6 @@ &pcie {
status = "okay";
};
-&pinctrl {
- pinctrl-names = "default";
- pinctrl-0 = <&state_default>;
-
- state_default: state-default {
- gpio-pinmux {
- groups = "wdt";
- function = "gpio";
- };
- };
-};
-
&gmac1 {
status = "okay";
phy-handle = <ðphy7>;
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus
2022-04-11 11:20 [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 2/3] mips: dts: ralink: mt7621: mux phy4 to gmac1 for GB-PC1 Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 3/3] mips: dts: ralink: mt7621: remove defining gpio function for pin groups Arınç ÜNAL
@ 2022-04-27 8:59 ` Thomas Bogendoerfer
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2022-04-27 8:59 UTC (permalink / raw)
To: Arınç ÜNAL
Cc: Sergio Paracuellos, Rob Herring, Krzysztof Kozlowski,
Matthias Brugger, linux-mips, devicetree, linux-arm-kernel,
linux-mediatek, linux-kernel
On Mon, Apr 11, 2022 at 02:20:47PM +0300, Arınç ÜNAL wrote:
> Add mdio label to the mdio-bus node to easily refer to it.
>
> Use the newly created label on the GB-PC2 devicetree.
>
> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
> Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> ---
> v2: add "ralink:" to the commit summary
>
> ---
> .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 18 ++++++++----------
> arch/mips/boot/dts/ralink/mt7621.dtsi | 2 +-
> 2 files changed, 9 insertions(+), 11 deletions(-)
series applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-27 9:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 11:20 [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 2/3] mips: dts: ralink: mt7621: mux phy4 to gmac1 for GB-PC1 Arınç ÜNAL
2022-04-11 11:20 ` [PATCH v2 3/3] mips: dts: ralink: mt7621: remove defining gpio function for pin groups Arınç ÜNAL
2022-04-27 8:59 ` [PATCH v2 1/3] mips: dts: ralink: mt7621: add mdio label to mdio-bus Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).