2012-04-17 06:26:29 +00:00
|
|
|
/*
|
|
|
|
* at91sam9n12ek.dts - Device Tree file for AT91SAM9N12-EK board
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Atmel,
|
|
|
|
* 2012 Hong Xu <hong.xu@atmel.com>
|
|
|
|
*
|
|
|
|
* Licensed under GPLv2 or later.
|
|
|
|
*/
|
|
|
|
/dts-v1/;
|
2013-05-14 17:21:50 +00:00
|
|
|
#include "at91sam9n12.dtsi"
|
2012-04-17 06:26:29 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Atmel AT91SAM9N12-EK";
|
|
|
|
compatible = "atmel,at91sam9n12ek", "atmel,at91sam9n12", "atmel,at91sam9";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "mem=128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
|
|
|
reg = <0x20000000 0x10000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
clocks {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
main_clock: clock@0 {
|
|
|
|
compatible = "atmel,osc", "fixed-clock";
|
|
|
|
clock-frequency = <16000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ahb {
|
|
|
|
apb {
|
|
|
|
dbgu: serial@fffff200 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2012-09-12 06:42:17 +00:00
|
|
|
|
|
|
|
i2c0: i2c@f8010000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@f8014000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2012-11-19 11:24:02 +00:00
|
|
|
|
|
|
|
mmc0: mmc@f0008000 {
|
2012-11-19 16:38:18 +00:00
|
|
|
pinctrl-0 = <
|
|
|
|
&pinctrl_board_mmc0
|
|
|
|
&pinctrl_mmc0_slot0_clk_cmd_dat0
|
|
|
|
&pinctrl_mmc0_slot0_dat1_3>;
|
2012-11-19 11:24:02 +00:00
|
|
|
status = "okay";
|
|
|
|
slot@0 {
|
|
|
|
reg = <0>;
|
|
|
|
bus-width = <4>;
|
|
|
|
cd-gpios = <&pioA 7 0>;
|
|
|
|
};
|
|
|
|
};
|
2012-11-19 16:38:18 +00:00
|
|
|
|
|
|
|
pinctrl@fffff400 {
|
|
|
|
mmc0 {
|
|
|
|
pinctrl_board_mmc0: mmc0-board {
|
|
|
|
atmel,pins =
|
|
|
|
<0 7 0x0 0x5>; /* PA7 gpio CD pin pull up and deglitch */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-04-03 06:03:05 +00:00
|
|
|
|
|
|
|
spi0: spi@f0000000 {
|
|
|
|
status = "okay";
|
|
|
|
cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
|
|
|
|
m25p80@0 {
|
|
|
|
compatible = "atmel,at25df321a";
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
2012-04-17 06:26:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nand0: nand@40000000 {
|
|
|
|
nand-bus-width = <8>;
|
2013-01-23 12:47:10 +00:00
|
|
|
nand-ecc-mode = "hw";
|
|
|
|
atmel,has-pmecc;
|
|
|
|
atmel,pmecc-cap = <2>;
|
|
|
|
atmel,pmecc-sector-size = <512>;
|
2012-04-17 06:26:29 +00:00
|
|
|
nand-on-flash-bbt;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
d8 {
|
|
|
|
label = "d8";
|
|
|
|
gpios = <&pioB 4 1>;
|
|
|
|
linux,default-trigger = "mmc0";
|
|
|
|
};
|
|
|
|
|
|
|
|
d9 {
|
|
|
|
label = "d6";
|
|
|
|
gpios = <&pioB 5 1>;
|
|
|
|
linux,default-trigger = "nand-disk";
|
|
|
|
};
|
|
|
|
|
|
|
|
d10 {
|
|
|
|
label = "d7";
|
|
|
|
gpios = <&pioB 6 0>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
enter {
|
|
|
|
label = "Enter";
|
|
|
|
gpios = <&pioB 4 1>;
|
|
|
|
linux,code = <28>;
|
|
|
|
gpio-key,wakeup;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|