aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorFlorian Vaussard <florian.vaussard@epfl.ch>2014-03-11 08:20:29 -0400
committerTony Lindgren <tony@atomide.com>2014-03-12 13:21:12 -0400
commit385306cc3ec98e2e4bccf3391da5b3dd0a26edb6 (patch)
treebddc4fac3a38b64d19ef656610bc6544a26421f9 /arch/arm
parent1afb89746ca0e5b5d24dcb119c084516a0a4fd36 (diff)
ARM: dts: overo: Create a file for common Gumstix peripherals
Gumstix expansion boards share a couple of peripherals: - uart3 is used for the console - AT24C01 EEPROM on i2c3 Use this file for overo-tobi. Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi50
-rw-r--r--arch/arm/boot/dts/omap3-overo-tobi-common.dtsi40
2 files changed, 52 insertions, 38 deletions
diff --git a/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi b/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi
new file mode 100644
index 000000000000..bca81ae0e646
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi
@@ -0,0 +1,50 @@
1/*
2 * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9/*
10 * Peripherals common to all Gumstix Overo boards (Tobi, Summit, Palo43,...)
11 */
12
13&omap3_pmx_core {
14 i2c3_pins: pinmux_i2c3_pins {
15 pinctrl-single,pins = <
16 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */
17 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */
18 >;
19 };
20
21 uart3_pins: pinmux_uart3_pins {
22 pinctrl-single,pins = <
23 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
24 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
25 >;
26 };
27};
28
29&i2c3 {
30 pinctrl-names = "default";
31 pinctrl-0 = <&i2c3_pins>;
32 clock-frequency = <100000>;
33
34 /* optional 1K EEPROM with revision information */
35 eeprom@51 {
36 compatible = "atmel,24c01";
37 reg = <0x51>;
38 pagesize = <8>;
39 };
40};
41
42&mmc3 {
43 status = "disabled";
44};
45
46&uart3 {
47 pinctrl-names = "default";
48 pinctrl-0 = <&uart3_pins>;
49};
50
diff --git a/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi b/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi
index 384e87d7f3bb..060eb7710870 100644
--- a/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi
+++ b/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi
@@ -10,6 +10,8 @@
10 * Tobi expansion board is manufactured by Gumstix Inc. 10 * Tobi expansion board is manufactured by Gumstix Inc.
11 */ 11 */
12 12
13#include "omap3-overo-common-peripherals.dtsi"
14
13/ { 15/ {
14 leds { 16 leds {
15 compatible = "gpio-leds"; 17 compatible = "gpio-leds";
@@ -21,22 +23,6 @@
21 }; 23 };
22}; 24};
23 25
24&omap3_pmx_core {
25 i2c3_pins: pinmux_i2c3_pins {
26 pinctrl-single,pins = <
27 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */
28 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */
29 >;
30 };
31
32 uart3_pins: pinmux_uart3_pins {
33 pinctrl-single,pins = <
34 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
35 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
36 >;
37 };
38};
39
40#include "omap-gpmc-smsc9221.dtsi" 26#include "omap-gpmc-smsc9221.dtsi"
41 27
42&gpmc { 28&gpmc {
@@ -49,25 +35,3 @@
49 }; 35 };
50}; 36};
51 37
52&i2c3 {
53 pinctrl-names = "default";
54 pinctrl-0 = <&i2c3_pins>;
55 clock-frequency = <100000>;
56
57 /* optional 1K EEPROM with revision information */
58 eeprom@51 {
59 compatible = "atmel,24c01";
60 reg = <0x51>;
61 pagesize = <8>;
62 };
63};
64
65&mmc3 {
66 status = "disabled";
67};
68
69&uart3 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&uart3_pins>;
72};
73