mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 01:28:04 +00:00
dt-bindings: memory-controller: Define fallback compatible
All of the DDR controllers beyond revision b.2.1 have had a consistent layout, therefore define a "brcm,brcmstb-memc-ddr-rev-b.2.1" fallback compatible string to match them all rather than having to continuously add to the list. Link: https://lore.kernel.org/all/20241217194439.929040-2-florian.fainelli@broadcom.com/ Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250609212356.2264244-2-florian.fainelli@broadcom.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
parent
a0be20055d
commit
501be7cece
@ -11,11 +11,10 @@ maintainers:
|
|||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
|
oneOf:
|
||||||
|
- description: Revision > 2.1 controllers
|
||||||
items:
|
items:
|
||||||
- enum:
|
- enum:
|
||||||
- brcm,brcmstb-memc-ddr-rev-b.1.x
|
|
||||||
- brcm,brcmstb-memc-ddr-rev-b.2.0
|
|
||||||
- brcm,brcmstb-memc-ddr-rev-b.2.1
|
|
||||||
- brcm,brcmstb-memc-ddr-rev-b.2.2
|
- brcm,brcmstb-memc-ddr-rev-b.2.2
|
||||||
- brcm,brcmstb-memc-ddr-rev-b.2.3
|
- brcm,brcmstb-memc-ddr-rev-b.2.3
|
||||||
- brcm,brcmstb-memc-ddr-rev-b.2.5
|
- brcm,brcmstb-memc-ddr-rev-b.2.5
|
||||||
@ -29,6 +28,19 @@ properties:
|
|||||||
- brcm,brcmstb-memc-ddr-rev-c.1.2
|
- brcm,brcmstb-memc-ddr-rev-c.1.2
|
||||||
- brcm,brcmstb-memc-ddr-rev-c.1.3
|
- brcm,brcmstb-memc-ddr-rev-c.1.3
|
||||||
- brcm,brcmstb-memc-ddr-rev-c.1.4
|
- brcm,brcmstb-memc-ddr-rev-c.1.4
|
||||||
|
- const: brcm,brcmstb-memc-ddr-rev-b.2.1
|
||||||
|
- const: brcm,brcmstb-memc-ddr
|
||||||
|
- description: Revision 2.1 controllers
|
||||||
|
items:
|
||||||
|
- const: brcm,brcmstb-memc-ddr-rev-b.2.1
|
||||||
|
- const: brcm,brcmstb-memc-ddr
|
||||||
|
- description: Revision 2.0 controllers
|
||||||
|
items:
|
||||||
|
- const: brcm,brcmstb-memc-ddr-rev-b.2.0
|
||||||
|
- const: brcm,brcmstb-memc-ddr
|
||||||
|
- description: Revision 1.x controllers
|
||||||
|
items:
|
||||||
|
- const: brcm,brcmstb-memc-ddr-rev-b.1.x
|
||||||
- const: brcm,brcmstb-memc-ddr
|
- const: brcm,brcmstb-memc-ddr
|
||||||
|
|
||||||
reg:
|
reg:
|
||||||
@ -46,7 +58,9 @@ additionalProperties: false
|
|||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
memory-controller@9902000 {
|
memory-controller@9902000 {
|
||||||
compatible = "brcm,brcmstb-memc-ddr-rev-c.1.1", "brcm,brcmstb-memc-ddr";
|
compatible = "brcm,brcmstb-memc-ddr-rev-c.1.1",
|
||||||
|
"brcm,brcmstb-memc-ddr-rev-b.2.1",
|
||||||
|
"brcm,brcmstb-memc-ddr";
|
||||||
reg = <0x9902000 0x600>;
|
reg = <0x9902000 0x600>;
|
||||||
clock-frequency = <2133000000>;
|
clock-frequency = <2133000000>;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user