Skip to contentSkip to conversation

MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node

PATCH In review Stefan Roese 2 participants 4 messages Jan 14, 2020 – Jan 15, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node

From: Reto Schneider <[email protected]>

This patch adds the WMAC controller description to the MT7628A dtsi file.

Cc Paul Burton <[email protected]>
Cc John Crispin <[email protected]>
Cc Felix Fietkau <[email protected]>
---
 arch/mips/boot/dts/ralink/mt7628a.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/mips/boot/dts/ralink/mt7628a.dtsi +10 -0
index 742bcc1dc2e0..892e8ab863c5 100644
@@ -285,4 +285,14 @@ ehci@101c0000 {
 		interrupt-parent = <&intc>;
 		interrupts = <18>;
 	};
+
+	wmac: wmac@10300000 {
+		compatible = "mediatek,mt7628-wmac";
+		reg = <0x10300000 0x100000>;
+
+		interrupt-parent = <&cpuintc>;
+		interrupts = <6>;
+
+		status = "disabled";
+	};
 };
Signature · 1 line
2.25.0
#1 lore raw

PATCH 2/3 MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC

From: Reto Schneider <[email protected]>

This patch enables the WMAC controller on the GARDENA smart Gateway and configures the board specific factory EEPROM setting for this driver.

Cc Paul Burton <[email protected]>
Cc John Crispin <[email protected]>
Cc Felix Fietkau <[email protected]>
---
 arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts +5 -0
index aa5caaa31104..2d979eb744dc 100644
@@ -195,3 +195,8 @@ &uart2 {
 &watchdog {
 	status = "okay";
 };
+
+&wmac {
+	status = "okay";
+	mediatek,mtd-eeprom = <&factory 0x0000>;
+};
Signature · 1 line
2.25.0
#2 lore raw

PATCH 3/3 MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1

In reply to Stefan Roese

From: Reto Schneider <[email protected]>

The radio module asserts CTS when its RX buffer has 10 bytes left. Putting just 8 instead of 16 bytes into the UART1 TX buffer on the Linux side ensures to not overflow the RX buffer on the radio module side.

---
 arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts +3 -0
index 2d979eb744dc..6069b33cf09f 100644
@@ -177,6 +177,9 @@ &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinmux_i2s_gpio>;		/* GPIO0..3 */
 
+	fifo-size = <8>;
+	tx-threshold = <8>;
+
 	rts-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
 	cts-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
 };
Signature · 1 line
2.25.0
#3 lore raw
In reply to Stefan Roese

Hello,

Quoted 3 lines · Stefan Roese

From: Reto Schneider <[email protected]>

This patch adds the WMAC controller description to the MT7628A dtsi file.

Series applied to mips-next.

Quoted 16 lines

MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node
commit ff68d0da5a16
https://git.kernel.org/mips/c/ff68d0da5a16

MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC
commit a5d193cb88cf
https://git.kernel.org/mips/c/a5d193cb88cf

Quoted 7 lines

MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1
commit e8c192011c92
https://git.kernel.org/mips/c/e8c192011c92

Thanks,
Paul

[ This message was auto-generated; if you believe anything is incorrect
then please email [email protected] to report it. ]