aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx6q-sabrelite.dts
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-10-23 03:36:09 -0400
committerShawn Guo <shawn.guo@linaro.org>2014-02-09 08:28:56 -0500
commit817c27a128e18aed840adc295f988e1656fed7d1 (patch)
tree0933ab14f58d72ff331846f3b4a370cc60778585 /arch/arm/boot/dts/imx6q-sabrelite.dts
parent682d055e6ac5c3855f51649de6d68e9bb29c26a6 (diff)
ARM: dts: imx6qdl: 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>
Diffstat (limited to 'arch/arm/boot/dts/imx6q-sabrelite.dts')
-rw-r--r--arch/arm/boot/dts/imx6q-sabrelite.dts98
1 files changed, 89 insertions, 9 deletions
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts
index f004913f7d80..26e1608d24a2 100644
--- a/arch/arm/boot/dts/imx6q-sabrelite.dts
+++ b/arch/arm/boot/dts/imx6q-sabrelite.dts
@@ -68,14 +68,14 @@
68&audmux { 68&audmux {
69 status = "okay"; 69 status = "okay";
70 pinctrl-names = "default"; 70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_audmux_1>; 71 pinctrl-0 = <&pinctrl_audmux>;
72}; 72};
73 73
74&ecspi1 { 74&ecspi1 {
75 fsl,spi-num-chipselects = <1>; 75 fsl,spi-num-chipselects = <1>;
76 cs-gpios = <&gpio3 19 0>; 76 cs-gpios = <&gpio3 19 0>;
77 pinctrl-names = "default"; 77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_ecspi1_1>; 78 pinctrl-0 = <&pinctrl_ecspi1>;
79 status = "okay"; 79 status = "okay";
80 80
81 flash: m25p80@0 { 81 flash: m25p80@0 {
@@ -87,7 +87,7 @@
87 87
88&fec { 88&fec {
89 pinctrl-names = "default"; 89 pinctrl-names = "default";
90 pinctrl-0 = <&pinctrl_enet_1>; 90 pinctrl-0 = <&pinctrl_enet>;
91 phy-mode = "rgmii"; 91 phy-mode = "rgmii";
92 phy-reset-gpios = <&gpio3 23 0>; 92 phy-reset-gpios = <&gpio3 23 0>;
93 status = "okay"; 93 status = "okay";
@@ -97,7 +97,7 @@
97 status = "okay"; 97 status = "okay";
98 clock-frequency = <100000>; 98 clock-frequency = <100000>;
99 pinctrl-names = "default"; 99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_i2c1_1>; 100 pinctrl-0 = <&pinctrl_i2c1>;
101 101
102 codec: sgtl5000@0a { 102 codec: sgtl5000@0a {
103 compatible = "fsl,sgtl5000"; 103 compatible = "fsl,sgtl5000";
@@ -112,7 +112,7 @@
112 pinctrl-names = "default"; 112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_hog>; 113 pinctrl-0 = <&pinctrl_hog>;
114 114
115 hog { 115 imx6q-sabrelite {
116 pinctrl_hog: hoggrp { 116 pinctrl_hog: hoggrp {
117 fsl,pins = < 117 fsl,pins = <
118 MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x80000000 118 MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x80000000
@@ -126,6 +126,86 @@
126 MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000 126 MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000
127 >; 127 >;
128 }; 128 };
129
130 pinctrl_audmux: audmuxgrp {
131 fsl,pins = <
132 MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x80000000
133 MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x80000000
134 MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x80000000
135 MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x80000000
136 >;
137 };
138
139 pinctrl_ecspi1: ecspi1grp {
140 fsl,pins = <
141 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
142 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
143 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
144 >;
145 };
146
147 pinctrl_enet: enetgrp {
148 fsl,pins = <
149 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
150 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
151 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
152 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
153 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
154 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
155 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
156 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
157 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
158 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
159 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
160 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
161 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
162 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
163 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
164 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
165 >;
166 };
167
168 pinctrl_i2c1: i2c1grp {
169 fsl,pins = <
170 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
171 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
172 >;
173 };
174
175 pinctrl_uart2: uart2grp {
176 fsl,pins = <
177 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
178 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
179 >;
180 };
181
182 pinctrl_usbotg: usbotggrp {
183 fsl,pins = <
184 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
185 >;
186 };
187
188 pinctrl_usdhc3: usdhc3grp {
189 fsl,pins = <
190 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
191 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
192 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
193 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
194 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
195 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
196 >;
197 };
198
199 pinctrl_usdhc4: usdhc4grp {
200 fsl,pins = <
201 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
202 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
203 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
204 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
205 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
206 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
207 >;
208 };
129 }; 209 };
130}; 210};
131 211
@@ -166,7 +246,7 @@
166&uart2 { 246&uart2 {
167 status = "okay"; 247 status = "okay";
168 pinctrl-names = "default"; 248 pinctrl-names = "default";
169 pinctrl-0 = <&pinctrl_uart2_1>; 249 pinctrl-0 = <&pinctrl_uart2>;
170}; 250};
171 251
172&usbh1 { 252&usbh1 {
@@ -176,14 +256,14 @@
176&usbotg { 256&usbotg {
177 vbus-supply = <&reg_usb_otg_vbus>; 257 vbus-supply = <&reg_usb_otg_vbus>;
178 pinctrl-names = "default"; 258 pinctrl-names = "default";
179 pinctrl-0 = <&pinctrl_usbotg_1>; 259 pinctrl-0 = <&pinctrl_usbotg>;
180 disable-over-current; 260 disable-over-current;
181 status = "okay"; 261 status = "okay";
182}; 262};
183 263
184&usdhc3 { 264&usdhc3 {
185 pinctrl-names = "default"; 265 pinctrl-names = "default";
186 pinctrl-0 = <&pinctrl_usdhc3_2>; 266 pinctrl-0 = <&pinctrl_usdhc3>;
187 cd-gpios = <&gpio7 0 0>; 267 cd-gpios = <&gpio7 0 0>;
188 wp-gpios = <&gpio7 1 0>; 268 wp-gpios = <&gpio7 1 0>;
189 vmmc-supply = <&reg_3p3v>; 269 vmmc-supply = <&reg_3p3v>;
@@ -192,7 +272,7 @@
192 272
193&usdhc4 { 273&usdhc4 {
194 pinctrl-names = "default"; 274 pinctrl-names = "default";
195 pinctrl-0 = <&pinctrl_usdhc4_2>; 275 pinctrl-0 = <&pinctrl_usdhc4>;
196 cd-gpios = <&gpio2 6 0>; 276 cd-gpios = <&gpio2 6 0>;
197 wp-gpios = <&gpio2 7 0>; 277 wp-gpios = <&gpio2 7 0>;
198 vmmc-supply = <&reg_3p3v>; 278 vmmc-supply = <&reg_3p3v>;