Commit 862b19b7 authored by Arınç ÜNAL's avatar Arınç ÜNAL Committed by David S. Miller
Browse files

dt-bindings: memory: mt7621: add syscon as compatible string



The syscon string was introduced because the mt7621 clock driver needs to
read some registers creating a regmap from the syscon. The bindings were
added before the clock driver was properly mainlined and at first the clock
driver was using ralink architecture dependent operations rt_memc_* defined
in 'arch/mips/include/asm/mach-ralink/ralink_regs.h'.

This string is already there on the memory controller node on mt7621.dtsi.

Add syscon as a constant string on the compatible property, now that memc
became a syscon. Update the example accordingly.

Fixes: 5278e4a1 ("dt-bindings: memory: add binding for Mediatek's MT7621 SDRAM memory controller")
Signed-off-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Acked-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0fbca84e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -11,7 +11,9 @@ maintainers:

properties:
  compatible:
    const: mediatek,mt7621-memc
    items:
      - const: mediatek,mt7621-memc
      - const: syscon

  reg:
    maxItems: 1
@@ -25,6 +27,6 @@ additionalProperties: false
examples:
  - |
    memory-controller@5000 {
        compatible = "mediatek,mt7621-memc";
        compatible = "mediatek,mt7621-memc", "syscon";
        reg = <0x5000 0x1000>;
    };