diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-07-16 13:40:29 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-08-22 11:29:28 -0400 |
commit | 2688a32f98774573d42a2a5cf024fd6caca00619 (patch) | |
tree | 70743510896ddfc4c3c05e6a2b15e3d1eebd311f /arch | |
parent | 3fe6373b42ab60b5a1f181462bb80299a947eb4c (diff) |
ARM: dts: imx6: Add support for imx6q wandboard
Add support for the imx6q wanboard variant.
Since imx6q/dl are pin to pin compatible, introduce the imx6qdl-wandboard.dtsi
file that contains the common peripheral nodes.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6dl-wandboard.dts | 121 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6q-wandboard.dts | 22 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6qdl-wandboard.dtsi | 132 |
4 files changed, 156 insertions, 120 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 721a7b260acc..7d3fedf5e61a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -133,6 +133,7 @@ dtb-$(CONFIG_ARCH_MXC) += \ | |||
133 | imx6q-sabrelite.dtb \ | 133 | imx6q-sabrelite.dtb \ |
134 | imx6q-sabresd.dtb \ | 134 | imx6q-sabresd.dtb \ |
135 | imx6q-sbc6x.dtb \ | 135 | imx6q-sbc6x.dtb \ |
136 | imx6q-wandboard.dtb \ | ||
136 | imx6sl-evk.dtb \ | 137 | imx6sl-evk.dtb \ |
137 | vf610-twr.dtb | 138 | vf610-twr.dtb |
138 | dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \ | 139 | dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \ |
diff --git a/arch/arm/boot/dts/imx6dl-wandboard.dts b/arch/arm/boot/dts/imx6dl-wandboard.dts index 15014bb50673..e672891c1626 100644 --- a/arch/arm/boot/dts/imx6dl-wandboard.dts +++ b/arch/arm/boot/dts/imx6dl-wandboard.dts | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | /dts-v1/; | 11 | /dts-v1/; |
12 | #include "imx6dl.dtsi" | 12 | #include "imx6dl.dtsi" |
13 | #include "imx6qdl-wandboard.dtsi" | ||
13 | 14 | ||
14 | / { | 15 | / { |
15 | model = "Wandboard i.MX6 Dual Lite Board"; | 16 | model = "Wandboard i.MX6 Dual Lite Board"; |
@@ -18,124 +19,4 @@ | |||
18 | memory { | 19 | memory { |
19 | reg = <0x10000000 0x40000000>; | 20 | reg = <0x10000000 0x40000000>; |
20 | }; | 21 | }; |
21 | |||
22 | regulators { | ||
23 | compatible = "simple-bus"; | ||
24 | |||
25 | reg_2p5v: 2p5v { | ||
26 | compatible = "regulator-fixed"; | ||
27 | regulator-name = "2P5V"; | ||
28 | regulator-min-microvolt = <2500000>; | ||
29 | regulator-max-microvolt = <2500000>; | ||
30 | regulator-always-on; | ||
31 | }; | ||
32 | |||
33 | reg_3p3v: 3p3v { | ||
34 | compatible = "regulator-fixed"; | ||
35 | regulator-name = "3P3V"; | ||
36 | regulator-min-microvolt = <3300000>; | ||
37 | regulator-max-microvolt = <3300000>; | ||
38 | regulator-always-on; | ||
39 | }; | ||
40 | }; | ||
41 | |||
42 | sound { | ||
43 | compatible = "fsl,imx6dl-wandboard-sgtl5000", | ||
44 | "fsl,imx-audio-sgtl5000"; | ||
45 | model = "imx6dl-wandboard-sgtl5000"; | ||
46 | ssi-controller = <&ssi1>; | ||
47 | audio-codec = <&codec>; | ||
48 | audio-routing = | ||
49 | "MIC_IN", "Mic Jack", | ||
50 | "Mic Jack", "Mic Bias", | ||
51 | "Headphone Jack", "HP_OUT"; | ||
52 | mux-int-port = <1>; | ||
53 | mux-ext-port = <3>; | ||
54 | }; | ||
55 | }; | ||
56 | |||
57 | &audmux { | ||
58 | pinctrl-names = "default"; | ||
59 | pinctrl-0 = <&pinctrl_audmux_2>; | ||
60 | status = "okay"; | ||
61 | }; | ||
62 | |||
63 | &i2c2 { | ||
64 | clock-frequency = <100000>; | ||
65 | pinctrl-names = "default"; | ||
66 | pinctrl-0 = <&pinctrl_i2c2_2>; | ||
67 | status = "okay"; | ||
68 | |||
69 | codec: sgtl5000@0a { | ||
70 | compatible = "fsl,sgtl5000"; | ||
71 | reg = <0x0a>; | ||
72 | clocks = <&clks 169>; | ||
73 | VDDA-supply = <®_2p5v>; | ||
74 | VDDIO-supply = <®_3p3v>; | ||
75 | }; | ||
76 | }; | ||
77 | |||
78 | &iomuxc { | ||
79 | pinctrl-names = "default"; | ||
80 | pinctrl-0 = <&pinctrl_hog>; | ||
81 | |||
82 | hog { | ||
83 | pinctrl_hog: hoggrp { | ||
84 | fsl,pins = < | ||
85 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 | ||
86 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 | ||
87 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 | ||
88 | >; | ||
89 | }; | ||
90 | }; | ||
91 | }; | ||
92 | |||
93 | &fec { | ||
94 | pinctrl-names = "default"; | ||
95 | pinctrl-0 = <&pinctrl_enet_1>; | ||
96 | phy-mode = "rgmii"; | ||
97 | status = "okay"; | ||
98 | }; | ||
99 | |||
100 | &ssi1 { | ||
101 | fsl,mode = "i2s-slave"; | ||
102 | status = "okay"; | ||
103 | }; | ||
104 | |||
105 | &uart1 { | ||
106 | pinctrl-names = "default"; | ||
107 | pinctrl-0 = <&pinctrl_uart1_1>; | ||
108 | status = "okay"; | ||
109 | }; | ||
110 | |||
111 | &uart3 { | ||
112 | pinctrl-names = "default"; | ||
113 | pinctrl-0 = <&pinctrl_uart3_2>; | ||
114 | fsl,uart-has-rtscts; | ||
115 | status = "okay"; | ||
116 | }; | ||
117 | |||
118 | &usbh1 { | ||
119 | status = "okay"; | ||
120 | }; | ||
121 | |||
122 | &usdhc1 { | ||
123 | pinctrl-names = "default"; | ||
124 | pinctrl-0 = <&pinctrl_usdhc1_2>; | ||
125 | cd-gpios = <&gpio1 2 0>; | ||
126 | status = "okay"; | ||
127 | }; | ||
128 | |||
129 | &usdhc2 { | ||
130 | pinctrl-names = "default"; | ||
131 | pinctrl-0 = <&pinctrl_usdhc2_2>; | ||
132 | non-removable; | ||
133 | status = "okay"; | ||
134 | }; | ||
135 | |||
136 | &usdhc3 { | ||
137 | pinctrl-names = "default"; | ||
138 | pinctrl-0 = <&pinctrl_usdhc3_2>; | ||
139 | cd-gpios = <&gpio3 9 0>; | ||
140 | status = "okay"; | ||
141 | }; | 22 | }; |
diff --git a/arch/arm/boot/dts/imx6q-wandboard.dts b/arch/arm/boot/dts/imx6q-wandboard.dts new file mode 100644 index 000000000000..5dd63421a6fa --- /dev/null +++ b/arch/arm/boot/dts/imx6q-wandboard.dts | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright 2013 Freescale Semiconductor, Inc. | ||
3 | * | ||
4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | /dts-v1/; | ||
12 | #include "imx6q.dtsi" | ||
13 | #include "imx6qdl-wandboard.dtsi" | ||
14 | |||
15 | / { | ||
16 | model = "Wandboard i.MX6 Quad Board"; | ||
17 | compatible = "wand,imx6q-wandboard", "fsl,imx6q"; | ||
18 | |||
19 | memory { | ||
20 | reg = <0x10000000 0x80000000>; | ||
21 | }; | ||
22 | }; | ||
diff --git a/arch/arm/boot/dts/imx6qdl-wandboard.dtsi b/arch/arm/boot/dts/imx6qdl-wandboard.dtsi new file mode 100644 index 000000000000..7a46f64eccb5 --- /dev/null +++ b/arch/arm/boot/dts/imx6qdl-wandboard.dtsi | |||
@@ -0,0 +1,132 @@ | |||
1 | /* | ||
2 | * Copyright 2013 Freescale Semiconductor, Inc. | ||
3 | * | ||
4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | / { | ||
13 | regulators { | ||
14 | compatible = "simple-bus"; | ||
15 | |||
16 | reg_2p5v: 2p5v { | ||
17 | compatible = "regulator-fixed"; | ||
18 | regulator-name = "2P5V"; | ||
19 | regulator-min-microvolt = <2500000>; | ||
20 | regulator-max-microvolt = <2500000>; | ||
21 | regulator-always-on; | ||
22 | }; | ||
23 | |||
24 | reg_3p3v: 3p3v { | ||
25 | compatible = "regulator-fixed"; | ||
26 | regulator-name = "3P3V"; | ||
27 | regulator-min-microvolt = <3300000>; | ||
28 | regulator-max-microvolt = <3300000>; | ||
29 | regulator-always-on; | ||
30 | }; | ||
31 | }; | ||
32 | |||
33 | sound { | ||
34 | compatible = "fsl,imx6-wandboard-sgtl5000", | ||
35 | "fsl,imx-audio-sgtl5000"; | ||
36 | model = "imx6-wandboard-sgtl5000"; | ||
37 | ssi-controller = <&ssi1>; | ||
38 | audio-codec = <&codec>; | ||
39 | audio-routing = | ||
40 | "MIC_IN", "Mic Jack", | ||
41 | "Mic Jack", "Mic Bias", | ||
42 | "Headphone Jack", "HP_OUT"; | ||
43 | mux-int-port = <1>; | ||
44 | mux-ext-port = <3>; | ||
45 | }; | ||
46 | }; | ||
47 | |||
48 | &audmux { | ||
49 | pinctrl-names = "default"; | ||
50 | pinctrl-0 = <&pinctrl_audmux_2>; | ||
51 | status = "okay"; | ||
52 | }; | ||
53 | |||
54 | &i2c2 { | ||
55 | clock-frequency = <100000>; | ||
56 | pinctrl-names = "default"; | ||
57 | pinctrl-0 = <&pinctrl_i2c2_2>; | ||
58 | status = "okay"; | ||
59 | |||
60 | codec: sgtl5000@0a { | ||
61 | compatible = "fsl,sgtl5000"; | ||
62 | reg = <0x0a>; | ||
63 | clocks = <&clks 169>; | ||
64 | VDDA-supply = <®_2p5v>; | ||
65 | VDDIO-supply = <®_3p3v>; | ||
66 | }; | ||
67 | }; | ||
68 | |||
69 | &iomuxc { | ||
70 | pinctrl-names = "default"; | ||
71 | pinctrl-0 = <&pinctrl_hog>; | ||
72 | |||
73 | hog { | ||
74 | pinctrl_hog: hoggrp { | ||
75 | fsl,pins = < | ||
76 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 | ||
77 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 | ||
78 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 | ||
79 | >; | ||
80 | }; | ||
81 | }; | ||
82 | }; | ||
83 | |||
84 | &fec { | ||
85 | pinctrl-names = "default"; | ||
86 | pinctrl-0 = <&pinctrl_enet_1>; | ||
87 | phy-mode = "rgmii"; | ||
88 | status = "okay"; | ||
89 | }; | ||
90 | |||
91 | &ssi1 { | ||
92 | fsl,mode = "i2s-slave"; | ||
93 | status = "okay"; | ||
94 | }; | ||
95 | |||
96 | &uart1 { | ||
97 | pinctrl-names = "default"; | ||
98 | pinctrl-0 = <&pinctrl_uart1_1>; | ||
99 | status = "okay"; | ||
100 | }; | ||
101 | |||
102 | &uart3 { | ||
103 | pinctrl-names = "default"; | ||
104 | pinctrl-0 = <&pinctrl_uart3_2>; | ||
105 | fsl,uart-has-rtscts; | ||
106 | status = "okay"; | ||
107 | }; | ||
108 | |||
109 | &usbh1 { | ||
110 | status = "okay"; | ||
111 | }; | ||
112 | |||
113 | &usdhc1 { | ||
114 | pinctrl-names = "default"; | ||
115 | pinctrl-0 = <&pinctrl_usdhc1_2>; | ||
116 | cd-gpios = <&gpio1 2 0>; | ||
117 | status = "okay"; | ||
118 | }; | ||
119 | |||
120 | &usdhc2 { | ||
121 | pinctrl-names = "default"; | ||
122 | pinctrl-0 = <&pinctrl_usdhc2_2>; | ||
123 | non-removable; | ||
124 | status = "okay"; | ||
125 | }; | ||
126 | |||
127 | &usdhc3 { | ||
128 | pinctrl-names = "default"; | ||
129 | pinctrl-0 = <&pinctrl_usdhc3_2>; | ||
130 | cd-gpios = <&gpio3 9 0>; | ||
131 | status = "okay"; | ||
132 | }; | ||