2012-04-17 13:26:29 +07: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-15 00:21:50 +07:00
|
|
|
#include "at91sam9n12.dtsi"
|
2012-04-17 13:26:29 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Atmel AT91SAM9N12-EK";
|
|
|
|
compatible = "atmel,at91sam9n12ek", "atmel,at91sam9n12", "atmel,at91sam9";
|
|
|
|
|
|
|
|
chosen {
|
2013-06-28 15:39:15 +07:00
|
|
|
bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
|
2012-04-17 13:26:29 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
2013-06-28 15:39:15 +07:00
|
|
|
reg = <0x20000000 0x8000000>;
|
2012-04-17 13:26:29 +07:00
|
|
|
};
|
|
|
|
|
2014-05-12 23:26:29 +07:00
|
|
|
slow_xtal {
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
};
|
|
|
|
|
|
|
|
main_xtal {
|
|
|
|
clock-frequency = <16000000>;
|
|
|
|
};
|
|
|
|
|
2012-04-17 13:26:29 +07:00
|
|
|
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 13:42:17 +07:00
|
|
|
|
2013-10-14 12:38:32 +07:00
|
|
|
ssc0: ssc@f0010000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2012-09-12 13:42:17 +07:00
|
|
|
i2c0: i2c@f8010000 {
|
|
|
|
status = "okay";
|
2013-07-11 10:30:45 +07:00
|
|
|
|
2013-10-14 12:38:31 +07:00
|
|
|
wm8904: codec@1a {
|
|
|
|
compatible = "wm8904";
|
|
|
|
reg = <0x1a>;
|
|
|
|
};
|
|
|
|
|
2013-07-11 10:30:45 +07:00
|
|
|
qt1070: keyboard@1b {
|
|
|
|
compatible = "qt1070";
|
|
|
|
reg = <0x1b>;
|
|
|
|
interrupt-parent = <&pioA>;
|
|
|
|
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_qt1070_irq>;
|
|
|
|
};
|
2012-09-12 13:42:17 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@f8014000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2012-11-19 18:24:02 +07:00
|
|
|
|
|
|
|
mmc0: mmc@f0008000 {
|
2012-11-19 23:38:18 +07:00
|
|
|
pinctrl-0 = <
|
|
|
|
&pinctrl_board_mmc0
|
|
|
|
&pinctrl_mmc0_slot0_clk_cmd_dat0
|
|
|
|
&pinctrl_mmc0_slot0_dat1_3>;
|
2012-11-19 18:24:02 +07:00
|
|
|
status = "okay";
|
|
|
|
slot@0 {
|
|
|
|
reg = <0>;
|
|
|
|
bus-width = <4>;
|
2013-04-24 07:34:25 +07:00
|
|
|
cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>;
|
2012-11-19 18:24:02 +07:00
|
|
|
};
|
|
|
|
};
|
2012-11-19 23:38:18 +07:00
|
|
|
|
|
|
|
pinctrl@fffff400 {
|
|
|
|
mmc0 {
|
|
|
|
pinctrl_board_mmc0: mmc0-board {
|
|
|
|
atmel,pins =
|
2013-04-24 07:34:25 +07:00
|
|
|
<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */
|
2012-11-19 23:38:18 +07:00
|
|
|
};
|
|
|
|
};
|
2013-07-11 10:30:45 +07:00
|
|
|
|
|
|
|
qt1070 {
|
|
|
|
pinctrl_qt1070_irq: qt1070_irq {
|
|
|
|
atmel,pins =
|
|
|
|
<AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
|
|
|
|
};
|
|
|
|
};
|
2013-10-14 12:38:33 +07:00
|
|
|
|
|
|
|
sound {
|
|
|
|
pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
|
|
|
|
atmel,pins =
|
|
|
|
<AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
|
|
|
|
};
|
|
|
|
};
|
2012-11-19 23:38:18 +07:00
|
|
|
};
|
2013-04-03 13:03:05 +07: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>;
|
|
|
|
};
|
|
|
|
};
|
2013-05-31 10:11:33 +07:00
|
|
|
|
|
|
|
watchdog@fffffe40 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2012-04-17 13:26:29 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
nand0: nand@40000000 {
|
|
|
|
nand-bus-width = <8>;
|
2013-01-23 19:47:10 +07:00
|
|
|
nand-ecc-mode = "hw";
|
|
|
|
atmel,has-pmecc;
|
|
|
|
atmel,pmecc-cap = <2>;
|
|
|
|
atmel,pmecc-sector-size = <512>;
|
2012-04-17 13:26:29 +07:00
|
|
|
nand-on-flash-bbt;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-01-14 13:34:44 +07:00
|
|
|
|
|
|
|
usb0: ohci@00500000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2012-04-17 13:26:29 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
d8 {
|
|
|
|
label = "d8";
|
2013-04-24 07:34:25 +07:00
|
|
|
gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
|
2012-04-17 13:26:29 +07:00
|
|
|
linux,default-trigger = "mmc0";
|
|
|
|
};
|
|
|
|
|
|
|
|
d9 {
|
|
|
|
label = "d6";
|
2013-04-24 07:34:25 +07:00
|
|
|
gpios = <&pioB 5 GPIO_ACTIVE_LOW>;
|
2012-04-17 13:26:29 +07:00
|
|
|
linux,default-trigger = "nand-disk";
|
|
|
|
};
|
|
|
|
|
|
|
|
d10 {
|
|
|
|
label = "d7";
|
2013-04-24 07:34:25 +07:00
|
|
|
gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
|
2012-04-17 13:26:29 +07:00
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
enter {
|
|
|
|
label = "Enter";
|
2013-07-11 10:30:46 +07:00
|
|
|
gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
|
2012-04-17 13:26:29 +07:00
|
|
|
linux,code = <28>;
|
|
|
|
gpio-key,wakeup;
|
|
|
|
};
|
|
|
|
};
|
2013-10-14 12:38:33 +07:00
|
|
|
|
|
|
|
sound {
|
|
|
|
compatible = "atmel,asoc-wm8904";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
|
|
|
|
|
|
|
|
atmel,model = "wm8904 @ AT91SAM9N12";
|
|
|
|
atmel,audio-routing =
|
|
|
|
"Headphone Jack", "HPOUTL",
|
|
|
|
"Headphone Jack", "HPOUTR",
|
|
|
|
"IN2L", "Line In Jack",
|
|
|
|
"IN2R", "Line In Jack",
|
|
|
|
"Mic", "MICBIAS",
|
|
|
|
"IN1L", "Mic";
|
|
|
|
|
|
|
|
atmel,ssc-controller = <&ssc0>;
|
|
|
|
atmel,audio-codec = <&wm8904>;
|
|
|
|
};
|
2012-04-17 13:26:29 +07:00
|
|
|
};
|