diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2014-11-06 07:01:46 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-11-12 10:04:37 -0500 |
commit | 8647f2bc0156e17f9536c314792d123166871007 (patch) | |
tree | a6de74860f0301d9723720cce322dc1e838eed78 | |
parent | 2de584ed31aa0a0b7e3c936286f55245e6ebd58a (diff) |
ARM: dts: omap3-igep0030-common: Introduce igep0030 common dtsi file.
Use the omap3-igep0030-common.dtsi file and remove repeated parts leaving
the nodes that are not common between IGEP COM MODULE hardware revisions.
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/omap3-igep0030-common.dtsi | 60 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3-igep0030.dts | 58 |
2 files changed, 69 insertions, 49 deletions
diff --git a/arch/arm/boot/dts/omap3-igep0030-common.dtsi b/arch/arm/boot/dts/omap3-igep0030-common.dtsi new file mode 100644 index 000000000000..0cb1527c39d4 --- /dev/null +++ b/arch/arm/boot/dts/omap3-igep0030-common.dtsi | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * Common Device Tree Source for IGEP COM MODULE | ||
3 | * | ||
4 | * Copyright (C) 2014 Javier Martinez Canillas <javier@collabora.co.uk> | ||
5 | * Copyright (C) 2014 Enric Balletbo i Serra <eballetbo@gmail.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #include "omap3-igep.dtsi" | ||
13 | |||
14 | / { | ||
15 | leds: gpio_leds { | ||
16 | compatible = "gpio-leds"; | ||
17 | |||
18 | user0 { | ||
19 | label = "omap3:red:user0"; | ||
20 | gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */ | ||
21 | default-state = "off"; | ||
22 | }; | ||
23 | |||
24 | user1 { | ||
25 | label = "omap3:green:user1"; | ||
26 | gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>; /* LEDB */ | ||
27 | default-state = "off"; | ||
28 | }; | ||
29 | |||
30 | user2 { | ||
31 | label = "omap3:red:user1"; | ||
32 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; /* gpio_16 */ | ||
33 | default-state = "off"; | ||
34 | }; | ||
35 | }; | ||
36 | }; | ||
37 | |||
38 | &omap3_pmx_core { | ||
39 | uart2_pins: pinmux_uart2_pins { | ||
40 | pinctrl-single,pins = < | ||
41 | OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1) /* mcbsp3_dx.uart2_cts */ | ||
42 | OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_dr.uart2_rts */ | ||
43 | OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_clk.uart2_tx */ | ||
44 | OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1) /* mcbsp3_fsx.uart2_rx */ | ||
45 | >; | ||
46 | }; | ||
47 | }; | ||
48 | |||
49 | &omap3_pmx_core2 { | ||
50 | leds_core2_pins: pinmux_leds_core2_pins { | ||
51 | pinctrl-single,pins = < | ||
52 | OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */ | ||
53 | >; | ||
54 | }; | ||
55 | }; | ||
56 | |||
57 | &uart2 { | ||
58 | pinctrl-names = "default"; | ||
59 | pinctrl-0 = <&uart2_pins>; | ||
60 | }; | ||
diff --git a/arch/arm/boot/dts/omap3-igep0030.dts b/arch/arm/boot/dts/omap3-igep0030.dts index cc2a37437196..8150f47ccdf5 100644 --- a/arch/arm/boot/dts/omap3-igep0030.dts +++ b/arch/arm/boot/dts/omap3-igep0030.dts | |||
@@ -9,42 +9,12 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "omap3-igep.dtsi" | 12 | #include "omap3-igep0030-common.dtsi" |
13 | 13 | ||
14 | / { | 14 | / { |
15 | model = "IGEP COM MODULE Rev. E (TI OMAP AM/DM37x)"; | 15 | model = "IGEP COM MODULE Rev. E (TI OMAP AM/DM37x)"; |
16 | compatible = "isee,omap3-igep0030", "ti,omap36xx", "ti,omap3"; | 16 | compatible = "isee,omap3-igep0030", "ti,omap36xx", "ti,omap3"; |
17 | 17 | ||
18 | leds { | ||
19 | pinctrl-names = "default"; | ||
20 | pinctrl-0 = <&leds_pins>; | ||
21 | compatible = "gpio-leds"; | ||
22 | |||
23 | boot { | ||
24 | label = "omap3:green:boot"; | ||
25 | gpios = <&twl_gpio 13 GPIO_ACTIVE_LOW>; | ||
26 | default-state = "on"; | ||
27 | }; | ||
28 | |||
29 | user0 { | ||
30 | label = "omap3:red:user0"; | ||
31 | gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */ | ||
32 | default-state = "off"; | ||
33 | }; | ||
34 | |||
35 | user1 { | ||
36 | label = "omap3:green:user1"; | ||
37 | gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>; /* LEDB */ | ||
38 | default-state = "off"; | ||
39 | }; | ||
40 | |||
41 | user2 { | ||
42 | label = "omap3:red:user1"; | ||
43 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; | ||
44 | default-state = "off"; | ||
45 | }; | ||
46 | }; | ||
47 | |||
48 | /* Regulator to trigger the WIFI_PDN signal of the Wifi module */ | 18 | /* Regulator to trigger the WIFI_PDN signal of the Wifi module */ |
49 | lbee1usjyc_pdn: lbee1usjyc_pdn { | 19 | lbee1usjyc_pdn: lbee1usjyc_pdn { |
50 | compatible = "regulator-fixed"; | 20 | compatible = "regulator-fixed"; |
@@ -75,22 +45,16 @@ | |||
75 | OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 - RST_N_B */ | 45 | OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 - RST_N_B */ |
76 | >; | 46 | >; |
77 | }; | 47 | }; |
78 | |||
79 | uart2_pins: pinmux_uart2_pins { | ||
80 | pinctrl-single,pins = < | ||
81 | OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1) /* mcbsp3_dx.uart2_cts */ | ||
82 | OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_dr.uart2_rts */ | ||
83 | OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_clk.uart2_tx */ | ||
84 | OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1) /* mcbsp3_fsx.uart2_rx */ | ||
85 | >; | ||
86 | }; | ||
87 | }; | 48 | }; |
88 | 49 | ||
89 | &omap3_pmx_core2 { | 50 | &leds { |
90 | leds_pins: pinmux_leds_pins { | 51 | pinctrl-names = "default"; |
91 | pinctrl-single,pins = < | 52 | pinctrl-0 = <&leds_core2_pins>; |
92 | OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */ | 53 | |
93 | >; | 54 | boot { |
55 | label = "omap3:green:boot"; | ||
56 | gpios = <&twl_gpio 13 GPIO_ACTIVE_LOW>; /* LEDSYNC */ | ||
57 | default-state = "on"; | ||
94 | }; | 58 | }; |
95 | }; | 59 | }; |
96 | 60 | ||
@@ -104,7 +68,3 @@ | |||
104 | non-removable; | 68 | non-removable; |
105 | }; | 69 | }; |
106 | 70 | ||
107 | &uart2 { | ||
108 | pinctrl-names = "default"; | ||
109 | pinctrl-0 = <&uart2_pins>; | ||
110 | }; | ||