aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2014-02-20 03:49:40 -0500
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:57:44 -0400
commit43486fbef10c525fb5c23f4de11811c48fe0db46 (patch)
tree92e998b879587b58aeb088d2b5788ace5a01d7d4 /arch/arm/boot
parent93a1ab5533c0fb9047d7ab91e516c450219a97a3 (diff)
ENGR00300439-4 dts: imx6sx-arm2: add flexcan support
Add flexcan support Signed-off-by: Dong Aisheng <b29396@freescale.com>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/imx6sx-17x17-arm2.dts28
-rw-r--r--arch/arm/boot/dts/imx6sx.dtsi95
2 files changed, 122 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx6sx-17x17-arm2.dts b/arch/arm/boot/dts/imx6sx-17x17-arm2.dts
index 89d9591f04d5..7221634da52d 100644
--- a/arch/arm/boot/dts/imx6sx-17x17-arm2.dts
+++ b/arch/arm/boot/dts/imx6sx-17x17-arm2.dts
@@ -57,6 +57,24 @@
57 status = "disabled"; 57 status = "disabled";
58}; 58};
59 59
60&flexcan1 {
61 pinctrl-names = "default";
62 pinctrl-0 = <&pinctrl_flexcan1_1>;
63 trx-en-gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
64 trx-stby-gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
65 trx-err-gpio = <&gpio4 24 GPIO_ACTIVE_HIGH>;
66 status = "okay";
67};
68
69&flexcan2 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_flexcan2_1>;
72 trx-en-gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
73 trx-stby-gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
74 trx-err-gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
75 status = "okay";
76};
77
60&gpc { 78&gpc {
61 fsl,cpu_pupscr_sw2iso = <0xf>; 79 fsl,cpu_pupscr_sw2iso = <0xf>;
62 fsl,cpu_pupscr_sw = <0xf>; 80 fsl,cpu_pupscr_sw = <0xf>;
@@ -212,7 +230,15 @@
212 MX6SX_PAD_KEY_COL0__GPIO2_IO_10 0x1f059 230 MX6SX_PAD_KEY_COL0__GPIO2_IO_10 0x1f059
213 MX6SX_PAD_KEY_ROW0__GPIO2_IO_15 0x1f059 231 MX6SX_PAD_KEY_ROW0__GPIO2_IO_15 0x1f059
214 MX6SX_PAD_QSPI1A_SS0_B__GPIO4_IO_22 0x80000000 232 MX6SX_PAD_QSPI1A_SS0_B__GPIO4_IO_22 0x80000000
215 >; 233 /* CAN1_2_EN */
234 MX6SX_PAD_QSPI1B_DATA1__GPIO4_IO_25 0x80000000
235 /* CAN1_2_STBY_B */
236 MX6SX_PAD_QSPI1B_DATA3__GPIO4_IO_27 0x80000000
237 /* CAN1_ERR_B */
238 MX6SX_PAD_QSPI1B_DATA0__GPIO4_IO_24 0x80000000
239 /* CAN2_ERR_B */
240 MX6SX_PAD_QSPI1B_SS0_B__GPIO4_IO_30 0x80000000
241 >;
216 }; 242 };
217 }; 243 };
218}; 244};
diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi
index 34bb5d927710..c6fc4fd1e4f1 100644
--- a/arch/arm/boot/dts/imx6sx.dtsi
+++ b/arch/arm/boot/dts/imx6sx.dtsi
@@ -17,8 +17,15 @@
17 17
18/ { 18/ {
19 aliases { 19 aliases {
20 flexcan0 = &flexcan1;
21 flexcan1 = &flexcan2;
22 gpio0 = &gpio1;
20 gpio1 = &gpio2; 23 gpio1 = &gpio2;
24 gpio2 = &gpio3;
21 gpio3 = &gpio4; 25 gpio3 = &gpio4;
26 gpio4 = &gpio5;
27 gpio5 = &gpio6;
28 gpio6 = &gpio7;
22 serial0 = &uart1; 29 serial0 = &uart1;
23 serial1 = &uart2; 30 serial1 = &uart2;
24 }; 31 };
@@ -155,6 +162,26 @@
155 interrupts = <0 49 0x04 0 54 0x04 0 127 0x04>; 162 interrupts = <0 49 0x04 0 54 0x04 0 127 0x04>;
156 }; 163 };
157 164
165 flexcan1: can@02090000 {
166 compatible = "fsl,imx6q-flexcan";
167 reg = <0x02090000 0x4000>;
168 interrupts = <0 110 0x04>;
169 clocks = <&clks IMX6SX_CLK_CAN1_IPG>, <&clks IMX6SX_CLK_CAN1_SERIAL>;
170 clock-names = "ipg", "per";
171 gpr = <&gpr>;
172 status = "disabled";
173 };
174
175 flexcan2: can@02094000 {
176 compatible = "fsl,imx6q-flexcan";
177 reg = <0x02094000 0x4000>;
178 interrupts = <0 111 0x04>;
179 clocks = <&clks IMX6SX_CLK_CAN2_IPG>, <&clks IMX6SX_CLK_CAN2_SERIAL>;
180 clock-names = "ipg", "per";
181 gpr = <&gpr>;
182 status = "disabled";
183 };
184
158 snvs@020cc000 { 185 snvs@020cc000 {
159 compatible = "fsl,sec-v4.0-mon", "simple-bus"; 186 compatible = "fsl,sec-v4.0-mon", "simple-bus";
160 #address-cells = <1>; 187 #address-cells = <1>;
@@ -181,6 +208,16 @@
181 interrupts = <0 89 0x04>; 208 interrupts = <0 89 0x04>;
182 }; 209 };
183 210
211 gpio1: gpio@0209c000 {
212 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
213 reg = <0x0209c000 0x4000>;
214 interrupts = <0 66 0x04 0 67 0x04>;
215 gpio-controller;
216 #gpio-cells = <2>;
217 interrupt-controller;
218 #interrupt-cells = <2>;
219 };
220
184 gpio2: gpio@020a0000 { 221 gpio2: gpio@020a0000 {
185 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio"; 222 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
186 reg = <0x020a0000 0x4000>; 223 reg = <0x020a0000 0x4000>;
@@ -191,6 +228,16 @@
191 #interrupt-cells = <2>; 228 #interrupt-cells = <2>;
192 }; 229 };
193 230
231 gpio3: gpio@020a4000 {
232 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
233 reg = <0x020a4000 0x4000>;
234 interrupts = <0 70 0x04 0 71 0x04>;
235 gpio-controller;
236 #gpio-cells = <2>;
237 interrupt-controller;
238 #interrupt-cells = <2>;
239 };
240
194 gpio4: gpio@020a8000 { 241 gpio4: gpio@020a8000 {
195 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio"; 242 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
196 reg = <0x020a8000 0x4000>; 243 reg = <0x020a8000 0x4000>;
@@ -201,6 +248,36 @@
201 #interrupt-cells = <2>; 248 #interrupt-cells = <2>;
202 }; 249 };
203 250
251 gpio5: gpio@020ac000 {
252 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
253 reg = <0x020ac000 0x4000>;
254 interrupts = <0 74 0x04 0 75 0x04>;
255 gpio-controller;
256 #gpio-cells = <2>;
257 interrupt-controller;
258 #interrupt-cells = <2>;
259 };
260
261 gpio6: gpio@020b0000 {
262 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
263 reg = <0x020b0000 0x4000>;
264 interrupts = <0 76 0x04 0 77 0x04>;
265 gpio-controller;
266 #gpio-cells = <2>;
267 interrupt-controller;
268 #interrupt-cells = <2>;
269 };
270
271 gpio7: gpio@020b4000 {
272 compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
273 reg = <0x020b4000 0x4000>;
274 interrupts = <0 78 0x04 0 79 0x04>;
275 gpio-controller;
276 #gpio-cells = <2>;
277 interrupt-controller;
278 #interrupt-cells = <2>;
279 };
280
204 wdog1: wdog@020bc000 { 281 wdog1: wdog@020bc000 {
205 compatible = "fsl,imx6q-wdt", "fsl,imx21-wdt"; 282 compatible = "fsl,imx6q-wdt", "fsl,imx21-wdt";
206 reg = <0x020bc000 0x4000>; 283 reg = <0x020bc000 0x4000>;
@@ -510,6 +587,24 @@
510 }; 587 };
511 }; 588 };
512 589
590 flexcan1 {
591 pinctrl_flexcan1_1: flexcan1grp-1 {
592 fsl,pins = <
593 MX6SX_PAD_QSPI1B_DQS__CAN1_TX 0x1b0b0
594 MX6SX_PAD_QSPI1A_SS1_B__CAN1_RX 0x1b0b0
595 >;
596 };
597 };
598
599 flexcan2 {
600 pinctrl_flexcan2_1: flexcan2grp-1 {
601 fsl,pins = <
602 MX6SX_PAD_QSPI1B_SS1_B__CAN2_RX 0x1b0b0
603 MX6SX_PAD_QSPI1A_DQS__CAN2_TX 0x1b0b0
604 >;
605 };
606 };
607
513 i2c1 { 608 i2c1 {
514 pinctrl_i2c1_1: i2c1grp-1 { 609 pinctrl_i2c1_1: i2c1grp-1 {
515 fsl,pins = < 610 fsl,pins = <