Documentation: dt: memory: ti-emif: add edac support under emif
Subsystems (2)
PATCH RESEND v3 1/3 Documentation: dt: memory: ti-emif: add edac support under emif
Certain revisions of the TI EMIF IP contain ECC support in them. Reflect this in the DT binding.
---
Just resending this patch, missed adding devicetree list on this previously and it got lost.
.../devicetree/bindings/memory-controllers/ti/emif.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +15 -1
@@ -3,12 +3,16 @@ EMIF - External Memory Interface - is an SDRAM controller used in TI SoCs. EMIF supports, based on the IP revision, one or more of DDR2/DDR3/LPDDR2 protocols. This binding describes a given instance -of the EMIF IP and memory parts attached to it. +of the EMIF IP and memory parts attached to it. Certain revisions +of the EMIF IP controller also contain optional ECC support, which +corrects one bit errors and detects two bit errors. Required properties: - compatible : Should be of the form "ti,emif-<ip-rev>" where <ip-rev> is the IP revision of the specific EMIF instance. For am437x should be ti,emif-am4372. + For dra7xx should be ti,emif-dra7xx. + For k2x family, should be ti,emif-keystone. - phy-type : <u32> indicating the DDR phy type. Following are the allowed values
@@ -42,6 +46,10 @@ Optional properties: - hw-caps-temp-alert : Have this property if the controller has capability for generating SDRAM temperature alerts +- interrupts : A list of interrupt specifiers for memory + controller interrupts, if available. Required for EMIF instances + that support ECC. + Example: emif1: emif at 0x4c000000 {
@@ -54,3 +62,9 @@ emif1: emif at 0x4c000000 { hw-caps-ll-interface; hw-caps-temp-alert; }; + +emif1: emif at 4c000000 { + compatible = "ti,emif-dra7"; + reg = <0x4c000000 0x200>; + interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; +};
Signature · 4 lines
1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Rob Herring
maintainerPATCH RESEND v3 1/3 Documentation: dt: memory: ti-emif: add edac support under emif
Quoted 2 lines · Tero Kristo
Certain revisions of the TI EMIF IP contain ECC support in them. Reflect this in the DT binding.
"dt-bindings: edac: ..." is the preferred subject prefix.
Quoted 34 lines
Signed-off-by Tero Kristo <[email protected]>Cc Tony Lindgren <[email protected]>Cc Rob Herring <[email protected]>---
Just resending this patch, missed adding devicetree list on this previously and it got lost..../devicetree/bindings/memory-controllers/ti/emif.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +5
-1@@ -3,12 +3,16 @@ EMIF - External Memory Interface - is an SDRAM controller used in TI SoCs. EMIF supports, based on the IP revision, one or more of DDR2/DDR3/LPDDR2 protocols. This binding describes a given instance -of the EMIF IP and memory parts attached to it. +of the EMIF IP and memory parts attached to it. Certain revisions +of the EMIF IP controller also contain optional ECC support, which +corrects one bit errors and detects two bit errors. Required properties: - compatible : Should be of the form "ti,emif-<ip-rev>" where <ip-rev> is the IP revision of the specific EMIF instance. For am437x should be ti,emif-am4372. + For dra7xx should be ti,emif-dra7xx. + For k2x family, should be ti,emif-keystone. - phy-type : <u32> indicating the DDR phy type. Following are the allowed values
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt Optional properties: · line 51
Quoted 6 lines
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +3
-0@@ -42,6 +46,10 @@ Optional properties: - hw-caps-temp-alert : Have this property if the controller has capability for generating SDRAM temperature alerts +- interrupts : A list of interrupt specifiers for memory + controller interrupts, if available. Required for EMIF instances + that support ECC.
Be explicit as to which compatibles have an interrupt. Is it really optional for for those controllers? The interrupt is in the h/w whether you use ECC or not.
Quoted 19 lines
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +7
-0+ Example: emif1: emif at 0x4c000000 {@@ -54,3 +62,9 @@ emif1: emif at 0x4c000000 { hw-caps-ll-interface; hw-caps-temp-alert; }; + +emif1: emif at 4c000000 { + compatible = "ti,emif-dra7"; + reg = <0x4c000000 0x200>; + interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; +};Signature · 4 lines
1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Rob Herring
maintainerPATCH RESEND v3 1/3 Documentation: dt: memory: ti-emif: add edac support under emif
Quoted 5 lines · Rob Herring
Quoted 2 lines · Tero Kristo
Certain revisions of the TI EMIF IP contain ECC support in them. Reflect this in the DT binding.
"dt-bindings: edac: ..." is the preferred subject prefix.
Err, I mean "dt-bindings: memory-controllers: ..."
Rob
PATCH RESEND v3 1/3 Documentation: dt: memory: ti-emif: add edac support under emif
In reply to Rob HerringQuoted 7 lines · Rob Herring
Quoted 2 lines · Tero Kristo
Certain revisions of the TI EMIF IP contain ECC support in them. Reflect this in the DT binding.
"dt-bindings: edac: ..." is the preferred subject prefix.
Err, I mean "dt-bindings: memory-controllers: ..."
I'll fix this.
Quoted 38 lines
Quoted 38 lines
Signed-off-by Tero Kristo <[email protected]>Cc Tony Lindgren <[email protected]>Cc Rob Herring <[email protected]>---
Just resending this patch, missed adding devicetree list on this previously and it got lost..../devicetree/bindings/memory-controllers/ti/emif.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +5
-1@@ -3,12 +3,16 @@ EMIF - External Memory Interface - is an SDRAM controller used in TI SoCs. EMIF supports, based on the IP revision, one or more of DDR2/DDR3/LPDDR2 protocols. This binding describes a given instance -of the EMIF IP and memory parts attached to it. +of the EMIF IP and memory parts attached to it. Certain revisions +of the EMIF IP controller also contain optional ECC support, which +corrects one bit errors and detects two bit errors. Required properties: - compatible : Should be of the form "ti,emif-<ip-rev>" where <ip-rev> is the IP revision of the specific EMIF instance. For am437x should be ti,emif-am4372. + For dra7xx should be ti,emif-dra7xx. + For k2x family, should be ti,emif-keystone. - phy-type : <u32> indicating the DDR phy type. Following are the allowed values@@ -42,6 +46,10 @@ Optional properties: - hw-caps-temp-alert : Have this property if the controller has capability for generating SDRAM temperature alerts
Quoted 7 lines
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt Optional properties: · line 51
Quoted 3 lines
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +3
-0+- interrupts : A list of interrupt specifiers for memory + controller interrupts, if available. Required for EMIF instances + that support ECC.Be explicit as to which compatibles have an interrupt. Is it really optional for for those controllers? The interrupt is in the h/w whether you use ECC or not.
It seems the interrupt property is actually required also for omap4, omap5 emif based on the driver implementation, they use it for high temp alert as the main feature. The interrupt exists on am3/am4 also but it is not used at all there right now.
Would it be better just to make this a required property from binding point of view and ignore the fact that am3/am4 do not really use it?
-Tero
Quoted 18 lines
Quoted 18 lines
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +7
-0+ Example: emif1: emif at 0x4c000000 {@@ -54,3 +62,9 @@ emif1: emif at 0x4c000000 { hw-caps-ll-interface; hw-caps-temp-alert; }; + +emif1: emif at 4c000000 { + compatible = "ti,emif-dra7"; + reg = <0x4c000000 0x200>; + interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; +};Signature · 1 line
1.9.1
Quoted 1 line
Quoted 1 line
--
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki