Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Memory controllers bindings

Single-page view · as markdown

DDR4 SDRAM compliant to JEDEC JESD79-4D

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,ddr4.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): jedec,sdram-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^ddr4-[0-9a-f]{4},[a-z]{1,20}-[0-9a-f]{2}$"

Item 2

Exact value (const): "jedec,ddr4"

Required in this object (required): "compatible", "density", "io-width"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ddr {
    compatible = "ddr4-00ff,azaz-ff", "jedec,ddr4";
    density = <8192>;
    io-width = <8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPDDR2 SDRAM AC timing parameters for a given speed-bin

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2-timings.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "jedec,lpddr2-timings"

max-freq — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum DDR clock frequency for the speed-bin, in Hz.

min-freq — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum DDR clock frequency for the speed-bin, in Hz.

tCKESR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

CKE minimum pulse width during SELF REFRESH (low pulse width during SELF REFRESH) in pico seconds.

tDQSCK-max — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

DQS output data access time from CK_t/CK_c in pico seconds.

tDQSCK-max-derated — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

DQS output data access time from CK_t/CK_c, temperature de-rated, in pico seconds.

tFAW — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Four-bank activate window in pico seconds.

tRAS-max-ns — not listed as required here #

Row active time in nano seconds.

tRAS-min — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Row active time in pico seconds.

tRCD — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

RAS-to-CAS delay in pico seconds.

tRPab — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Row precharge time (all banks) in pico seconds.

tRRD — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Active bank A to active bank B in pico seconds.

tRTP — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Internal READ to PRECHARGE command delay in pico seconds.

tWR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

WRITE recovery time in pico seconds.

tWTR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Internal WRITE-to-READ command delay in pico seconds.

tXP — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exit power-down to next valid command delay in pico seconds.

tZQCL — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Long calibration time in pico seconds.

tZQCS — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Short calibration time in pico seconds.

tZQinit — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Initialization calibration time in pico seconds.

Required in this object (required): "compatible", "min-freq", "max-freq"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timings {
    compatible = "jedec,lpddr2-timings";
    min-freq = <10000000>;
    max-freq = <400000000>;
    tCKESR = <15000>;
    tDQSCK-max = <5500>;
    tFAW = <50000>;
    tRAS-max-ns = <70000>;
    tRAS-min = <42000>;
    tRPab = <21000>;
    tRCD = <18000>;
    tRRD = <10000>;
    tRTP = <7500>;
    tWR = <15000>;
    tWTR = <7500>;
    tXP = <7500>;
    tZQCL = <360000>;
    tZQCS = <90000>;
    tZQinit = <1000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPDDR2 SDRAM compliant to JEDEC JESD209-2

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): jedec,sdram-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "elpida,ECB240ABACN", "elpida,B8132B2PB-6D-F"

Item 2

Allowed values (enum): "jedec,lpddr2-nvm", "jedec,lpddr2-s2", "jedec,lpddr2-s4"

Rule 2

Array item rules (items)

Item 1

String pattern (pattern): "^lpddr2-[0-9a-f]{2},[0-9a-f]{4}$"

Item 2

Allowed values (enum): "jedec,lpddr2-nvm", "jedec,lpddr2-s2", "jedec,lpddr2-s4"

revision-id1 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 255

Revision 1 value of SDRAM chip. Obtained from device datasheet. Property is deprecated, use revision-id instead.

Deprecated (deprecated): true

revision-id2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 255

Revision 2 value of SDRAM chip. Obtained from device datasheet. Property is deprecated, use revision-id instead.

Deprecated (deprecated): true

tRRD-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Active bank a to active bank b in terms of number of clock cycles. Obtained from device datasheet.

tWTR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Internal WRITE-to-READ command delay in terms of number of clock cycles. Obtained from device datasheet.

tXP-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Exit power-down to next valid command delay in terms of number of clock cycles. Obtained from device datasheet.

tRTP-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Internal READ to PRECHARGE command delay in terms of number of clock cycles. Obtained from device datasheet.

tCKE-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

CKE minimum pulse width (HIGH and LOW pulse width) in terms of number of clock cycles. Obtained from device datasheet.

tRPab-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Row precharge time (all banks) in terms of number of clock cycles. Obtained from device datasheet.

tRCD-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

RAS-to-CAS delay in terms of number of clock cycles. Obtained from device datasheet.

tWR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

WRITE recovery time in terms of number of clock cycles. Obtained from device datasheet.

tRASmin-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Row active time in terms of number of clock cycles. Obtained from device datasheet.

tCKESR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

CKE minimum pulse width during SELF REFRESH (low pulse width during SELF REFRESH) in terms of number of clock cycles. Obtained from device datasheet.

tFAW-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 16

Four-bank activate window in terms of number of clock cycles. Obtained from device datasheet.

Properties matching a name pattern (patternProperties) #

^lpddr2-timings — name matches this regular expression #

Shared schema rule ($ref): jedec,lpddr2-timings.yaml

The lpddr2 node may have one or more child nodes of type "lpddr2-timings". "lpddr2-timings" provides AC timing parameters of the device for a given speed-bin. The user may provide the timings for as many speed-bins as is required.

Required in this object (required): "compatible", "density", "io-width"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

elpida_ECB240ABACN: lpddr2 {
    compatible = "elpida,ECB240ABACN", "jedec,lpddr2-s4";
    density = <2048>;
    io-width = <32>;
    revision-id = <1 0>;

    tRPab-min-tck = <3>;
    tRCD-min-tck = <3>;
    tWR-min-tck = <3>;
    tRASmin-min-tck = <3>;
    tRRD-min-tck = <2>;
    tWTR-min-tck = <2>;
    tXP-min-tck = <2>;
    tRTP-min-tck = <2>;
    tCKE-min-tck = <3>;
    tCKESR-min-tck = <3>;
    tFAW-min-tck = <8>;

    timings_elpida_ECB240ABACN_400mhz: lpddr2-timings0 {
        compatible = "jedec,lpddr2-timings";
        min-freq = <10000000>;
        max-freq = <400000000>;
        tRPab = <21000>;
        tRCD = <18000>;
        tWR = <15000>;
        tRAS-min = <42000>;
        tRRD = <10000>;
        tWTR = <7500>;
        tXP = <7500>;
        tRTP = <7500>;
        tCKESR = <15000>;
        tDQSCK-max = <5500>;
        tFAW = <50000>;
        tZQCS = <90000>;
        tZQCL = <360000>;
        tZQinit = <1000000>;
        tRAS-max-ns = <70000>;
    };

    timings_elpida_ECB240ABACN_200mhz: lpddr2-timings1 {
        compatible = "jedec,lpddr2-timings";
        min-freq = <10000000>;
        max-freq = <200000000>;
        tRPab = <21000>;
        tRCD = <18000>;
        tWR = <15000>;
        tRAS-min = <42000>;
        tRRD = <10000>;
        tWTR = <10000>;
        tXP = <7500>;
        tRTP = <7500>;
        tCKESR = <15000>;
        tDQSCK-max = <5500>;
        tFAW = <50000>;
        tZQCS = <90000>;
        tZQCL = <360000>;
        tZQinit = <1000000>;
        tRAS-max-ns = <70000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPDDR3 SDRAM AC timing parameters for a given speed-bin

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "jedec,lpddr3-timings"

reg — not listed as required here #

Maximum number of items (maxItems): 1

Maximum DDR clock frequency for the speed-bin, in Hz. Property is deprecated, use max-freq.

Deprecated (deprecated): true

max-freq — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum DDR clock frequency for the speed-bin, in Hz.

min-freq — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum DDR clock frequency for the speed-bin, in Hz.

tCKE — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

CKE minimum pulse width (HIGH and LOW pulse width) in pico seconds.

tCKESR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

CKE minimum pulse width during SELF REFRESH (low pulse width during SELF REFRESH) in pico seconds.

tFAW — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Four-bank activate window in pico seconds.

tMRD — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Mode register set command delay in pico seconds.

tR2R-C2C — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Additional READ-to-READ delay in chip-to-chip cases in pico seconds.

tRAS — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Row active time in pico seconds.

tRC — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ACTIVATE-to-ACTIVATE command period in pico seconds.

tRCD — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

RAS-to-CAS delay in pico seconds.

tRFC — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Refresh Cycle time in pico seconds.

tRPab — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Row precharge time (all banks) in pico seconds.

tRPpb — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Row precharge time (single banks) in pico seconds.

tRRD — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Active bank A to active bank B in pico seconds.

tRTP — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Internal READ to PRECHARGE command delay in pico seconds.

tW2W-C2C — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Additional WRITE-to-WRITE delay in chip-to-chip cases in pico seconds.

tWR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

WRITE recovery time in pico seconds.

tWTR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Internal WRITE-to-READ command delay in pico seconds.

tXP — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exit power-down to next valid command delay in pico seconds.

tXSR — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SELF REFRESH exit to next valid command delay in pico seconds.

Required in this object (required): "compatible", "min-freq", "max-freq"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

lpddr3 {
    timings {
        compatible = "jedec,lpddr3-timings";
        max-freq = <800000000>;
        min-freq = <100000000>;
        tCKE = <3750>;
        tCKESR = <3750>;
        tFAW = <25000>;
        tMRD = <7000>;
        tR2R-C2C = <0>;
        tRAS = <23000>;
        tRC = <33750>;
        tRCD = <10000>;
        tRFC = <65000>;
        tRPab = <12000>;
        tRPpb = <12000>;
        tRRD = <6000>;
        tRTP = <3750>;
        tW2W-C2C = <0>;
        tWR = <7500>;
        tWTR = <3750>;
        tXP = <3750>;
        tXSR = <70000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPDDR3 SDRAM compliant to JEDEC JESD209-3

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): jedec,sdram-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "samsung,K3QF2F20DB"

Item 2

Exact value (const): "jedec,lpddr3"

Rule 2

Array item rules (items)

Item 1

String pattern (pattern): "^lpddr3-[0-9a-f]{2},[0-9a-f]{4}$"

Item 2

Exact value (const): "jedec,lpddr3"

#address-cells — not listed as required here #

Exact value (const): 1

Deprecated (deprecated): true

manufacturer-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Manufacturer ID value read from Mode Register 5. The property is deprecated, manufacturer should be derived from the compatible.

Deprecated (deprecated): true

#size-cells — not listed as required here #

Exact value (const): 0

Deprecated (deprecated): true

tCKE-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

CKE minimum pulse width (HIGH and LOW pulse width) in terms of number of clock cycles.

tCKESR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

CKE minimum pulse width during SELF REFRESH (low pulse width during SELF REFRESH) in terms of number of clock cycles.

tDQSCK-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

DQS output data access time from CK_t/CK_c in terms of number of clock cycles.

tFAW-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 63

Four-bank activate window in terms of number of clock cycles.

tMRD-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

Mode register set command delay in terms of number of clock cycles.

tR2R-C2C-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Additional READ-to-READ delay in chip-to-chip cases in terms of number of clock cycles.

tRAS-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 63

Row active time in terms of number of clock cycles.

tRC-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 63

ACTIVATE-to-ACTIVATE command period in terms of number of clock cycles.

tRCD-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

RAS-to-CAS delay in terms of number of clock cycles.

tRFC-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 255

Refresh Cycle time in terms of number of clock cycles.

tRL-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

READ data latency in terms of number of clock cycles.

tRPab-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

Row precharge time (all banks) in terms of number of clock cycles.

tRPpb-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

Row precharge time (single banks) in terms of number of clock cycles.

tRRD-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

Active bank A to active bank B in terms of number of clock cycles.

tRTP-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

Internal READ to PRECHARGE command delay in terms of number of clock cycles.

tW2W-C2C-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Additional WRITE-to-WRITE delay in chip-to-chip cases in terms of number of clock cycles.

tWL-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

WRITE data latency in terms of number of clock cycles.

tWR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

WRITE recovery time in terms of number of clock cycles.

tWTR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

Internal WRITE-to-READ command delay in terms of number of clock cycles.

tXP-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 255

Exit power-down to next valid command delay in terms of number of clock cycles.

tXSR-min-tck — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 1023

SELF REFRESH exit to next valid command delay in terms of number of clock cycles.

Properties matching a name pattern (patternProperties) #

^timings((-[0-9])+|(@[0-9a-f]+))?$ — name matches this regular expression #

Shared schema rule ($ref): jedec,lpddr3-timings.yaml

The lpddr3 node may have one or more child nodes with timings. Each timing node provides AC timing parameters of the device for a given speed-bin. The user may provide the timings for as many speed-bins as is required.

Required in this object (required): "compatible", "density", "io-width"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

lpddr3 {
    compatible = "samsung,K3QF2F20DB", "jedec,lpddr3";
    density = <16384>;
    io-width = <32>;

    tCKE-min-tck = <2>;
    tCKESR-min-tck = <2>;
    tDQSCK-min-tck = <5>;
    tFAW-min-tck = <5>;
    tMRD-min-tck = <5>;
    tR2R-C2C-min-tck = <0>;
    tRAS-min-tck = <5>;
    tRC-min-tck = <6>;
    tRCD-min-tck = <3>;
    tRFC-min-tck = <17>;
    tRL-min-tck = <14>;
    tRPab-min-tck = <2>;
    tRPpb-min-tck = <2>;
    tRRD-min-tck = <2>;
    tRTP-min-tck = <2>;
    tW2W-C2C-min-tck = <0>;
    tWL-min-tck = <8>;
    tWR-min-tck = <7>;
    tWTR-min-tck = <2>;
    tXP-min-tck = <2>;
    tXSR-min-tck = <12>;

    timings {
        compatible = "jedec,lpddr3-timings";
        max-freq = <800000000>;
        min-freq = <100000000>;
        tCKE = <3750>;
        tCKESR = <3750>;
        tFAW = <25000>;
        tMRD = <7000>;
        tR2R-C2C = <0>;
        tRAS = <23000>;
        tRC = <33750>;
        tRCD = <10000>;
        tRFC = <65000>;
        tRPab = <12000>;
        tRPpb = <12000>;
        tRRD = <6000>;
        tRTP = <3750>;
        tW2W-C2C = <0>;
        tWR = <7500>;
        tWTR = <3750>;
        tXP = <3750>;
        tXSR = <70000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPDDR4 SDRAM compliant to JEDEC JESD209-4

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr4.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): jedec,sdram-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^lpddr4-[0-9a-f]{2},[0-9a-f]{4}$"

Item 2

Exact value (const): "jedec,lpddr4"

Required in this object (required): "compatible", "density", "io-width"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

lpddr {
    compatible = "lpddr4-ff,0100", "jedec,lpddr4";
    density = <8192>;
    io-width = <16>;
    revision-id = <1 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

LPDDR5 SDRAM compliant to JEDEC JESD209-5

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr5.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): jedec,sdram-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

String pattern (pattern): "^lpddr5-[0-9a-f]{2},[0-9a-f]{4}$"

Item 2

Exact value (const): "jedec,lpddr5"

serial-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Serial IDs read from Mode Registers 47 through 54. One byte per uint32 cell (i.e. <MR47 MR48 MR49 MR50 MR51 MR52 MR53 MR54>).

Maximum number of items (maxItems): 8

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 255

Required in this object (required): "compatible", "density", "io-width"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

lpddr {
    compatible = "lpddr5-01,0200", "jedec,lpddr5";
    density = <8192>;
    io-width = <8>;
    revision-id = <2 0>;
    serial-id = <3 1 0 0 0 0 0 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

SDRAM channel with chip/rank topology description

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,sdram-channel.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

A memory channel of SDRAM memory like DDR SDRAM or LPDDR SDRAM is a completely independent set of pins (DQ, CA, CS, CK, etc.) that connect one or more memory chips to a host system. The main purpose of this node is to overall memory topology of the system, including the amount of individual memory chips and the ranks per chip.

Maintainers (maintainers): "Julius Werner <jwerner@chromium.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "sdram-channel-[0-9]+$"

compatible — required here #

Allowed values (enum): "jedec,ddr4-channel", "jedec,lpddr2-channel", "jedec,lpddr3-channel", "jedec,lpddr4-channel", "jedec,lpddr5-channel"

io-width — required here #

The number of DQ pins in the channel. If this number is different from (a multiple of) the io-width of the SDRAM chip, that means that multiple instances of that type of chip are wired in parallel on this channel (with the channel's DQ pins split up between the different chips, and the CA, CS, etc. pins of the different chips all shorted together). This means that the total physical memory controlled by a channel is equal to the sum of the densities of each rank on the connected SDRAM chip, times the io-width of the channel divided by the io-width of the SDRAM chip.

Allowed values (enum): 8, 16, 32, 64, 128

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^rank@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Each physical SDRAM chip may have one or more ranks. Ranks are internal but fully independent sub-units of the chip. Each SDRAM bus transaction on the channel targets exactly one rank, based on the state of the CS pins. Different ranks may have different densities and timing requirements.

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "jedec,ddr4-channel"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^rank@[0-9]+$ — name matches this regular expression

Shared schema rule ($ref): /schemas/memory-controllers/ddr/jedec,ddr4.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "jedec,lpddr2-channel"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^rank@[0-9]+$ — name matches this regular expression

Shared schema rule ($ref): /schemas/memory-controllers/ddr/jedec,lpddr2.yaml#

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "jedec,lpddr3-channel"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^rank@[0-9]+$ — name matches this regular expression

Shared schema rule ($ref): /schemas/memory-controllers/ddr/jedec,lpddr3.yaml#

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "jedec,lpddr4-channel"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^rank@[0-9]+$ — name matches this regular expression

Shared schema rule ($ref): /schemas/memory-controllers/ddr/jedec,lpddr4.yaml#

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "jedec,lpddr5-channel"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^rank@[0-9]+$ — name matches this regular expression

Shared schema rule ($ref): /schemas/memory-controllers/ddr/jedec,lpddr5.yaml#

Required in this object (required): "compatible", "io-width", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sdram-channel-0 {
  #address-cells = <1>;
  #size-cells = <0>;
  compatible = "jedec,lpddr3-channel";
  io-width = <32>;

  rank@0 {
    compatible = "lpddr3-ff,0100", "jedec,lpddr3";
    reg = <0>;
    density = <8192>;
    io-width = <16>;
    revision-id = <1 0>;
  };
};

sdram-channel-1 {
  #address-cells = <1>;
  #size-cells = <0>;
  compatible = "jedec,lpddr4-channel";
  io-width = <32>;

  rank@0 {
    compatible = "lpddr4-05,0301", "jedec,lpddr4";
    reg = <0>;
    density = <4096>;
    io-width = <32>;
    revision-id = <3 1>;
  };

  rank@1 {
    compatible = "lpddr4-05,0301", "jedec,lpddr4";
    reg = <1>;
    density = <2048>;
    io-width = <32>;
    revision-id = <3 1>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Common properties for SDRAM types

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / ddr

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ddr/jedec,sdram-props.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Different SDRAM types generally use the same properties and only differ in the range of legal values for each. This file defines the common parts that can be reused for each type. Nodes using this schema should generally be nested under a SDRAM channel node.

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Compatible strings can be either explicit vendor names and part numbers
(e.g. elpida,ECB240ABACN), or generated strings of the form
lpddrX-YY,ZZZZ or ddrX-YYYY,AAAA...-ZZ where X, Y, and Z are lowercase
hexadecimal with leading zeroes, and A is lowercase ASCII.
For LPDDR and DDR SDRAM, X is the SDRAM version (2, 3, 4, etc.).
For LPDDR SDRAM:
  - YY is the manufacturer ID (from MR5), 1 byte
  - ZZZZ is the revision ID (from MR6 and MR7), 2 bytes
For DDR4 SDRAM with SPD, according to JEDEC SPD4.1.2.L-6:
  - YYYY is the manufacturer ID, 2 bytes, from bytes 320 and 321
  - AAAA... is the part number, 20 bytes (20 chars) from bytes 329 to 348
    without trailing spaces
  - ZZ is the revision ID, 1 byte, from byte 349
The former form is useful when the SDRAM vendor and part number are
known, for example, when memory is soldered on the board. The latter
form is useful when SDRAM nodes are created at runtime by boot firmware
that doesn't have access to static part number information.

reg — not listed as required here #

The rank number of this memory rank when used as a subnode to an memory channel.

Minimum value (minimum): 0

Maximum value (maximum): 3

revision-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

SDRAM revision ID:
  - LPDDR SDRAM, decoded from Mode Registers 6 and 7, always 2 bytes.
  - DDR4 SDRAM, decoded from the SPD from byte 349 according to
    JEDEC SPD4.1.2.L-6, always 1 byte.
One byte per uint32 cell (e.g., <MR6 MR7>).

Maximum number of items (maxItems): 2

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 255

density — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Density of the SDRAM chip in megabits:
  - LPDDR SDRAM, decoded from Mode Register 8.
  - DDR4 SDRAM, decoded from the SPD from bits 3-0 of byte 4 according to
    JEDEC SPD4.1.2.L-6.

Allowed values (enum): 64, 128, 256, 512, 1024, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576, 32768

io-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

I/O bus width in bits of the SDRAM chip:
  - LPDDR SDRAM, decoded from Mode Register 8.
  - DDR4 SDRAM, decoded from the SPD from bits 2-0 of byte 12 according to
    JEDEC SPD4.1.2.L-6.

Allowed values (enum): 8, 16, 32

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale DDR memory controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/fsl,ddr.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Borislav Petkov <bp@alien8.de>", "York Sun <york.sun@nxp.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^memory-controller@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,qoriq-memory-controller-v4.4", "fsl,qoriq-memory-controller-v4.5", "fsl,qoriq-memory-controller-v4.7", "fsl,qoriq-memory-controller-v5.0"

Item 2

Exact value (const): "fsl,qoriq-memory-controller"

Rule 2

Allowed values (enum): "fsl,bsc9132-memory-controller", "fsl,mpc8536-memory-controller", "fsl,mpc8540-memory-controller", "fsl,mpc8541-memory-controller", "fsl,mpc8544-memory-controller", "fsl,mpc8548-memory-controller", "fsl,mpc8555-memory-controller", "fsl,mpc8560-memory-controller", "fsl,mpc8568-memory-controller", "fsl,mpc8569-memory-controller", "fsl,mpc8572-memory-controller", "fsl,mpc8349-memory-controller", "fsl,p1020-memory-controller", "fsl,p1021-memory-controller", "fsl,p2020-memory-controller", "fsl,qoriq-memory-controller", "nxp,imx9-memory-controller"

interrupts — required here #

Maximum number of items (maxItems): 1

little-endian — not listed as required here #

Specifies little-endian access to registers. If omitted, big-endian will be used.

Value type (type): "boolean"

reg — required here #

Array item rules (items) #

Item 1

Controller register space

Item 2

Inject register space

Minimum number of items (minItems): 1

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ctrl"

Item 2

Exact value (const): "inject"

Minimum number of items (minItems): 1

Required in this object (required): "compatible", "interrupts", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nxp,imx9-memory-controller"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

reg-names — not listed as required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@2000 {
    compatible = "fsl,bsc9132-memory-controller";
    reg = <0x2000 0x1000>;
    interrupts = <16 2 1 8>;
};
memory-controller@8000 {
    compatible = "fsl,qoriq-memory-controller-v4.7",
                 "fsl,qoriq-memory-controller";
    reg = <0x8000 0x1000>;
    interrupts = <16 2 1 23>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

FSL/NXP Integrated Flash Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/fsl,ifc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"

NXP's integrated flash controller (IFC) is an advanced version of the enhanced local bus controller which includes similar programming and signal interfaces with an extended feature set. The IFC provides access to multiple external memory types, such as NAND flash (SLC and MLC), NOR flash, EPROM, SRAM and other memories where address and data are shared on a bus.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^memory-controller@[0-9a-f]+$"

compatible — required here #

Exact value (const): "fsl,ifc"

#address-cells — not listed as required here #

Allowed values (enum): 2, 3

Should be either two or three. The first cell is the chipselect number, and the remaining cells are the offset into the chipselect.

#size-cells — not listed as required here #

Allowed values (enum): 1, 2

Either one or two, depending on how large each chipselect can be.

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

IFC may have one or two interrupts. If two interrupt specifiers are present, the first is the "common" interrupt (CM_EVTER_STAT), and the second is the NAND interrupt (NAND_EVTER_STAT). If there is only one, that interrupt reports both types of event.

little-endian — not listed as required here #

Value type (type): "boolean"

If this property is absent, the big-endian mode will be in use as default for registers.

ranges — not listed as required here #

Each range corresponds to a single chipselect, and covers the entire access window as configured.

Properties matching a name pattern (patternProperties) #

^nand@[a-f0-9]+(,[a-f0-9]+)+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "fsl,ifc-nand"

reg — required here

Maximum number of items (maxItems): 1

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^partition@[0-9a-f]+ — name matches this regular expression

Shared schema rule ($ref): /schemas/mtd/partitions/partition.yaml#

Deprecated (deprecated): true

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

(flash|fpga|board-control|cpld)@[a-f0-9]+(,[a-f0-9]+)+$ — name matches this regular expression #

Value type (type): "object"

Exactly one of these rules must match (oneOf) #

Rule 1

Shared schema rule ($ref): /schemas/board/fsl,fpga-qixis.yaml#

Rule 2

Shared schema rule ($ref): /schemas/mtd/mtd-physmap.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    memory-controller@ffe1e000 {
        compatible = "fsl,ifc";
        #address-cells = <2>;
        #size-cells = <1>;
        reg = <0x0 0xffe1e000 0 0x2000>;
        interrupts = <16 2 19 2>;
        little-endian;

        /* NOR, NAND Flashes and CPLD on board */
        ranges = <0x0 0x0 0x0 0xee000000 0x02000000>,
                 <0x1 0x0 0x0 0xffa00000 0x00010000>,
                 <0x3 0x0 0x0 0xffb00000 0x00020000>;

        flash@0,0 {
            #address-cells = <1>;
            #size-cells = <1>;
            compatible = "cfi-flash";
            reg = <0x0 0x0 0x2000000>;
            bank-width = <2>;
            device-width = <1>;

            partition@0 {
                /* 32MB for user data */
                reg = <0x0 0x02000000>;
                label = "NOR Data";
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

i.MX WEIM Bus Peripheral Nodes

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/fsl,imx-weim-peripherals.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

This binding is meant for the child nodes of the WEIM node. The node represents any device connected to the WEIM bus. It may be a Flash chip, RAM chip or Ethernet controller, etc. These properties are meant for configuring the WEIM settings/timings and will accompany the bindings supported by the respective device.

Properties and child nodes (properties) #

reg — not listed as required here #

true — No constraints added by this property rule.

fsl,weim-cs-timing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Timing values for the child node.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 6

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 30: the WEIM child will have its own native properties

i.MX Wireless External Interface Module (WEIM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/fsl,imx-weim.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

The term "wireless" does not imply that the WEIM is literally an interface without wires. It simply means that this module was originally designed for wireless and mobile applications that use low-power technology. The actual devices are instantiated from the child nodes of a WEIM node.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^memory-controller@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx1-weim", "fsl,imx27-weim", "fsl,imx50-weim", "fsl,imx51-weim", "fsl,imx6q-weim"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx31-weim", "fsl,imx35-weim"

Item 2

Exact value (const): "fsl,imx27-weim"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sx-weim", "fsl,imx6ul-weim"

Item 2

Exact value (const): "fsl,imx6q-weim"

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

ranges — required here #

true — No constraints added by this property rule.

fsl,weim-cs-gpr — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the system General Purpose Register controller that contains WEIM CS GPR register, e.g. IOMUXC_GPR1 on i.MX6Q. IOMUXC_GPR1[11:0] should be set up as one of the following 4 possible values depending on the CS space configuration.

IOMUXC_GPR1[11:0]    CS0    CS1    CS2    CS3
---------------------------------------------
        05          128M     0M     0M     0M
        033          64M    64M     0M     0M
        0113         64M    32M    32M     0M
        01111        32M    32M    32M    32M

In case that the property is absent, the reset value or what bootloader sets up in IOMUXC_GPR1[11:0] will be used.

fsl,burst-clk-enable — not listed as required here #

Value type (type): "boolean"

The presence of this property indicates that the weim bus should operate in Burst Clock Mode.

fsl,continuous-burst-clk — not listed as required here #

Value type (type): "boolean"

Make Burst Clock to output continuous clock. Without this option Burst Clock will output clock only when necessary.

Properties matching a name pattern (patternProperties) #

^.*@[0-7],[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Devices attached to chip selects are represented as subnodes.

Shared schema rule ($ref): fsl,imx-weim-peripherals.yaml

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "fsl,weim-cs-timing"

Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells", "ranges"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx50-weim", "fsl,imx6q-weim"

When the condition matches (then) #

Properties and child nodes (properties)

fsl,weim-cs-gpr — not listed as required here

false — Not permitted by this property rule.

fsl,burst-clk-enable — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

This rule must not match (not)

Required in this object (required): "fsl,burst-clk-enable"

When the condition matches (then) #

Properties and child nodes (properties)

fsl,continuous-burst-clk — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "fsl,imx1-weim"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^.*@[0-7],[0-9a-f]+$ — name matches this regular expression

Properties and child nodes (properties)

fsl,weim-cs-timing — not listed as required here

Array item rules (items)

Item 1

CSxU

Item 2

CSxL

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx27-weim", "fsl,imx31-weim", "fsl,imx35-weim"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^.*@[0-7],[0-9a-f]+$ — name matches this regular expression

Properties and child nodes (properties)

fsl,weim-cs-timing — not listed as required here

Array item rules (items)

Item 1

CSCRxU

Item 2

CSCRxL

Item 3

CSCRxA

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx50-weim", "fsl,imx51-weim", "fsl,imx6q-weim", "fsl,imx6sx-weim", "fsl,imx6ul-weim"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^.*@[0-7],[0-9a-f]+$ — name matches this regular expression

Properties and child nodes (properties)

fsl,weim-cs-timing — not listed as required here

Array item rules (items)

Item 1

CSxGCR1

Item 2

CSxGCR2

Item 3

CSxRCR1

Item 4

CSxRCR2

Item 5

CSxWCR1

Item 6

CSxWCR2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@21b8000 {
    compatible = "fsl,imx6q-weim";
    reg = <0x021b8000 0x4000>;
    clocks = <&clks 196>;
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0 0x08000000 0x08000000>;
    fsl,weim-cs-gpr = <&gpr>;

    flash@0,0 {
        compatible = "cfi-flash";
        reg = <0 0 0x02000000>;
        #address-cells = <1>;
        #size-cells = <1>;
        bank-width = <2>;
        fsl,weim-cs-timing = <0x00620081 0x00000001 0x1c022000
                              0x0000c000 0x1404a38e 0x00000000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

i.MX8M DDR Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/imx8m-ddrc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peng Fan <peng.fan@nxp.com>"

The DDRC block is integrated in i.MX8M for interfacing with DDR based memories. It supports switching between different frequencies at runtime but during this process RAM itself becomes briefly inaccessible so actual frequency switching is implemented by TF-A code which runs from a SRAM area. The Linux driver for the DDRC doesn't even map registers (they're included for the sake of "describing hardware"), it mostly just exposes firmware capabilities through standard Linux mechanism like devfreq and OPP tables.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,imx8mn-ddrc", "fsl,imx8mm-ddrc", "fsl,imx8mq-ddrc"

Item 2

Exact value (const): "fsl,imx8m-ddrc"

reg — required here #

Maximum number of items (maxItems): 1

Base address and size of DDRC CTL area. This is not currently mapped by the imx8m-ddrc driver.

clocks — required here #

Maximum number of items (maxItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "pll"

Item 3

Exact value (const): "alt"

Item 4

Exact value (const): "apb"

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

opp-table — not listed as required here #

Value type (type): "object"

Required in this object (required): "reg", "compatible", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx8mm-clock.h>
ddrc: memory-controller@3d400000 {
    compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
    reg = <0x3d400000 0x400000>;
    clock-names = "core", "pll", "alt", "apb";
    clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
             <&clk IMX8MM_DRAM_PLL>,
             <&clk IMX8MM_CLK_DRAM_ALT>,
             <&clk IMX8MM_CLK_DRAM_APB>;
    operating-points-v2 = <&ddrc_opp_table>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Freescale Multi Mode DDR controller (MMDC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/mmdc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx6q-mmdc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6qp-mmdc", "fsl,imx6sl-mmdc", "fsl,imx6sll-mmdc", "fsl,imx6sx-mmdc", "fsl,imx6ul-mmdc", "fsl,imx7ulp-mmdc"

Item 2

Exact value (const): "fsl,imx6q-mmdc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6qdl-clock.h>

memory-controller@21b0000 {
    compatible = "fsl,imx6q-mmdc";
    reg = <0x021b0000 0x4000>;
    clocks = <&clks IMX6QDL_CLK_MMDC_P0_IPG>;
};

memory-controller@21b4000 {
    compatible = "fsl,imx6q-mmdc";
    reg = <0x021b4000 0x4000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ARM PL172/PL175/PL176 MultiPort Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/arm,pl172.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "arm,pl172", "arm,pl175", "arm,pl176"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "arm,pl172", "arm,pl175", "arm,pl176"

Item 2

Exact value (const): "arm,primecell"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

ranges — required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mpmcclk"

Item 2

Exact value (const): "apb_pclk"

clock-ranges — not listed as required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^cs[0-9]$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^flash@[0-9],[0-9a-f]+$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): /schemas/mtd/mtd-physmap.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

^(gpio|sram)@[0-9],[0-9a-f]+$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

true

Allowed by this rule.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Exact value (const): 2

#size-cells — not listed as required here

Exact value (const): 1

ranges — not listed as required here

true — No constraints added by this property rule.

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-ranges — not listed as required here

true — No constraints added by this property rule.

mpmc,cs — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Chip select number. Indicates to the pl0172 driver which chipselect is used for accessing the memory.

mpmc,memory-width — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 8, 16, 32

Width of the chip select memory. Must be equal to either 8, 16 or 32.

mpmc,async-page-mode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable asynchronous page mode.

mpmc,cs-active-high — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Set chip select polarity to active high.

mpmc,byte-lane-low — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Set byte lane state to low.

mpmc,extended-wait — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable extended wait.

mpmc,buffer-enable — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable write buffer, option is not supported by PL175 and PL176 controllers.

mpmc,write-protect — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable write protect.

mpmc,read-enable-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay from chip select assertion to read enable (RE signal) in nano seconds.

mpmc,write-enable-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay from chip select assertion to write enable (WE signal) in nano seconds.

mpmc,output-enable-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay from chip select assertion to output enable (OE signal) in nano seconds.

mpmc,write-access-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay from chip select assertion to write access in nano seconds.

mpmc,read-access-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay from chip select assertion to read access in nano seconds.

mpmc,page-mode-read-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay for asynchronous page mode sequential accesses in nano seconds.

mpmc,turn-round-delay — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay between access to memory banks in nano seconds.

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc18xx-ccu.h>

memory-controller@40005000 {
    compatible = "arm,pl172", "arm,primecell";
    reg = <0x40005000 0x1000>;
    clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>;
    clock-names = "mpmcclk", "apb_pclk";
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0 0x1c000000 0x1000000
              1 0 0x1d000000 0x1000000
              2 0 0x1e000000 0x1000000
              3 0 0x1f000000 0x1000000>;

    cs0 {
        #address-cells = <2>;
        #size-cells = <1>;
        ranges;

        mpmc,cs = <0>;
        mpmc,memory-width = <16>;
        mpmc,byte-lane-low;
        mpmc,write-enable-delay = <0>;
        mpmc,output-enable-delay = <0>;
        mpmc,read-enable-delay = <70>;
        mpmc,page-mode-read-delay = <70>;

        flash@0,0 {
            compatible = "sst,sst39vf320", "cfi-flash";
            reg = <0 0 0x400000>;
            bank-width = <2>;
            #address-cells = <1>;
            #size-cells = <1>;
            partition@0 {
                label = "data";
                reg = <0 0x400000>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 12: We need a select here so we don't match all nodes with 'arm,primecell'

Arm PL35x Series Static Memory Controller (SMC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/arm,pl35x-smc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"

The PL35x Static Memory Controller is a bus where you can connect two kinds of memory interfaces, which are NAND and memory mapped interfaces (such as SRAM or NOR) depending on the specific configuration.

The TRM is available here: https://documentation-service.arm.com/static/5e8e2524fd977155116a58aa

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "arm,pl353-smc-r2p1", "arm,pl354"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^memory-controller@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "arm,pl353-smc-r2p1", "arm,pl354"

Item 2

Exact value (const): "arm,primecell"

#address-cells — not listed as required here #

Exact value (const): 2

#size-cells — not listed as required here #

Exact value (const): 1

reg — required here #

Array item rules (items) #

Item 1

Configuration registers for the host and sub-controllers. The three chip select regions are defined in 'ranges'.

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Combined or Memory interface 0 IRQ

Item 2

Memory interface 1 IRQ

Properties matching a name pattern (patternProperties) #

@[0-7],[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

The child device node represents the controller connected to the SMC bus. The controller can be a NAND controller or a pair of any memory mapped controllers such as NOR and SRAM controllers.

Properties and child nodes (properties) #

compatible — required here

Compatible of memory controller.

reg — required here

Array item rules (items)

Item 1

Array item rules (items)

Item 1

Chip-select ID, as in the parent range property.

Minimum value (minimum): 0

Maximum value (maximum): 7

Item 2

Offset of the memory region requested by the device.

Item 3

Length of the memory region requested by the device.

Required in this object (required): "compatible", "reg"

Required in this object (required): "compatible", "reg", "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "arm,pl354"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Exact value (const): "apb_pclk"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

clock for the memory device bus

Item 2

main clock of the SMC

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "memclk"

Item 2

Exact value (const): "apb_pclk"

Examples (examples) #

smcc: memory-controller@e000e000 {
  compatible = "arm,pl353-smc-r2p1", "arm,primecell";
  reg = <0xe000e000 0x0001000>;
  clock-names = "memclk", "apb_pclk";
  clocks = <&clkc 11>, <&clkc 44>;
  ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
            0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
            0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
  #address-cells = <2>;
  #size-cells = <1>;

  nfc0: nand-controller@0,0 {
    compatible = "arm,pl353-nand-r2p1";
    reg = <0 0 0x1000000>;
    #address-cells = <1>;
    #size-cells = <0>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 20: We need a select here so we don't match all nodes with 'arm,primecell'

Line 119: According to TRM, really should be 3 clocks

Memory controller (MEMC) for Broadcom STB

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/brcm,brcmstb-memc-ddr.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Revision > 2.1 controllers

Array item rules (items)

Item 1

Allowed values (enum): "brcm,brcmstb-memc-ddr-rev-b.2.2", "brcm,brcmstb-memc-ddr-rev-b.2.3", "brcm,brcmstb-memc-ddr-rev-b.2.5", "brcm,brcmstb-memc-ddr-rev-b.2.6", "brcm,brcmstb-memc-ddr-rev-b.2.7", "brcm,brcmstb-memc-ddr-rev-b.2.8", "brcm,brcmstb-memc-ddr-rev-b.3.0", "brcm,brcmstb-memc-ddr-rev-b.3.1", "brcm,brcmstb-memc-ddr-rev-c.1.0", "brcm,brcmstb-memc-ddr-rev-c.1.1", "brcm,brcmstb-memc-ddr-rev-c.1.2", "brcm,brcmstb-memc-ddr-rev-c.1.3", "brcm,brcmstb-memc-ddr-rev-c.1.4"

Item 2

Exact value (const): "brcm,brcmstb-memc-ddr-rev-b.2.1"

Item 3

Exact value (const): "brcm,brcmstb-memc-ddr"

Rule 2

Revision 2.1 controllers

Array item rules (items)

Item 1

Exact value (const): "brcm,brcmstb-memc-ddr-rev-b.2.1"

Item 2

Exact value (const): "brcm,brcmstb-memc-ddr"

Rule 3

Revision 2.0 controllers

Array item rules (items)

Item 1

Exact value (const): "brcm,brcmstb-memc-ddr-rev-b.2.0"

Item 2

Exact value (const): "brcm,brcmstb-memc-ddr"

Rule 4

Revision 1.x controllers

Array item rules (items)

Item 1

Exact value (const): "brcm,brcmstb-memc-ddr-rev-b.1.x"

Item 2

Exact value (const): "brcm,brcmstb-memc-ddr"

Rule 5

Revision 0.x controllers

Array item rules (items)

Item 1

Exact value (const): "brcm,brcmstb-memc-ddr-rev-a.0.0"

Item 2

Exact value (const): "brcm,brcmstb-memc-ddr"

reg — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

DDR PHY frequency in Hz

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@9902000 {
    compatible = "brcm,brcmstb-memc-ddr-rev-c.1.1",
                 "brcm,brcmstb-memc-ddr-rev-b.2.1",
                 "brcm,brcmstb-memc-ddr";
    reg = <0x9902000 0x600>;
    clock-frequency = <2133000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

DDR PHY Front End (DPFE) for Broadcom STB

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/brcm,dpfe-cpu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Markus Mayer <mmayer@broadcom.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm7271-dpfe-cpu", "brcm,bcm7268-dpfe-cpu"

Item 2

Exact value (const): "brcm,dpfe-cpu"

reg — required here #

Array item rules (items) #

Item 1

DCPU register space

Item 2

DCPU data memory space

Item 3

DCPU instruction memory space

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dpfe-cpu"

Item 2

Exact value (const): "dpfe-dmem"

Item 3

Exact value (const): "dpfe-imem"

Required in this object (required): "compatible", "reg", "reg-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

dpfe-cpu@f1132000 {
    compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu";
    reg = <0xf1132000 0x180>,
          <0xf1134000 0x1000>,
          <0xf1138000 0x4000>;
    reg-names = "dpfe-cpu", "dpfe-dmem", "dpfe-imem";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Calxeda DDR memory controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/calxeda-ddr-ctrlr.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Calxeda DDR memory controller is initialised and programmed by the firmware, but an OS might want to read its registers for error reporting purposes and to learn about the DRAM topology.

Maintainers (maintainers): "Andre Przywara <andre.przywara@arm.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "calxeda,hb-ddr-ctrl", "calxeda,ecx-2000-ddr-ctrl"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@fff00000 {
    compatible = "calxeda,hb-ddr-ctrl";
    reg = <0xfff00000 0x1000>;
    interrupts = <0 91 4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Canaan K210 SRAM memory controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Canaan K210 SRAM memory controller is responsible for the system's 8 MiB of SRAM. The controller is initialised by the bootloader, which configures its clocks, before OS bringup.

Maintainers (maintainers): "Conor Dooley <conor@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "canaan,k210-sram"

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

sram0 clock

Item 2

sram1 clock

Item 3

aisram clock

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "sram0"

Item 2

Exact value (const): "sram1"

Item 3

Exact value (const): "aisram"

Required in this object (required): "compatible", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/k210-clk.h>
memory-controller {
    compatible = "canaan,k210-sram";
    clocks = <&sysclk K210_CLK_SRAM0>,
             <&sysclk K210_CLK_SRAM1>,
             <&sysclk K210_CLK_AI>;
    clock-names = "sram0", "sram1", "aisram";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Exynos SoC SROM Controller driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/exynos-srom.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

The SROM controller can be used to attach external peripherals. In this case extra properties, describing the bus behind it, should be specified.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "samsung,exynos4210-srom"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 2

#size-cells — not listed as required here #

Exact value (const): 1

ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Reflects the memory layout with four integer values per bank. Format: <bank-number> 0 <parent address of bank> <size> Up to four banks are supported.

Properties matching a name pattern (patternProperties) #

^.*@[0-3],[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): mc-peripheral-props.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Properties and child nodes (properties) #

reg-io-width — not listed as required here

Allowed values (enum): 1, 2

Data width in bytes (1 or 2). If omitted, default of 1 is used.

Required in this object (required): "samsung,srom-timing"

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

// Example: basic definition, no banks are configured
memory-controller@12560000 {
    compatible = "samsung,exynos4210-srom";
    reg = <0x12560000 0x14>;
};
// Example: SROMc with SMSC911x ethernet chip on bank 3
memory-controller@12570000 {
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0 0x04000000 0x20000   // Bank0
              1 0 0x05000000 0x20000   // Bank1
              2 0 0x06000000 0x20000   // Bank2
              3 0 0x07000000 0x20000>; // Bank3

    compatible = "samsung,exynos4210-srom";
    reg = <0x12570000 0x14>;

    ethernet@3,0 {
        compatible = "smsc,lan9115";
        reg = <3 0 0x10000>;     // Bank 3, offset = 0
        phy-mode = "mii";
        interrupt-parent = <&gpx0>;
        interrupts = <5 8>;
        reg-io-width = <2>;
        smsc,irq-push-pull;
        smsc,force-internal-phy;

        samsung,srom-page-mode;
        samsung,srom-timing = <9 12 1 9 1 1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Ingenic SoCs NAND / External Memory Controller (NEMC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ingenic,nemc-peripherals.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

Properties and child nodes (properties) #

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 255

ingenic,nemc-bus-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 8, 16

Specifies the bus width in bits.

ingenic,nemc-tAS — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Address setup time in nanoseconds.

ingenic,nemc-tAH — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Address hold time in nanoseconds.

ingenic,nemc-tBP — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Burst pitch time in nanoseconds.

ingenic,nemc-tAW — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Address wait time in nanoseconds.

ingenic,nemc-tSTRV — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Static memory recovery time in nanoseconds.

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Ingenic SoCs NAND / External Memory Controller (NEMC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ingenic,nemc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^memory-controller@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ingenic,jz4740-nemc", "ingenic,jz4780-nemc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ingenic,jz4725b-nemc"

Item 2

Exact value (const): "ingenic,jz4740-nemc"

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

ranges — required here #

true — No constraints added by this property rule.

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

.*@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): mc-peripheral-props.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
#include <dt-bindings/gpio/gpio.h>
nemc: memory-controller@13410000 {
  compatible = "ingenic,jz4780-nemc";
  reg = <0x13410000 0x10000>;
  #address-cells = <2>;
  #size-cells = <1>;
  ranges = <1 0 0x1b000000 0x1000000>,
     <2 0 0x1a000000 0x1000000>,
     <3 0 0x19000000 0x1000000>,
     <4 0 0x18000000 0x1000000>,
     <5 0 0x17000000 0x1000000>,
     <6 0 0x16000000 0x1000000>;

  clocks = <&cgu JZ4780_CLK_NEMC>;

  ethernet@6 {
    compatible = "davicom,dm9000";
    davicom,no-eeprom;

    pinctrl-names = "default";
    pinctrl-0 = <&pins_nemc_cs6>;

    reg = <6 0 1>, /* addr */
          <6 2 1>; /* data */

    ingenic,nemc-tAS = <15>;
    ingenic,nemc-tAH = <10>;
    ingenic,nemc-tBP = <20>;
    ingenic,nemc-tAW = <50>;
    ingenic,nemc-tSTRV = <100>;

    reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>;
    vcc-supply = <&eth0_power>;

    interrupt-parent = <&gpe>;
    interrupts = <19 4>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Intel IXP4xx Expansion Bus Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The IXP4xx expansion bus controller handles access to devices on the memory-mapped expansion bus on the Intel IXP4xx family of system on chips, including IXP42x, IXP43x, IXP45x and IXP46x.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^bus@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "intel,ixp42x-expansion-bus-controller", "intel,ixp43x-expansion-bus-controller", "intel,ixp45x-expansion-bus-controller", "intel,ixp46x-expansion-bus-controller"

Item 2

Exact value (const): "syscon"

reg — required here #

Control registers for the expansion bus, these are not inside the memory range handled by the expansion bus.

Maximum number of items (maxItems): 1

native-endian — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

The IXP4xx has a peculiar MMIO access scheme, as it changes the access pattern for words (swizzling) on the bus depending on whether the SoC is running in big-endian or little-endian mode. Thus the registers must always be accessed using native endianness.

#address-cells — required here #

The first cell is the chip select number. The second cell is the address offset within the bank.

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

ranges — required here #

true — No constraints added by this property rule.

dma-ranges — required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^.*@[0-7],[0-9a-f]+$ — name matches this regular expression #

Devices attached to chip selects are represented as subnodes.

Value type (type): "object"

Shared schema rule ($ref): /schemas/memory-controllers/intel,ixp4xx-expansion-peripheral-props.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "compatible", "reg", "native-endian", "#address-cells", "#size-cells", "ranges", "dma-ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
bus@50000000 {
    compatible = "intel,ixp42x-expansion-bus-controller", "syscon";
    reg = <0xc4000000 0x28>;
    native-endian;
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0x0 0x50000000 0x01000000>,
             <1 0x0 0x51000000 0x01000000>;
    dma-ranges = <0 0x0 0x50000000 0x01000000>,
                 <1 0x0 0x51000000 0x01000000>;
    flash@0,0 {
        compatible = "intel,ixp4xx-flash", "cfi-flash";
        bank-width = <2>;
        reg = <0 0x00000000 0x1000000>;
        intel,ixp4xx-eb-t3 = <3>;
        intel,ixp4xx-eb-cycle-type = <0>;
        intel,ixp4xx-eb-byte-access-on-halfword = <1>;
        intel,ixp4xx-eb-write-enable = <1>;
        intel,ixp4xx-eb-byte-access = <0>;
    };
    serial@1,0 {
        compatible = "exar,xr16l2551", "ns8250";
        reg = <1 0x00000000 0x10>;
        interrupt-parent = <&gpio0>;
        interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
        clock-frequency = <1843200>;
        intel,ixp4xx-eb-t3 = <3>;
        intel,ixp4xx-eb-cycle-type = <1>;
        intel,ixp4xx-eb-write-enable = <1>;
        intel,ixp4xx-eb-byte-access = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Peripheral properties for Intel IXP4xx Expansion Bus

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/intel,ixp4xx-expansion-peripheral-props.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The IXP4xx expansion bus controller handles access to devices on the memory-mapped expansion bus on the Intel IXP4xx family of system on chips, including IXP42x, IXP43x, IXP45x and IXP46x.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

intel,ixp4xx-eb-t1 — not listed as required here #

Address timing, extend address phase with n cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 3

intel,ixp4xx-eb-t2 — not listed as required here #

Setup chip select timing, extend setup phase with n cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 3

intel,ixp4xx-eb-t3 — not listed as required here #

Strobe timing, extend strobe phase with n cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

intel,ixp4xx-eb-t4 — not listed as required here #

Hold timing, extend hold phase with n cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 3

intel,ixp4xx-eb-t5 — not listed as required here #

Recovery timing, extend recovery phase with n cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 15

intel,ixp4xx-eb-cycle-type — not listed as required here #

The type of cycles to use on the expansion bus for this chip select. 0 = Intel cycles, 1 = Motorola cycles, 2 = HPI cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

intel,ixp4xx-eb-byte-access-on-halfword — not listed as required here #

Allow byte read access on half word devices.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

intel,ixp4xx-eb-hpi-hrdy-pol-high — not listed as required here #

Set HPI HRDY polarity to active high when using HPI.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

intel,ixp4xx-eb-mux-address-and-data — not listed as required here #

Multiplex address and data on the data bus.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

intel,ixp4xx-eb-ahb-split-transfers — not listed as required here #

Enable AHB split transfers.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

intel,ixp4xx-eb-write-enable — not listed as required here #

Enable write cycles.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

intel,ixp4xx-eb-byte-access — not listed as required here #

Expansion bus uses only 8 bits. The default is to use 16 bits.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell MVEBU SDRAM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jan Luebbe <jlu@pengutronix.de>", "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "marvell,armada-xp-sdram-controller"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@1400 {
    compatible = "marvell,armada-xp-sdram-controller";
    reg = <0x1400 0x500>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Peripheral-specific properties for a Memory Controller bus.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/mc-peripheral-props.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Many Memory Controllers need to add properties to peripheral devices. They could be common properties like reg or they could be controller specific like delay in clock or data lines, etc. These properties need to be defined in the peripheral node because they are per-peripheral and there can be multiple peripherals attached to a controller. All those properties are listed here. The controller specific properties should go in their own separate schema that should be referenced from here.

Maintainers (maintainers): "Marek Vasut <marex@denx.de>"

Properties and child nodes (properties) #

reg — required here #

Bank number, base address and size of the device.

bank-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bank width of the device, in bytes.

Allowed values (enum): 1, 2, 4

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): st,stm32-fmc2-ebi-props.yaml#

Rule 2 #

Shared schema rule ($ref): ingenic,nemc-peripherals.yaml#

Rule 3 #

Shared schema rule ($ref): intel,ixp4xx-expansion-peripheral-props.yaml#

Rule 4 #

Shared schema rule ($ref): qcom,ebi2-peripheral-props.yaml#

Rule 5 #

Shared schema rule ($ref): samsung,exynos4210-srom-peripheral-props.yaml#

Rule 6 #

Shared schema rule ($ref): ti,gpmc-child.yaml#

Rule 7 #

Shared schema rule ($ref): fsl/fsl,imx-weim-peripherals.yaml

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 34: The controller specific properties go here.

MT7621 SDRAM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/mediatek,mt7621-memc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "mediatek,mt7621-memc"

Item 2

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@5000 {
    compatible = "mediatek,mt7621-memc", "syscon";
    reg = <0x5000 0x1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

SMI (Smart Multimedia Interface) Common

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/mediatek,smi-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yong Wu <yong.wu@mediatek.com>"

The hardware block diagram please check bindings/iommu/mediatek,iommu.yaml

MediaTek SMI have two generations of HW architecture, here is the list which generation the SoCs use: generation 1: mt2701 and mt7623. generation 2: mt2712, mt6779, mt8167, mt8173, mt8183, mt8186, mt8188, mt8192 and mt8195.

There's slight differences between the two SMI, for generation 2, the register which control the iommu port is at each larb's register base. But for generation 1, the register is at smi ao base(smi always on register base). Besides that, the smi async clock should be prepared and enabled for SMI generation 1 to transform the smi clock into emi clock domain, but that is not needed for SMI generation 2.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-smi-common", "mediatek,mt2712-smi-common", "mediatek,mt6779-smi-common", "mediatek,mt6795-smi-common", "mediatek,mt6893-smi-common", "mediatek,mt8167-smi-common", "mediatek,mt8173-smi-common", "mediatek,mt8183-smi-common", "mediatek,mt8186-smi-common", "mediatek,mt8188-smi-common-vdo", "mediatek,mt8188-smi-common-vpp", "mediatek,mt8192-smi-common", "mediatek,mt8195-smi-common-vdo", "mediatek,mt8195-smi-common-vpp", "mediatek,mt8195-smi-sub-common", "mediatek,mt8365-smi-common"

Rule 2

for mt7623

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt7623-smi-common"

Item 2

Exact value (const): "mediatek,mt2701-smi-common"

reg — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

apb and smi are mandatory. the async is only for generation 1 smi HW. gals(global async local sync) also is optional, see below.

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

apb is Advanced Peripheral Bus clock, It's the clock for setting the register.

Item 2

smi is the clock for transfer data and command.

Item 3

Either asynchronous clock to help transform the smi clock into the emi clock domain on Gen1 h/w, or the path0 clock of gals.

Item 4

gals1 is the path1 clock of gals.

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

mediatek,smi — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

a phandle to the smi-common node above. Only for sub-common.

Required in this object (required): "compatible", "reg", "power-domains", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt2701-smi-common"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Item 3

Exact value (const): "async"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt8195-smi-sub-common"

When the condition matches (then) #

Required in this object (required): "mediatek,smi"

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Item 3

Exact value (const): "gals0"

When the condition does not match (else) #

Properties and child nodes (properties)

mediatek,smi — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "mediatek,mt6779-smi-common", "mediatek,mt8183-smi-common", "mediatek,mt8186-smi-common", "mediatek,mt8192-smi-common", "mediatek,mt8195-smi-common-vdo", "mediatek,mt8195-smi-common-vpp", "mediatek,mt8365-smi-common"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Item 3

Exact value (const): "gals0"

Item 4

Exact value (const): "gals1"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "mediatek,mt2712-smi-common", "mediatek,mt6795-smi-common", "mediatek,mt8167-smi-common", "mediatek,mt8173-smi-common"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/power/mt8173-power.h>

smi_common: smi@14022000 {
        compatible = "mediatek,mt8173-smi-common";
        reg = <0x14022000 0x1000>;
        power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
        clocks = <&mmsys CLK_MM_SMI_COMMON>,
                 <&mmsys CLK_MM_SMI_COMMON>;
        clock-names = "apb", "smi";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (c) 2020 MediaTek Inc.

Line 89: only for gen1 HW

Line 106: only for sub common

Line 128: for gen2 HW that have gals

Line 152: for gen2 HW that don't have gals

SMI (Smart Multimedia Interface) Local Arbiter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/mediatek,smi-larb.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yong Wu <yong.wu@mediatek.com>"

The hardware block diagram please check bindings/iommu/mediatek,iommu.yaml

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-smi-larb", "mediatek,mt2712-smi-larb", "mediatek,mt6779-smi-larb", "mediatek,mt6795-smi-larb", "mediatek,mt6893-smi-larb", "mediatek,mt8167-smi-larb", "mediatek,mt8173-smi-larb", "mediatek,mt8183-smi-larb", "mediatek,mt8186-smi-larb", "mediatek,mt8188-smi-larb", "mediatek,mt8192-smi-larb", "mediatek,mt8195-smi-larb"

Rule 2

for mt7623

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt7623-smi-larb"

Item 2

Exact value (const): "mediatek,mt2701-smi-larb"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt8365-smi-larb"

Item 2

Exact value (const): "mediatek,mt8186-smi-larb"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

apb and smi are mandatory. gals(global async local sync) is optional.

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

apb is Advanced Peripheral Bus clock, It's the clock for setting the register.

Item 2

smi is the clock for transfer data and command.

Item 3

the clock for gals.

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

power-domains — required here #

Maximum number of items (maxItems): 1

mediatek,smi — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

a phandle to the smi_common node.

mediatek,larb-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

the hardware id of this larb. It's only required when this hardware id is not consecutive from its M4U point of view.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "mediatek,mt8183-smi-larb", "mediatek,mt8186-smi-larb", "mediatek,mt8188-smi-larb", "mediatek,mt8195-smi-larb"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Item 3

Exact value (const): "gals"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt2701-smi-larb", "mediatek,mt2712-smi-larb", "mediatek,mt6779-smi-larb", "mediatek,mt8186-smi-larb", "mediatek,mt8188-smi-larb", "mediatek,mt8192-smi-larb", "mediatek,mt8195-smi-larb"

When the condition matches (then) #

Required in this object (required): "mediatek,larb-id"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/power/mt8173-power.h>

larb1: larb@16010000 {
  compatible = "mediatek,mt8173-smi-larb";
  reg = <0x16010000 0x1000>;
  mediatek,smi = <&smi_common>;
  power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>;
  clocks = <&vdecsys CLK_VDEC_CKEN>,
           <&vdecsys CLK_VDEC_LARB_CKEN>;
  clock-names = "apb", "smi";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (c) 2020 MediaTek Inc.

Line 81: HW has gals

Nuvoton NPCM Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nuvoton,npcm-memory-controller.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marvin Lin <kflin@nuvoton.com>", "Stanley Chu <yschu@nuvoton.com>"

The Nuvoton BMC SoC supports DDR4 memory with or without ECC (error correction check).

The memory controller supports single bit error correction, double bit error detection (in-line ECC in which a section (1/8th) of the memory device used to store data is used for ECC storage).

Note, the bootloader must configure ECC mode for the memory controller.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,npcm750-memory-controller", "nuvoton,npcm845-memory-controller"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

mc: memory-controller@f0824000 {
    compatible = "nuvoton,npcm750-memory-controller";
    reg = <0xf0824000 0x1000>;
    interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra124 SoC External Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra124-emc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

The EMC interfaces with the off-chip SDRAM to service the request stream sent from the memory controller.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra124-emc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

external memory clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "emc"

#interconnect-cells — required here #

Exact value (const): 0

nvidia,memory-controller — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle of the memory controller node

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Phandle of the SoC "core" power domain.

operating-points-v2 — required here #

Should contain freqs and voltages and opp-supported-hw property, which is a bitfield indicating SoC speedo ID mask.

Properties matching a name pattern (patternProperties) #

^emc-timings-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

nvidia,ram-code — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the RAM_CODE field in the PMC_STRAPPING_OPT_A register that this timing set is used for

Properties matching a name pattern (patternProperties) #

^timing-[0-9]+$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

clock-frequency — required here

external memory clock rate in Hz

Minimum value (minimum): 1000000

Maximum value (maximum): 1000000000

nvidia,emc-auto-cal-config — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_AUTO_CAL_CONFIG register for this set of timings

nvidia,emc-auto-cal-config2 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_AUTO_CAL_CONFIG2 register for this set of timings

nvidia,emc-auto-cal-config3 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_AUTO_CAL_CONFIG3 register for this set of timings

nvidia,emc-auto-cal-interval — required here

pad calibration interval in microseconds

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 2097151

nvidia,emc-bgbias-ctl0 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_BGBIAS_CTL0 register for this set of timings

nvidia,emc-cfg — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_CFG register for this set of timings

nvidia,emc-cfg-2 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_CFG_2 register for this set of timings

nvidia,emc-ctt-term-ctrl — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_CTT_TERM_CTRL register for this set of timings

nvidia,emc-mode-1 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_MRW register for this set of timings

nvidia,emc-mode-2 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_MRW2 register for this set of timings

nvidia,emc-mode-4 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_MRW4 register for this set of timings

nvidia,emc-mode-reset — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

reset value of the EMC_MRS register for this set of timings

nvidia,emc-mrs-wait-cnt — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMR_MRS_WAIT_CNT register for this set of timings

nvidia,emc-sel-dpd-ctrl — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_SEL_DPD_CTRL register for this set of timings

nvidia,emc-xm2dqspadctrl2 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_XM2DQSPADCTRL2 register for this set of timings

nvidia,emc-zcal-cnt-long — required here

number of EMC clocks to wait before issuing any commands after clock change

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1023

nvidia,emc-zcal-interval — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

value of the EMC_ZCAL_INTERVAL register for this set of timings

nvidia,emc-configuration — required here

EMC timing characterization data. These are the registers (see section "15.6.2 EMC Registers" in the TRM) whose values need to be specified, according to the board documentation.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items)

Item 1

EMC_RC

Item 2

EMC_RFC

Item 3

EMC_RFC_SLR

Item 4

EMC_RAS

Item 5

EMC_RP

Item 6

EMC_R2W

Item 7

EMC_W2R

Item 8

EMC_R2P

Item 9

EMC_W2P

Item 10

EMC_RD_RCD

Item 11

EMC_WR_RCD

Item 12

EMC_RRD

Item 13

EMC_REXT

Item 14

EMC_WEXT

Item 15

EMC_WDV

Item 16

EMC_WDV_MASK

Item 17

EMC_QUSE

Item 18

EMC_QUSE_WIDTH

Item 19

EMC_IBDLY

Item 20

EMC_EINPUT

Item 21

EMC_EINPUT_DURATION

Item 22

EMC_PUTERM_EXTRA

Item 23

EMC_PUTERM_WIDTH

Item 24

EMC_PUTERM_ADJ

Item 25

EMC_CDB_CNTL_1

Item 26

EMC_CDB_CNTL_2

Item 27

EMC_CDB_CNTL_3

Item 28

EMC_QRST

Item 29

EMC_QSAFE

Item 30

EMC_RDV

Item 31

EMC_RDV_MASK

Item 32

EMC_REFRESH

Item 33

EMC_BURST_REFRESH_NUM

Item 34

EMC_PRE_REFRESH_REQ_CNT

Item 35

EMC_PDEX2WR

Item 36

EMC_PDEX2RD

Item 37

EMC_PCHG2PDEN

Item 38

EMC_ACT2PDEN

Item 39

EMC_AR2PDEN

Item 40

EMC_RW2PDEN

Item 41

EMC_TXSR

Item 42

EMC_TXSRDLL

Item 43

EMC_TCKE

Item 44

EMC_TCKESR

Item 45

EMC_TPD

Item 46

EMC_TFAW

Item 47

EMC_TRPAB

Item 48

EMC_TCLKSTABLE

Item 49

EMC_TCLKSTOP

Item 50

EMC_TREFBW

Item 51

EMC_FBIO_CFG6

Item 52

EMC_ODT_WRITE

Item 53

EMC_ODT_READ

Item 54

EMC_FBIO_CFG5

Item 55

EMC_CFG_DIG_DLL

Item 56

EMC_CFG_DIG_DLL_PERIOD

Item 57

EMC_DLL_XFORM_DQS0

Item 58

EMC_DLL_XFORM_DQS1

Item 59

EMC_DLL_XFORM_DQS2

Item 60

EMC_DLL_XFORM_DQS3

Item 61

EMC_DLL_XFORM_DQS4

Item 62

EMC_DLL_XFORM_DQS5

Item 63

EMC_DLL_XFORM_DQS6

Item 64

EMC_DLL_XFORM_DQS7

Item 65

EMC_DLL_XFORM_DQS8

Item 66

EMC_DLL_XFORM_DQS9

Item 67

EMC_DLL_XFORM_DQS10

Item 68

EMC_DLL_XFORM_DQS11

Item 69

EMC_DLL_XFORM_DQS12

Item 70

EMC_DLL_XFORM_DQS13

Item 71

EMC_DLL_XFORM_DQS14

Item 72

EMC_DLL_XFORM_DQS15

Item 73

EMC_DLL_XFORM_QUSE0

Item 74

EMC_DLL_XFORM_QUSE1

Item 75

EMC_DLL_XFORM_QUSE2

Item 76

EMC_DLL_XFORM_QUSE3

Item 77

EMC_DLL_XFORM_QUSE4

Item 78

EMC_DLL_XFORM_QUSE5

Item 79

EMC_DLL_XFORM_QUSE6

Item 80

EMC_DLL_XFORM_QUSE7

Item 81

EMC_DLL_XFORM_ADDR0

Item 82

EMC_DLL_XFORM_ADDR1

Item 83

EMC_DLL_XFORM_ADDR2

Item 84

EMC_DLL_XFORM_ADDR3

Item 85

EMC_DLL_XFORM_ADDR4

Item 86

EMC_DLL_XFORM_ADDR5

Item 87

EMC_DLL_XFORM_QUSE8

Item 88

EMC_DLL_XFORM_QUSE9

Item 89

EMC_DLL_XFORM_QUSE10

Item 90

EMC_DLL_XFORM_QUSE11

Item 91

EMC_DLL_XFORM_QUSE12

Item 92

EMC_DLL_XFORM_QUSE13

Item 93

EMC_DLL_XFORM_QUSE14

Item 94

EMC_DLL_XFORM_QUSE15

Item 95

EMC_DLI_TRIM_TXDQS0

Item 96

EMC_DLI_TRIM_TXDQS1

Item 97

EMC_DLI_TRIM_TXDQS2

Item 98

EMC_DLI_TRIM_TXDQS3

Item 99

EMC_DLI_TRIM_TXDQS4

Item 100

EMC_DLI_TRIM_TXDQS5

Item 101

EMC_DLI_TRIM_TXDQS6

Item 102

EMC_DLI_TRIM_TXDQS7

Item 103

EMC_DLI_TRIM_TXDQS8

Item 104

EMC_DLI_TRIM_TXDQS9

Item 105

EMC_DLI_TRIM_TXDQS10

Item 106

EMC_DLI_TRIM_TXDQS11

Item 107

EMC_DLI_TRIM_TXDQS12

Item 108

EMC_DLI_TRIM_TXDQS13

Item 109

EMC_DLI_TRIM_TXDQS14

Item 110

EMC_DLI_TRIM_TXDQS15

Item 111

EMC_DLL_XFORM_DQ0

Item 112

EMC_DLL_XFORM_DQ1

Item 113

EMC_DLL_XFORM_DQ2

Item 114

EMC_DLL_XFORM_DQ3

Item 115

EMC_DLL_XFORM_DQ4

Item 116

EMC_DLL_XFORM_DQ5

Item 117

EMC_DLL_XFORM_DQ6

Item 118

EMC_DLL_XFORM_DQ7

Item 119

EMC_XM2CMDPADCTRL

Item 120

EMC_XM2CMDPADCTRL4

Item 121

EMC_XM2CMDPADCTRL5

Item 122

EMC_XM2DQPADCTRL2

Item 123

EMC_XM2DQPADCTRL3

Item 124

EMC_XM2CLKPADCTRL

Item 125

EMC_XM2CLKPADCTRL2

Item 126

EMC_XM2COMPPADCTRL

Item 127

EMC_XM2VTTGENPADCTRL

Item 128

EMC_XM2VTTGENPADCTRL2

Item 129

EMC_XM2VTTGENPADCTRL3

Item 130

EMC_XM2DQSPADCTRL3

Item 131

EMC_XM2DQSPADCTRL4

Item 132

EMC_XM2DQSPADCTRL5

Item 133

EMC_XM2DQSPADCTRL6

Item 134

EMC_DSR_VTTGEN_DRV

Item 135

EMC_TXDSRVTTGEN

Item 136

EMC_FBIO_SPARE

Item 137

EMC_ZCAL_WAIT_CNT

Item 138

EMC_MRS_WAIT_CNT2

Item 139

EMC_CTT

Item 140

EMC_CTT_DURATION

Item 141

EMC_CFG_PIPE

Item 142

EMC_DYN_SELF_REF_CONTROL

Item 143

EMC_QPOP

Required in this object (required): "clock-frequency", "nvidia,emc-auto-cal-config", "nvidia,emc-auto-cal-config2", "nvidia,emc-auto-cal-config3", "nvidia,emc-auto-cal-interval", "nvidia,emc-bgbias-ctl0", "nvidia,emc-cfg", "nvidia,emc-cfg-2", "nvidia,emc-ctt-term-ctrl", "nvidia,emc-mode-1", "nvidia,emc-mode-2", "nvidia,emc-mode-4", "nvidia,emc-mode-reset", "nvidia,emc-mrs-wait-cnt", "nvidia,emc-sel-dpd-ctrl", "nvidia,emc-xm2dqspadctrl2", "nvidia,emc-zcal-cnt-long", "nvidia,emc-zcal-interval", "nvidia,emc-configuration"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "nvidia,memory-controller", "#interconnect-cells", "operating-points-v2"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra124-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

mc: memory-controller@70019000 {
    compatible = "nvidia,tegra124-mc";
    reg = <0x70019000 0x1000>;
    clocks = <&tegra_car TEGRA124_CLK_MC>;
    clock-names = "mc";

    interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;

    #iommu-cells = <1>;
    #reset-cells = <1>;
    #interconnect-cells = <1>;
};

external-memory-controller@7001b000 {
    compatible = "nvidia,tegra124-emc";
    reg = <0x7001b000 0x1000>;
    clocks = <&car TEGRA124_CLK_EMC>;
    clock-names = "emc";

    nvidia,memory-controller = <&mc>;
    operating-points-v2 = <&dvfs_opp_table>;
    power-domains = <&domain>;

    #interconnect-cells = <0>;

    emc-timings-0 {
        nvidia,ram-code = <3>;

        timing-0 {
            clock-frequency = <12750000>;

            nvidia,emc-auto-cal-config = <0xa1430000>;
            nvidia,emc-auto-cal-config2 = <0x00000000>;
            nvidia,emc-auto-cal-config3 = <0x00000000>;
            nvidia,emc-auto-cal-interval = <0x001fffff>;
            nvidia,emc-bgbias-ctl0 = <0x00000008>;
            nvidia,emc-cfg = <0x73240000>;
            nvidia,emc-cfg-2 = <0x000008c5>;
            nvidia,emc-ctt-term-ctrl = <0x00000802>;
            nvidia,emc-mode-1 = <0x80100003>;
            nvidia,emc-mode-2 = <0x80200008>;
            nvidia,emc-mode-4 = <0x00000000>;
            nvidia,emc-mode-reset = <0x80001221>;
            nvidia,emc-mrs-wait-cnt = <0x000e000e>;
            nvidia,emc-sel-dpd-ctrl = <0x00040128>;
            nvidia,emc-xm2dqspadctrl2 = <0x0130b118>;
            nvidia,emc-zcal-cnt-long = <0x00000042>;
            nvidia,emc-zcal-interval = <0x00000000>;

            nvidia,emc-configuration = <
                0x00000000 /* EMC_RC */
                0x00000003 /* EMC_RFC */
                0x00000000 /* EMC_RFC_SLR */
                0x00000000 /* EMC_RAS */
                0x00000000 /* EMC_RP */
                0x00000004 /* EMC_R2W */
                0x0000000a /* EMC_W2R */
                0x00000003 /* EMC_R2P */
                0x0000000b /* EMC_W2P */
                0x00000000 /* EMC_RD_RCD */
                0x00000000 /* EMC_WR_RCD */
                0x00000003 /* EMC_RRD */
                0x00000003 /* EMC_REXT */
                0x00000000 /* EMC_WEXT */
                0x00000006 /* EMC_WDV */
                0x00000006 /* EMC_WDV_MASK */
                0x00000006 /* EMC_QUSE */
                0x00000002 /* EMC_QUSE_WIDTH */
                0x00000000 /* EMC_IBDLY */
                0x00000005 /* EMC_EINPUT */
                0x00000005 /* EMC_EINPUT_DURATION */
                0x00010000 /* EMC_PUTERM_EXTRA */
                0x00000003 /* EMC_PUTERM_WIDTH */
                0x00000000 /* EMC_PUTERM_ADJ */
                0x00000000 /* EMC_CDB_CNTL_1 */
                0x00000000 /* EMC_CDB_CNTL_2 */
                0x00000000 /* EMC_CDB_CNTL_3 */
                0x00000004 /* EMC_QRST */
                0x0000000c /* EMC_QSAFE */
                0x0000000d /* EMC_RDV */
                0x0000000f /* EMC_RDV_MASK */
                0x00000060 /* EMC_REFRESH */
                0x00000000 /* EMC_BURST_REFRESH_NUM */
                0x00000018 /* EMC_PRE_REFRESH_REQ_CNT */
                0x00000002 /* EMC_PDEX2WR */
                0x00000002 /* EMC_PDEX2RD */
                0x00000001 /* EMC_PCHG2PDEN */
                0x00000000 /* EMC_ACT2PDEN */
                0x00000007 /* EMC_AR2PDEN */
                0x0000000f /* EMC_RW2PDEN */
                0x00000005 /* EMC_TXSR */
                0x00000005 /* EMC_TXSRDLL */
                0x00000004 /* EMC_TCKE */
                0x00000005 /* EMC_TCKESR */
                0x00000004 /* EMC_TPD */
                0x00000000 /* EMC_TFAW */
                0x00000000 /* EMC_TRPAB */
                0x00000005 /* EMC_TCLKSTABLE */
                0x00000005 /* EMC_TCLKSTOP */
                0x00000064 /* EMC_TREFBW */
                0x00000000 /* EMC_FBIO_CFG6 */
                0x00000000 /* EMC_ODT_WRITE */
                0x00000000 /* EMC_ODT_READ */
                0x106aa298 /* EMC_FBIO_CFG5 */
                0x002c00a0 /* EMC_CFG_DIG_DLL */
                0x00008000 /* EMC_CFG_DIG_DLL_PERIOD */
                0x00064000 /* EMC_DLL_XFORM_DQS0 */
                0x00064000 /* EMC_DLL_XFORM_DQS1 */
                0x00064000 /* EMC_DLL_XFORM_DQS2 */
                0x00064000 /* EMC_DLL_XFORM_DQS3 */
                0x00064000 /* EMC_DLL_XFORM_DQS4 */
                0x00064000 /* EMC_DLL_XFORM_DQS5 */
                0x00064000 /* EMC_DLL_XFORM_DQS6 */
                0x00064000 /* EMC_DLL_XFORM_DQS7 */
                0x00064000 /* EMC_DLL_XFORM_DQS8 */
                0x00064000 /* EMC_DLL_XFORM_DQS9 */
                0x00064000 /* EMC_DLL_XFORM_DQS10 */
                0x00064000 /* EMC_DLL_XFORM_DQS11 */
                0x00064000 /* EMC_DLL_XFORM_DQS12 */
                0x00064000 /* EMC_DLL_XFORM_DQS13 */
                0x00064000 /* EMC_DLL_XFORM_DQS14 */
                0x00064000 /* EMC_DLL_XFORM_DQS15 */
                0x00000000 /* EMC_DLL_XFORM_QUSE0 */
                0x00000000 /* EMC_DLL_XFORM_QUSE1 */
                0x00000000 /* EMC_DLL_XFORM_QUSE2 */
                0x00000000 /* EMC_DLL_XFORM_QUSE3 */
                0x00000000 /* EMC_DLL_XFORM_QUSE4 */
                0x00000000 /* EMC_DLL_XFORM_QUSE5 */
                0x00000000 /* EMC_DLL_XFORM_QUSE6 */
                0x00000000 /* EMC_DLL_XFORM_QUSE7 */
                0x00000000 /* EMC_DLL_XFORM_ADDR0 */
                0x00000000 /* EMC_DLL_XFORM_ADDR1 */
                0x00000000 /* EMC_DLL_XFORM_ADDR2 */
                0x00000000 /* EMC_DLL_XFORM_ADDR3 */
                0x00000000 /* EMC_DLL_XFORM_ADDR4 */
                0x00000000 /* EMC_DLL_XFORM_ADDR5 */
                0x00000000 /* EMC_DLL_XFORM_QUSE8 */
                0x00000000 /* EMC_DLL_XFORM_QUSE9 */
                0x00000000 /* EMC_DLL_XFORM_QUSE10 */
                0x00000000 /* EMC_DLL_XFORM_QUSE11 */
                0x00000000 /* EMC_DLL_XFORM_QUSE12 */
                0x00000000 /* EMC_DLL_XFORM_QUSE13 */
                0x00000000 /* EMC_DLL_XFORM_QUSE14 */
                0x00000000 /* EMC_DLL_XFORM_QUSE15 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS0 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS1 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS2 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS3 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS4 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS5 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS6 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS7 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS8 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS9 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS10 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS11 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS12 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS13 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS14 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS15 */
                0x000fc000 /* EMC_DLL_XFORM_DQ0 */
                0x000fc000 /* EMC_DLL_XFORM_DQ1 */
                0x000fc000 /* EMC_DLL_XFORM_DQ2 */
                0x000fc000 /* EMC_DLL_XFORM_DQ3 */
                0x0000fc00 /* EMC_DLL_XFORM_DQ4 */
                0x0000fc00 /* EMC_DLL_XFORM_DQ5 */
                0x0000fc00 /* EMC_DLL_XFORM_DQ6 */
                0x0000fc00 /* EMC_DLL_XFORM_DQ7 */
                0x10000280 /* EMC_XM2CMDPADCTRL */
                0x00000000 /* EMC_XM2CMDPADCTRL4 */
                0x00111111 /* EMC_XM2CMDPADCTRL5 */
                0x00000000 /* EMC_XM2DQPADCTRL2 */
                0x00000000 /* EMC_XM2DQPADCTRL3 */
                0x77ffc081 /* EMC_XM2CLKPADCTRL */
                0x00000e0e /* EMC_XM2CLKPADCTRL2 */
                0x81f1f108 /* EMC_XM2COMPPADCTRL */
                0x07070004 /* EMC_XM2VTTGENPADCTRL */
                0x0000003f /* EMC_XM2VTTGENPADCTRL2 */
                0x016eeeee /* EMC_XM2VTTGENPADCTRL3 */
                0x51451400 /* EMC_XM2DQSPADCTRL3 */
                0x00514514 /* EMC_XM2DQSPADCTRL4 */
                0x00514514 /* EMC_XM2DQSPADCTRL5 */
                0x51451400 /* EMC_XM2DQSPADCTRL6 */
                0x0000003f /* EMC_DSR_VTTGEN_DRV */
                0x00000007 /* EMC_TXDSRVTTGEN */
                0x00000000 /* EMC_FBIO_SPARE */
                0x00000042 /* EMC_ZCAL_WAIT_CNT */
                0x000e000e /* EMC_MRS_WAIT_CNT2 */
                0x00000000 /* EMC_CTT */
                0x00000003 /* EMC_CTT_DURATION */
                0x0000f2f3 /* EMC_CFG_PIPE */
                0x800001c5 /* EMC_DYN_SELF_REF_CONTROL */
                0x0000000a /* EMC_QPOP */
            >;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra124 SoC Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra124-mc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

Tegra124 SoC features a hybrid 2x32-bit / 1x64-bit memory controller. These are interleaved to provide high performance with the load shared across two memory channels. The Tegra124 Memory Controller handles memory requests from internal clients and arbitrates among them to allocate memory bandwidth for DDR3L and LPDDR3 SDRAMs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra124-mc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mc"

interrupts — required here #

Maximum number of items (maxItems): 1

#reset-cells — required here #

Exact value (const): 1

#iommu-cells — required here #

Exact value (const): 1

#interconnect-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^emc-timings-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

nvidia,ram-code — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Value of RAM_CODE this timing set is used for.

Properties matching a name pattern (patternProperties) #

^timing-[0-9]+$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

clock-frequency — required here

Memory clock rate in Hz.

Minimum value (minimum): 1000000

Maximum value (maximum): 1066000000

nvidia,emem-configuration — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Values to be written to the EMEM register block. See section "15.6.1 MC Registers" in the TRM.

Array item rules (items)

Item 1

MC_EMEM_ARB_CFG

Item 2

MC_EMEM_ARB_OUTSTANDING_REQ

Item 3

MC_EMEM_ARB_TIMING_RCD

Item 4

MC_EMEM_ARB_TIMING_RP

Item 5

MC_EMEM_ARB_TIMING_RC

Item 6

MC_EMEM_ARB_TIMING_RAS

Item 7

MC_EMEM_ARB_TIMING_FAW

Item 8

MC_EMEM_ARB_TIMING_RRD

Item 9

MC_EMEM_ARB_TIMING_RAP2PRE

Item 10

MC_EMEM_ARB_TIMING_WAP2PRE

Item 11

MC_EMEM_ARB_TIMING_R2R

Item 12

MC_EMEM_ARB_TIMING_W2W

Item 13

MC_EMEM_ARB_TIMING_R2W

Item 14

MC_EMEM_ARB_TIMING_W2R

Item 15

MC_EMEM_ARB_DA_TURNS

Item 16

MC_EMEM_ARB_DA_COVERS

Item 17

MC_EMEM_ARB_MISC0

Item 18

MC_EMEM_ARB_MISC1

Item 19

MC_EMEM_ARB_RING1_THROTTLE

Required in this object (required): "clock-frequency", "nvidia,emem-configuration"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "nvidia,ram-code"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#reset-cells", "#iommu-cells", "#interconnect-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@70019000 {
    compatible = "nvidia,tegra124-mc";
    reg = <0x70019000 0x1000>;
    clocks = <&tegra_car 32>;
    clock-names = "mc";

    interrupts = <0 77 4>;

    #iommu-cells = <1>;
    #reset-cells = <1>;
    #interconnect-cells = <1>;

    emc-timings-3 {
        nvidia,ram-code = <3>;

        timing-12750000 {
            clock-frequency = <12750000>;

            nvidia,emem-configuration = <
                0x40040001 /* MC_EMEM_ARB_CFG */
                0x8000000a /* MC_EMEM_ARB_OUTSTANDING_REQ */
                0x00000001 /* MC_EMEM_ARB_TIMING_RCD */
                0x00000001 /* MC_EMEM_ARB_TIMING_RP */
                0x00000002 /* MC_EMEM_ARB_TIMING_RC */
                0x00000000 /* MC_EMEM_ARB_TIMING_RAS */
                0x00000002 /* MC_EMEM_ARB_TIMING_FAW */
                0x00000001 /* MC_EMEM_ARB_TIMING_RRD */
                0x00000002 /* MC_EMEM_ARB_TIMING_RAP2PRE */
                0x00000008 /* MC_EMEM_ARB_TIMING_WAP2PRE */
                0x00000003 /* MC_EMEM_ARB_TIMING_R2R */
                0x00000002 /* MC_EMEM_ARB_TIMING_W2W */
                0x00000003 /* MC_EMEM_ARB_TIMING_R2W */
                0x00000006 /* MC_EMEM_ARB_TIMING_W2R */
                0x06030203 /* MC_EMEM_ARB_DA_TURNS */
                0x000a0402 /* MC_EMEM_ARB_DA_COVERS */
                0x77e30303 /* MC_EMEM_ARB_MISC0 */
                0x70000f03 /* MC_EMEM_ARB_MISC1 */
                0x001f0000 /* MC_EMEM_ARB_RING1_THROTTLE */
            >;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0)

NVIDIA Tegra186 (and later) SoC Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra186-mc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

The NVIDIA Tegra186 SoC features a 128 bit memory controller that is split into four 32 bit channels to support LPDDR4 with x16 subpartitions. The MC handles memory requests for 40-bit virtual addresses from internal clients and arbitrates among them to allocate memory bandwidth.

Up to 15 GiB of physical memory can be supported. Security features such as encryption of traffic to and from DRAM via general security apertures are available for video and other secure applications, as well as DRAM ECC for automotive safety applications (single bit error correction and double bit error detection).

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^memory-controller@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "nvidia,tegra186-mc", "nvidia,tegra194-mc", "nvidia,tegra234-mc", "nvidia,tegra264-mc"

reg — required here #

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 18

reg-names — required here #

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 18

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 2

ranges — not listed as required here #

true — No constraints added by this property rule.

dma-ranges — not listed as required here #

true — No constraints added by this property rule.

#interconnect-cells — not listed as required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^external-memory-controller@[0-9a-f]+$ — name matches this regular expression #

The bulk of the work involved in controlling the external memory controller on NVIDIA Tegra186 and later is performed on the BPMP. This coprocessor exposes the EMC clock that is used to set the frequency at which the external memory is clocked and a remote procedure call that can be used to obtain the set of available frequencies.

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra186-emc", "nvidia,tegra194-emc", "nvidia,tegra234-emc", "nvidia,tegra264-emc"

reg — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — required here

Array item rules (items)

Item 1

EMC general interrupt

clocks — required here

Array item rules (items)

Item 1

external memory clock

Item 2

data backbone clock

Minimum number of items (minItems): 1

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "emc"

Item 2

Exact value (const): "dbb"

Minimum number of items (minItems): 1

#interconnect-cells — required here

Exact value (const): 0

nvidia,bpmp — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle of the node representing the BPMP

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra186-emc"

When the condition matches (then)

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

clocks — not listed as required here

Maximum number of items (maxItems): 1

Rule 2

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra194-emc"

When the condition matches (then)

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

clocks — not listed as required here

Maximum number of items (maxItems): 1

Rule 3

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra234-emc"

When the condition matches (then)

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

clocks — not listed as required here

Maximum number of items (maxItems): 1

Rule 4

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra264-emc"

When the condition matches (then)

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#interconnect-cells", "nvidia,bpmp"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra186-mc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 6

5 memory controller channels and 1 for stream-id registers

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "sid"

Item 2

Exact value (const): "broadcast"

Item 3

Exact value (const): "ch0"

Item 4

Exact value (const): "ch1"

Item 5

Exact value (const): "ch2"

Item 6

Exact value (const): "ch3"

interrupts — not listed as required here

Array item rules (items)

Item 1

MC general interrupt

interrupt-names — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra194-mc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 18

17 memory controller channels and 1 for stream-id registers

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "sid"

Item 2

Exact value (const): "broadcast"

Item 3

Exact value (const): "ch0"

Item 4

Exact value (const): "ch1"

Item 5

Exact value (const): "ch2"

Item 6

Exact value (const): "ch3"

Item 7

Exact value (const): "ch4"

Item 8

Exact value (const): "ch5"

Item 9

Exact value (const): "ch6"

Item 10

Exact value (const): "ch7"

Item 11

Exact value (const): "ch8"

Item 12

Exact value (const): "ch9"

Item 13

Exact value (const): "ch10"

Item 14

Exact value (const): "ch11"

Item 15

Exact value (const): "ch12"

Item 16

Exact value (const): "ch13"

Item 17

Exact value (const): "ch14"

Item 18

Exact value (const): "ch15"

interrupts — not listed as required here

Array item rules (items)

Item 1

MC general interrupt

interrupt-names — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra234-mc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 18

17 memory controller channels and 1 for stream-id registers

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "sid"

Item 2

Exact value (const): "broadcast"

Item 3

Exact value (const): "ch0"

Item 4

Exact value (const): "ch1"

Item 5

Exact value (const): "ch2"

Item 6

Exact value (const): "ch3"

Item 7

Exact value (const): "ch4"

Item 8

Exact value (const): "ch5"

Item 9

Exact value (const): "ch6"

Item 10

Exact value (const): "ch7"

Item 11

Exact value (const): "ch8"

Item 12

Exact value (const): "ch9"

Item 13

Exact value (const): "ch10"

Item 14

Exact value (const): "ch11"

Item 15

Exact value (const): "ch12"

Item 16

Exact value (const): "ch13"

Item 17

Exact value (const): "ch14"

Item 18

Exact value (const): "ch15"

interrupts — not listed as required here

Array item rules (items)

Item 1

MC general interrupt

interrupt-names — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra264-mc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 17

Maximum number of items (maxItems): 17

17 memory controller channels

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "broadcast"

Item 2

Exact value (const): "ch0"

Item 3

Exact value (const): "ch1"

Item 4

Exact value (const): "ch2"

Item 5

Exact value (const): "ch3"

Item 6

Exact value (const): "ch4"

Item 7

Exact value (const): "ch5"

Item 8

Exact value (const): "ch6"

Item 9

Exact value (const): "ch7"

Item 10

Exact value (const): "ch8"

Item 11

Exact value (const): "ch9"

Item 12

Exact value (const): "ch10"

Item 13

Exact value (const): "ch11"

Item 14

Exact value (const): "ch12"

Item 15

Exact value (const): "ch13"

Item 16

Exact value (const): "ch14"

Item 17

Exact value (const): "ch15"

interrupts — not listed as required here

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

One interrupt line for each MC component

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mcf"

Item 2

Exact value (const): "hub1"

Item 3

Exact value (const): "hub2"

Item 4

Exact value (const): "hub3"

Item 5

Exact value (const): "hub4"

Item 6

Exact value (const): "hub5"

Item 7

Exact value (const): "sbs"

Item 8

Exact value (const): "channel"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "#address-cells", "#size-cells"

Examples (examples) #

#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

bus {
    #address-cells = <2>;
    #size-cells = <2>;

    memory-controller@2c00000 {
        compatible = "nvidia,tegra186-mc";
        reg = <0x0 0x02c00000 0x0 0x10000>,    /* MC-SID */
              <0x0 0x02c10000 0x0 0x10000>,    /* Broadcast channel */
              <0x0 0x02c20000 0x0 0x10000>,    /* MC0 */
              <0x0 0x02c30000 0x0 0x10000>,    /* MC1 */
              <0x0 0x02c40000 0x0 0x10000>,    /* MC2 */
              <0x0 0x02c50000 0x0 0x10000>;    /* MC3 */
        reg-names = "sid", "broadcast", "ch0", "ch1", "ch2", "ch3";
        interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;

        #address-cells = <2>;
        #size-cells = <2>;

        ranges = <0x0 0x02c00000 0x0 0x02c00000 0x0 0xb0000>;

        /*
         * Memory clients have access to all 40 bits that the memory
         * controller can address.
         */
        dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x0>;

        external-memory-controller@2c60000 {
            compatible = "nvidia,tegra186-emc";
            reg = <0x0 0x02c60000 0x0 0x50000>;
            interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&bpmp TEGRA186_CLK_EMC>;
            clock-names = "emc";

            #interconnect-cells = <0>;

            nvidia,bpmp = <&bpmp>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra20 SoC External Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra20-emc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

The External Memory Controller (EMC) interfaces with the off-chip SDRAM to service the request stream sent from Memory Controller. The EMC also has various performance-affecting settings beyond the obvious SDRAM configuration parameters and initialization settings. Tegra20 EMC supports multiple JEDEC standard protocols: DDR1, LPDDR2 and DDR2.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra20-emc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

#interconnect-cells — required here #

Exact value (const): 0

nvidia,memory-controller — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle of the Memory Controller node.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Phandle of the SoC "core" power domain.

operating-points-v2 — required here #

Should contain freqs and voltages and opp-supported-hw property, which is a bitfield indicating SoC process ID mask.

nvidia,use-ram-code — not listed as required here #

Value type (type): "boolean"

If present, the emc-tables@ sub-nodes will be addressed.

Reusable definitions ($defs) #

emc-table #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "nvidia,tegra20-emc-table"

clock-frequency — required here

Memory clock rate in kHz.

Minimum value (minimum): 1000

Maximum value (maximum): 900000

reg — required here

Maximum number of items (maxItems): 1

Either an opaque enumerator to tell different tables apart, or the valid frequency for which the table should be used (in kHz).

nvidia,emc-registers — required here

EMC timing characterization data. These are the registers (see section "15.4.1 EMC Registers" in the TRM) whose values need to be specified, according to the board documentation.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items)

Item 1

EMC_RC

Item 2

EMC_RFC

Item 3

EMC_RAS

Item 4

EMC_RP

Item 5

EMC_R2W

Item 6

EMC_W2R

Item 7

EMC_R2P

Item 8

EMC_W2P

Item 9

EMC_RD_RCD

Item 10

EMC_WR_RCD

Item 11

EMC_RRD

Item 12

EMC_REXT

Item 13

EMC_WDV

Item 14

EMC_QUSE

Item 15

EMC_QRST

Item 16

EMC_QSAFE

Item 17

EMC_RDV

Item 18

EMC_REFRESH

Item 19

EMC_BURST_REFRESH_NUM

Item 20

EMC_PDEX2WR

Item 21

EMC_PDEX2RD

Item 22

EMC_PCHG2PDEN

Item 23

EMC_ACT2PDEN

Item 24

EMC_AR2PDEN

Item 25

EMC_RW2PDEN

Item 26

EMC_TXSR

Item 27

EMC_TCKE

Item 28

EMC_TFAW

Item 29

EMC_TRPAB

Item 30

EMC_TCLKSTABLE

Item 31

EMC_TCLKSTOP

Item 32

EMC_TREFBW

Item 33

EMC_QUSE_EXTRA

Item 34

EMC_FBIO_CFG6

Item 35

EMC_ODT_WRITE

Item 36

EMC_ODT_READ

Item 37

EMC_FBIO_CFG5

Item 38

EMC_CFG_DIG_DLL

Item 39

EMC_DLL_XFORM_DQS

Item 40

EMC_DLL_XFORM_QUSE

Item 41

EMC_ZCAL_REF_CNT

Item 42

EMC_ZCAL_WAIT_CNT

Item 43

EMC_AUTO_CAL_INTERVAL

Item 44

EMC_CFG_CLKTRIM_0

Item 45

EMC_CFG_CLKTRIM_1

Item 46

EMC_CFG_CLKTRIM_2

Required in this object (required): "clock-frequency", "compatible", "reg", "nvidia,emc-registers"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^emc-table@[0-9]+$ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/emc-table

^emc-tables@[a-f0-9-]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

An opaque enumerator to tell different tables apart.

nvidia,ram-code — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Value of RAM_CODE this timing set is used for.

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

lpddr2 — not listed as required here

Shared schema rule ($ref): ddr/jedec,lpddr2.yaml#

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^emc-table@[0-9]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/emc-table

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "nvidia,ram-code"

Rule 2

Required in this object (required): "lpddr2"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "nvidia,memory-controller", "#interconnect-cells", "operating-points-v2"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

external-memory-controller@7000f400 {
    compatible = "nvidia,tegra20-emc";
    reg = <0x7000f400 0x400>;
    interrupts = <0 78 4>;
    clocks = <&clock_controller 57>;

    nvidia,memory-controller = <&mc>;
    operating-points-v2 = <&dvfs_opp_table>;
    power-domains = <&domain>;

    #interconnect-cells = <0>;
    #address-cells = <1>;
    #size-cells = <0>;

    nvidia,use-ram-code;

    emc-tables@0 {
        nvidia,ram-code = <0>;
        reg = <0>;

        #address-cells = <1>;
        #size-cells = <0>;

        emc-table@333000 {
            reg = <333000>;
            compatible = "nvidia,tegra20-emc-table";
            clock-frequency = <333000>;
            nvidia,emc-registers = <0x00000018 0x00000033
                    0x00000012 0x00000004 0x00000004 0x00000005
                    0x00000003 0x0000000c 0x00000006 0x00000006
                    0x00000003 0x00000001 0x00000004 0x00000005
                    0x00000004 0x00000009 0x0000000d 0x00000bff
                    0x00000000 0x00000003 0x00000003 0x00000006
                    0x00000006 0x00000001 0x00000011 0x000000c8
                    0x00000003 0x0000000e 0x00000007 0x00000008
                    0x00000002 0x00000000 0x00000000 0x00000002
                    0x00000000 0x00000000 0x00000083 0xf0440303
                    0x007fe010 0x00001414 0x00000000 0x00000000
                    0x00000000 0x00000000 0x00000000 0x00000000>;
        };
    };

    emc-tables@1 {
        reg = <1>;

        lpddr2 {
            compatible = "elpida,B8132B2PB-6D-F", "jedec,lpddr2-s4";
            revision-id1 = <1>;
            density = <2048>;
            io-width = <16>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra20 SoC Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra20-mc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

The Tegra20 Memory Controller merges request streams from various client interfaces into request stream(s) for the various memory target devices, and returns response data to the various clients. The Memory Controller has a configurable arbitration algorithm to allow the user to fine-tune performance among the various clients.

Tegra20 Memory Controller includes the GART (Graphics Address Relocation Table) which allows Memory Controller to provide a linear view of a fragmented memory pages.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra20-mc-gart"

reg — required here #

Array item rules (items) #

Item 1

controller registers

Item 2

GART registers

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mc"

interrupts — required here #

Maximum number of items (maxItems): 1

#reset-cells — required here #

Exact value (const): 1

#iommu-cells — required here #

Exact value (const): 0

#interconnect-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#reset-cells", "#iommu-cells", "#interconnect-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@7000f000 {
    compatible = "nvidia,tegra20-mc-gart";
    reg = <0x7000f000 0x400>,	/* Controller registers */
          <0x58000000 0x02000000>;	/* GART aperture */
    clocks = <&clock_controller 32>;
    clock-names = "mc";

    interrupts = <0 77 4>;

    #iommu-cells = <0>;
    #reset-cells = <1>;
    #interconnect-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra210 SoC External Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra210-emc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

The EMC interfaces with the off-chip SDRAM to service the request stream sent from the memory controller.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra210-emc"

reg — required here #

Maximum number of items (maxItems): 3

clocks — required here #

Array item rules (items) #

Item 1

external memory clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "emc"

interrupts — not listed as required here #

Array item rules (items) #

Item 1

EMC general interrupt

#interconnect-cells — not listed as required here #

Exact value (const): 0

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

phandle to a reserved memory region describing the table of EMC frequencies trained by the firmware

nvidia,memory-controller — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle of the memory controller node

operating-points-v2 — not listed as required here #

Should contain freqs and voltages and opp-supported-hw property, which is a bitfield indicating SoC speedo ID mask.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "nvidia,memory-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

reserved-memory {
    #address-cells = <1>;
    #size-cells = <1>;
    ranges;

    emc_table: emc-table@83400000 {
        compatible = "nvidia,tegra210-emc-table";
        reg = <0x83400000 0x10000>;
    };
};

external-memory-controller@7001b000 {
    compatible = "nvidia,tegra210-emc";
    reg = <0x7001b000 0x1000>,
          <0x7001e000 0x1000>,
          <0x7001f000 0x1000>;
    clocks = <&tegra_car TEGRA210_CLK_EMC>;
    clock-names = "emc";
    interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
    memory-region = <&emc_table>;
    nvidia,memory-controller = <&mc>;
    operating-points-v2 = <&dvfs_opp_table>;

    #interconnect-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra30 SoC External Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra30-emc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

The EMC interfaces with the off-chip SDRAM to service the request stream sent from Memory Controller. The EMC also has various performance-affecting settings beyond the obvious SDRAM configuration parameters and initialization settings. Tegra30 EMC supports multiple JEDEC standard protocols: LPDDR2, LPDDR3, and DDR3.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra30-emc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#interconnect-cells — required here #

Exact value (const): 0

nvidia,memory-controller — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle of the Memory Controller node.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Phandle of the SoC "core" power domain.

operating-points-v2 — required here #

Should contain freqs and voltages and opp-supported-hw property, which is a bitfield indicating SoC speedo ID mask.

Properties matching a name pattern (patternProperties) #

^emc-timings-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

nvidia,ram-code — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Value of RAM_CODE this timing set is used for.

Properties matching a name pattern (patternProperties) #

^timing-[0-9]+$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

clock-frequency — required here

Memory clock rate in Hz.

Minimum value (minimum): 1000000

Maximum value (maximum): 900000000

nvidia,emc-auto-cal-interval — required here

Pad calibration interval in microseconds.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 2097151

nvidia,emc-mode-1 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Mode Register 1.

nvidia,emc-mode-2 — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Mode Register 2.

nvidia,emc-mode-reset — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Mode Register 0.

nvidia,emc-zcal-cnt-long — required here

Number of EMC clocks to wait before issuing any commands after sending ZCAL_MRW_CMD.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1023

nvidia,emc-cfg-dyn-self-ref — not listed as required here

Value type (type): "boolean"

Dynamic self-refresh enabled.

nvidia,emc-cfg-periodic-qrst — not listed as required here

Value type (type): "boolean"

FBIO "read" FIFO periodic resetting enabled.

nvidia,emc-configuration — required here

EMC timing characterization data. These are the registers (see section "18.13.2 EMC Registers" in the TRM) whose values need to be specified, according to the board documentation.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items)

Item 1

EMC_RC

Item 2

EMC_RFC

Item 3

EMC_RAS

Item 4

EMC_RP

Item 5

EMC_R2W

Item 6

EMC_W2R

Item 7

EMC_R2P

Item 8

EMC_W2P

Item 9

EMC_RD_RCD

Item 10

EMC_WR_RCD

Item 11

EMC_RRD

Item 12

EMC_REXT

Item 13

EMC_WEXT

Item 14

EMC_WDV

Item 15

EMC_QUSE

Item 16

EMC_QRST

Item 17

EMC_QSAFE

Item 18

EMC_RDV

Item 19

EMC_REFRESH

Item 20

EMC_BURST_REFRESH_NUM

Item 21

EMC_PRE_REFRESH_REQ_CNT

Item 22

EMC_PDEX2WR

Item 23

EMC_PDEX2RD

Item 24

EMC_PCHG2PDEN

Item 25

EMC_ACT2PDEN

Item 26

EMC_AR2PDEN

Item 27

EMC_RW2PDEN

Item 28

EMC_TXSR

Item 29

EMC_TXSRDLL

Item 30

EMC_TCKE

Item 31

EMC_TFAW

Item 32

EMC_TRPAB

Item 33

EMC_TCLKSTABLE

Item 34

EMC_TCLKSTOP

Item 35

EMC_TREFBW

Item 36

EMC_QUSE_EXTRA

Item 37

EMC_FBIO_CFG6

Item 38

EMC_ODT_WRITE

Item 39

EMC_ODT_READ

Item 40

EMC_FBIO_CFG5

Item 41

EMC_CFG_DIG_DLL

Item 42

EMC_CFG_DIG_DLL_PERIOD

Item 43

EMC_DLL_XFORM_DQS0

Item 44

EMC_DLL_XFORM_DQS1

Item 45

EMC_DLL_XFORM_DQS2

Item 46

EMC_DLL_XFORM_DQS3

Item 47

EMC_DLL_XFORM_DQS4

Item 48

EMC_DLL_XFORM_DQS5

Item 49

EMC_DLL_XFORM_DQS6

Item 50

EMC_DLL_XFORM_DQS7

Item 51

EMC_DLL_XFORM_QUSE0

Item 52

EMC_DLL_XFORM_QUSE1

Item 53

EMC_DLL_XFORM_QUSE2

Item 54

EMC_DLL_XFORM_QUSE3

Item 55

EMC_DLL_XFORM_QUSE4

Item 56

EMC_DLL_XFORM_QUSE5

Item 57

EMC_DLL_XFORM_QUSE6

Item 58

EMC_DLL_XFORM_QUSE7

Item 59

EMC_DLI_TRIM_TXDQS0

Item 60

EMC_DLI_TRIM_TXDQS1

Item 61

EMC_DLI_TRIM_TXDQS2

Item 62

EMC_DLI_TRIM_TXDQS3

Item 63

EMC_DLI_TRIM_TXDQS4

Item 64

EMC_DLI_TRIM_TXDQS5

Item 65

EMC_DLI_TRIM_TXDQS6

Item 66

EMC_DLI_TRIM_TXDQS7

Item 67

EMC_DLL_XFORM_DQ0

Item 68

EMC_DLL_XFORM_DQ1

Item 69

EMC_DLL_XFORM_DQ2

Item 70

EMC_DLL_XFORM_DQ3

Item 71

EMC_XM2CMDPADCTRL

Item 72

EMC_XM2DQSPADCTRL2

Item 73

EMC_XM2DQPADCTRL2

Item 74

EMC_XM2CLKPADCTRL

Item 75

EMC_XM2COMPPADCTRL

Item 76

EMC_XM2VTTGENPADCTRL

Item 77

EMC_XM2VTTGENPADCTRL2

Item 78

EMC_XM2QUSEPADCTRL

Item 79

EMC_XM2DQSPADCTRL3

Item 80

EMC_CTT_TERM_CTRL

Item 81

EMC_ZCAL_INTERVAL

Item 82

EMC_ZCAL_WAIT_CNT

Item 83

EMC_MRS_WAIT_CNT

Item 84

EMC_AUTO_CAL_CONFIG

Item 85

EMC_CTT

Item 86

EMC_CTT_DURATION

Item 87

EMC_DYN_SELF_REF_CONTROL

Item 88

EMC_FBIO_SPARE

Item 89

EMC_CFG_RSV

Required in this object (required): "clock-frequency", "nvidia,emc-auto-cal-interval", "nvidia,emc-mode-1", "nvidia,emc-mode-2", "nvidia,emc-mode-reset", "nvidia,emc-zcal-cnt-long", "nvidia,emc-configuration"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "nvidia,ram-code"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "nvidia,memory-controller", "#interconnect-cells", "operating-points-v2"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

external-memory-controller@7000f400 {
    compatible = "nvidia,tegra30-emc";
    reg = <0x7000f400 0x400>;
    interrupts = <0 78 4>;
    clocks = <&tegra_car 57>;

    nvidia,memory-controller = <&mc>;
    operating-points-v2 = <&dvfs_opp_table>;
    power-domains = <&domain>;

    #interconnect-cells = <0>;

    emc-timings-1 {
        nvidia,ram-code = <1>;

        timing-667000000 {
            clock-frequency = <667000000>;

            nvidia,emc-auto-cal-interval = <0x001fffff>;
            nvidia,emc-mode-1 = <0x80100002>;
            nvidia,emc-mode-2 = <0x80200018>;
            nvidia,emc-mode-reset = <0x80000b71>;
            nvidia,emc-zcal-cnt-long = <0x00000040>;
            nvidia,emc-cfg-periodic-qrst;

            nvidia,emc-configuration = <
                0x00000020 /* EMC_RC */
                0x0000006a /* EMC_RFC */
                0x00000017 /* EMC_RAS */
                0x00000007 /* EMC_RP */
                0x00000005 /* EMC_R2W */
                0x0000000c /* EMC_W2R */
                0x00000003 /* EMC_R2P */
                0x00000011 /* EMC_W2P */
                0x00000007 /* EMC_RD_RCD */
                0x00000007 /* EMC_WR_RCD */
                0x00000002 /* EMC_RRD */
                0x00000001 /* EMC_REXT */
                0x00000000 /* EMC_WEXT */
                0x00000007 /* EMC_WDV */
                0x0000000a /* EMC_QUSE */
                0x00000009 /* EMC_QRST */
                0x0000000b /* EMC_QSAFE */
                0x00000011 /* EMC_RDV */
                0x00001412 /* EMC_REFRESH */
                0x00000000 /* EMC_BURST_REFRESH_NUM */
                0x00000504 /* EMC_PRE_REFRESH_REQ_CNT */
                0x00000002 /* EMC_PDEX2WR */
                0x0000000e /* EMC_PDEX2RD */
                0x00000001 /* EMC_PCHG2PDEN */
                0x00000000 /* EMC_ACT2PDEN */
                0x0000000c /* EMC_AR2PDEN */
                0x00000016 /* EMC_RW2PDEN */
                0x00000072 /* EMC_TXSR */
                0x00000200 /* EMC_TXSRDLL */
                0x00000005 /* EMC_TCKE */
                0x00000015 /* EMC_TFAW */
                0x00000000 /* EMC_TRPAB */
                0x00000006 /* EMC_TCLKSTABLE */
                0x00000007 /* EMC_TCLKSTOP */
                0x00001453 /* EMC_TREFBW */
                0x0000000b /* EMC_QUSE_EXTRA */
                0x00000006 /* EMC_FBIO_CFG6 */
                0x00000000 /* EMC_ODT_WRITE */
                0x00000000 /* EMC_ODT_READ */
                0x00005088 /* EMC_FBIO_CFG5 */
                0xf00b0191 /* EMC_CFG_DIG_DLL */
                0x00008000 /* EMC_CFG_DIG_DLL_PERIOD */
                0x00000008 /* EMC_DLL_XFORM_DQS0 */
                0x00000008 /* EMC_DLL_XFORM_DQS1 */
                0x00000008 /* EMC_DLL_XFORM_DQS2 */
                0x00000008 /* EMC_DLL_XFORM_DQS3 */
                0x0000000a /* EMC_DLL_XFORM_DQS4 */
                0x0000000a /* EMC_DLL_XFORM_DQS5 */
                0x0000000a /* EMC_DLL_XFORM_DQS6 */
                0x0000000a /* EMC_DLL_XFORM_DQS7 */
                0x00018000 /* EMC_DLL_XFORM_QUSE0 */
                0x00018000 /* EMC_DLL_XFORM_QUSE1 */
                0x00018000 /* EMC_DLL_XFORM_QUSE2 */
                0x00018000 /* EMC_DLL_XFORM_QUSE3 */
                0x00000000 /* EMC_DLL_XFORM_QUSE4 */
                0x00000000 /* EMC_DLL_XFORM_QUSE5 */
                0x00000000 /* EMC_DLL_XFORM_QUSE6 */
                0x00000000 /* EMC_DLL_XFORM_QUSE7 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS0 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS1 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS2 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS3 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS4 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS5 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS6 */
                0x00000000 /* EMC_DLI_TRIM_TXDQS7 */
                0x0000000a /* EMC_DLL_XFORM_DQ0 */
                0x0000000a /* EMC_DLL_XFORM_DQ1 */
                0x0000000a /* EMC_DLL_XFORM_DQ2 */
                0x0000000a /* EMC_DLL_XFORM_DQ3 */
                0x000002a0 /* EMC_XM2CMDPADCTRL */
                0x0800013d /* EMC_XM2DQSPADCTRL2 */
                0x22220000 /* EMC_XM2DQPADCTRL2 */
                0x77fff884 /* EMC_XM2CLKPADCTRL */
                0x01f1f501 /* EMC_XM2COMPPADCTRL */
                0x07077404 /* EMC_XM2VTTGENPADCTRL */
                0x54000000 /* EMC_XM2VTTGENPADCTRL2 */
                0x080001e8 /* EMC_XM2QUSEPADCTRL */
                0x0c000021 /* EMC_XM2DQSPADCTRL3 */
                0x00000802 /* EMC_CTT_TERM_CTRL */
                0x00020000 /* EMC_ZCAL_INTERVAL */
                0x00000100 /* EMC_ZCAL_WAIT_CNT */
                0x0155000c /* EMC_MRS_WAIT_CNT */
                0xa0f10000 /* EMC_AUTO_CAL_CONFIG */
                0x00000000 /* EMC_CTT */
                0x00000000 /* EMC_CTT_DURATION */
                0x800028a5 /* EMC_DYN_SELF_REF_CONTROL */
                0xe8000000 /* EMC_FBIO_SPARE */
                0xff00ff49 /* EMC_CFG_RSV */
            >;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0)

NVIDIA Tegra30 SoC Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/nvidia,tegra30-mc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"

Tegra30 Memory Controller architecturally consists of the following parts:

  Arbitration Domains, which can handle a single request or response per
  clock from a group of clients. Typically, a system has a single Arbitration
  Domain, but an implementation may divide the client space into multiple
  Arbitration Domains to increase the effective system bandwidth.
  Protocol Arbiter, which manage a related pool of memory devices. A system
  may have a single Protocol Arbiter or multiple Protocol Arbiters.
  Memory Crossbar, which routes request and responses between Arbitration
  Domains and Protocol Arbiters. In the simplest version of the system, the
  Memory Crossbar is just a pass through between a single Arbitration Domain
  and a single Protocol Arbiter.
  Global Resources, which include things like configuration registers which
  are shared across the Memory Subsystem.

The Tegra30 Memory Controller handles memory requests from internal clients and arbitrates among them to allocate memory bandwidth for DDR3L and LPDDR2 SDRAMs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra30-mc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mc"

interrupts — required here #

Maximum number of items (maxItems): 1

#reset-cells — required here #

Exact value (const): 1

#iommu-cells — required here #

Exact value (const): 1

#interconnect-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^emc-timings-[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

nvidia,ram-code — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Value of RAM_CODE this timing set is used for.

Properties matching a name pattern (patternProperties) #

^timing-[0-9]+$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

clock-frequency — required here

Memory clock rate in Hz.

Minimum value (minimum): 1000000

Maximum value (maximum): 900000000

nvidia,emem-configuration — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Values to be written to the EMEM register block. See section "18.13.1 MC Registers" in the TRM.

Array item rules (items)

Item 1

MC_EMEM_ARB_CFG

Item 2

MC_EMEM_ARB_OUTSTANDING_REQ

Item 3

MC_EMEM_ARB_TIMING_RCD

Item 4

MC_EMEM_ARB_TIMING_RP

Item 5

MC_EMEM_ARB_TIMING_RC

Item 6

MC_EMEM_ARB_TIMING_RAS

Item 7

MC_EMEM_ARB_TIMING_FAW

Item 8

MC_EMEM_ARB_TIMING_RRD

Item 9

MC_EMEM_ARB_TIMING_RAP2PRE

Item 10

MC_EMEM_ARB_TIMING_WAP2PRE

Item 11

MC_EMEM_ARB_TIMING_R2R

Item 12

MC_EMEM_ARB_TIMING_W2W

Item 13

MC_EMEM_ARB_TIMING_R2W

Item 14

MC_EMEM_ARB_TIMING_W2R

Item 15

MC_EMEM_ARB_DA_TURNS

Item 16

MC_EMEM_ARB_DA_COVERS

Item 17

MC_EMEM_ARB_MISC0

Item 18

MC_EMEM_ARB_RING1_THROTTLE

Required in this object (required): "clock-frequency", "nvidia,emem-configuration"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "nvidia,ram-code"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#reset-cells", "#iommu-cells", "#interconnect-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@7000f000 {
    compatible = "nvidia,tegra30-mc";
    reg = <0x7000f000 0x400>;
    clocks = <&tegra_car 32>;
    clock-names = "mc";

    interrupts = <0 77 4>;

    #iommu-cells = <1>;
    #reset-cells = <1>;
    #interconnect-cells = <1>;

    emc-timings-1 {
        nvidia,ram-code = <1>;

        timing-667000000 {
            clock-frequency = <667000000>;

            nvidia,emem-configuration = <
                0x0000000a /* MC_EMEM_ARB_CFG */
                0xc0000079 /* MC_EMEM_ARB_OUTSTANDING_REQ */
                0x00000003 /* MC_EMEM_ARB_TIMING_RCD */
                0x00000004 /* MC_EMEM_ARB_TIMING_RP */
                0x00000010 /* MC_EMEM_ARB_TIMING_RC */
                0x0000000b /* MC_EMEM_ARB_TIMING_RAS */
                0x0000000a /* MC_EMEM_ARB_TIMING_FAW */
                0x00000001 /* MC_EMEM_ARB_TIMING_RRD */
                0x00000003 /* MC_EMEM_ARB_TIMING_RAP2PRE */
                0x0000000b /* MC_EMEM_ARB_TIMING_WAP2PRE */
                0x00000002 /* MC_EMEM_ARB_TIMING_R2R */
                0x00000002 /* MC_EMEM_ARB_TIMING_W2W */
                0x00000004 /* MC_EMEM_ARB_TIMING_R2W */
                0x00000008 /* MC_EMEM_ARB_TIMING_W2R */
                0x08040202 /* MC_EMEM_ARB_DA_TURNS */
                0x00130b10 /* MC_EMEM_ARB_DA_COVERS */
                0x70ea1f11 /* MC_EMEM_ARB_MISC0 */
                0x001f0000 /* MC_EMEM_ARB_RING1_THROTTLE */
            >;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0)

Qualcomm Atheros AR7xxx/AR9xxx DDR controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/qca,ath79-ddr-controller.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

The DDR controller of the AR7xxx and AR9xxx families provides an interface to flush the FIFO between various devices and the DDR. This is mainly used by the IRQ controller to flush the FIFO before running the interrupt handler of such devices.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "qca,ar9132-ddr-controller"

Item 2

Exact value (const): "qca,ar7240-ddr-controller"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qca,ar7100-ddr-controller", "qca,ar7240-ddr-controller"

#qca,ddr-wb-channel-cells — required here #

Specifies the number of cells needed to encode the write buffer channel index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Exact value (const): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "#qca,ddr-wb-channel-cells", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

ddr_ctrl: memory-controller@18000000 {
    compatible = "qca,ar9132-ddr-controller",
                 "qca,ar7240-ddr-controller";
    reg = <0x18000000 0x100>;

    #qca,ddr-wb-channel-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Peripheral Properties for Qualcomm External Bus Interface 2 (EBI2)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/qcom,ebi2-peripheral-props.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"

Properties and child nodes (properties) #

qcom,xmem-recovery-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The time the memory continues to drive the data bus after OE is de-asserted, in order to avoid contention on the data bus. They are inserted when reading one CS and switching to another CS or read followed by write on the same CS. Minimum value is actually 1, so a value of 0 will still yield 1 recovery cycle.

Minimum value (minimum): 0

Maximum value (maximum): 15

qcom,xmem-write-hold-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The extra cycles inserted after every write minimum 1. The data out is driven from the time WE is asserted until CS is asserted. With a hold of 1 (value = 0), the CS stays active for 1 extra cycle, etc.

Minimum value (minimum): 0

Maximum value (maximum): 15

qcom,xmem-write-delta-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The initial latency for write cycles inserted for the first write to a page or burst memory.

Minimum value (minimum): 0

Maximum value (maximum): 255

qcom,xmem-read-delta-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The initial latency for read cycles inserted for the first read to a page or burst memory.

Minimum value (minimum): 0

Maximum value (maximum): 255

qcom,xmem-write-wait-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of wait cycles for every write access.

Minimum value (minimum): 0

Maximum value (maximum): 15

qcom,xmem-read-wait-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of wait cycles for every read access.

Minimum value (minimum): 0

Maximum value (maximum): 15

qcom,xmem-address-hold-enable — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Holds the address for an extra cycle to meet hold time requirements with ADV assertion, when set to 1.

Allowed values (enum): 0, 1

qcom,xmem-adv-to-oe-recovery-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of cycles elapsed before an OE assertion, with respect to the cycle where ADV (address valid) is asserted.

Minimum value (minimum): 0

Maximum value (maximum): 3

qcom,xmem-read-hold-cycles — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The length in cycles of the first segment of a read transfer. For a single read transfer this will be the time from CS assertion to OE assertion.

Minimum value (minimum): 0

Maximum value (maximum): 15

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 13: SLOW chip selects

Line 65: FAST chip selects

Qualcomm External Bus Interface 2 (EBI2)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/qcom,ebi2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The EBI2 contains two peripheral blocks: XMEM and LCDC. The XMEM handles any external memory (such as NAND or other memory-mapped peripherals) whereas LCDC handles LCD displays.

As it says it connects devices to an external bus interface, meaning address lines (up to 9 address lines so can only address 1KiB external memory space), data lines (16 bits), OE (output enable), ADV (address valid, used on some NOR flash memories), WE (write enable). This on top of 6 different chip selects (CS0 thru CS5) so that in theory 6 different devices can be connected.

Apparently this bus is clocked at 64MHz. It has dedicated pins on the package and the bus can only come out on these pins, however if some of the pins are unused they can be left unconnected or remuxed to be used as GPIO or in some cases other orthogonal functions as well.

Also CS1 and CS2 has -A and -B signals. Why they have that is unclear to me.

The chip selects have the following memory range assignments. This region of memory is referred to as "Chip Peripheral SS FPB0" and is 168MB big.

Chip Select Physical address base CS0 GPIO134 0x1a800000-0x1b000000 (8MB) CS1 GPIO39 (A) / GPIO123 (B) 0x1b000000-0x1b800000 (8MB) CS2 GPIO40 (A) / GPIO124 (B) 0x1b800000-0x1c000000 (8MB) CS3 GPIO133 0x1d000000-0x25000000 (128 MB) CS4 GPIO132 0x1c800000-0x1d000000 (8MB) CS5 GPIO131 0x1c000000-0x1c800000 (8MB)

The APQ8060 Qualcomm Application Processor User Guide, 80-N7150-14 Rev. A, August 6, 2012 contains some incomplete documentation of the EBI2.

FIXME: the manual mentions "write precharge cycles" and "precharge cycles". We have not been able to figure out which bit fields these correspond to in the hardware, or what valid values exist. The current hypothesis is that this is something just used on the FAST chip selects and that the SLOW chip selects are understood fully. There is also a "byte device enable" flag somewhere for 8bit memories.

FIXME: The chipselects have SLOW and FAST configuration registers. It's a bit unclear what this means, if they are mutually exclusive or can be used together, or if some chip selects are hardwired to be FAST and others are SLOW by design.

The XMEM registers are totally undocumented but could be partially decoded because the Cypress AN49576 Antioch Westbridge apparently has suspiciously similar register layout, see: http://www.cypress.com/file/105771/download

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,apq8060-ebi2", "qcom,msm8660-ebi2"

reg — required here #

Array item rules (items) #

Item 1

EBI2 config region

Item 2

XMEM config region

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ebi2"

Item 2

Exact value (const): "xmem"

ranges — required here #

true — No constraints added by this property rule.

clocks — required here #

Array item rules (items) #

Item 1

EBI_2X clock

Item 2

EBI clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ebi2x"

Item 2

Exact value (const): "ebi2"

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "reg-names", "ranges", "clocks", "clock-names", "#address-cells", "#size-cells"

Properties matching a name pattern (patternProperties) #

^.*@[0-5],[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): mc-peripheral-props.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-msm8660.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

external-bus@1a100000 {
    compatible = "qcom,msm8660-ebi2";
    reg = <0x1a100000 0x1000>, <0x1a110000 0x1000>;
    reg-names = "ebi2", "xmem";
    ranges = <0 0x0 0x1a800000 0x00800000>,
             <1 0x0 0x1b000000 0x00800000>,
             <2 0x0 0x1b800000 0x00800000>,
             <3 0x0 0x1d000000 0x08000000>,
             <4 0x0 0x1c800000 0x00800000>,
             <5 0x0 0x1c000000 0x00800000>;

    clocks = <&gcc EBI2_2X_CLK>, <&gcc EBI2_CLK>;
    clock-names = "ebi2x", "ebi2";

    #address-cells = <2>;
    #size-cells = <1>;

    ethernet@2,0 {
        compatible = "smsc,lan9221", "smsc,lan9115";
        reg = <2 0x0 0x100>;

        interrupts-extended = <&pm8058_gpio 7 IRQ_TYPE_EDGE_FALLING>,
                              <&tlmm 29 IRQ_TYPE_EDGE_RISING>;
        reset-gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;

        phy-mode = "mii";
        reg-io-width = <2>;
        smsc,force-external-phy;
        smsc,irq-push-pull;

        /* SLOW chipselect config */
        qcom,xmem-recovery-cycles = <0>;
        qcom,xmem-write-hold-cycles = <3>;
        qcom,xmem-write-delta-cycles = <31>;
        qcom,xmem-read-delta-cycles = <28>;
        qcom,xmem-write-wait-cycles = <9>;
        qcom,xmem-read-wait-cycles = <9>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Renesas DDR Bus Controllers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/renesas,dbsc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"

Renesas SoCs contain one or more memory controllers. These memory controllers differ from one SoC variant to another, and are called by different names, e.g. "DDR Bus Controller (DBSC)", "DDR3 Bus State Controller (DBSC3)", or "SDRAM Bus State Controller (SBSC)").

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,dbsc-r8a73a4", "renesas,dbsc3-r8a7740", "renesas,sbsc-sh73a0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "sec"

Item 2

Exact value (const): "temp"

power-domains — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
sbsc1: memory-controller@fe400000 {
        compatible = "renesas,sbsc-sh73a0";
        reg = <0xfe400000 0x400>;
        interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "sec", "temp";
        power-domains = <&pd_a4bc0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 21: R-Mobile APE6

Line 22: R-Mobile A1

Line 23: SH-Mobile AG5

Line 33: secure interrupt

Line 34: normal (temperature) interrupt

Renesas Reduced Pin Count Interface (RPC-IF)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/renesas,rpc-if.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"

Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to be accessed via the external address space read mode or the manual mode.

The flash chip itself should be represented by a subnode of the RPC-IF node. The flash interface is selected based on the "compatible" property of this subnode: - if it contains "jedec,spi-nor", then SPI is used; - if it contains "cfi-flash", then HyperFlash is used.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a774a1-rpc-if", "renesas,r8a774b1-rpc-if", "renesas,r8a774c0-rpc-if", "renesas,r8a774e1-rpc-if", "renesas,r8a7795-rpc-if", "renesas,r8a7796-rpc-if", "renesas,r8a77961-rpc-if", "renesas,r8a77965-rpc-if", "renesas,r8a77970-rpc-if", "renesas,r8a77980-rpc-if", "renesas,r8a77990-rpc-if", "renesas,r8a77995-rpc-if", "renesas,r8a779a0-rpc-if"

Item 2

Exact value (const): "renesas,rcar-gen3-rpc-if"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a779g0-rpc-if", "renesas,r8a779h0-rpc-if"

Item 2

Exact value (const): "renesas,rcar-gen4-rpc-if"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a07g043-rpc-if", "renesas,r9a07g044-rpc-if", "renesas,r9a07g054-rpc-if"

Item 2

Exact value (const): "renesas,rzg2l-rpc-if"

reg — required here #

Array item rules (items) #

Item 1

RPC-IF registers

Item 2

direct mapping read mode area

Item 3

write buffer area

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "regs"

Item 2

Exact value (const): "dirmap"

Item 3

Exact value (const): "wbuf"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

flash@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "cfi-flash", "jedec,spi-nor"

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "power-domains", "resets", "#address-cells", "#size-cells"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rzg2l-rpc-if"

When the condition matches (then) #

Properties and child nodes (properties) #

clocks — not listed as required here #

Array item rules (items)

Item 1

SPI Multi IO Register access clock (SPI_CLK2)

Item 2

SPI Multi IO Main clock (SPI_CLK).

When the condition does not match (else) #

Properties and child nodes (properties) #

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/renesas-cpg-mssr.h>
#include <dt-bindings/power/r8a77995-sysc.h>

spi@ee200000 {
  compatible = "renesas,r8a77995-rpc-if", "renesas,rcar-gen3-rpc-if";
  reg = <0xee200000 0x200>,
        <0x08000000 0x4000000>,
        <0xee208000 0x100>;
  reg-names = "regs", "dirmap", "wbuf";
  clocks = <&cpg CPG_MOD 917>;
  power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
  resets = <&cpg 917>;
  #address-cells = <1>;
  #size-cells = <0>;

  flash@0 {
    compatible = "jedec,spi-nor";
    reg = <0>;
    spi-max-frequency = <40000000>;
    spi-tx-bus-width = <1>;
    spi-rx-bus-width = <1>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 30: RZ/G2M

Line 31: RZ/G2N

Line 32: RZ/G2E

Line 33: RZ/G2H

Line 34: R-Car H3

Line 35: R-Car M3-W

Line 36: R-Car M3-W+

Line 37: R-Car M3-N

Line 38: R-Car V3M

Line 39: R-Car V3H

Line 40: R-Car E3

Line 41: R-Car D3

Line 42: R-Car V3U

Line 43: a generic R-Car gen3 or RZ/G2{E,H,M,N} device

Line 47: R-Car V4H

Line 48: R-Car V4M

Line 49: a generic R-Car gen4 device

Line 53: RZ/G2UL

Line 54: RZ/G2{L,LC}

Line 55: RZ/V2L

Renesas Expanded Serial Peripheral Interface (xSPI)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/renesas,rzg3e-xspi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"

Renesas xSPI allows a SPI flash connected to the SoC to be accessed via the memory-mapping or the manual command mode.

The flash chip itself should be represented by a subnode of the XSPI node. The flash interface is selected based on the "compatible" property of this subnode: - "jedec,spi-nor";

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "renesas,r9a09g047-xspi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a09g056-xspi", "renesas,r9a09g057-xspi"

Item 2

Exact value (const): "renesas,r9a09g047-xspi"

reg — required here #

Array item rules (items) #

Item 1

xSPI registers

Item 2

direct mapping area

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "regs"

Item 2

Exact value (const): "dirmap"

interrupts — required here #

Array item rules (items) #

Item 1

Interrupt pulse signal by factors excluding errors

Item 2

Interrupt pulse signal by error factors

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pulse"

Item 2

Exact value (const): "err_pulse"

clocks — required here #

Array item rules (items) #

Item 1

AHB clock

Item 2

AXI clock

Item 3

SPI clock

Item 4

Double speed SPI clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "axi"

Item 3

Exact value (const): "spi"

Item 4

Exact value (const): "spix2"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Array item rules (items) #

Item 1

Hardware reset

Item 2

AXI reset

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hresetn"

Item 2

Exact value (const): "aresetn"

renesas,xspi-cs-addr-sys — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the system controller (sys) that allows to configure xSPI CS0 and CS1 addresses.

Properties matching a name pattern (patternProperties) #

flash@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "jedec,spi-nor"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "resets", "reset-names", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/renesas,r9a09g047-cpg.h>

spi@11030000 {
    compatible = "renesas,r9a09g047-xspi";
    reg = <0x11030000 0x10000>, <0x20000000 0x10000000>;
    reg-names = "regs", "dirmap";
    interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "pulse", "err_pulse";
    clocks = <&cpg CPG_MOD 0x9f>, <&cpg CPG_MOD 0xa0>,
             <&cpg CPG_CORE 9>, <&cpg CPG_MOD 0xa1>;
    clock-names = "ahb", "axi", "spi", "spix2";
    power-domains = <&cpg>;
    resets = <&cpg 0xa3>, <&cpg 0xa4>;
    reset-names = "hresetn", "aresetn";
    #address-cells = <1>;
    #size-cells = <0>;

    flash@0 {
      compatible = "jedec,spi-nor";
      reg = <0>;
      spi-max-frequency = <40000000>;
      spi-tx-bus-width = <1>;
      spi-rx-bus-width = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 27: RZ/G3E

Line 31: RZ/V2N

Line 32: RZ/V2H(P)

Rockchip rk3399 DMC (Dynamic Memory Controller) device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/rockchip,rk3399-dmc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Brian Norris <briannorris@chromium.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3399-dmc"

devfreq-events — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Node to get DDR loading. Refer to Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml.

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dmc_clk"

operating-points-v2 — required here #

true — No constraints added by this property rule.

center-supply — required here #

DMC regulator supply.

rockchip,pmu — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the syscon managing the "PMU general register files".

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The CPU interrupt number. It should be a DCF interrupt. When DDR DVFS finishes, a DCF interrupt is triggered.

rockchip,ddr3_speed_bin — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

For values, reference include/dt-bindings/clock/rk3399-ddr.h. Selects the DDR3 cl-trp-trcd type. It must be set according to "Speed Bin" in DDR3 datasheet; DO NOT use a smaller "Speed Bin" than specified for the DDR3 being used.

rockchip,pd_idle — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Configure the PD_IDLE value. Defines the power-down idle period in which memories are placed into power-down mode if bus is idle for PD_IDLE DFI clock cycles. See also rockchip,pd-idle-ns.

rockchip,sr_idle — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Configure the SR_IDLE value. Defines the self-refresh idle period in which memories are placed into self-refresh mode if bus is idle for SR_IDLE * 1024 DFI clock cycles (DFI clocks freq is half of DRAM clock). See also rockchip,sr-idle-ns.

Default value (default): 0

rockchip,sr_mc_gate_idle — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the memory self-refresh and controller clock gating idle period. Memories are placed into self-refresh mode and memory controller clock arg gating started if bus is idle for sr_mc_gate_idle*1024 DFI clock cycles. See also rockchip,sr-mc-gate-idle-ns.

rockchip,srpd_lite_idle — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the self-refresh power down idle period in which memories are placed into self-refresh power down mode if bus is idle for srpd_lite_idle * 1024 DFI clock cycles. This parameter is for LPDDR4 only. See also rockchip,srpd-lite-idle-ns.

rockchip,standby_idle — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the standby idle period in which memories are placed into self-refresh mode. The controller, pi, PHY and DRAM clock will be gated if bus is idle for standby_idle * DFI clock cycles. See also rockchip,standby-idle-ns.

rockchip,dram_dll_dis_freq — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the DDR3 DLL bypass frequency in MHz. When DDR frequency is less than DRAM_DLL_DISB_FREQ, DDR3 DLL will be bypassed. Note: if DLL was bypassed, the odt will also stop working.

rockchip,phy_dll_dis_freq — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the PHY dll bypass frequency in MHz (Mega Hz). When DDR frequency is less than DRAM_DLL_DISB_FREQ, PHY DLL will be bypassed. Note: PHY DLL and PHY ODT are independent.

rockchip,auto_pd_dis_freq — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the auto PD disable frequency in MHz.

rockchip,ddr3_odt_dis_freq — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1000000

When the DRAM type is DDR3, this parameter defines the ODT disable frequency in Hz. When the DDR frequency is less then ddr3_odt_dis_freq, the ODT on the DRAM side and controller side are both disabled.

rockchip,ddr3_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is DDR3, this parameter defines the DRAM side drive strength in ohms.

Default value (default): 40

rockchip,ddr3_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is DDR3, this parameter defines the DRAM side ODT strength in ohms.

Default value (default): 120

rockchip,phy_ddr3_ca_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is DDR3, this parameter defines the phy side CA line (including command line, address line and clock line) drive strength.

Default value (default): 40

rockchip,phy_ddr3_dq_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is DDR3, this parameter defines the PHY side DQ line (including DQS/DQ/DM line) drive strength.

Default value (default): 40

rockchip,phy_ddr3_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is DDR3, this parameter defines the PHY side ODT strength.

Default value (default): 240

rockchip,lpddr3_odt_dis_freq — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1000000

When the DRAM type is LPDDR3, this parameter defines then ODT disable frequency in Hz. When DDR frequency is less then ddr3_odt_dis_freq, the ODT on the DRAM side and controller side are both disabled.

rockchip,lpddr3_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR3, this parameter defines the DRAM side drive strength in ohms.

Default value (default): 34

rockchip,lpddr3_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR3, this parameter defines the DRAM side ODT strength in ohms.

Default value (default): 240

rockchip,phy_lpddr3_ca_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR3, this parameter defines the PHY side CA line (including command line, address line and clock line) drive strength.

Default value (default): 40

rockchip,phy_lpddr3_dq_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR3, this parameter defines the PHY side DQ line (including DQS/DQ/DM line) drive strength.

Default value (default): 40

rockchip,phy_lpddr3_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When dram type is LPDDR3, this parameter define the phy side odt strength, default value is 240.

rockchip,lpddr4_odt_dis_freq — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1000000

When the DRAM type is LPDDR4, this parameter defines the ODT disable frequency in Hz. When the DDR frequency is less then ddr3_odt_dis_freq, the ODT on the DRAM side and controller side are both disabled.

rockchip,lpddr4_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the DRAM side drive strength in ohms.

Default value (default): 60

rockchip,lpddr4_dq_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the DRAM side ODT on DQS/DQ line strength in ohms.

Default value (default): 40

rockchip,lpddr4_ca_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the DRAM side ODT on CA line strength in ohms.

Default value (default): 40

rockchip,phy_lpddr4_ca_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the PHY side CA line (including command address line) drive strength.

Default value (default): 40

rockchip,phy_lpddr4_ck_cs_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the PHY side clock line and CS line drive strength.

Default value (default): 80

rockchip,phy_lpddr4_dq_drv — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the PHY side DQ line (including DQS/DQ/DM line) drive strength.

Default value (default): 80

rockchip,phy_lpddr4_odt — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When the DRAM type is LPDDR4, this parameter defines the PHY side ODT strength.

Default value (default): 60

rockchip,pd-idle-ns — not listed as required here #

Configure the PD_IDLE value in nanoseconds. Defines the power-down idle period in which memories are placed into power-down mode if bus is idle for PD_IDLE nanoseconds.

rockchip,sr-idle-ns — not listed as required here #

Configure the SR_IDLE value in nanoseconds. Defines the self-refresh idle period in which memories are placed into self-refresh mode if bus is idle for SR_IDLE nanoseconds.

Default value (default): 0

rockchip,sr-mc-gate-idle-ns — not listed as required here #

Defines the memory self-refresh and controller clock gating idle period in nanoseconds. Memories are placed into self-refresh mode and memory controller clock arg gating started if bus is idle for sr_mc_gate_idle nanoseconds.

rockchip,srpd-lite-idle-ns — not listed as required here #

Defines the self-refresh power down idle period in which memories are placed into self-refresh power down mode if bus is idle for srpd_lite_idle nanoseconds. This parameter is for LPDDR4 only.

rockchip,standby-idle-ns — not listed as required here #

Defines the standby idle period in which memories are placed into self-refresh mode. The controller, pi, PHY and DRAM clock will be gated if bus is idle for standby_idle nanoseconds.

rockchip,pd-idle-dis-freq-hz — not listed as required here #

Defines the power-down idle disable frequency in Hz. When the DDR frequency is greater than pd-idle-dis-freq, power-down idle is disabled. See also rockchip,pd-idle-ns.

rockchip,sr-idle-dis-freq-hz — not listed as required here #

Defines the self-refresh idle disable frequency in Hz. When the DDR frequency is greater than sr-idle-dis-freq, self-refresh idle is disabled. See also rockchip,sr-idle-ns.

rockchip,sr-mc-gate-idle-dis-freq-hz — not listed as required here #

Defines the self-refresh and memory-controller clock gating disable frequency in Hz. When the DDR frequency is greater than sr-mc-gate-idle-dis-freq, the clock will not be gated when idle. See also rockchip,sr-mc-gate-idle-ns.

rockchip,srpd-lite-idle-dis-freq-hz — not listed as required here #

Defines the self-refresh power down idle disable frequency in Hz. When the DDR frequency is greater than srpd-lite-idle-dis-freq, memory will not be placed into self-refresh power down mode when idle. See also rockchip,srpd-lite-idle-ns.

rockchip,standby-idle-dis-freq-hz — not listed as required here #

Defines the standby idle disable frequency in Hz. When the DDR frequency is greater than standby-idle-dis-freq, standby idle is disabled. See also rockchip,standby-idle-ns.

Required in this object (required): "compatible", "devfreq-events", "clocks", "clock-names", "operating-points-v2", "center-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
memory-controller {
  compatible = "rockchip,rk3399-dmc";
  devfreq-events = <&dfi>;
  rockchip,pmu = <&pmu>;
  interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_DDRC>;
  clock-names = "dmc_clk";
  operating-points-v2 = <&dmc_opp_table>;
  center-supply = <&ppvar_centerlogic>;
  rockchip,pd-idle-ns = <160>;
  rockchip,sr-idle-ns = <10240>;
  rockchip,sr-mc-gate-idle-ns = <40960>;
  rockchip,srpd-lite-idle-ns = <61440>;
  rockchip,standby-idle-ns = <81920>;
  rockchip,ddr3_odt_dis_freq = <333000000>;
  rockchip,lpddr3_odt_dis_freq = <333000000>;
  rockchip,lpddr4_odt_dis_freq = <333000000>;
  rockchip,pd-idle-dis-freq-hz = <1000000000>;
  rockchip,sr-idle-dis-freq-hz = <1000000000>;
  rockchip,sr-mc-gate-idle-dis-freq-hz = <1000000000>;
  rockchip,srpd-lite-idle-dis-freq-hz = <0>;
  rockchip,standby-idle-dis-freq-hz = <928000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: %YAML 1.2

Line 128: In case anyone thought this was MHz.

Line 176: In case anyone thought this was MHz.

Line 223: In case anyone thought this was MHz.

Peripheral Properties for Samsung Exynos SoC SROM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/samsung,exynos4210-srom-peripheral-props.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

samsung,srom-page-mode — not listed as required here #

If page mode is set, 4 data page mode will be configured, else normal (1 data) page mode will be set.

Value type (type): "boolean"

samsung,srom-timing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

Array of 6 integers, specifying bank timings in the following order: Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs. Each value is specified in cycles and has the following meaning and valid range: Tacp: Page mode access cycle at Page mode (0 - 15) Tcah: Address holding time after CSn (0 - 15) Tcoh: Chip selection hold on OEn (0 - 15) Tacc: Access cycle (0 - 31, the actual time is N + 1) Tcos: Chip selection set-up before OEn (0 - 15) Tacs: Address set-up before CSn (0 - 15)

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Samsung Exynos5422 SoC frequency and voltage scaling for Dynamic Memory Controller device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/samsung,exynos5422-dmc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Lukasz Luba <lukasz.luba@arm.com>"

The Samsung Exynos5422 SoC has DMC (Dynamic Memory Controller) to which the DRAM memory chips are connected. The driver is to monitor the controller in runtime and switch frequency and voltage. To monitor the usage of the controller in runtime, the driver uses the PPMU (Platform Performance Monitoring Unit), which is able to measure the current load of the memory. When 'userspace' governor is used for the driver, an application is able to switch the DMC and memory frequency.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "samsung,exynos5422-dmc"

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fout_spll"

Item 2

Exact value (const): "mout_sclk_spll"

Item 3

Exact value (const): "ff_dout_spll2"

Item 4

Exact value (const): "fout_bpll"

Item 5

Exact value (const): "mout_bpll"

Item 6

Exact value (const): "sclk_bpll"

Item 7

Exact value (const): "mout_mx_mspll_ccore"

Item 8

Exact value (const): "mout_mclk_cdrex"

clocks — required here #

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

devfreq-events — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

Array item rules (items) #

Maximum number of items (maxItems): 1

phandles of the PPMU events used by the controller.

device-handle — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle of the connected DRAM memory device. For more information please refer to jedec,lpddr3.yaml.

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Array item rules (items) #

Item 1

DMC internal performance event counters in DREX0

Item 2

DMC internal performance event counters in DREX1

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "drex_0"

Item 2

Exact value (const): "drex_1"

reg — required here #

Array item rules (items) #

Item 1

registers of DREX0

Item 2

registers of DREX1

samsung,syscon-clk — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle of the clock register set used by the controller, these registers are used for enabling a 'pause' feature and are not exposed by clock framework but they must be used in a safe way. The register offsets are in the driver code and specyfic for this SoC type.

vdd-supply — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "clock-names", "clocks", "devfreq-events", "device-handle", "reg", "samsung,syscon-clk"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos5420.h>
ppmu_dmc0_0: ppmu@10d00000 {
    compatible = "samsung,exynos-ppmu";
    reg = <0x10d00000 0x2000>;
    clocks = <&clock CLK_PCLK_PPMU_DREX0_0>;
    clock-names = "ppmu";
    events {
        ppmu_event_dmc0_0: ppmu-event3-dmc0-0 {
            event-name = "ppmu-event3-dmc0_0";
        };
    };
};

memory-controller@10c20000 {
    compatible = "samsung,exynos5422-dmc";
    reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>;
    clocks = <&clock CLK_FOUT_SPLL>,
             <&clock CLK_MOUT_SCLK_SPLL>,
             <&clock CLK_FF_DOUT_SPLL2>,
             <&clock CLK_FOUT_BPLL>,
             <&clock CLK_MOUT_BPLL>,
             <&clock CLK_SCLK_BPLL>,
             <&clock CLK_MOUT_MX_MSPLL_CCORE>,
             <&clock CLK_MOUT_MCLK_CDREX>;
    clock-names = "fout_spll",
                  "mout_sclk_spll",
                  "ff_dout_spll2",
                  "fout_bpll",
                  "mout_bpll",
                  "sclk_bpll",
                  "mout_mx_mspll_ccore",
                  "mout_mclk_cdrex";
    operating-points-v2 = <&dmc_opp_table>;
    devfreq-events = <&ppmu_event3_dmc0_0>,	<&ppmu_event3_dmc0_1>,
                     <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>;
    device-handle = <&samsung_K3QF2F20DB>;
    vdd-supply = <&buck1_reg>;
    samsung,syscon-clk = <&clock>;
    interrupt-parent = <&combiner>;
    interrupts = <16 0>, <16 1>;
    interrupt-names = "drex_0", "drex_1";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Samsung S5Pv210 SoC Dynamic Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/samsung,s5pv210-dmc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Dynamic Memory Controller interfaces external JEDEC DDR-type SDRAM.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "samsung,s5pv210-dmc"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@f0000000 {
    compatible = "samsung,s5pv210-dmc";
    reg = <0xf0000000 0x1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Synopsys DesignWare Universal Multi-Protocol Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/snps,dw-umctl2-ddrc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Michal Simek <michal.simek@amd.com>"

Synopsys DesignWare Enhanced uMCTL2 DDR Memory Controller is capable of working with the memory devices supporting up to (LP)DDR4 protocol. It can be equipped with SEC/DEC ECC feature if DRAM data bus width is either 16-bits or 32-bits or 64-bits wide.

For instance the ZynqMP DDR controller is based on the DW uMCTL2 v2.40a controller. It has an optional SEC/DEC ECC support in 64- and 32-bits bus width configurations.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Deprecated (deprecated): true

Synopsys DW uMCTL2 DDR controller v3.80a

Exact value (const): "snps,ddrc-3.80a"

Rule 2

Synopsys DW uMCTL2 DDR controller

Exact value (const): "snps,dw-umctl2-ddrc"

Rule 3

Xilinx ZynqMP DDR controller v2.40a

Exact value (const): "xlnx,zynqmp-ddrc-2.40a"

interrupts — required here #

DW uMCTL2 DDRC IP-core provides individual IRQ signal for each event":" ECC Corrected Error, ECC Uncorrected Error, ECC Address Protection, Scrubber-Done signal, DFI Parity/CRC Error. Some platforms may have the signals merged before they reach the IRQ controller or have some of them absent in case if the corresponding feature is unavailable/disabled.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

Exactly one of these rules must match (oneOf) #

Rule 1

Common ECC CE/UE/Scrubber/DFI Errors IRQ

Array item rules (items)

Item 1

Exact value (const): "ecc"

Rule 2

Individual ECC CE/UE/Scrubber/DFI Errors IRQs

Array item rules (items)

Allowed values (enum): "ecc_ce", "ecc_ue", "ecc_ap", "ecc_sbr", "dfi_e"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

A standard set of the clock sources contains CSRs bus clock, AXI-ports reference clock, DDRC core clock, Scrubber standalone clock (synchronous to the DDRC clock).

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "pclk", "aclk", "core", "sbr"

resets — not listed as required here #

Each clock domain can have separate reset signal.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "prst", "arst", "core", "sbr"

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

memory-controller@fd070000 {
  compatible = "xlnx,zynqmp-ddrc-2.40a";
  reg = <0xfd070000 0x30000>;

  interrupt-parent = <&gic>;
  interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "ecc";
};
#include <dt-bindings/interrupt-controller/irq.h>

memory-controller@3d400000 {
  compatible = "snps,dw-umctl2-ddrc";
  reg = <0x3d400000 0x400000>;

  interrupts = <147 IRQ_TYPE_LEVEL_HIGH>, <148 IRQ_TYPE_LEVEL_HIGH>,
               <149 IRQ_TYPE_LEVEL_HIGH>, <150 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "ecc_ce", "ecc_ue", "ecc_sbr", "dfi_e";

  clocks = <&pclk>, <&aclk>, <&core_clk>, <&sbr_clk>;
  clock-names = "pclk", "aclk", "core", "sbr";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Peripheral properties for ST FMC2 Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/st,stm32-fmc2-ebi-props.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Christophe Kerello <christophe.kerello@foss.st.com>", "Marek Vasut <marex@denx.de>"

Properties and child nodes (properties) #

st,fmc2-ebi-cs-transaction-type — not listed as required here #

Select one of the transactions type supported 0: Asynchronous mode 1 SRAM/FRAM. 1: Asynchronous mode 1 PSRAM. 2: Asynchronous mode A SRAM/FRAM. 3: Asynchronous mode A PSRAM. 4: Asynchronous mode 2 NOR. 5: Asynchronous mode B NOR. 6: Asynchronous mode C NOR. 7: Asynchronous mode D NOR. 8: Synchronous read synchronous write PSRAM. 9: Synchronous read asynchronous write PSRAM. 10: Synchronous read synchronous write NOR. 11: Synchronous read asynchronous write NOR.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 11

st,fmc2-ebi-cs-cclk-enable — not listed as required here #

Continuous clock enable (first bank must be configured in synchronous mode). The FMC_CLK is generated continuously during asynchronous and synchronous access. By default, the FMC_CLK is only generated during synchronous access.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

st,fmc2-ebi-cs-mux-enable — not listed as required here #

Address/Data multiplexed on databus (valid only with NOR and PSRAM transactions type). By default, Address/Data are not multiplexed.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

st,fmc2-ebi-cs-buswidth — not listed as required here #

Data bus width

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 8, 16

Default value (default): 16

st,fmc2-ebi-cs-waitpol-high — not listed as required here #

Wait signal polarity (NWAIT signal active high). By default, NWAIT is active low.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

st,fmc2-ebi-cs-waitcfg-enable — not listed as required here #

The NWAIT signal indicates wheither the data from the device are valid or if a wait state must be inserted when accessing the device in synchronous mode. By default, the NWAIT signal is active one data cycle before wait state.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

st,fmc2-ebi-cs-wait-enable — not listed as required here #

The NWAIT signal is enabled (its level is taken into account after the programmed latency period to insert wait states if asserted). By default, the NWAIT signal is disabled.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

st,fmc2-ebi-cs-asyncwait-enable — not listed as required here #

The NWAIT signal is taken into account during asynchronous transactions. By default, the NWAIT signal is not taken into account during asynchronous transactions.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

st,fmc2-ebi-cs-cpsize — not listed as required here #

CRAM page size. The controller splits the burst access when the memory page is reached. By default, no burst split when crossing page boundary.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 128, 256, 512, 1024

Default value (default): 0

st,fmc2-ebi-cs-byte-lane-setup-ns — not listed as required here #

This property configures the byte lane setup timing defined in nanoseconds from NBLx low to Chip Select NEx low.

st,fmc2-ebi-cs-address-setup-ns — not listed as required here #

This property defines the duration of the address setup phase in nanoseconds used for asynchronous read/write transactions.

st,fmc2-ebi-cs-address-hold-ns — not listed as required here #

This property defines the duration of the address hold phase in nanoseconds used for asynchronous multiplexed read/write transactions.

st,fmc2-ebi-cs-data-setup-ns — not listed as required here #

This property defines the duration of the data setup phase in nanoseconds used for asynchronous read/write transactions.

st,fmc2-ebi-cs-bus-turnaround-ns — not listed as required here #

This property defines the delay in nanoseconds between the end of current read/write transaction and the next transaction.

st,fmc2-ebi-cs-data-hold-ns — not listed as required here #

This property defines the duration of the data hold phase in nanoseconds used for asynchronous read/write transactions.

st,fmc2-ebi-cs-clk-period-ns — not listed as required here #

This property defines the FMC_CLK output signal period in nanoseconds.

st,fmc2-ebi-cs-data-latency-ns — not listed as required here #

This property defines the data latency before reading or writing the first data in nanoseconds.

st,fmc2-ebi-cs-write-address-setup-ns — not listed as required here #

This property defines the duration of the address setup phase in nanoseconds used for asynchronous write transactions.

st,fmc2-ebi-cs-write-address-hold-ns — not listed as required here #

This property defines the duration of the address hold phase in nanoseconds used for asynchronous multiplexed write transactions.

st,fmc2-ebi-cs-write-data-setup-ns — not listed as required here #

This property defines the duration of the data setup phase in nanoseconds used for asynchronous write transactions.

st,fmc2-ebi-cs-write-bus-turnaround-ns — not listed as required here #

This property defines the delay between the end of current write transaction and the next transaction in nanoseconds.

st,fmc2-ebi-cs-write-data-hold-ns — not listed as required here #

This property defines the duration of the data hold phase in nanoseconds used for asynchronous write transactions.

st,fmc2-ebi-cs-max-low-pulse-ns — not listed as required here #

This property defines the maximum chip select low pulse duration in nanoseconds for synchronous transactions. When this timing reaches 0, the controller splits the current access, toggles NE to allow device refresh and restarts a new access.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

STMicroelectronics Flexible Memory Controller 2 (FMC2)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/st,stm32-fmc2-ebi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The FMC2 functional block makes the interface with: synchronous and
asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped
peripherals) and NAND flash memories.
Its main purposes are:
  - to translate AXI transactions into the appropriate external device
    protocol
  - to meet the access time requirements of the external devices
All external devices share the addresses, data and control signals with the
controller. Each external device is accessed by means of a unique Chip
Select. The FMC2 performs only one access at a time to an external device.

Maintainers (maintainers): "Christophe Kerello <christophe.kerello@foss.st.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stm32mp1-fmc2-ebi", "st,stm32mp25-fmc2-ebi"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

ranges — required here #

Reflects the memory layout with four integer values per bank. Format: <bank-number> 0 <address of the bank> <size>

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Properties matching a name pattern (patternProperties) #

^.*@[0-4],[a-f0-9]+$ — name matches this regular expression #

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Value type (type): "object"

Shared schema rule ($ref): mc-peripheral-props.yaml#

Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg", "clocks", "ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
memory-controller@58002000 {
  #address-cells = <2>;
  #size-cells = <1>;
  compatible = "st,stm32mp1-fmc2-ebi";
  reg = <0x58002000 0x1000>;
  clocks = <&rcc FMC_K>;
  resets = <&rcc FMC_R>;

  ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */
           <1 0 0x64000000 0x04000000>, /* EBI CS 2 */
           <2 0 0x68000000 0x04000000>, /* EBI CS 3 */
           <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */
           <4 0 0x80000000 0x10000000>; /* NAND */

  psram@0,0 {
    compatible = "mtd-ram";
    reg = <0 0x00000000 0x100000>;
    bank-width = <2>;

    st,fmc2-ebi-cs-transaction-type = <1>;
    st,fmc2-ebi-cs-address-setup-ns = <60>;
    st,fmc2-ebi-cs-data-setup-ns = <30>;
    st,fmc2-ebi-cs-bus-turnaround-ns = <5>;
  };

  nand-controller@4,0 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "st,stm32mp1-fmc2-nfc";
    reg = <4 0x00000000 0x1000>,
          <4 0x08010000 0x1000>,
          <4 0x08020000 0x1000>,
          <4 0x01000000 0x1000>,
          <4 0x09010000 0x1000>,
          <4 0x09020000 0x1000>;
    interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>,
           <&mdma1 20 0x2 0x12000a08 0x0 0x0>,
           <&mdma1 21 0x2 0x12000a0a 0x0 0x0>;
    dma-names = "tx", "rx", "ecc";

    nand@0 {
      reg = <0>;
      nand-on-flash-bbt;
      #address-cells = <1>;
      #size-cells = <1>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

STM32 Octo Memory Manager (OMM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/st,stm32mp25-omm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Patrice Chotard <patrice.chotard@foss.st.com>"

The STM32 Octo Memory Manager is a low-level interface that enables an
efficient OCTOSPI pin assignment with a full I/O matrix (before alternate
function map) and multiplex of single/dual/quad/octal SPI interfaces over
the same bus. It Supports up to:
  - Two single/dual/quad/octal SPI interfaces
  - Two ports for pin assignment

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,stm32mp25-omm"

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 1

ranges — required here #

Reflects the memory layout per OSPI instance. Format: <chip-select> 0 <registers base address> <size>

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reg — required here #

Array item rules (items) #

Item 1

OMM registers

Item 2

OMM memory map area

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "regs"

Item 2

Exact value (const): "memory_map"

memory-region — not listed as required here #

Memory region shared between the 2 OCTOSPI instance. One or two phandle to a node describing a memory mapped region depending of child number.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

memory-region-names — not listed as required here #

Identify to which OSPI instance the memory region belongs to.

Array item rules (items) #

Allowed values (enum): "ospi1", "ospi2"

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "omm"

Item 2

Exact value (const): "ospi1"

Item 3

Exact value (const): "ospi2"

resets — required here #

Maximum number of items (maxItems): 3

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "omm"

Item 2

Exact value (const): "ospi1"

Item 3

Exact value (const): "ospi2"

access-controllers — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

st,syscfg-amcr — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

The Address Mapping Control Register (AMCR) is used to split the 256MB
memory map area shared between the 2 OSPI instance. The Octo Memory
Manager sets the AMCR depending of the memory-region configuration.
The memory split bitmask description is:
  - 000: OCTOSPI1 (256 Mbytes), OCTOSPI2 unmapped
  - 001: OCTOSPI1 (192 Mbytes), OCTOSPI2 (64 Mbytes)
  - 010: OCTOSPI1 (128 Mbytes), OCTOSPI2 (128 Mbytes)
  - 011: OCTOSPI1 (64 Mbytes), OCTOSPI2 (192 Mbytes)
  - 1xx: OCTOSPI1 unmapped, OCTOSPI2 (256 Mbytes)

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to syscfg

Item 2

register offset within syscfg

Item 3

register bitmask for memory split

st,omm-req2ack-ns — not listed as required here #

In multiplexed mode (MUXEN = 1), this field defines the time in nanoseconds between two transactions.

Default value (default): 0

st,omm-cssel-ovr — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Configure the chip select selector override for the 2 OCTOSPIs. - 0: OCTOSPI1 chip select send to NCS1 OCTOSPI2 chip select send to NCS1 - 1: OCTOSPI1 chip select send to NCS2 OCTOSPI2 chip select send to NCS1 - 2: OCTOSPI1 chip select send to NCS1 OCTOSPI2 chip select send to NCS2 - 3: OCTOSPI1 chip select send to NCS2 OCTOSPI2 chip select send to NCS2

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

st,omm-mux — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Configure the muxing between the 2 OCTOSPIs busses and the 2 output ports. - 0: direct mode - 1: mux OCTOSPI1 and OCTOSPI2 to port 1 - 2: swapped mode - 3: mux OCTOSPI1 and OCTOSPI2 to port 2

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

Properties matching a name pattern (patternProperties) #

^spi@[0-9] — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/spi/st,stm32mp25-ospi.yaml#

Required spi child node

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "clocks", "clock-names", "resets", "reset-names", "st,syscfg-amcr", "ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/st,stm32mp25-rcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/st,stm32mp25-rcc.h>
ommanager@40500000 {
  compatible = "st,stm32mp25-omm";
  reg = <0x40500000 0x400>, <0x60000000 0x10000000>;
  reg-names = "regs", "memory_map";
  ranges = <0 0 0x40430000 0x400>,
           <1 0 0x40440000 0x400>;
  memory-region = <&mm_ospi1>, <&mm_ospi2>;
  memory-region-names = "ospi1", "ospi2";
  pinctrl-0 = <&ospi_port1_clk_pins_a
               &ospi_port1_io03_pins_a
               &ospi_port1_cs0_pins_a>;
  pinctrl-1 = <&ospi_port1_clk_sleep_pins_a
               &ospi_port1_io03_sleep_pins_a
               &ospi_port1_cs0_sleep_pins_a>;
  pinctrl-names = "default", "sleep";
  clocks = <&rcc CK_BUS_OSPIIOM>,
           <&scmi_clk CK_SCMI_OSPI1>,
           <&scmi_clk CK_SCMI_OSPI2>;
  clock-names = "omm", "ospi1", "ospi2";
  resets = <&rcc OSPIIOM_R>,
           <&scmi_reset RST_SCMI_OSPI1>,
           <&scmi_reset RST_SCMI_OSPI2>;
  reset-names = "omm", "ospi1", "ospi2";
  access-controllers = <&rifsc 111>;
  power-domains = <&CLUSTER_PD>;
  #address-cells = <2>;
  #size-cells = <1>;
  st,syscfg-amcr = <&syscfg 0x2c00 0x7>;
  st,omm-req2ack-ns = <0>;
  st,omm-mux = <0>;
  st,omm-cssel-ovr = <0>;

  spi@0 {
    compatible = "st,stm32mp25-ospi";
    reg = <0 0 0x400>;
    memory-region = <&mm_ospi1>;
    interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&hpdma 2 0x62 0x00003121 0x0>,
           <&hpdma 2 0x42 0x00003112 0x0>;
    dma-names = "tx", "rx";
    clocks = <&scmi_clk CK_SCMI_OSPI1>;
    resets = <&scmi_reset RST_SCMI_OSPI1>, <&scmi_reset RST_SCMI_OSPI1DLL>;
    access-controllers = <&rifsc 74>;
    power-domains = <&CLUSTER_PD>;
    #address-cells = <1>;
    #size-cells = <0>;
    st,syscfg-dlyb = <&syscfg 0x1000>;
  };

  spi@1 {
    compatible = "st,stm32mp25-ospi";
    reg = <1 0 0x400>;
    memory-region = <&mm_ospi1>;
    interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&hpdma 3 0x62 0x00003121 0x0>,
           <&hpdma 3 0x42 0x00003112 0x0>;
    dma-names = "tx", "rx";
    clocks = <&scmi_clk CK_KER_OSPI2>;
    resets = <&scmi_reset RST_SCMI_OSPI2>, <&scmi_reset RST_SCMI_OSPI1DLL>;
    access-controllers = <&rifsc 75>;
    power-domains = <&CLUSTER_PD>;
    #address-cells = <1>;
    #size-cells = <0>;
    st,syscfg-dlyb = <&syscfg 0x1000>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

StarFive JH7110 DMC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/starfive,jh7110-dmc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "E Shattow <e@freeshell.de>"

JH7110 DDR external memory interface LPDDR4/DDR4/DDR3/LPDDR3 32-bit at 2133Mbps (up to 2800Mbps).

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "starfive,jh7110-dmc"

reg — required here #

Array item rules (items) #

Item 1

controller registers

Item 2

phy registers

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pll"

resets — required here #

Array item rules (items) #

Item 1

axi

Item 2

osc

Item 3

apb

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "axi"

Item 2

Exact value (const): "osc"

Item 3

Exact value (const): "apb"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/starfive,jh7110-crg.h>
#include <dt-bindings/reset/starfive,jh7110-crg.h>
soc {
  #address-cells = <2>;
  #size-cells = <2>;

  memory-controller@15700000 {
    compatible = "starfive,jh7110-dmc";
    reg = <0x0 0x15700000 0x0 0x10000>,
          <0x0 0x13000000 0x0 0x10000>;
    clocks = <&syscrg JH7110_PLLCLK_PLL1_OUT>;
    clock-names = "pll";
    resets = <&syscrg JH7110_SYSRST_DDR_AXI>,
             <&syscrg JH7110_SYSRST_DDR_OSC>,
             <&syscrg JH7110_SYSRST_DDR_APB>;
    reset-names = "axi", "osc", "apb";
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments da8xx DDR2/mDDR memory controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ti,da8xx-ddrctl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bartosz Golaszewski <bgolaszewski@baylibre.com>", "Krzysztof Kozlowski <krzk@kernel.org>"

Documentation:
  OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh82c/spruh82c.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,da850-ddr-controller"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@b0000000 {
    compatible = "ti,da850-ddr-controller";
    reg = <0xb0000000 0xe8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Texas Instruments GPMC Bus Child Nodes

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ti,gpmc-child.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Roger Quadros <rogerq@kernel.org>"

This binding is meant for the child nodes of the GPMC node. The node represents any device connected to the GPMC bus. It may be a Flash chip, RAM chip or Ethernet controller, etc. These properties are meant for configuring the GPMC settings/timings and will accompany the bindings supported by the respective device.

Properties and child nodes (properties) #

reg — required here #

true — No constraints added by this property rule.

gpmc,sync-clk-ps — not listed as required here #

Minimum clock period for synchronous mode

Default value (default): 0

gpmc,cs-on-ns — not listed as required here #

Assertion time

Default value (default): 0

gpmc,cs-rd-off-ns — not listed as required here #

Read deassertion time

Default value (default): 0

gpmc,cs-wr-off-ns — not listed as required here #

Write deassertion time

Default value (default): 0

gpmc,adv-on-ns — not listed as required here #

Assertion time

Default value (default): 0

gpmc,adv-rd-off-ns — not listed as required here #

Read deassertion time

Default value (default): 0

gpmc,adv-wr-off-ns — not listed as required here #

Write deassertion time

Default value (default): 0

gpmc,adv-aad-mux-on-ns — not listed as required here #

Assertion time for AAD

Default value (default): 0

gpmc,adv-aad-mux-rd-off-ns — not listed as required here #

Read deassertion time for AAD

Default value (default): 0

gpmc,adv-aad-mux-wr-off-ns — not listed as required here #

Write deassertion time for AAD

Default value (default): 0

gpmc,we-on-ns — not listed as required here #

Assertion time

Default value (default): 0

gpmc,we-off-ns — not listed as required here #

Deassertion time

Default value (default): 0

gpmc,oe-on-ns — not listed as required here #

Assertion time

Default value (default): 0

gpmc,oe-off-ns — not listed as required here #

Deassertion time

Default value (default): 0

gpmc,oe-aad-mux-on-ns — not listed as required here #

Assertion time for AAD

Default value (default): 0

gpmc,oe-aad-mux-off-ns — not listed as required here #

Deassertion time for AAD

Default value (default): 0

gpmc,page-burst-access-ns — not listed as required here #

Multiple access word delay

Default value (default): 0

gpmc,access-ns — not listed as required here #

Start-cycle to first data valid delay

Default value (default): 0

gpmc,rd-cycle-ns — not listed as required here #

Total read cycle time

Default value (default): 0

gpmc,wr-cycle-ns — not listed as required here #

Total write cycle time

Default value (default): 0

gpmc,bus-turnaround-ns — not listed as required here #

Turn-around time between successive accesses

Default value (default): 0

gpmc,cycle2cycle-delay-ns — not listed as required here #

Delay between chip-select pulses

Default value (default): 0

gpmc,clk-activation-ns — not listed as required here #

GPMC clock activation time

Default value (default): 0

gpmc,wait-monitoring-ns — not listed as required here #

Start of wait monitoring with regard to valid data

Default value (default): 0

gpmc,adv-extra-delay — not listed as required here #

ADV signal is delayed by half GPMC clock

Value type (type): "boolean"

gpmc,cs-extra-delay — not listed as required here #

CS signal is delayed by half GPMC clock

Value type (type): "boolean"

gpmc,cycle2cycle-diffcsen — not listed as required here #

Add "cycle2cycle-delay" between successive accesses to a different CS

Value type (type): "boolean"

gpmc,cycle2cycle-samecsen — not listed as required here #

Add "cycle2cycle-delay" between successive accesses to the same CS

Value type (type): "boolean"

gpmc,oe-extra-delay — not listed as required here #

OE signal is delayed by half GPMC clock

Value type (type): "boolean"

gpmc,we-extra-delay — not listed as required here #

WE signal is delayed by half GPMC clock

Value type (type): "boolean"

gpmc,time-para-granularity — not listed as required here #

Multiply all access times by 2

Value type (type): "boolean"

gpmc,wr-access-ns — not listed as required here #

In synchronous write mode, for single or burst accesses, defines the number of GPMC_FCLK cycles from start access time to the GPMC_CLK rising edge used by the memory device for the first data capture.

Default value (default): 0

gpmc,wr-data-mux-bus-ns — not listed as required here #

In address-data multiplex mode, specifies the time when the first data is driven on the address-data bus.

Default value (default): 0

gpmc,burst-length — not listed as required here #

Page/burst length.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 4, 8, 16

Default value (default): 0

gpmc,burst-wrap — not listed as required here #

Enables wrap bursting

Value type (type): "boolean"

gpmc,burst-read — not listed as required here #

Enables read page/burst mode

Value type (type): "boolean"

gpmc,burst-write — not listed as required here #

Enables write page/burst mode

Value type (type): "boolean"

gpmc,device-width — not listed as required here #

Total width of device(s) connected to a GPMC chip-select in bytes. The GPMC supports 8-bit and 16-bit devices and so this property must be 1 or 2.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2

Default value (default): 1

gpmc,mux-add-data — not listed as required here #

Address and data multiplexing configuration. Valid values are 0 for Non multiplexed mode 1 for address-address-data multiplexing mode and 2 for address-data multiplexing mode.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

gpmc,sync-read — not listed as required here #

Enables synchronous read. Defaults to asynchronous is this is not set.

Value type (type): "boolean"

gpmc,sync-write — not listed as required here #

Enables synchronous writes. Defaults to asynchronous is this is not set.

Value type (type): "boolean"

gpmc,wait-pin — not listed as required here #

Wait-pin used by client. Must be less than "gpmc,num-waitpins".

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ti,wait-pin-polarity — not listed as required here #

Set the desired polarity for the selected wait pin. 0 for active low, 1 for active high.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

gpmc,wait-on-read — not listed as required here #

Enables wait monitoring on reads.

Value type (type): "boolean"

gpmc,wait-on-write — not listed as required here #

Enables wait monitoring on writes.

Value type (type): "boolean"

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 23: GPMC Timing properties for child nodes. All are optional and default to 0.

Line 28: Chip-select signal timings corresponding to GPMC_CONFIG2:

Line 41: ADV signal timings corresponding to GPMC_CONFIG3:

Line 66: WE signals timings corresponding to GPMC_CONFIG4:

Line 75: OE signals timings corresponding to GPMC_CONFIG4:

Line 92: Access time and cycle time timings (in nanoseconds) corresponding to

Line 93: GPMC_CONFIG5:

Line 126: Boolean timing parameters. If property is present, parameter is enabled

Line 127: otherwise disabled.

Line 160: The following two properties are applicable only to OMAP3+ and AM335x:

Line 177: GPMC chip-select settings properties for child nodes. All are optional.

Line 251: the GPMC child will have its own native properties

Texas Instruments GPMC Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/ti,gpmc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Roger Quadros <rogerq@kernel.org>"

The GPMC is a unified memory controller dedicated for interfacing with external memory devices like - Asynchronous SRAM-like memories and ASICs - Asynchronous, synchronous, and page mode burst NOR flash - NAND flash - Pseudo-SRAM devices

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "ti,am3352-gpmc", "ti,am64-gpmc", "ti,omap2420-gpmc", "ti,omap2430-gpmc", "ti,omap3430-gpmc", "ti,omap4430-gpmc"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "cfg"

Item 2

Exact value (const): "data"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Functional clock. Used for bus timing calculations and GPMC configuration.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "fck"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA channel for GPMC NAND prefetch

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rxtx"

#address-cells — required here #

true — No constraints added by this property rule.

#size-cells — required here #

true — No constraints added by this property rule.

gpmc,num-cs — required here #

maximum number of supported chip-select lines.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

gpmc,num-waitpins — required here #

maximum number of supported wait pins.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ranges — not listed as required here #

Minimum number of items (minItems): 1

Must be set up to reflect the memory layout with four integer values for each chip-select line in use, <cs-number> 0 <physical address of mapping> <size>

Array item rules (items) #

Item 1

NAND bank 0

Item 2

NOR/SRAM bank 0

Item 3

NOR/SRAM bank 1

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

The GPMC driver implements an interrupt controller for the NAND events "fifoevent" and "termcount" plus the rising/falling edges on the GPMC_WAIT pins. The interrupt number mapping is as follows 0 - NAND_fifoevent 1 - NAND_termcount 2 - GPMC_WAIT0 pin edge 3 - GPMC_WAIT1 pin edge, and so on.

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-controller — not listed as required here #

The GPMC driver implements a GPIO controller for the GPMC WAIT pins that can be used as general purpose inputs. 0 maps to GPMC_WAIT0 pin.

ti,hwmods — not listed as required here #

Name of the HWMOD associated with GPMC. This is for legacy omap2/3 platforms only.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Deprecated (deprecated): true

ti,no-idle-on-init — not listed as required here #

Prevent idling the module at init. This is for legacy omap2/3 platforms only.

Value type (type): "boolean"

Deprecated (deprecated): true

Properties matching a name pattern (patternProperties) #

@[0-7],[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

The child device node represents the device connected to the GPMC bus. The device can be a NAND chip, SRAM device, NOR device or an ASIC.

Shared schema rule ($ref): ti,gpmc-child.yaml

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "compatible", "reg", "gpmc,num-cs", "gpmc,num-waitpins", "#address-cells", "#size-cells"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,am64-gpmc"

When the condition matches (then) #

Required in this object (required): "reg-names", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>

gpmc: memory-controller@50000000 {
  compatible = "ti,am3352-gpmc";
  reg = <0x50000000 0x2000>;
  interrupts = <100>;
  clocks = <&l3s_clkctrl>;
  clock-names = "fck";
  dmas = <&edma 52 0>;
  dma-names = "rxtx";
  gpmc,num-cs = <8>;
  gpmc,num-waitpins = <2>;
  #address-cells = <2>;
  #size-cells = <1>;
  ranges = <0 0 0x08000000 0x10000000>; /* CS0 @addr 0x8000000, size 0x10000000 */
  interrupt-controller;
  #interrupt-cells = <2>;
  gpio-controller;
  #gpio-cells = <2>;

  nand@0,0 {
    compatible = "ti,omap2-nand";
    reg = <0 0 4>;
    interrupt-parent = <&gpmc>;
    interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
                 <1 IRQ_TYPE_NONE>; /* termcount */
    ti,nand-xfer-type = "prefetch-dma";
    ti,nand-ecc-opt = "bch16";
    ti,elm-id = <&elm>;
    rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Xilinx Versal DDRMC (Integrated DDR Memory Controller)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/xlnx,versal-ddrmc-edac.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>", "Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>"

The integrated DDR Memory Controllers (DDRMCs) support both DDR4 and LPDDR4/ 4X memory interfaces. Versal DDR memory controller has an optional ECC support which correct single bit ECC errors and detect double bit ECC errors.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,versal-ddrmc"

reg — required here #

Array item rules (items) #

Item 1

DDR Memory Controller registers

Item 2

NOC registers corresponding to DDR Memory Controller

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "base"

Item 2

Exact value (const): "noc"

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

bus {
  #address-cells = <2>;
  #size-cells = <2>;
  memory-controller@f6150000 {
    compatible = "xlnx,versal-ddrmc";
    reg = <0x0 0xf6150000 0x0 0x2000>, <0x0 0xf6070000 0x0 0x20000>;
    reg-names = "base", "noc";
    interrupt-parent = <&gic>;
    interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Xilinx Versal NET Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/xlnx,versal-net-ddrmc5.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>"

The integrated DDR Memory Controllers (DDRMCs) support both DDR5 and LPDDR5 compact and extended memory interfaces. Versal NET DDR memory controller has an optional ECC support which correct single bit ECC errors and detect double bit ECC errors. It also has support for reporting other errors like MMCM (Mixed-Mode Clock Manager) errors and General software errors.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,versal-net-ddrmc5"

amd,rproc — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to the remoteproc_r5 rproc node using which APU interacts with remote processor. APU primarily communicates with the RPU for accessing the DDRMC address space and getting error notification.

Required in this object (required): "compatible", "amd,rproc"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller {
    compatible = "xlnx,versal-net-ddrmc5";
    amd,rproc = <&remoteproc_r5>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Zynq A05 DDR Memory Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/xlnx,zynq-ddrc-a05.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Michal Simek <michal.simek@amd.com>"

The Zynq DDR ECC controller has an optional ECC support in half-bus width (16-bit) configuration. It is capable of correcting single bit ECC errors and detecting double bit ECC errors.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,zynq-ddrc-a05"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

memory-controller@f8006000 {
  compatible = "xlnx,zynq-ddrc-a05";
  reg = <0xf8006000 0x1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Xilinx Zynqmp OCM(On-Chip Memory) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Memory controllers bindings

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/xlnx,zynqmp-ocmc-1.0.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>", "Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>"

The OCM supports 64-bit wide ECC functionality to detect multi-bit errors and recover from a single-bit memory fault.On a write, if all bytes are being written, the ECC is generated and written into the ECC RAM along with the write-data that is written into the data RAM. If one or more bytes are not written, then the read operation results in an correctable error or uncorrectable error.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,zynqmp-ocmc-1.0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
memory-controller@ff960000 {
  compatible = "xlnx,zynqmp-ocmc-1.0";
  reg = <0xff960000 0x1000>;
  interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Peios Learn — documentation for Peios software.

Built with Trail.