diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-12-09 01:42:54 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-02-09 08:32:28 -0500 |
commit | 07ed1eed529395e239d1e90806043f1dafc211fc (patch) | |
tree | 4869031e1c873cf6590194392deaf987ad42f108 /arch/arm/boot/dts/vf610-cosmic.dts | |
parent | 5a2a7d57ee66a1347ba39a4b474dfad08e3a68a3 (diff) |
ARM: dts: vf610: make pinctrl nodes board specific
Currently, all pinctrl setting nodes are defined in <soc>.dtsi, so that
boards that share the same pinctrl setting do not have to define it time
and time again in <board>.dts. However, along with the devices and use
cases being added continuously, the pinctrl setting nodes under iomuxc
becomes more than expected. This bloats device tree blob for particular
board unnecessarily since only a small subset of those pinctrl setting
nodes will be used by the board. It impacts not only the DTB file size
but also the run-time device tree lookup efficiency.
The patch moves all the pinctrl data into individual boards as needed.
With the changes, the pinctrl setting nodes becomes local to particular
board, and it makes no sense to continue numbering the setting for
given peripheral. Thus, all the pinctrl phandler name gets updated to
have only peripheral name in there.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Fugang Duan <B38611@freescale.com>
Diffstat (limited to 'arch/arm/boot/dts/vf610-cosmic.dts')
-rw-r--r-- | arch/arm/boot/dts/vf610-cosmic.dts | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/vf610-cosmic.dts b/arch/arm/boot/dts/vf610-cosmic.dts index c42e4f938dcd..3fd1b74e1216 100644 --- a/arch/arm/boot/dts/vf610-cosmic.dts +++ b/arch/arm/boot/dts/vf610-cosmic.dts | |||
@@ -36,12 +36,37 @@ | |||
36 | &fec1 { | 36 | &fec1 { |
37 | phy-mode = "rmii"; | 37 | phy-mode = "rmii"; |
38 | pinctrl-names = "default"; | 38 | pinctrl-names = "default"; |
39 | pinctrl-0 = <&pinctrl_fec1_1>; | 39 | pinctrl-0 = <&pinctrl_fec1>; |
40 | status = "okay"; | 40 | status = "okay"; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | &iomuxc { | ||
44 | vf610-cosmic { | ||
45 | pinctrl_fec1: fec1grp { | ||
46 | fsl,pins = < | ||
47 | VF610_PAD_PTC9__ENET_RMII1_MDC 0x30d2 | ||
48 | VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3 | ||
49 | VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1 | ||
50 | VF610_PAD_PTC12__ENET_RMII_RXD1 0x30d1 | ||
51 | VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1 | ||
52 | VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1 | ||
53 | VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2 | ||
54 | VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2 | ||
55 | VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2 | ||
56 | >; | ||
57 | }; | ||
58 | |||
59 | pinctrl_uart1: uart1grp { | ||
60 | fsl,pins = < | ||
61 | VF610_PAD_PTB4__UART1_TX 0x21a2 | ||
62 | VF610_PAD_PTB5__UART1_RX 0x21a1 | ||
63 | >; | ||
64 | }; | ||
65 | }; | ||
66 | }; | ||
67 | |||
43 | &uart1 { | 68 | &uart1 { |
44 | pinctrl-names = "default"; | 69 | pinctrl-names = "default"; |
45 | pinctrl-0 = <&pinctrl_uart1_1>; | 70 | pinctrl-0 = <&pinctrl_uart1>; |
46 | status = "okay"; | 71 | status = "okay"; |
47 | }; | 72 | }; |