* [RESEND PATCH 1/4] ARM: dts: enable L2 cache parity and ecc on db-xc3-24g4xg board
[not found] ` <20170807014641.4003-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
@ 2017-08-07 1:46 ` Chris Packham
0 siblings, 0 replies; 6+ messages in thread
From: Chris Packham @ 2017-08-07 1:46 UTC (permalink / raw)
To: robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
bp-Gina5bIWoIWzQB+pC5nmwQ, jlu-bIcnvbaLZ9MEGnE8C9+IrQ,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-edac-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: Chris Packham, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
Mark Rutland, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Chris Packham <chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
---
arch/arm/boot/dts/armada-xp-db-xc3-24g4xg.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/armada-xp-db-xc3-24g4xg.dts b/arch/arm/boot/dts/armada-xp-db-xc3-24g4xg.dts
index 06fce35d7491..00ca489fc788 100644
--- a/arch/arm/boot/dts/armada-xp-db-xc3-24g4xg.dts
+++ b/arch/arm/boot/dts/armada-xp-db-xc3-24g4xg.dts
@@ -70,6 +70,11 @@
};
};
+&L2 {
+ arm,parity-enable;
+ marvell,ecc-enable;
+};
+
&devbus_bootcs {
status = "okay";
--
2.13.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller
[not found] <20170807014641.4003-1-chris.packham@alliedtelesis.co.nz>
[not found] ` <20170807014641.4003-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
@ 2017-08-07 1:46 ` Chris Packham
2017-08-10 20:38 ` Rob Herring
2017-08-07 1:46 ` [RESEND PATCH 3/4] ARM: dts: mvebu: set reduced-width property for SDRAM on 98dx3236 Chris Packham
2 siblings, 1 reply; 6+ messages in thread
From: Chris Packham @ 2017-08-07 1:46 UTC (permalink / raw)
To: robh+dt, gregory.clement, bp, jlu, linux-arm-kernel, linux-edac,
linux-kernel
Cc: Chris Packham, Mark Rutland, devicetree
Some SoC implementations that use this controller have a reduced pin
count so the meaning of "full" and "half" with change.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
.../bindings/memory-controllers/mvebu-sdram-controller.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
index 89657d1d4cd4..3041868321c8 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
+++ b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
@@ -13,6 +13,12 @@ Required properties:
- reg: a resource specifier for the register space, which should
include all SDRAM controller registers as per the datasheet.
+Optional properties:
+ - marvell,reduced-width: some SoCs that use this SDRAM controller have
+ a reduced pin count. On such systems "full" width is 32-bits and
+ "half" width is 16-bits. Set this property to indicate that the SoC
+ used is such a system.
+
Example:
sdramc@1400 {
--
2.13.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller
2017-08-07 1:46 ` [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller Chris Packham
@ 2017-08-10 20:38 ` Rob Herring
2017-08-10 21:17 ` Chris Packham
0 siblings, 1 reply; 6+ messages in thread
From: Rob Herring @ 2017-08-10 20:38 UTC (permalink / raw)
To: Chris Packham
Cc: gregory.clement, bp, jlu, linux-arm-kernel, linux-edac,
linux-kernel, Mark Rutland, devicetree
On Mon, Aug 07, 2017 at 01:46:39PM +1200, Chris Packham wrote:
> Some SoC implementations that use this controller have a reduced pin
> count so the meaning of "full" and "half" with change.
s/with/width/ ?
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
> .../bindings/memory-controllers/mvebu-sdram-controller.txt | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
> index 89657d1d4cd4..3041868321c8 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
> +++ b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
> @@ -13,6 +13,12 @@ Required properties:
> - reg: a resource specifier for the register space, which should
> include all SDRAM controller registers as per the datasheet.
>
> +Optional properties:
> + - marvell,reduced-width: some SoCs that use this SDRAM controller have
> + a reduced pin count. On such systems "full" width is 32-bits and
> + "half" width is 16-bits. Set this property to indicate that the SoC
> + used is such a system.
Maybe you should just state what the width is.
Or your compatible string should just be specific enough to know the
width.
Rob
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller
2017-08-10 20:38 ` Rob Herring
@ 2017-08-10 21:17 ` Chris Packham
2017-08-11 9:34 ` Jan Lübbe
0 siblings, 1 reply; 6+ messages in thread
From: Chris Packham @ 2017-08-10 21:17 UTC (permalink / raw)
To: Rob Herring
Cc: gregory.clement@free-electrons.com, bp@alien8.de,
jlu@pengutronix.de, linux-arm-kernel@lists.infradead.org,
linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org,
Mark Rutland, devicetree@vger.kernel.org
On 11/08/17 08:38, Rob Herring wrote:
> On Mon, Aug 07, 2017 at 01:46:39PM +1200, Chris Packham wrote:
>> Some SoC implementations that use this controller have a reduced pin
>> count so the meaning of "full" and "half" with change.
>
> s/with/width/ ?
>
Yes will include in v2.
>>
>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>> ---
>> .../bindings/memory-controllers/mvebu-sdram-controller.txt | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
>> index 89657d1d4cd4..3041868321c8 100644
>> --- a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
>> +++ b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
>> @@ -13,6 +13,12 @@ Required properties:
>> - reg: a resource specifier for the register space, which should
>> include all SDRAM controller registers as per the datasheet.
>>
>> +Optional properties:
>> + - marvell,reduced-width: some SoCs that use this SDRAM controller have
>> + a reduced pin count. On such systems "full" width is 32-bits and
>> + "half" width is 16-bits. Set this property to indicate that the SoC
>> + used is such a system.
>
> Maybe you should just state what the width is.
Specifying a number like 64/32/16 is done in for some other properties I
dismissed that because what this is about how we interpret a
pin-strapping option. I guess "max-width = <64>;" and "max-width =
<32>"; would achieve the same.
> Or your compatible string should just be specific enough to know the
> width.
I decided against a new compatible sting that because the IP block
really is the Armada-XP one and the existing compatible string is used
in other places (using multiple compatible strings would solve that).
I'm not too fussed which of the 3 options are used. Is there any
particular preference?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller
2017-08-10 21:17 ` Chris Packham
@ 2017-08-11 9:34 ` Jan Lübbe
0 siblings, 0 replies; 6+ messages in thread
From: Jan Lübbe @ 2017-08-11 9:34 UTC (permalink / raw)
To: Chris Packham, Rob Herring
Cc: gregory.clement@free-electrons.com, bp@alien8.de,
linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org,
linux-kernel@vger.kernel.org, Mark Rutland,
devicetree@vger.kernel.org
On Thu, 2017-08-10 at 21:17 +0000, Chris Packham wrote:
> On 11/08/17 08:38, Rob Herring wrote:
> > On Mon, Aug 07, 2017 at 01:46:39PM +1200, Chris Packham wrote:
[...]
> > > +Optional properties:
> > > + - marvell,reduced-width: some SoCs that use this SDRAM controller have
> > > + a reduced pin count. On such systems "full" width is 32-bits and
> > > + "half" width is 16-bits. Set this property to indicate that the SoC
> > > + used is such a system.
> >
> > Maybe you should just state what the width is.
>
> Specifying a number like 64/32/16 is done in for some other properties I
> dismissed that because what this is about how we interpret a
> pin-strapping option. I guess "max-width = <64>;" and "max-width =
> <32>"; would achieve the same.
>
> > Or your compatible string should just be specific enough to know the
> > width.
>
> I decided against a new compatible sting that because the IP block
> really is the Armada-XP one and the existing compatible string is used
> in other places (using multiple compatible strings would solve that).
>
> I'm not too fussed which of the 3 options are used. Is there any
> particular preference?
I'd prefer a specific compatible string, as it would avoid adding even
more properties if further difference turn up.
Rob, I seem to remember that some drivers match the top-level
compatible against a list of SoC variants to detect SoC-dependent
features in a generic IP block. Is that something you'd prefer instead?
Regards,
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
* [RESEND PATCH 3/4] ARM: dts: mvebu: set reduced-width property for SDRAM on 98dx3236
[not found] <20170807014641.4003-1-chris.packham@alliedtelesis.co.nz>
[not found] ` <20170807014641.4003-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
2017-08-07 1:46 ` [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller Chris Packham
@ 2017-08-07 1:46 ` Chris Packham
2 siblings, 0 replies; 6+ messages in thread
From: Chris Packham @ 2017-08-07 1:46 UTC (permalink / raw)
To: robh+dt, gregory.clement, bp, jlu, linux-arm-kernel, linux-edac,
linux-kernel
Cc: Chris Packham, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
Mark Rutland, Russell King, devicetree
Because the 98dx3236 and similar SoCs are switch chips with integrated
CPUs they use a reduced pin count for the SDRAM interface. As such
"full" with is 32-bits and "half" width is 16-bits (as opposed to 64/32
on the discrete SoC). Set the reduced-width property on the sdramc node
to indicate this.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
arch/arm/boot/dts/armada-xp-98dx3236.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
index 0e12816d961e..4d6a2acc1b55 100644
--- a/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
+++ b/arch/arm/boot/dts/armada-xp-98dx3236.dtsi
@@ -129,6 +129,7 @@
sdramc@1400 {
compatible = "marvell,armada-xp-sdram-controller";
reg = <0x1400 0x500>;
+ marvell,reduced-width;
};
L2: l2-cache@8000 {
--
2.13.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-08-11 9:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170807014641.4003-1-chris.packham@alliedtelesis.co.nz>
[not found] ` <20170807014641.4003-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
2017-08-07 1:46 ` [RESEND PATCH 1/4] ARM: dts: enable L2 cache parity and ecc on db-xc3-24g4xg board Chris Packham
2017-08-07 1:46 ` [RESEND PATCH 2/4] dt-bindings: add "reduced-width" property for Armada XP SDRAM controller Chris Packham
2017-08-10 20:38 ` Rob Herring
2017-08-10 21:17 ` Chris Packham
2017-08-11 9:34 ` Jan Lübbe
2017-08-07 1:46 ` [RESEND PATCH 3/4] ARM: dts: mvebu: set reduced-width property for SDRAM on 98dx3236 Chris Packham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).