Commit 6229f0fc authored by Olof Johansson's avatar Olof Johansson

Merge tag 'at91-dt' of git://github.com/at91linux/linux-at91 into late/all

From Nicolas Ferre:
AT91 DT changes for 3.12, take 2
- addition of the Nand Flash Controller (NFC) in DT
  for sama5d3 SoC. This NFC will enhance the traditional
  Nand Flash handling (SMC + PMECC).

* tag 'at91-dt' of git://github.com/at91linux/linux-at91:
  ARM: at91/dt: sama5d3xek: reduce the ROM code mapping for pmecc lookup table
  ARM: at91/dt: sama5d3xek: Enable NFC support in dts
  ARM: at91/dt: sama5d3xek: remove the useless NFC dt parameters
  ARM: at91/dt: sam9x5ek: add sound configuration
  ARM: at91/dt: sam9x5ek: enable SSC
  ARM: at91/dt: sam9x5ek: add WM8731 codec
  ARM: at91/dt: sam9x5: add SSC DMA parameters
  ARM: at91/dt: add at91rm9200 PQFP package version
  ARM: at91: at91rm9200: set default mmc0 pinctrl-names
  ARM: at91: at91sam9n12: correct pin number of gpio-key
  ARM: at91: at91sam9n12: add qt1070 support
  ARM: at91: at91sam9n12: add pinctrl of TWI
  ARM: at91: Add PMU support for sama5d3
  ARM: at91: at91sam9260: add missing pinctrl-names on mmc
parents d6a99de7 afa6a2a7
...@@ -120,6 +120,7 @@ mmc0: mmc@fffb4000 { ...@@ -120,6 +120,7 @@ mmc0: mmc@fffb4000 {
interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pinctrl-names = "default";
status = "disabled"; status = "disabled";
}; };
......
/*
* at91rm9200_pqfp.dtsi - Device Tree Include file for AT91RM9200 PQFP family SoC
*
* Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*
* Licensed under GPLv2 or later.
*/
#include "at91rm9200.dtsi"
/ {
compatible = "atmel,at91rm9200-pqfp", "atmel,at91rm9200";
};
&pioD {
status = "disabled";
};
...@@ -572,6 +572,7 @@ mmc0: mmc@fffa8000 { ...@@ -572,6 +572,7 @@ mmc0: mmc@fffa8000 {
interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pinctrl-names = "default";
status = "disabled"; status = "disabled";
}; };
......
...@@ -291,6 +291,22 @@ AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA22 periph B SPI1_MOSI pin */ ...@@ -291,6 +291,22 @@ AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA22 periph B SPI1_MOSI pin */
}; };
}; };
i2c0 {
pinctrl_i2c0: i2c0-0 {
atmel,pins =
<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE
AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
};
};
i2c1 {
pinctrl_i2c1: i2c1-0 {
atmel,pins =
<AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_NONE
AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>;
};
};
tcb0 { tcb0 {
pinctrl_tcb0_tclk0: tcb0_tclk0-0 { pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
atmel,pins = <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE>; atmel,pins = <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE>;
...@@ -471,6 +487,8 @@ i2c0: i2c@f8010000 { ...@@ -471,6 +487,8 @@ i2c0: i2c@f8010000 {
dma-names = "tx", "rx"; dma-names = "tx", "rx";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c0>;
status = "disabled"; status = "disabled";
}; };
...@@ -483,6 +501,8 @@ i2c1: i2c@f8014000 { ...@@ -483,6 +501,8 @@ i2c1: i2c@f8014000 {
dma-names = "tx", "rx"; dma-names = "tx", "rx";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -40,6 +40,15 @@ dbgu: serial@fffff200 { ...@@ -40,6 +40,15 @@ dbgu: serial@fffff200 {
i2c0: i2c@f8010000 { i2c0: i2c@f8010000 {
status = "okay"; status = "okay";
qt1070: keyboard@1b {
compatible = "qt1070";
reg = <0x1b>;
interrupt-parent = <&pioA>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qt1070_irq>;
};
}; };
i2c1: i2c@f8014000 { i2c1: i2c@f8014000 {
...@@ -66,6 +75,13 @@ pinctrl_board_mmc0: mmc0-board { ...@@ -66,6 +75,13 @@ pinctrl_board_mmc0: mmc0-board {
<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */ <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */
}; };
}; };
qt1070 {
pinctrl_qt1070_irq: qt1070_irq {
atmel,pins =
<AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
};
};
}; };
spi0: spi@f0000000 { spi0: spi@f0000000 {
...@@ -121,7 +137,7 @@ gpio_keys { ...@@ -121,7 +137,7 @@ gpio_keys {
enter { enter {
label = "Enter"; label = "Enter";
gpios = <&pioB 4 GPIO_ACTIVE_LOW>; gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
linux,code = <28>; linux,code = <28>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
......
...@@ -542,6 +542,9 @@ ssc0: ssc@f0010000 { ...@@ -542,6 +542,9 @@ ssc0: ssc@f0010000 {
compatible = "atmel,at91sam9g45-ssc"; compatible = "atmel,at91sam9g45-ssc";
reg = <0xf0010000 0x4000>; reg = <0xf0010000 0x4000>;
interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>; interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>;
dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(13)>,
<&dma0 1 AT91_DMA_CFG_PER_ID(14)>;
dma-names = "tx", "rx";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
status = "disabled"; status = "disabled";
......
...@@ -59,6 +59,11 @@ usb2: gadget@f803c000 { ...@@ -59,6 +59,11 @@ usb2: gadget@f803c000 {
i2c0: i2c@f8010000 { i2c0: i2c@f8010000 {
status = "okay"; status = "okay";
wm8731: wm8731@1a {
compatible = "wm8731";
reg = <0x1a>;
};
}; };
pinctrl@fffff400 { pinctrl@fffff400 {
...@@ -90,6 +95,10 @@ m25p80@0 { ...@@ -90,6 +95,10 @@ m25p80@0 {
watchdog@fffffe40 { watchdog@fffffe40 {
status = "okay"; status = "okay";
}; };
ssc0: ssc@f0010000 {
status = "okay";
};
}; };
usb0: ohci@00600000 { usb0: ohci@00600000 {
...@@ -105,4 +114,19 @@ usb1: ehci@00700000 { ...@@ -105,4 +114,19 @@ usb1: ehci@00700000 {
status = "okay"; status = "okay";
}; };
}; };
sound {
compatible = "atmel,sam9x5-wm8731-audio";
atmel,model = "wm8731 @ AT91SAM9X5EK";
atmel,audio-routing =
"Headphone Jack", "RHPOUT",
"Headphone Jack", "LHPOUT",
"LLINEIN", "Line In Jack",
"RLINEIN", "Line In Jack";
atmel,ssc-controller = <&ssc0>;
atmel,audio-codec = <&wm8731>;
};
}; };
...@@ -48,6 +48,11 @@ cpu@0 { ...@@ -48,6 +48,11 @@ cpu@0 {
}; };
}; };
pmu {
compatible = "arm,cortex-a5-pmu";
interrupts = <46 IRQ_TYPE_LEVEL_HIGH 0>;
};
memory { memory {
reg = <0x20000000 0x8000000>; reg = <0x20000000 0x8000000>;
}; };
...@@ -1029,21 +1034,30 @@ nand0: nand@60000000 { ...@@ -1029,21 +1034,30 @@ nand0: nand@60000000 {
compatible = "atmel,at91rm9200-nand"; compatible = "atmel,at91rm9200-nand";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
ranges;
reg = < 0x60000000 0x01000000 /* EBI CS3 */ reg = < 0x60000000 0x01000000 /* EBI CS3 */
0xffffc070 0x00000490 /* SMC PMECC regs */ 0xffffc070 0x00000490 /* SMC PMECC regs */
0xffffc500 0x00000100 /* SMC PMECC Error Location regs */ 0xffffc500 0x00000100 /* SMC PMECC Error Location regs */
0x00100000 0x00100000 /* ROM code */ 0x00110000 0x00018000 /* ROM code */
0x70000000 0x10000000 /* NFC Command Registers */
0xffffc000 0x00000070 /* NFC HSMC regs */
0x00200000 0x00100000 /* NFC SRAM banks */
>; >;
interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>; interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>;
atmel,nand-addr-offset = <21>; atmel,nand-addr-offset = <21>;
atmel,nand-cmd-offset = <22>; atmel,nand-cmd-offset = <22>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_nand0_ale_cle>; pinctrl-0 = <&pinctrl_nand0_ale_cle>;
atmel,pmecc-lookup-table-offset = <0x10000 0x18000>; atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
status = "disabled"; status = "disabled";
nfc@70000000 {
compatible = "atmel,sama5d3-nfc";
#address-cells = <1>;
#size-cells = <1>;
reg = <
0x70000000 0x10000000 /* NFC Command Registers */
0xffffc000 0x00000070 /* NFC HSMC regs */
0x00200000 0x00100000 /* NFC SRAM banks */
>;
};
}; };
}; };
}; };
...@@ -47,8 +47,6 @@ nand0: nand@60000000 { ...@@ -47,8 +47,6 @@ nand0: nand@60000000 {
atmel,has-pmecc; atmel,has-pmecc;
atmel,pmecc-cap = <4>; atmel,pmecc-cap = <4>;
atmel,pmecc-sector-size = <512>; atmel,pmecc-sector-size = <512>;
atmel,has-nfc;
atmel,use-nfc-sram;
nand-on-flash-bbt; nand-on-flash-bbt;
status = "okay"; status = "okay";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment