Skip to content

Commit 06a9ea5

Browse files
rbilovolbcousson
authored andcommitted
ARM: dts: twl6030: Move common configuration for OMAP4 boards in a separate dtsi file
The OMAP4 SoC family uses specially-designed PMIC (power management IC) companion chip for power management needs: TWL6030/TWL6032. Therefore there is a typical connection of PMIC to OMAP4 so we can move it into separate .dtsi file and do not duplicate over board-specific files. Tested on OMAP4 SDP board and Pandaboard ES2. Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com> Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
1 parent 8906d65 commit 06a9ea5

3 files changed

Lines changed: 40 additions & 40 deletions

File tree

‎arch/arm/boot/dts/omap4-panda-common.dtsi‎

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -122,23 +122,9 @@
122122
};
123123
};
124124

125-
&omap4_pmx_wkup {
126-
pinctrl-names = "default";
127-
pinctrl-0 = <
128-
&twl6030_wkup_pins
129-
>;
130-
131-
twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
132-
pinctrl-single,pins = <
133-
0x14 (PIN_OUTPUT | MUX_MODE2) /* fref_clk0_out.sys_drm_msecure */
134-
>;
135-
};
136-
};
137-
138125
&omap4_pmx_core {
139126
pinctrl-names = "default";
140127
pinctrl-0 = <
141-
&twl6030_pins
142128
&twl6040_pins
143129
&mcpdm_pins
144130
&mcbsp1_pins
@@ -147,12 +133,6 @@
147133
&hsusbb1_pins
148134
>;
149135

150-
twl6030_pins: pinmux_twl6030_pins {
151-
pinctrl-single,pins = <
152-
0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1.sys_nirq1 */
153-
>;
154-
};
155-
156136
twl6040_pins: pinmux_twl6040_pins {
157137
pinctrl-single,pins = <
158138
0xe0 (PIN_OUTPUT | MUX_MODE3) /* hdq_sio.gpio_127 */
@@ -305,6 +285,7 @@
305285
};
306286

307287
#include "twl6030.dtsi"
288+
#include "twl6030_omap4.dtsi"
308289

309290
&i2c2 {
310291
pinctrl-names = "default";

‎arch/arm/boot/dts/omap4-sdp.dts‎

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,9 @@
155155
};
156156
};
157157

158-
&omap4_pmx_wkup {
159-
pinctrl-names = "default";
160-
pinctrl-0 = <
161-
&twl6030_wkup_pins
162-
>;
163-
164-
twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
165-
pinctrl-single,pins = <
166-
0x14 (PIN_OUTPUT | MUX_MODE2) /* fref_clk0_out.sys_drm_msecure */
167-
>;
168-
};
169-
};
170-
171158
&omap4_pmx_core {
172159
pinctrl-names = "default";
173160
pinctrl-0 = <
174-
&twl6030_pins
175161
&twl6040_pins
176162
&mcpdm_pins
177163
&dmic_pins
@@ -206,12 +192,6 @@
206192
>;
207193
};
208194

209-
twl6030_pins: pinmux_twl6030_pins {
210-
pinctrl-single,pins = <
211-
0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1.sys_nirq1 */
212-
>;
213-
};
214-
215195
twl6040_pins: pinmux_twl6040_pins {
216196
pinctrl-single,pins = <
217197
0xe0 (PIN_OUTPUT | MUX_MODE3) /* hdq_sio.gpio_127 */
@@ -370,6 +350,7 @@
370350
};
371351

372352
#include "twl6030.dtsi"
353+
#include "twl6030_omap4.dtsi"
373354

374355
&i2c2 {
375356
pinctrl-names = "default";
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
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+
&twl {
10+
/*
11+
* On most OMAP4 platforms, the twl6030 IRQ line is connected
12+
* to the SYS_NIRQ1 line on OMAP and the twl6030 MSECURE line is
13+
* connected to the fref_clk0_out.sys_drm_msecure line.
14+
* Therefore, configure the defaults for the SYS_NIRQ1 and
15+
* fref_clk0_out.sys_drm_msecure pins here.
16+
*/
17+
pinctrl-names = "default";
18+
pinctrl-0 = <
19+
&twl6030_pins
20+
&twl6030_wkup_pins
21+
>;
22+
};
23+
24+
&omap4_pmx_wkup {
25+
twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
26+
pinctrl-single,pins = <
27+
0x14 (PIN_OUTPUT | MUX_MODE2) /* fref_clk0_out.sys_drm_msecure */
28+
>;
29+
};
30+
};
31+
32+
&omap4_pmx_core {
33+
twl6030_pins: pinmux_twl6030_pins {
34+
pinctrl-single,pins = <
35+
0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1.sys_nirq1 */
36+
>;
37+
};
38+
};

0 commit comments

Comments
 (0)