linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node
@ 2020-01-14  8:48 Stefan Roese
  2020-01-14  8:48 ` [PATCH 2/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC Stefan Roese
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Roese @ 2020-01-14  8:48 UTC (permalink / raw)
  To: linux-mips; +Cc: Reto Schneider, Paul Burton, John Crispin, Felix Fietkau

From: Reto Schneider <reto.schneider@husqvarnagroup.com>

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

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Paul Burton <paul.burton@mips.com>
Cc: John Crispin <john@phrozen.org>
Cc: Felix Fietkau <nbd@nbd.name>
---
 arch/mips/boot/dts/ralink/mt7628a.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/mips/boot/dts/ralink/mt7628a.dtsi b/arch/mips/boot/dts/ralink/mt7628a.dtsi
index 742bcc1dc2e0..892e8ab863c5 100644
--- a/arch/mips/boot/dts/ralink/mt7628a.dtsi
+++ b/arch/mips/boot/dts/ralink/mt7628a.dtsi
@@ -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";
+	};
 };
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC
  2020-01-14  8:48 [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Stefan Roese
@ 2020-01-14  8:48 ` Stefan Roese
  2020-01-14  8:48 ` [PATCH 3/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1 Stefan Roese
  2020-01-15  0:24 ` [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Paul Burton
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2020-01-14  8:48 UTC (permalink / raw)
  To: linux-mips; +Cc: Reto Schneider, Paul Burton, John Crispin, Felix Fietkau

From: Reto Schneider <reto.schneider@husqvarnagroup.com>

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

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Paul Burton <paul.burton@mips.com>
Cc: John Crispin <john@phrozen.org>
Cc: Felix Fietkau <nbd@nbd.name>
---
 arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
index aa5caaa31104..2d979eb744dc 100644
--- a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
+++ b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
@@ -195,3 +195,8 @@ &uart2 {
 &watchdog {
 	status = "okay";
 };
+
+&wmac {
+	status = "okay";
+	mediatek,mtd-eeprom = <&factory 0x0000>;
+};
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1
  2020-01-14  8:48 [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Stefan Roese
  2020-01-14  8:48 ` [PATCH 2/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC Stefan Roese
@ 2020-01-14  8:48 ` Stefan Roese
  2020-01-15  0:24 ` [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Paul Burton
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2020-01-14  8:48 UTC (permalink / raw)
  To: linux-mips; +Cc: Reto Schneider, Paul Burton

From: Reto Schneider <reto.schneider@husqvarnagroup.com>

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.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Paul Burton <paul.burton@mips.com>
---
 arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
index 2d979eb744dc..6069b33cf09f 100644
--- a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
+++ b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
@@ -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>;
 };
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node
  2020-01-14  8:48 [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Stefan Roese
  2020-01-14  8:48 ` [PATCH 2/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC Stefan Roese
  2020-01-14  8:48 ` [PATCH 3/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1 Stefan Roese
@ 2020-01-15  0:24 ` Paul Burton
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Burton @ 2020-01-15  0:24 UTC (permalink / raw)
  To: Stefan Roese
  Cc: linux-mips, Reto Schneider, Paul Burton, John Crispin,
	Felix Fietkau, linux-mips

Hello,

Stefan Roese wrote:
> From: Reto Schneider <reto.schneider@husqvarnagroup.com>
> 
> This patch adds the WMAC controller description to the MT7628A dtsi file.

Series applied to mips-next.

> MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node
>   commit ff68d0da5a16
>   https://git.kernel.org/mips/c/ff68d0da5a16
>   
>   Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
>   Signed-off-by: Stefan Roese <sr@denx.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC
>   commit a5d193cb88cf
>   https://git.kernel.org/mips/c/a5d193cb88cf
>   
>   Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
>   Signed-off-by: Stefan Roese <sr@denx.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>
> 
> MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1
>   commit e8c192011c92
>   https://git.kernel.org/mips/c/e8c192011c92
>   
>   Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
>   Signed-off-by: Stefan Roese <sr@denx.de>
>   Signed-off-by: Paul Burton <paulburton@kernel.org>

Thanks,
    Paul

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-15  0:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14  8:48 [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Stefan Roese
2020-01-14  8:48 ` [PATCH 2/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Enable WMAC Stefan Roese
2020-01-14  8:48 ` [PATCH 3/3] MIPS: ralink: dts: gardena_smart_gateway_mt7688: Limit UART1 Stefan Roese
2020-01-15  0:24 ` [PATCH 1/3] MIPS: ralink: dts: mt7628a.dtsi: Add WMAC DT node Paul Burton

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).