devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway
@ 2025-06-17 10:30 Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-17 10:30 UTC (permalink / raw)
  To: linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, 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 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  | 29 +++++++++++--------
 .../ralink/gardena_smart_gateway_mt7688.dts   |  2 +-
 arch/mips/boot/dts/ralink/mt7628a.dtsi        | 11 ++-----
 3 files changed, 21 insertions(+), 21 deletions(-)

--
2.43.0

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

* [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-17 10:30 [PATCH v2 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
@ 2025-06-17 10:30 ` Ezra Buehler
  2025-06-17 11:40   ` Krzysztof Kozlowski
  2025-06-17 10:30 ` [PATCH v2 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Ezra Buehler @ 2025-06-17 10:30 UTC (permalink / raw)
  To: linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, 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  | 29 +++++++++++--------
 1 file changed, 17 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..550807301fc5 100644
--- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
+++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
@@ -26,18 +26,23 @@ 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,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
+      - 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 v2 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688
  2025-06-17 10:30 [PATCH v2 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
@ 2025-06-17 10:30 ` Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED Ezra Buehler
  3 siblings, 0 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-17 10:30 UTC (permalink / raw)
  To: linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, 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 v2 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings
  2025-06-17 10:30 [PATCH v2 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
@ 2025-06-17 10:30 ` Ezra Buehler
  2025-06-17 10:30 ` [PATCH v2 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED Ezra Buehler
  3 siblings, 0 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-17 10:30 UTC (permalink / raw)
  To: linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, 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 v2 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED
  2025-06-17 10:30 [PATCH v2 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
                   ` (2 preceding siblings ...)
  2025-06-17 10:30 ` [PATCH v2 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings Ezra Buehler
@ 2025-06-17 10:30 ` Ezra Buehler
  3 siblings, 0 replies; 9+ messages in thread
From: Ezra Buehler @ 2025-06-17 10:30 UTC (permalink / raw)
  To: linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, 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 v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-17 10:30 ` [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
@ 2025-06-17 11:40   ` Krzysztof Kozlowski
  2025-06-17 12:05     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-17 11:40 UTC (permalink / raw)
  To: Ezra Buehler, linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, Ezra Buehler

On 17/06/2025 12:30, 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  | 29 +++++++++++--------
>  1 file changed, 17 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..550807301fc5 100644
> --- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
> +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
> @@ -26,18 +26,23 @@ 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,mt7628-sysc

It's here already, so this must be dropped.


Best regards,
Krzysztof

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

* Re: [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-17 11:40   ` Krzysztof Kozlowski
@ 2025-06-17 12:05     ` Krzysztof Kozlowski
  2025-06-17 15:29       ` Ezra Buehler
  0 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-17 12:05 UTC (permalink / raw)
  To: Ezra Buehler, linux-mips
  Cc: Conor Dooley, Harvey Hunt, Krzysztof Kozlowski, Reto Schneider,
	Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, Ezra Buehler

On 17/06/2025 13:40, Krzysztof Kozlowski wrote:
> On 17/06/2025 12:30, 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  | 29 +++++++++++--------
>>  1 file changed, 17 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..550807301fc5 100644
>> --- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
>> +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
>> @@ -26,18 +26,23 @@ 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,mt7628-sysc
> 
> It's here already, so this must be dropped.


I meant mt7628 is here already and you are adding it again further, so
it is now in two places.


Best regards,
Krzysztof

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

* Re: [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-17 12:05     ` Krzysztof Kozlowski
@ 2025-06-17 15:29       ` Ezra Buehler
  2025-06-18  6:19         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 9+ messages in thread
From: Ezra Buehler @ 2025-06-17 15:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: linux-mips, Conor Dooley, Harvey Hunt, Krzysztof Kozlowski,
	Reto Schneider, Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, Ezra Buehler

On Tue, Jun 17, 2025 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 17/06/2025 13:40, Krzysztof Kozlowski wrote:
> > On 17/06/2025 12:30, 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  | 29 +++++++++++--------
> >>  1 file changed, 17 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..550807301fc5 100644
> >> --- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
> >> +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
> >> @@ -26,18 +26,23 @@ 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,mt7628-sysc
> >
> > It's here already, so this must be dropped.
>
>
> I meant mt7628 is here already and you are adding it again further, so
> it is now in two places.

My idea was to support these variants, as they are all valid:

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

And, for simplicity, I decided not to support:

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

Excuse my ignorance, but I do not know how to do that differently. Or,
is the idea to only support what we are actually using (within Linux)?

Cheers,
Ezra.

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

* Re: [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards
  2025-06-17 15:29       ` Ezra Buehler
@ 2025-06-18  6:19         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-18  6:19 UTC (permalink / raw)
  To: Ezra Buehler
  Cc: linux-mips, Conor Dooley, Harvey Hunt, Krzysztof Kozlowski,
	Reto Schneider, Rob Herring, Sergio Paracuellos, Stefan Roese,
	Thomas Bogendoerfer, devicetree, Ezra Buehler

On 17/06/2025 17:29, Ezra Buehler wrote:
> On Tue, Jun 17, 2025 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>> On 17/06/2025 13:40, Krzysztof Kozlowski wrote:
>>> On 17/06/2025 12:30, 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  | 29 +++++++++++--------
>>>>  1 file changed, 17 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..550807301fc5 100644
>>>> --- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
>>>> +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
>>>> @@ -26,18 +26,23 @@ 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,mt7628-sysc
>>>
>>> It's here already, so this must be dropped.
>>
>>
>> I meant mt7628 is here already and you are adding it again further, so
>> it is now in two places.
> 
> My idea was to support these variants, as they are all valid:
> 
> compatible = "ralink,mt7628-sysc", "syscon";
> compatible = "ralink,mt7688-sysc", "syscon";
> compatible = "ralink,mt7628-sysc", "ralink,mt7688-sysc", "syscon";

How is it valid? Provide arguments because this defies logic. Device is
and is not compatible with 7688? The same time? How, really how?


Best regards,
Krzysztof

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

end of thread, other threads:[~2025-06-18  6:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-17 10:30 [PATCH v2 0/4] MIPS: dts: ralink: mt7628a: Tweak for GARDENA smart Gateway Ezra Buehler
2025-06-17 10:30 ` [PATCH v2 1/4] dt-bindings: clock: mediatek,mtmips-sysc: Adapt compatible for MT7688 boards Ezra Buehler
2025-06-17 11:40   ` Krzysztof Kozlowski
2025-06-17 12:05     ` Krzysztof Kozlowski
2025-06-17 15:29       ` Ezra Buehler
2025-06-18  6:19         ` Krzysztof Kozlowski
2025-06-17 10:30 ` [PATCH v2 2/4] MIPS: dts: ralink: mt7628a: Fix sysc's compatible property for MT7688 Ezra Buehler
2025-06-17 10:30 ` [PATCH v2 3/4] MIPS: dts: ralink: mt7628a: Update watchdog node according to bindings Ezra Buehler
2025-06-17 10:30 ` [PATCH v2 4/4] MIPS: dts: ralink: gardena_smart_gateway_mt7688: Fix power LED Ezra Buehler

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