Skip to content

Commit

Permalink
arm: at91: add Calao TNY-A9260 and TNY-A9G20 board support
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD committed Apr 20, 2012
1 parent 5b6089c commit 995376a
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arch/arm/boot/dts/tny_a9260.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* tny_a9260.dts - Device Tree file for Caloa TNY A9260 board
*
* Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*
* Licensed under GPLv2.
*/
/dts-v1/;
/include/ "at91sam9260.dtsi"
/include/ "tny_a9260_common.dtsi"

/ {
model = "Calao TNY A9260";
compatible = "calao,tny-a9260", "atmel,at91sam9260", "atmel,at91sam9";
};
83 changes: 83 additions & 0 deletions arch/arm/boot/dts/tny_a9260_common.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/*
* tny_a9260_common.dtsi - Device Tree file for Caloa TNY A926x board
*
* Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*
* Licensed under GPLv2.
*/

/ {
chosen {
bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock6 rw rootfstype=ubifs";
};

memory {
reg = <0x20000000 0x4000000>;
};

clocks {
#address-cells = <1>;
#size-cells = <1>;
ranges;

main_clock: clock@0 {
compatible = "atmel,osc", "fixed-clock";
clock-frequency = <12000000>;
};
};

ahb {
apb {
dbgu: serial@fffff200 {
status = "okay";
};
};

nand0: nand@40000000 {
nand-bus-width = <8>;
nand-ecc-mode = "soft";
nand-on-flash-bbt;
status = "okay";

at91bootstrap@0 {
label = "at91bootstrap";
reg = <0x0 0x20000>;
};

barebox@20000 {
label = "barebox";
reg = <0x20000 0x40000>;
};

bareboxenv@60000 {
label = "bareboxenv";
reg = <0x60000 0x20000>;
};

bareboxenv2@80000 {
label = "bareboxenv2";
reg = <0x80000 0x20000>;
};

oftree@80000 {
label = "oftree";
reg = <0xa0000 0x20000>;
};

kernel@a0000 {
label = "kernel";
reg = <0xc0000 0x400000>;
};

rootfs@4a0000 {
label = "rootfs";
reg = <0x4c0000 0x7800000>;
};

data@7ca0000 {
label = "data";
reg = <0x7cc0000 0x8340000>;
};
};
};
};
15 changes: 15 additions & 0 deletions arch/arm/boot/dts/tny_a9g20.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* tny_a9g20.dts - Device Tree file for Caloa TNY A9G20 board
*
* Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*
* Licensed under GPLv2.
*/
/dts-v1/;
/include/ "at91sam9g20.dtsi"
/include/ "tny_a9260_common.dtsi"

/ {
model = "Calao TNY A9G20";
compatible = "calao,tny-a9g20", "atmel,at91sam9g20", "atmel,at91sam9";
};
2 changes: 2 additions & 0 deletions arch/arm/mach-at91/Makefile.boot
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ endif

# Keep dtb files sorted alphabetically for each SoC
# sam9260
dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9260.dtb
# sam9g20
dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9g20.dtb
dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9g20.dtb
# sam9g45
dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9m10g45ek.dtb
Expand Down

0 comments on commit 995376a

Please sign in to comment.