diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-22 17:23:11 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-22 17:23:11 -0400 |
commit | c740ae7404b4b606545d008c7981d0138df44461 (patch) | |
tree | 421d6ba80e346d429b6991e56e7018369da3d8d0 /arch/arm/boot | |
parent | 0d601f613b8557cf6489f06251ae5dc383b811d0 (diff) | |
parent | 3415b08fc69af283cb19883c32fc4c62c84c55d7 (diff) |
Merge branch 'kirkwood/drivers' of git://git.infradead.org/users/jcooper/linux into late/kirkwood
From Jason Cooper:
New drivers:
- pinctrl (dove, kirkwood, mvebu)
- gpio (mvebu)
* 'kirkwood/drivers' of git://git.infradead.org/users/jcooper/linux:
arm: mvebu: add gpio support in defconfig
arm: mvebu: add DT information for GPIO banks on Armada 370 and XP
arm: mvebu: use GPIO support now that a driver is available
Documentation: add description of DT binding for the gpio-mvebu driver
gpio: introduce gpio-mvebu driver for Marvell SoCs
arm: mvebu: select the pinctrl drivers for Armada 370 and Armada XP platforms
arm: mvebu: split Kconfig options for Armada 370 and XP
ARM: mvebu: adjust Armada XP evaluation board DTS
ARM: mvebu: Add pinctrl support to Armada 370 SoC
ARM: mvebu: Add pinctrl support to Armada XP SoCs
pinctrl: mvebu: add pinctrl driver for Armada XP
pinctrl: mvebu: add pinctrl driver for Armada 370
pinctrl: mvebu: kirkwood pinctrl driver
pinctrl: mvebu: dove pinctrl driver
pinctrl: mvebu: pinctrl driver core
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/armada-370.dtsi | 44 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-xp-db.dts | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-xp-mv78230.dtsi | 57 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-xp-mv78260.dtsi | 70 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-xp-mv78460.dtsi | 70 |
5 files changed, 243 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi index 3228ccc8333..2069151afe0 100644 --- a/arch/arm/boot/dts/armada-370.dtsi +++ b/arch/arm/boot/dts/armada-370.dtsi | |||
@@ -21,6 +21,12 @@ | |||
21 | model = "Marvell Armada 370 family SoC"; | 21 | model = "Marvell Armada 370 family SoC"; |
22 | compatible = "marvell,armada370", "marvell,armada-370-xp"; | 22 | compatible = "marvell,armada370", "marvell,armada-370-xp"; |
23 | 23 | ||
24 | aliases { | ||
25 | gpio0 = &gpio0; | ||
26 | gpio1 = &gpio1; | ||
27 | gpio2 = &gpio2; | ||
28 | }; | ||
29 | |||
24 | mpic: interrupt-controller@d0020000 { | 30 | mpic: interrupt-controller@d0020000 { |
25 | reg = <0xd0020a00 0x1d0>, | 31 | reg = <0xd0020a00 0x1d0>, |
26 | <0xd0021870 0x58>; | 32 | <0xd0021870 0x58>; |
@@ -31,5 +37,43 @@ | |||
31 | compatible = "marvell,armada-370-xp-system-controller"; | 37 | compatible = "marvell,armada-370-xp-system-controller"; |
32 | reg = <0xd0018200 0x100>; | 38 | reg = <0xd0018200 0x100>; |
33 | }; | 39 | }; |
40 | |||
41 | pinctrl { | ||
42 | compatible = "marvell,mv88f6710-pinctrl"; | ||
43 | reg = <0xd0018000 0x38>; | ||
44 | }; | ||
45 | |||
46 | gpio0: gpio@d0018100 { | ||
47 | compatible = "marvell,orion-gpio"; | ||
48 | reg = <0xd0018100 0x40>; | ||
49 | ngpios = <32>; | ||
50 | gpio-controller; | ||
51 | #gpio-cells = <2>; | ||
52 | interrupt-controller; | ||
53 | #interrupts-cells = <2>; | ||
54 | interrupts = <82>, <83>, <84>, <85>; | ||
55 | }; | ||
56 | |||
57 | gpio1: gpio@d0018140 { | ||
58 | compatible = "marvell,orion-gpio"; | ||
59 | reg = <0xd0018140 0x40>; | ||
60 | ngpios = <32>; | ||
61 | gpio-controller; | ||
62 | #gpio-cells = <2>; | ||
63 | interrupt-controller; | ||
64 | #interrupts-cells = <2>; | ||
65 | interrupts = <87>, <88>, <89>, <90>; | ||
66 | }; | ||
67 | |||
68 | gpio2: gpio@d0018180 { | ||
69 | compatible = "marvell,orion-gpio"; | ||
70 | reg = <0xd0018180 0x40>; | ||
71 | ngpios = <2>; | ||
72 | gpio-controller; | ||
73 | #gpio-cells = <2>; | ||
74 | interrupt-controller; | ||
75 | #interrupts-cells = <2>; | ||
76 | interrupts = <91>; | ||
77 | }; | ||
34 | }; | 78 | }; |
35 | }; | 79 | }; |
diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts index f97040d4258..b1fc728515e 100644 --- a/arch/arm/boot/dts/armada-xp-db.dts +++ b/arch/arm/boot/dts/armada-xp-db.dts | |||
@@ -14,11 +14,11 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | /dts-v1/; | 16 | /dts-v1/; |
17 | /include/ "armada-xp.dtsi" | 17 | /include/ "armada-xp-mv78460.dtsi" |
18 | 18 | ||
19 | / { | 19 | / { |
20 | model = "Marvell Armada XP Evaluation Board"; | 20 | model = "Marvell Armada XP Evaluation Board"; |
21 | compatible = "marvell,axp-db", "marvell,armadaxp", "marvell,armada-370-xp"; | 21 | compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; |
22 | 22 | ||
23 | chosen { | 23 | chosen { |
24 | bootargs = "console=ttyS0,115200 earlyprintk"; | 24 | bootargs = "console=ttyS0,115200 earlyprintk"; |
diff --git a/arch/arm/boot/dts/armada-xp-mv78230.dtsi b/arch/arm/boot/dts/armada-xp-mv78230.dtsi new file mode 100644 index 00000000000..ea355192be6 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-mv78230.dtsi | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * Device Tree Include file for Marvell Armada XP family SoC | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | * | ||
12 | * Contains definitions specific to the Armada XP MV78230 SoC that are not | ||
13 | * common to all Armada XP SoCs. | ||
14 | */ | ||
15 | |||
16 | /include/ "armada-xp.dtsi" | ||
17 | |||
18 | / { | ||
19 | model = "Marvell Armada XP MV78230 SoC"; | ||
20 | compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; | ||
21 | |||
22 | aliases { | ||
23 | gpio0 = &gpio0; | ||
24 | gpio1 = &gpio1; | ||
25 | }; | ||
26 | |||
27 | soc { | ||
28 | pinctrl { | ||
29 | compatible = "marvell,mv78230-pinctrl"; | ||
30 | reg = <0xd0018000 0x38>; | ||
31 | }; | ||
32 | |||
33 | gpio0: gpio@d0018100 { | ||
34 | compatible = "marvell,armadaxp-gpio"; | ||
35 | reg = <0xd0018100 0x40>, | ||
36 | <0xd0018800 0x30>; | ||
37 | ngpios = <32>; | ||
38 | gpio-controller; | ||
39 | #gpio-cells = <2>; | ||
40 | interrupt-controller; | ||
41 | #interrupts-cells = <2>; | ||
42 | interrupts = <16>, <17>, <18>, <19>; | ||
43 | }; | ||
44 | |||
45 | gpio1: gpio@d0018140 { | ||
46 | compatible = "marvell,armadaxp-gpio"; | ||
47 | reg = <0xd0018140 0x40>, | ||
48 | <0xd0018840 0x30>; | ||
49 | ngpios = <17>; | ||
50 | gpio-controller; | ||
51 | #gpio-cells = <2>; | ||
52 | interrupt-controller; | ||
53 | #interrupts-cells = <2>; | ||
54 | interrupts = <20>, <21>, <22>; | ||
55 | }; | ||
56 | }; | ||
57 | }; | ||
diff --git a/arch/arm/boot/dts/armada-xp-mv78260.dtsi b/arch/arm/boot/dts/armada-xp-mv78260.dtsi new file mode 100644 index 00000000000..2057863f3df --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-mv78260.dtsi | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | * Device Tree Include file for Marvell Armada XP family SoC | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | * | ||
12 | * Contains definitions specific to the Armada XP MV78260 SoC that are not | ||
13 | * common to all Armada XP SoCs. | ||
14 | */ | ||
15 | |||
16 | /include/ "armada-xp.dtsi" | ||
17 | |||
18 | / { | ||
19 | model = "Marvell Armada XP MV78260 SoC"; | ||
20 | compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; | ||
21 | |||
22 | aliases { | ||
23 | gpio0 = &gpio0; | ||
24 | gpio1 = &gpio1; | ||
25 | gpio2 = &gpio2; | ||
26 | }; | ||
27 | |||
28 | soc { | ||
29 | pinctrl { | ||
30 | compatible = "marvell,mv78260-pinctrl"; | ||
31 | reg = <0xd0018000 0x38>; | ||
32 | }; | ||
33 | |||
34 | gpio0: gpio@d0018100 { | ||
35 | compatible = "marvell,armadaxp-gpio"; | ||
36 | reg = <0xd0018100 0x40>, | ||
37 | <0xd0018800 0x30>; | ||
38 | ngpios = <32>; | ||
39 | gpio-controller; | ||
40 | #gpio-cells = <2>; | ||
41 | interrupt-controller; | ||
42 | #interrupts-cells = <2>; | ||
43 | interrupts = <16>, <17>, <18>, <19>; | ||
44 | }; | ||
45 | |||
46 | gpio1: gpio@d0018140 { | ||
47 | compatible = "marvell,armadaxp-gpio"; | ||
48 | reg = <0xd0018140 0x40>, | ||
49 | <0xd0018840 0x30>; | ||
50 | ngpios = <32>; | ||
51 | gpio-controller; | ||
52 | #gpio-cells = <2>; | ||
53 | interrupt-controller; | ||
54 | #interrupts-cells = <2>; | ||
55 | interrupts = <20>, <21>, <22>, <23>; | ||
56 | }; | ||
57 | |||
58 | gpio2: gpio@d0018180 { | ||
59 | compatible = "marvell,armadaxp-gpio"; | ||
60 | reg = <0xd0018180 0x40>, | ||
61 | <0xd0018870 0x30>; | ||
62 | ngpios = <3>; | ||
63 | gpio-controller; | ||
64 | #gpio-cells = <2>; | ||
65 | interrupt-controller; | ||
66 | #interrupts-cells = <2>; | ||
67 | interrupts = <24>; | ||
68 | }; | ||
69 | }; | ||
70 | }; | ||
diff --git a/arch/arm/boot/dts/armada-xp-mv78460.dtsi b/arch/arm/boot/dts/armada-xp-mv78460.dtsi new file mode 100644 index 00000000000..ffac9837379 --- /dev/null +++ b/arch/arm/boot/dts/armada-xp-mv78460.dtsi | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | * Device Tree Include file for Marvell Armada XP family SoC | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | * | ||
12 | * Contains definitions specific to the Armada XP MV78460 SoC that are not | ||
13 | * common to all Armada XP SoCs. | ||
14 | */ | ||
15 | |||
16 | /include/ "armada-xp.dtsi" | ||
17 | |||
18 | / { | ||
19 | model = "Marvell Armada XP MV78460 SoC"; | ||
20 | compatible = "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; | ||
21 | |||
22 | aliases { | ||
23 | gpio0 = &gpio0; | ||
24 | gpio1 = &gpio1; | ||
25 | gpio2 = &gpio2; | ||
26 | }; | ||
27 | |||
28 | soc { | ||
29 | pinctrl { | ||
30 | compatible = "marvell,mv78460-pinctrl"; | ||
31 | reg = <0xd0018000 0x38>; | ||
32 | }; | ||
33 | |||
34 | gpio0: gpio@d0018100 { | ||
35 | compatible = "marvell,armadaxp-gpio"; | ||
36 | reg = <0xd0018100 0x40>, | ||
37 | <0xd0018800 0x30>; | ||
38 | ngpios = <32>; | ||
39 | gpio-controller; | ||
40 | #gpio-cells = <2>; | ||
41 | interrupt-controller; | ||
42 | #interrupts-cells = <2>; | ||
43 | interrupts = <16>, <17>, <18>, <19>; | ||
44 | }; | ||
45 | |||
46 | gpio1: gpio@d0018140 { | ||
47 | compatible = "marvell,armadaxp-gpio"; | ||
48 | reg = <0xd0018140 0x40>, | ||
49 | <0xd0018840 0x30>; | ||
50 | ngpios = <32>; | ||
51 | gpio-controller; | ||
52 | #gpio-cells = <2>; | ||
53 | interrupt-controller; | ||
54 | #interrupts-cells = <2>; | ||
55 | interrupts = <20>, <21>, <22>, <23>; | ||
56 | }; | ||
57 | |||
58 | gpio2: gpio@d0018180 { | ||
59 | compatible = "marvell,armadaxp-gpio"; | ||
60 | reg = <0xd0018180 0x40>, | ||
61 | <0xd0018870 0x30>; | ||
62 | ngpios = <3>; | ||
63 | gpio-controller; | ||
64 | #gpio-cells = <2>; | ||
65 | interrupt-controller; | ||
66 | #interrupts-cells = <2>; | ||
67 | interrupts = <24>; | ||
68 | }; | ||
69 | }; | ||
70 | }; | ||