Gumstix expansion boards share a couple of peripherals: - i2c3 is used for the console - AT24C01 EEPROM on i2c3
Use this file for omap3-tobi. Signed-off-by: Florian Vaussard <florian.vauss...@epfl.ch> --- arch/arm/boot/dts/omap3-overo-common.dtsi | 39 +++++++++++++++++++++++++++++++ arch/arm/boot/dts/omap3-tobi.dts | 27 +-------------------- 2 files changed, 40 insertions(+), 26 deletions(-) create mode 100644 arch/arm/boot/dts/omap3-overo-common.dtsi diff --git a/arch/arm/boot/dts/omap3-overo-common.dtsi b/arch/arm/boot/dts/omap3-overo-common.dtsi new file mode 100644 index 0000000..5f38ce8 --- /dev/null +++ b/arch/arm/boot/dts/omap3-overo-common.dtsi @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/* + * Peripherals common to all Gumstix Overo boards (Tobi, Summit, Palo43,...) + */ + +#include "omap3-overo.dtsi" + +&omap3_pmx_core { + i2c3_pins: pinmux_i2c3_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */ + OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */ + >; + }; +}; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + clock-frequency = <100000>; + + /* optional 1K EEPROM with revision information */ + eeprom@51 { + compatible = "atmel,24c01"; + reg = <0x51>; + pagesize = <8>; + }; +}; + +&mmc3 { + status = "disabled"; +}; diff --git a/arch/arm/boot/dts/omap3-tobi.dts b/arch/arm/boot/dts/omap3-tobi.dts index 67c056d..928d12f 100644 --- a/arch/arm/boot/dts/omap3-tobi.dts +++ b/arch/arm/boot/dts/omap3-tobi.dts @@ -10,7 +10,7 @@ * Tobi expansion board is manufactured by Gumstix Inc. */ -#include "omap3-overo.dtsi" +#include "omap3-overo-common.dtsi" / { model = "TI OMAP3 Gumstix Overo on Tobi"; @@ -38,15 +38,6 @@ }; }; -&omap3_pmx_core { - i2c3_pins: pinmux_i2c3_pins { - pinctrl-single,pins = < - OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */ - OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */ - >; - }; -}; - #include "omap-gpmc-smsc9221.dtsi" &gpmc { @@ -59,19 +50,3 @@ }; }; -&i2c3 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c3_pins>; - clock-frequency = <100000>; - - /* optional 1K EEPROM with revision information */ - eeprom@51 { - compatible = "atmel,24c01"; - reg = <0x51>; - pagesize = <8>; - }; -}; - -&mmc3 { - status = "disabled"; -}; -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html