xref: /linux/Documentation/devicetree/bindings/memory-controllers/starfive,jh7110-dmc.yaml (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1*f5e36eccSE Shattow# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*f5e36eccSE Shattow%YAML 1.2
3*f5e36eccSE Shattow---
4*f5e36eccSE Shattow$id: http://devicetree.org/schemas/memory-controllers/starfive,jh7110-dmc.yaml#
5*f5e36eccSE Shattow$schema: http://devicetree.org/meta-schemas/core.yaml#
6*f5e36eccSE Shattow
7*f5e36eccSE Shattowtitle: StarFive JH7110 DMC
8*f5e36eccSE Shattow
9*f5e36eccSE Shattowmaintainers:
10*f5e36eccSE Shattow  - E Shattow <e@freeshell.de>
11*f5e36eccSE Shattow
12*f5e36eccSE Shattowdescription:
13*f5e36eccSE Shattow  JH7110 DDR external memory interface LPDDR4/DDR4/DDR3/LPDDR3 32-bit at
14*f5e36eccSE Shattow  2133Mbps (up to 2800Mbps).
15*f5e36eccSE Shattow
16*f5e36eccSE Shattowproperties:
17*f5e36eccSE Shattow  compatible:
18*f5e36eccSE Shattow    items:
19*f5e36eccSE Shattow      - const: starfive,jh7110-dmc
20*f5e36eccSE Shattow
21*f5e36eccSE Shattow  reg:
22*f5e36eccSE Shattow    items:
23*f5e36eccSE Shattow      - description: controller registers
24*f5e36eccSE Shattow      - description: phy registers
25*f5e36eccSE Shattow
26*f5e36eccSE Shattow  clocks:
27*f5e36eccSE Shattow    maxItems: 1
28*f5e36eccSE Shattow
29*f5e36eccSE Shattow  clock-names:
30*f5e36eccSE Shattow    items:
31*f5e36eccSE Shattow      - const: pll
32*f5e36eccSE Shattow
33*f5e36eccSE Shattow  resets:
34*f5e36eccSE Shattow    items:
35*f5e36eccSE Shattow      - description: axi
36*f5e36eccSE Shattow      - description: osc
37*f5e36eccSE Shattow      - description: apb
38*f5e36eccSE Shattow
39*f5e36eccSE Shattow  reset-names:
40*f5e36eccSE Shattow    items:
41*f5e36eccSE Shattow      - const: axi
42*f5e36eccSE Shattow      - const: osc
43*f5e36eccSE Shattow      - const: apb
44*f5e36eccSE Shattow
45*f5e36eccSE Shattowrequired:
46*f5e36eccSE Shattow  - compatible
47*f5e36eccSE Shattow  - reg
48*f5e36eccSE Shattow  - clocks
49*f5e36eccSE Shattow  - clock-names
50*f5e36eccSE Shattow  - resets
51*f5e36eccSE Shattow  - reset-names
52*f5e36eccSE Shattow
53*f5e36eccSE ShattowadditionalProperties: false
54*f5e36eccSE Shattow
55*f5e36eccSE Shattowexamples:
56*f5e36eccSE Shattow  - |
57*f5e36eccSE Shattow    #include <dt-bindings/clock/starfive,jh7110-crg.h>
58*f5e36eccSE Shattow    #include <dt-bindings/reset/starfive,jh7110-crg.h>
59*f5e36eccSE Shattow    soc {
60*f5e36eccSE Shattow      #address-cells = <2>;
61*f5e36eccSE Shattow      #size-cells = <2>;
62*f5e36eccSE Shattow
63*f5e36eccSE Shattow      memory-controller@15700000 {
64*f5e36eccSE Shattow        compatible = "starfive,jh7110-dmc";
65*f5e36eccSE Shattow        reg = <0x0 0x15700000 0x0 0x10000>,
66*f5e36eccSE Shattow              <0x0 0x13000000 0x0 0x10000>;
67*f5e36eccSE Shattow        clocks = <&syscrg JH7110_PLLCLK_PLL1_OUT>;
68*f5e36eccSE Shattow        clock-names = "pll";
69*f5e36eccSE Shattow        resets = <&syscrg JH7110_SYSRST_DDR_AXI>,
70*f5e36eccSE Shattow                 <&syscrg JH7110_SYSRST_DDR_OSC>,
71*f5e36eccSE Shattow                 <&syscrg JH7110_SYSRST_DDR_APB>;
72*f5e36eccSE Shattow        reset-names = "axi", "osc", "apb";
73*f5e36eccSE Shattow      };
74*f5e36eccSE Shattow    };
75