diff options
author | Olof Johansson <olof@lixom.net> | 2013-08-29 16:31:05 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-08-29 16:31:05 -0400 |
commit | 6229f0fcba259c93b385e50e66498ac3eab83308 (patch) | |
tree | c676f7163c703fb666e351d3fa94108f6a62df36 | |
parent | d6a99de704283fbc8249fde6c4aaf517cf531d31 (diff) | |
parent | afa6a2a726766d8145dc87f47073c745aa0f0d01 (diff) |
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
-rw-r--r-- | arch/arm/boot/dts/at91rm9200.dtsi | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91rm9200_pqfp.dtsi | 17 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9260.dtsi | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9n12.dtsi | 20 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9n12ek.dts | 18 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5.dtsi | 3 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5ek.dtsi | 24 | ||||
-rw-r--r-- | arch/arm/boot/dts/sama5d3.dtsi | 24 | ||||
-rw-r--r-- | arch/arm/boot/dts/sama5d3xcm.dtsi | 2 |
9 files changed, 102 insertions, 8 deletions
diff --git a/arch/arm/boot/dts/at91rm9200.dtsi b/arch/arm/boot/dts/at91rm9200.dtsi index 92b9e21389db..f77065506f1e 100644 --- a/arch/arm/boot/dts/at91rm9200.dtsi +++ b/arch/arm/boot/dts/at91rm9200.dtsi | |||
@@ -120,6 +120,7 @@ | |||
120 | interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>; | 120 | interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>; |
121 | #address-cells = <1>; | 121 | #address-cells = <1>; |
122 | #size-cells = <0>; | 122 | #size-cells = <0>; |
123 | pinctrl-names = "default"; | ||
123 | status = "disabled"; | 124 | status = "disabled"; |
124 | }; | 125 | }; |
125 | 126 | ||
diff --git a/arch/arm/boot/dts/at91rm9200_pqfp.dtsi b/arch/arm/boot/dts/at91rm9200_pqfp.dtsi new file mode 100644 index 000000000000..93ca66f80360 --- /dev/null +++ b/arch/arm/boot/dts/at91rm9200_pqfp.dtsi | |||
@@ -0,0 +1,17 @@ | |||
1 | /* | ||
2 | * at91rm9200_pqfp.dtsi - Device Tree Include file for AT91RM9200 PQFP family SoC | ||
3 | * | ||
4 | * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | ||
5 | * | ||
6 | * Licensed under GPLv2 or later. | ||
7 | */ | ||
8 | |||
9 | #include "at91rm9200.dtsi" | ||
10 | |||
11 | / { | ||
12 | compatible = "atmel,at91rm9200-pqfp", "atmel,at91rm9200"; | ||
13 | }; | ||
14 | |||
15 | &pioD { | ||
16 | status = "disabled"; | ||
17 | }; | ||
diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi index c7ccbcbffb3e..56ee8282a7a8 100644 --- a/arch/arm/boot/dts/at91sam9260.dtsi +++ b/arch/arm/boot/dts/at91sam9260.dtsi | |||
@@ -572,6 +572,7 @@ | |||
572 | interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>; | 572 | interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>; |
573 | #address-cells = <1>; | 573 | #address-cells = <1>; |
574 | #size-cells = <0>; | 574 | #size-cells = <0>; |
575 | pinctrl-names = "default"; | ||
575 | status = "disabled"; | 576 | status = "disabled"; |
576 | }; | 577 | }; |
577 | 578 | ||
diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi index bb7f564b3a55..9fb7ffd32af2 100644 --- a/arch/arm/boot/dts/at91sam9n12.dtsi +++ b/arch/arm/boot/dts/at91sam9n12.dtsi | |||
@@ -291,6 +291,22 @@ | |||
291 | }; | 291 | }; |
292 | }; | 292 | }; |
293 | 293 | ||
294 | i2c0 { | ||
295 | pinctrl_i2c0: i2c0-0 { | ||
296 | atmel,pins = | ||
297 | <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE | ||
298 | AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; | ||
299 | }; | ||
300 | }; | ||
301 | |||
302 | i2c1 { | ||
303 | pinctrl_i2c1: i2c1-0 { | ||
304 | atmel,pins = | ||
305 | <AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_NONE | ||
306 | AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>; | ||
307 | }; | ||
308 | }; | ||
309 | |||
294 | tcb0 { | 310 | tcb0 { |
295 | pinctrl_tcb0_tclk0: tcb0_tclk0-0 { | 311 | pinctrl_tcb0_tclk0: tcb0_tclk0-0 { |
296 | atmel,pins = <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE>; | 312 | atmel,pins = <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE>; |
@@ -471,6 +487,8 @@ | |||
471 | dma-names = "tx", "rx"; | 487 | dma-names = "tx", "rx"; |
472 | #address-cells = <1>; | 488 | #address-cells = <1>; |
473 | #size-cells = <0>; | 489 | #size-cells = <0>; |
490 | pinctrl-names = "default"; | ||
491 | pinctrl-0 = <&pinctrl_i2c0>; | ||
474 | status = "disabled"; | 492 | status = "disabled"; |
475 | }; | 493 | }; |
476 | 494 | ||
@@ -483,6 +501,8 @@ | |||
483 | dma-names = "tx", "rx"; | 501 | dma-names = "tx", "rx"; |
484 | #address-cells = <1>; | 502 | #address-cells = <1>; |
485 | #size-cells = <0>; | 503 | #size-cells = <0>; |
504 | pinctrl-names = "default"; | ||
505 | pinctrl-0 = <&pinctrl_i2c1>; | ||
486 | status = "disabled"; | 506 | status = "disabled"; |
487 | }; | 507 | }; |
488 | 508 | ||
diff --git a/arch/arm/boot/dts/at91sam9n12ek.dts b/arch/arm/boot/dts/at91sam9n12ek.dts index 3d77dbe406f4..27a9352b9d7a 100644 --- a/arch/arm/boot/dts/at91sam9n12ek.dts +++ b/arch/arm/boot/dts/at91sam9n12ek.dts | |||
@@ -40,6 +40,15 @@ | |||
40 | 40 | ||
41 | i2c0: i2c@f8010000 { | 41 | i2c0: i2c@f8010000 { |
42 | status = "okay"; | 42 | status = "okay"; |
43 | |||
44 | qt1070: keyboard@1b { | ||
45 | compatible = "qt1070"; | ||
46 | reg = <0x1b>; | ||
47 | interrupt-parent = <&pioA>; | ||
48 | interrupts = <2 IRQ_TYPE_EDGE_FALLING>; | ||
49 | pinctrl-names = "default"; | ||
50 | pinctrl-0 = <&pinctrl_qt1070_irq>; | ||
51 | }; | ||
43 | }; | 52 | }; |
44 | 53 | ||
45 | i2c1: i2c@f8014000 { | 54 | i2c1: i2c@f8014000 { |
@@ -66,6 +75,13 @@ | |||
66 | <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */ | 75 | <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */ |
67 | }; | 76 | }; |
68 | }; | 77 | }; |
78 | |||
79 | qt1070 { | ||
80 | pinctrl_qt1070_irq: qt1070_irq { | ||
81 | atmel,pins = | ||
82 | <AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; | ||
83 | }; | ||
84 | }; | ||
69 | }; | 85 | }; |
70 | 86 | ||
71 | spi0: spi@f0000000 { | 87 | spi0: spi@f0000000 { |
@@ -121,7 +137,7 @@ | |||
121 | 137 | ||
122 | enter { | 138 | enter { |
123 | label = "Enter"; | 139 | label = "Enter"; |
124 | gpios = <&pioB 4 GPIO_ACTIVE_LOW>; | 140 | gpios = <&pioB 3 GPIO_ACTIVE_LOW>; |
125 | linux,code = <28>; | 141 | linux,code = <28>; |
126 | gpio-key,wakeup; | 142 | gpio-key,wakeup; |
127 | }; | 143 | }; |
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5bea09..cf78ac0b04b1 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts/at91sam9x5.dtsi | |||
@@ -542,6 +542,9 @@ | |||
542 | compatible = "atmel,at91sam9g45-ssc"; | 542 | compatible = "atmel,at91sam9g45-ssc"; |
543 | reg = <0xf0010000 0x4000>; | 543 | reg = <0xf0010000 0x4000>; |
544 | interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>; | 544 | interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>; |
545 | dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(13)>, | ||
546 | <&dma0 1 AT91_DMA_CFG_PER_ID(14)>; | ||
547 | dma-names = "tx", "rx"; | ||
545 | pinctrl-names = "default"; | 548 | pinctrl-names = "default"; |
546 | pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; | 549 | pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; |
547 | status = "disabled"; | 550 | status = "disabled"; |
diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index 49e3c45818c2..3a9f6fa4a36a 100644 --- a/arch/arm/boot/dts/at91sam9x5ek.dtsi +++ b/arch/arm/boot/dts/at91sam9x5ek.dtsi | |||
@@ -59,6 +59,11 @@ | |||
59 | 59 | ||
60 | i2c0: i2c@f8010000 { | 60 | i2c0: i2c@f8010000 { |
61 | status = "okay"; | 61 | status = "okay"; |
62 | |||
63 | wm8731: wm8731@1a { | ||
64 | compatible = "wm8731"; | ||
65 | reg = <0x1a>; | ||
66 | }; | ||
62 | }; | 67 | }; |
63 | 68 | ||
64 | pinctrl@fffff400 { | 69 | pinctrl@fffff400 { |
@@ -90,6 +95,10 @@ | |||
90 | watchdog@fffffe40 { | 95 | watchdog@fffffe40 { |
91 | status = "okay"; | 96 | status = "okay"; |
92 | }; | 97 | }; |
98 | |||
99 | ssc0: ssc@f0010000 { | ||
100 | status = "okay"; | ||
101 | }; | ||
93 | }; | 102 | }; |
94 | 103 | ||
95 | usb0: ohci@00600000 { | 104 | usb0: ohci@00600000 { |
@@ -105,4 +114,19 @@ | |||
105 | status = "okay"; | 114 | status = "okay"; |
106 | }; | 115 | }; |
107 | }; | 116 | }; |
117 | |||
118 | sound { | ||
119 | compatible = "atmel,sam9x5-wm8731-audio"; | ||
120 | |||
121 | atmel,model = "wm8731 @ AT91SAM9X5EK"; | ||
122 | |||
123 | atmel,audio-routing = | ||
124 | "Headphone Jack", "RHPOUT", | ||
125 | "Headphone Jack", "LHPOUT", | ||
126 | "LLINEIN", "Line In Jack", | ||
127 | "RLINEIN", "Line In Jack"; | ||
128 | |||
129 | atmel,ssc-controller = <&ssc0>; | ||
130 | atmel,audio-codec = <&wm8731>; | ||
131 | }; | ||
108 | }; | 132 | }; |
diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index a1d5e25a6698..b7f49615120d 100644 --- a/arch/arm/boot/dts/sama5d3.dtsi +++ b/arch/arm/boot/dts/sama5d3.dtsi | |||
@@ -48,6 +48,11 @@ | |||
48 | }; | 48 | }; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | pmu { | ||
52 | compatible = "arm,cortex-a5-pmu"; | ||
53 | interrupts = <46 IRQ_TYPE_LEVEL_HIGH 0>; | ||
54 | }; | ||
55 | |||
51 | memory { | 56 | memory { |
52 | reg = <0x20000000 0x8000000>; | 57 | reg = <0x20000000 0x8000000>; |
53 | }; | 58 | }; |
@@ -1029,21 +1034,30 @@ | |||
1029 | compatible = "atmel,at91rm9200-nand"; | 1034 | compatible = "atmel,at91rm9200-nand"; |
1030 | #address-cells = <1>; | 1035 | #address-cells = <1>; |
1031 | #size-cells = <1>; | 1036 | #size-cells = <1>; |
1037 | ranges; | ||
1032 | reg = < 0x60000000 0x01000000 /* EBI CS3 */ | 1038 | reg = < 0x60000000 0x01000000 /* EBI CS3 */ |
1033 | 0xffffc070 0x00000490 /* SMC PMECC regs */ | 1039 | 0xffffc070 0x00000490 /* SMC PMECC regs */ |
1034 | 0xffffc500 0x00000100 /* SMC PMECC Error Location regs */ | 1040 | 0xffffc500 0x00000100 /* SMC PMECC Error Location regs */ |
1035 | 0x00100000 0x00100000 /* ROM code */ | 1041 | 0x00110000 0x00018000 /* ROM code */ |
1036 | 0x70000000 0x10000000 /* NFC Command Registers */ | ||
1037 | 0xffffc000 0x00000070 /* NFC HSMC regs */ | ||
1038 | 0x00200000 0x00100000 /* NFC SRAM banks */ | ||
1039 | >; | 1042 | >; |
1040 | interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>; | 1043 | interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>; |
1041 | atmel,nand-addr-offset = <21>; | 1044 | atmel,nand-addr-offset = <21>; |
1042 | atmel,nand-cmd-offset = <22>; | 1045 | atmel,nand-cmd-offset = <22>; |
1043 | pinctrl-names = "default"; | 1046 | pinctrl-names = "default"; |
1044 | pinctrl-0 = <&pinctrl_nand0_ale_cle>; | 1047 | pinctrl-0 = <&pinctrl_nand0_ale_cle>; |
1045 | atmel,pmecc-lookup-table-offset = <0x10000 0x18000>; | 1048 | atmel,pmecc-lookup-table-offset = <0x0 0x8000>; |
1046 | status = "disabled"; | 1049 | status = "disabled"; |
1050 | |||
1051 | nfc@70000000 { | ||
1052 | compatible = "atmel,sama5d3-nfc"; | ||
1053 | #address-cells = <1>; | ||
1054 | #size-cells = <1>; | ||
1055 | reg = < | ||
1056 | 0x70000000 0x10000000 /* NFC Command Registers */ | ||
1057 | 0xffffc000 0x00000070 /* NFC HSMC regs */ | ||
1058 | 0x00200000 0x00100000 /* NFC SRAM banks */ | ||
1059 | >; | ||
1060 | }; | ||
1047 | }; | 1061 | }; |
1048 | }; | 1062 | }; |
1049 | }; | 1063 | }; |
diff --git a/arch/arm/boot/dts/sama5d3xcm.dtsi b/arch/arm/boot/dts/sama5d3xcm.dtsi index 1f8050813a54..31ed9e3bb649 100644 --- a/arch/arm/boot/dts/sama5d3xcm.dtsi +++ b/arch/arm/boot/dts/sama5d3xcm.dtsi | |||
@@ -47,8 +47,6 @@ | |||
47 | atmel,has-pmecc; | 47 | atmel,has-pmecc; |
48 | atmel,pmecc-cap = <4>; | 48 | atmel,pmecc-cap = <4>; |
49 | atmel,pmecc-sector-size = <512>; | 49 | atmel,pmecc-sector-size = <512>; |
50 | atmel,has-nfc; | ||
51 | atmel,use-nfc-sram; | ||
52 | nand-on-flash-bbt; | 50 | nand-on-flash-bbt; |
53 | status = "okay"; | 51 | status = "okay"; |
54 | 52 | ||