Re: [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree

2015-09-14 Thread Thomas Chou
Hi Marek, On 09/13/2015 09:39 PM, Marek Vasut wrote: btw. It might be just about time to split the DT bits into nios2.dtsi and nios2_3c120_devboard.dts , where the former would contain the generic bits of the binding and the later would only fill in the necessary address ranges and such. I do un

Re: [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree

2015-09-14 Thread Thomas Chou
Hi Stefan, On 09/14/2015 01:39 PM, Stefan Roese wrote: So you are changing the DT sources for your platform because the U-Boot implementation does support the bus translation correctly (ranges properties)? I think this is the wrong approach. We need to make sure that U-Boot supports DT correctly

Re: [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree

2015-09-14 Thread Simon Glass
+Stefan Hi, On 13 September 2015 at 07:39, Marek Vasut wrote: > On Sunday, September 13, 2015 at 10:32:09 AM, Thomas Chou wrote: >> As the io space remapping ioremap() and bridge address >> translation fdt_translate_address() are not usually used >> in u-boot driver model by dev_get_addr(). We w

Re: [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree

2015-09-13 Thread Stefan Roese
Hi Thomas, added Simon and Stephen to cc on this. On 13.09.2015 10:32, Thomas Chou wrote: As the io space remapping ioremap() and bridge address translation fdt_translate_address() are not usually used in u-boot driver model by dev_get_addr(). We would better convert the reg address map in the

Re: [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree

2015-09-13 Thread Marek Vasut
On Sunday, September 13, 2015 at 10:32:09 AM, Thomas Chou wrote: > As the io space remapping ioremap() and bridge address > translation fdt_translate_address() are not usually used > in u-boot driver model by dev_get_addr(). We would better > convert the reg address map in the device tree of nios2

[U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree

2015-09-13 Thread Thomas Chou
As the io space remapping ioremap() and bridge address translation fdt_translate_address() are not usually used in u-boot driver model by dev_get_addr(). We would better convert the reg address map in the device tree of nios2 boards, so that it is io mapped and bridge translated. Signed-off-by: Th