Message ID | 1431553787-27741-5-git-send-email-tthayer@opensource.altera.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wednesday 13 May 2015 16:49:47 tthayer@opensource.altera.com wrote: > + sdr: sdr@ffc25000 { > + compatible = "syscon"; > + reg = <0xffcfb100 0x80>; > + }; > + > A syscon node with just 128 bytes seems very odd. Can you check the hardware manual to see if this is part of some bigger unit? Arnd
Hi Arnd, On 05/15/2015 05:55 AM, Arnd Bergmann wrote: > On Wednesday 13 May 2015 16:49:47 tthayer@opensource.altera.com wrote: >> + sdr: sdr@ffc25000 { >> + compatible = "syscon"; >> + reg = <0xffcfb100 0x80>; >> + }; >> + >> > > A syscon node with just 128 bytes seems very odd. Can you check the > hardware manual to see if this is part of some bigger unit? > > Arnd > This is an unfortunate legacy of our previous SDRAM controller (in the CycloneV) which had ECC registers interspersed with registers other drivers needed - thus the use of syscon. In the Arria10 chip, the ECC registers are in their own partitioned group but I kept the syscon to remain consistent with the Device Tree bindings from the CycloneV family. I've implemented your other suggestions. Thank you for reviewing! Thor
diff --git a/Documentation/devicetree/bindings/arm/altera/socfpga-sdram-edac.txt b/Documentation/devicetree/bindings/arm/altera/socfpga-sdram-edac.txt index d0ce01d..f5ad0ff 100644 --- a/Documentation/devicetree/bindings/arm/altera/socfpga-sdram-edac.txt +++ b/Documentation/devicetree/bindings/arm/altera/socfpga-sdram-edac.txt @@ -2,7 +2,7 @@ Altera SOCFPGA SDRAM Error Detection & Correction [EDAC] The EDAC accesses a range of registers in the SDRAM controller. Required properties: -- compatible : should contain "altr,sdram-edac"; +- compatible : should contain "altr,sdram-edac" or "altr,sdram-edac-a10" - altr,sdr-syscon : phandle of the sdr module - interrupts : Should contain the SDRAM ECC IRQ in the appropriate format for the IRQ controller. diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi index e121661..70da147 100644 --- a/arch/arm/boot/dts/socfpga_arria10.dtsi +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi @@ -524,6 +524,17 @@ status = "disabled"; }; + sdr: sdr@ffc25000 { + compatible = "syscon"; + reg = <0xffcfb100 0x80>; + }; + + sdramedac { + compatible = "altr,sdram-edac-a10"; + altr,sdr-syscon = <&sdr>; + interrupts = <0 2 4>, <0 0 4>; + }; + L2: l2-cache@fffff000 { compatible = "arm,pl310-cache"; reg = <0xfffff000 0x1000>;