0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/ti,elm.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Texas Instruments Error Location Module (ELM).
0008
0009 maintainers:
0010 - Roger Quadros <rogerq@kernel.org>
0011
0012 description:
0013 ELM module is used together with GPMC and NAND Flash to detect
0014 errors and the location of the error based on BCH algorithms
0015 so they can be corrected if possible.
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - ti,am3352-elm
0021 - ti,am64-elm
0022
0023 reg:
0024 maxItems: 1
0025
0026 interrupts:
0027 maxItems: 1
0028
0029 clocks:
0030 maxItems: 1
0031 description: Functional clock.
0032
0033 clock-names:
0034 items:
0035 - const: fck
0036
0037 power-domains:
0038 maxItems: 1
0039
0040 ti,hwmods:
0041 description:
0042 Name of the HWMOD associated with ELM. This is for legacy
0043 platforms only.
0044 $ref: /schemas/types.yaml#/definitions/string
0045 deprecated: true
0046
0047 required:
0048 - compatible
0049 - reg
0050 - interrupts
0051
0052 allOf:
0053 - if:
0054 properties:
0055 compatible:
0056 contains:
0057 const: ti,am64-elm
0058 then:
0059 required:
0060 - clocks
0061 - clock-names
0062 - power-domains
0063
0064 additionalProperties: false
0065
0066 examples:
0067 - |
0068 elm: ecc@0 {
0069 compatible = "ti,am3352-elm";
0070 reg = <0x0 0x2000>;
0071 interrupts = <4>;
0072 };