[OpenWrt-Devel,14/22] ARM: dts: add a devicetree for Raidsonic NAS IB-4220-B

Submitted by Hans Ulli Kroll on Feb. 5, 2017, 9:53 a.m.

Details

Message ID alpine.LNX.2.00.1702051051090.26313@T420s
State New
Headers show

Commit Message

Hans Ulli Kroll Feb. 5, 2017, 9:53 a.m.
Hi Linus,

please add right baudrate and partition scheme for NAS 4220

Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>

---
 arch/arm/boot/dts/gemini-nas4220b.dts | 36 +++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)

Comments

Linus Walleij Feb. 7, 2017, 9:52 p.m.
On Sun, Feb 5, 2017 at 10:53 AM, Hans Ulli Kroll
<ulli.kroll@googlemail.com> wrote:

> Hi Linus,
>
> please add right baudrate and partition scheme for NAS 4220
>
> Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>

Thanks Hans! I folded this into the NAS 4220 device tree
and added your Signed-off-by to the patch.

Yours,
Linus Walleij
Hans Ulli Kroll Feb. 8, 2017, 12:55 p.m.
HI Linus

On Tue, 7 Feb 2017, Linus Walleij wrote:

> On Sun, Feb 5, 2017 at 10:53 AM, Hans Ulli Kroll
> <ulli.kroll@googlemail.com> wrote:
> 
> > Hi Linus,
> >
> > please add right baudrate and partition scheme for NAS 4220
> >
> > Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
> 
> Thanks Hans! I folded this into the NAS 4220 device tree
> and added your Signed-off-by to the patch.
> 

You can remove the PCI entries I've seen on your git tree.
NAS 4220 has no PCI interface

Greetings
Hans Ulli Kroll
Linus Walleij Feb. 10, 2017, 12:55 p.m.
On Wed, Feb 8, 2017 at 1:55 PM, Hans Ulli Kroll
<ulli.kroll@googlemail.com> wrote:
> On Tue, 7 Feb 2017, Linus Walleij wrote:
>
>> On Sun, Feb 5, 2017 at 10:53 AM, Hans Ulli Kroll
>> <ulli.kroll@googlemail.com> wrote:
>>
>> > Hi Linus,
>> >
>> > please add right baudrate and partition scheme for NAS 4220
>> >
>> > Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
>>
>> Thanks Hans! I folded this into the NAS 4220 device tree
>> and added your Signed-off-by to the patch.
>>
>
> You can remove the PCI entries I've seen on your git tree.
> NAS 4220 has no PCI interface

OK! I just assumed it was on that machine since you were
commenting on the driver, I cut it now.

Yours,
Linus Walleij

Patch hide | download patch | download mbox

diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts
index 0b30cdeb2354..7668ba52158e 100644
--- a/arch/arm/boot/dts/gemini-nas4220b.dts
+++ b/arch/arm/boot/dts/gemini-nas4220b.dts
@@ -19,7 +19,7 @@ 
 	};
 
 	chosen {
-		bootargs = "console=ttyS0,115200n8";
+		bootargs = "console=ttyS0,19200n8";
 		stdout-path = &uart0;
 	};
 
@@ -64,7 +64,39 @@ 
 			status = "okay";
 			/* 16MB of flash */
 			reg = <0x30000000 0x01000000>;
-			/* TODO: add flash partitions here */
+
+			partition@0 {
+				label = "RedBoot";
+				reg = <0x00000000 0x00020000>;
+				read-only;
+			};
+			partition@20000 {
+				label = "Kernel";
+				reg = <0x00020000 0x00300000>;
+			};
+			partition@320000 {
+				label = "Ramdisk";
+				reg = <0x00320000 0x00600000>;
+			};
+			partition@920000 {
+				label = "Application";
+				reg = <0x00920000 0x00600000>;
+			};
+			partition@f20000 {
+				label = "VCTL";
+				reg = <0x00f20000 0x00020000>;
+				read-only;
+			};
+			partition@f40000 {
+				label = "CurConf";
+				reg = <0x00f40000 0x000a0000>;
+				read-only;
+			};
+			partition@fe0000 {
+				label = "FIS directory";
+				reg = <0x00fe0000 0x00020000>;
+				read-only;
+			};
 		};
 	};
 };