linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway
@ 2025-06-24 11:58 Ezra Buehler
  2025-06-24 11:58 ` [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-24 11:58 UTC (permalink / raw)
  To: linux-mips, devicetree
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>

Various devicetree changes needed for the MT7688-based GARDENA smart
Gateway.

Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
---
Changes in v4:
- Re-add ralink,mt7688-sysc to enum in mediatek,mtmips-sysc DT binding
- Link to v3: https://lore.kernel.org/20250619203502.1293695-1-ezra@easyb.ch

Changes in v3:
- Remove duplicate entries in mediatek,mtmips-sysc DT binding
- Link to v2: https://lore.kernel.org/20250617103058.1125836-1-ezra@easyb.ch

Changes in v2:
- Add patch for mediatek,mtmips-sysc DT binding
- Add Reviewed-by tags
- Link to v1: https://lore.kernel.org/20250611194716.302126-1-ezra@easyb.ch

Ezra Buehler (4):
  dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688
    boards
  MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688
  MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings
  MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED

 .../bindings/clock/mediatek,mtmips-sysc.yaml  | 28 +++++++++++--------
 .../ralink/gardena_smart_gateway_mt7688.dts   |  2 +-
 arch/mips/boot/dts/ralink/mt7628a.dtsi        | 11 ++------
 3 files changed, 20 insertions(+), 21 deletions(-)

-- 
2.43.0


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

* [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-24 11:58 [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
@ 2025-06-24 11:58 ` Ezra Buehler
  2025-06-25  7:13   ` Krzysztof Kozlowski
  2025-06-25  8:21   ` Sergio Paracuellos
  2025-06-24 11:58 ` [PATCH v4 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-24 11:58 UTC (permalink / raw)
  To: linux-mips, devicetree
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>

As the MT7628 and MT7688 are identical in most respects, mt7628a.dtsi is
used for both SoCs. To prevent "Kernel panic - not syncing: unable to
get CPU clock, err=-2" and allow an MT7688-based board to boot, the
following must be allowed:

    compatible = "ralink,mt7628-sysc", "ralink,mt7688-sysc", "syscon";

Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
---
 .../bindings/clock/mediatek,mtmips-sysc.yaml  | 28 +++++++++++--------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
index 83c1803ffd16..56bbd69b16d9 100644
--- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
+++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
@@ -26,18 +26,22 @@ description: |
 
 properties:
   compatible:
-    items:
-      - enum:
-          - ralink,mt7620-sysc
-          - ralink,mt7628-sysc
-          - ralink,mt7688-sysc
-          - ralink,rt2880-sysc
-          - ralink,rt3050-sysc
-          - ralink,rt3052-sysc
-          - ralink,rt3352-sysc
-          - ralink,rt3883-sysc
-          - ralink,rt5350-sysc
-      - const: syscon
+    oneOf:
+      - items:
+          - enum:
+              - ralink,mt7620-sysc
+              - ralink,mt7688-sysc
+              - ralink,rt2880-sysc
+              - ralink,rt3050-sysc
+              - ralink,rt3052-sysc
+              - ralink,rt3352-sysc
+              - ralink,rt3883-sysc
+              - ralink,rt5350-sysc
+          - const: syscon
+      - items:
+          - const: ralink,mt7628-sysc
+          - const: ralink,mt7688-sysc
+          - const: syscon
 
   reg:
     maxItems: 1
-- 
2.43.0


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

* [PATCH v4 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688
  2025-06-24 11:58 [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
  2025-06-24 11:58 ` [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
@ 2025-06-24 11:58 ` Ezra Buehler
  2025-06-25  8:21   ` Sergio Paracuellos
  2025-06-24 11:58 ` [PATCH v4 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings Ezra Buehler
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Ezra Buehler @ 2025-06-24 11:58 UTC (permalink / raw)
  To: linux-mips, devicetree
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>

Otherwise, the MT7688-based GARDENA smart Gateway will fail to boot
printing "Kernel panic - not syncing: unable to get CPU clock, err=-2".

Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
Reviewed-by: Stefan Roese <sr@denx.de>
---
 arch/mips/boot/dts/ralink/mt7628a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/boot/dts/ralink/mt7628a.dtsi b/arch/mips/boot/dts/ralink/mt7628a.dtsi
index 0212700c4fb4..10221a41f02a 100644
--- a/arch/mips/boot/dts/ralink/mt7628a.dtsi
+++ b/arch/mips/boot/dts/ralink/mt7628a.dtsi
@@ -33,7 +33,7 @@ palmbus@10000000 {
 		#size-cells = <1>;
 
 		sysc: syscon@0 {
-			compatible = "ralink,mt7628-sysc", "syscon";
+			compatible = "ralink,mt7628-sysc", "ralink,mt7688-sysc", "syscon";
 			reg = <0x0 0x60>;
 			#clock-cells = <1>;
 			#reset-cells = <1>;
-- 
2.43.0


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

* [PATCH v4 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings
  2025-06-24 11:58 [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
  2025-06-24 11:58 ` [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
  2025-06-24 11:58 ` [PATCH v4 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
@ 2025-06-24 11:58 ` Ezra Buehler
  2025-06-24 11:58 ` [PATCH v4 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED Ezra Buehler
  2025-07-02 12:03 ` [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Thomas Bogendoerfer
  4 siblings, 0 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-24 11:58 UTC (permalink / raw)
  To: linux-mips, devicetree
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>

Most notably, add the mediatek,sysctl phandle and remove the redundant
reset/interrupt-related properties from the watchdog node. This is in
line with the corresponding devicetree (mt7628an.dtsi) used by the
OpenWrt project.

This has been tested on the MT7688-based GARDENA smart Gateway.

Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 arch/mips/boot/dts/ralink/mt7628a.dtsi | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/arch/mips/boot/dts/ralink/mt7628a.dtsi b/arch/mips/boot/dts/ralink/mt7628a.dtsi
index 10221a41f02a..5d7a6cfa9e2b 100644
--- a/arch/mips/boot/dts/ralink/mt7628a.dtsi
+++ b/arch/mips/boot/dts/ralink/mt7628a.dtsi
@@ -134,13 +134,8 @@ pinmux_p4led_an_gpio: p4led-an-gpio-pins {
 
 		watchdog: watchdog@100 {
 			compatible = "mediatek,mt7621-wdt";
-			reg = <0x100 0x30>;
-
-			resets = <&sysc 8>;
-			reset-names = "wdt";
-
-			interrupt-parent = <&intc>;
-			interrupts = <24>;
+			reg = <0x100 0x100>;
+			mediatek,sysctl = <&sysc>;
 
 			status = "disabled";
 		};
-- 
2.43.0


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

* [PATCH v4 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED
  2025-06-24 11:58 [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
                   ` (2 preceding siblings ...)
  2025-06-24 11:58 ` [PATCH v4 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings Ezra Buehler
@ 2025-06-24 11:58 ` Ezra Buehler
  2025-07-02 12:03 ` [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Thomas Bogendoerfer
  4 siblings, 0 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-24 11:58 UTC (permalink / raw)
  To: linux-mips, devicetree
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>

When starting up, the GARDENA smart Gateway's power LED should be
flashing green. It is unclear why it was initially set to "off".

The LED frequency cannot be configured in the devicetree. Luckily, the
default is 1 Hz, which is what we want.

Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 7743d014631a..0bfb1dde9764 100644
--- a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
+++ b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
@@ -56,7 +56,7 @@ led-power-blue {
 		led-power-green {
 			label = "smartgw:power:green";
 			gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
-			default-state = "off";
+			linux,default-trigger = "timer";
 		};
 
 		led-power-red {
-- 
2.43.0


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

* Re: [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-24 11:58 ` [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
@ 2025-06-25  7:13   ` Krzysztof Kozlowski
  2025-06-25  8:21   ` Sergio Paracuellos
  1 sibling, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-25  7:13 UTC (permalink / raw)
  To: Ezra Buehler
  Cc: linux-mips, devicetree, Conor Dooley, Harvey Hunt,
	Krzysztof Kozlowski, Reto Schneider, Rob Herring,
	Sergio Paracuellos, Stefan Roese, Thomas Bogendoerfer,
	Ezra Buehler

On Tue, Jun 24, 2025 at 01:58:07PM +0200, Ezra Buehler wrote:
> From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> 
> As the MT7628 and MT7688 are identical in most respects, mt7628a.dtsi is
> used for both SoCs. To prevent "Kernel panic - not syncing: unable to
> get CPU clock, err=-2" and allow an MT7688-based board to boot, the
> following must be allowed:
> 
>     compatible = "ralink,mt7628-sysc", "ralink,mt7688-sysc", "syscon";
> 
> Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> ---
>  .../bindings/clock/mediatek,mtmips-sysc.yaml  | 28 +++++++++++--------
>  1 file changed, 16 insertions(+), 12 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-24 11:58 ` [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
  2025-06-25  7:13   ` Krzysztof Kozlowski
@ 2025-06-25  8:21   ` Sergio Paracuellos
  1 sibling, 0 replies; 9+ messages in thread
From: Sergio Paracuellos @ 2025-06-25  8:21 UTC (permalink / raw)
  To: Ezra Buehler
  Cc: linux-mips, devicetree, Conor Dooley, Harvey Hunt,
	Krzysztof Kozlowski, Reto Schneider, Rob Herring, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

On Tue, Jun 24, 2025 at 1:58 PM Ezra Buehler <ezra@easyb.ch> wrote:
>
> From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
>
> As the MT7628 and MT7688 are identical in most respects, mt7628a.dtsi is
> used for both SoCs. To prevent "Kernel panic - not syncing: unable to
> get CPU clock, err=-2" and allow an MT7688-based board to boot, the
> following must be allowed:
>
>     compatible = "ralink,mt7628-sysc", "ralink,mt7688-sysc", "syscon";
>
> Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> ---
>  .../bindings/clock/mediatek,mtmips-sysc.yaml  | 28 +++++++++++--------
>  1 file changed, 16 insertions(+), 12 deletions(-)

Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>

Thanks,
    Sergio Paracuellos

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

* Re: [PATCH v4 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688
  2025-06-24 11:58 ` [PATCH v4 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
@ 2025-06-25  8:21   ` Sergio Paracuellos
  0 siblings, 0 replies; 9+ messages in thread
From: Sergio Paracuellos @ 2025-06-25  8:21 UTC (permalink / raw)
  To: Ezra Buehler
  Cc: linux-mips, devicetree, Conor Dooley, Harvey Hunt,
	Krzysztof Kozlowski, Reto Schneider, Rob Herring, Stefan Roese,
	Thomas Bogendoerfer, Ezra Buehler

On Tue, Jun 24, 2025 at 1:58 PM Ezra Buehler <ezra@easyb.ch> wrote:
>
> From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
>
> Otherwise, the MT7688-based GARDENA smart Gateway will fail to boot
> printing "Kernel panic - not syncing: unable to get CPU clock, err=-2".
>
> Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> Reviewed-by: Stefan Roese <sr@denx.de>
> ---
>  arch/mips/boot/dts/ralink/mt7628a.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>

Thanks,
    Sergio Paracuellos

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

* Re: [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway
  2025-06-24 11:58 [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
                   ` (3 preceding siblings ...)
  2025-06-24 11:58 ` [PATCH v4 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED Ezra Buehler
@ 2025-07-02 12:03 ` Thomas Bogendoerfer
  4 siblings, 0 replies; 9+ messages in thread
From: Thomas Bogendoerfer @ 2025-07-02 12:03 UTC (permalink / raw)
  To: Ezra Buehler
  Cc: linux-mips, devicetree, Conor Dooley, Harvey Hunt,
	Krzysztof Kozlowski, Reto Schneider, Rob Herring,
	Sergio Paracuellos, Stefan Roese, Ezra Buehler

On Tue, Jun 24, 2025 at 01:58:06PM +0200, Ezra Buehler wrote:
> From: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> 
> Various devicetree changes needed for the MT7688-based GARDENA smart
> Gateway.
> 
> Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> ---
> Changes in v4:
> - Re-add ralink,mt7688-sysc to enum in mediatek,mtmips-sysc DT binding
> - Link to v3: https://lore.kernel.org/20250619203502.1293695-1-ezra@easyb.ch
> 
> Changes in v3:
> - Remove duplicate entries in mediatek,mtmips-sysc DT binding
> - Link to v2: https://lore.kernel.org/20250617103058.1125836-1-ezra@easyb.ch
> 
> Changes in v2:
> - Add patch for mediatek,mtmips-sysc DT binding
> - Add Reviewed-by tags
> - Link to v1: https://lore.kernel.org/20250611194716.302126-1-ezra@easyb.ch
> 
> Ezra Buehler (4):
>   dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688
>     boards
>   MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688
>   MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings
>   MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED
> 
>  .../bindings/clock/mediatek,mtmips-sysc.yaml  | 28 +++++++++++--------
>  .../ralink/gardena_smart_gateway_mt7688.dts   |  2 +-
>  arch/mips/boot/dts/ralink/mt7628a.dtsi        | 11 ++------
>  3 files changed, 20 insertions(+), 21 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] 9+ messages in thread

end of thread, other threads:[~2025-07-02 13:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 11:58 [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
2025-06-24 11:58 ` [PATCH v4 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
2025-06-25  7:13   ` Krzysztof Kozlowski
2025-06-25  8:21   ` Sergio Paracuellos
2025-06-24 11:58 ` [PATCH v4 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
2025-06-25  8:21   ` Sergio Paracuellos
2025-06-24 11:58 ` [PATCH v4 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings Ezra Buehler
2025-06-24 11:58 ` [PATCH v4 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED Ezra Buehler
2025-07-02 12:03 ` [PATCH v4 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway 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).