diff options
author | Rabeeh Khoury <rabeeh@solid-run.com> | 2014-08-23 05:11:36 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-09-15 22:25:58 -0400 |
commit | 4cd4f509c5dc3f935911c49f9813e2fc29063a6b (patch) | |
tree | f33c395a4f1fc023e4064db5ef0415815371ee61 /arch | |
parent | 49bdf58e9b0479f854232407b1e298efe2b27e5c (diff) |
ARM: dts: hummingboard: Split HummingBoard DT to support s/dl and d/q
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6dl-hummingboard.dts | 203 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6q-hummingboard.dts | 13 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6qdl-hummingboard.dtsi | 200 |
4 files changed, 219 insertions, 198 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 60a6214ff49f..b022972a0829 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -226,6 +226,7 @@ dtb-$(CONFIG_ARCH_MXC) += \ | |||
226 | imx6q-gw5400-a.dtb \ | 226 | imx6q-gw5400-a.dtb \ |
227 | imx6q-gw54xx.dtb \ | 227 | imx6q-gw54xx.dtb \ |
228 | imx6q-gw552x.dtb \ | 228 | imx6q-gw552x.dtb \ |
229 | imx6q-hummingboard.dtb \ | ||
229 | imx6q-nitrogen6x.dtb \ | 230 | imx6q-nitrogen6x.dtb \ |
230 | imx6q-phytec-pbab01.dtb \ | 231 | imx6q-phytec-pbab01.dtb \ |
231 | imx6q-rex-pro.dtb \ | 232 | imx6q-rex-pro.dtb \ |
diff --git a/arch/arm/boot/dts/imx6dl-hummingboard.dts b/arch/arm/boot/dts/imx6dl-hummingboard.dts index 71598546087f..44a0e6736bb1 100644 --- a/arch/arm/boot/dts/imx6dl-hummingboard.dts +++ b/arch/arm/boot/dts/imx6dl-hummingboard.dts | |||
@@ -1,206 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2013,2014 Russell King | 2 | * Copyright (C) 2014 Rabeeh Khoury (rabeeh@solid-run.com) |
3 | * Based on dt work by Russell King | ||
3 | */ | 4 | */ |
4 | /dts-v1/; | 5 | /dts-v1/; |
5 | 6 | ||
6 | #include "imx6dl.dtsi" | 7 | #include "imx6dl.dtsi" |
7 | #include "imx6qdl-microsom.dtsi" | 8 | #include "imx6qdl-hummingboard.dtsi" |
8 | #include "imx6qdl-microsom-ar8035.dtsi" | ||
9 | 9 | ||
10 | / { | 10 | / { |
11 | model = "SolidRun HummingBoard DL/Solo"; | 11 | model = "SolidRun HummingBoard Solo/DualLite"; |
12 | compatible = "solidrun,hummingboard", "fsl,imx6dl"; | 12 | compatible = "solidrun,hummingboard/dl", "fsl,imx6dl"; |
13 | |||
14 | chosen { | ||
15 | stdout-path = &uart1; | ||
16 | }; | ||
17 | |||
18 | ir_recv: ir-receiver { | ||
19 | compatible = "gpio-ir-receiver"; | ||
20 | gpios = <&gpio1 2 1>; | ||
21 | pinctrl-names = "default"; | ||
22 | pinctrl-0 = <&pinctrl_hummingboard_gpio1_2>; | ||
23 | }; | ||
24 | |||
25 | regulators { | ||
26 | compatible = "simple-bus"; | ||
27 | |||
28 | reg_3p3v: 3p3v { | ||
29 | compatible = "regulator-fixed"; | ||
30 | regulator-name = "3P3V"; | ||
31 | regulator-min-microvolt = <3300000>; | ||
32 | regulator-max-microvolt = <3300000>; | ||
33 | regulator-always-on; | ||
34 | }; | ||
35 | |||
36 | reg_usbh1_vbus: usb-h1-vbus { | ||
37 | compatible = "regulator-fixed"; | ||
38 | enable-active-high; | ||
39 | gpio = <&gpio1 0 0>; | ||
40 | pinctrl-names = "default"; | ||
41 | pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>; | ||
42 | regulator-name = "usb_h1_vbus"; | ||
43 | regulator-min-microvolt = <5000000>; | ||
44 | regulator-max-microvolt = <5000000>; | ||
45 | }; | ||
46 | |||
47 | reg_usbotg_vbus: usb-otg-vbus { | ||
48 | compatible = "regulator-fixed"; | ||
49 | enable-active-high; | ||
50 | gpio = <&gpio3 22 0>; | ||
51 | pinctrl-names = "default"; | ||
52 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>; | ||
53 | regulator-name = "usb_otg_vbus"; | ||
54 | regulator-min-microvolt = <5000000>; | ||
55 | regulator-max-microvolt = <5000000>; | ||
56 | }; | ||
57 | }; | ||
58 | |||
59 | sound-spdif { | ||
60 | compatible = "fsl,imx-audio-spdif"; | ||
61 | model = "On-board SPDIF"; | ||
62 | /* IMX6 doesn't implement this yet */ | ||
63 | spdif-controller = <&spdif>; | ||
64 | spdif-out; | ||
65 | }; | ||
66 | }; | ||
67 | |||
68 | &can1 { | ||
69 | pinctrl-names = "default"; | ||
70 | pinctrl-0 = <&pinctrl_hummingboard_flexcan1>; | ||
71 | status = "okay"; | ||
72 | }; | ||
73 | |||
74 | &hdmi { | ||
75 | pinctrl-names = "default"; | ||
76 | pinctrl-0 = <&pinctrl_hummingboard_hdmi>; | ||
77 | ddc-i2c-bus = <&i2c2>; | ||
78 | status = "okay"; | ||
79 | }; | ||
80 | |||
81 | &i2c1 { | ||
82 | pinctrl-names = "default"; | ||
83 | pinctrl-0 = <&pinctrl_hummingboard_i2c1>; | ||
84 | |||
85 | /* | ||
86 | * Not fitted on Carrier-1 board... yet | ||
87 | status = "okay"; | ||
88 | |||
89 | rtc: pcf8523@68 { | ||
90 | compatible = "nxp,pcf8523"; | ||
91 | reg = <0x68>; | ||
92 | }; | ||
93 | */ | ||
94 | }; | ||
95 | |||
96 | &i2c2 { | ||
97 | clock-frequency = <100000>; | ||
98 | pinctrl-names = "default"; | ||
99 | pinctrl-0 = <&pinctrl_hummingboard_i2c2>; | ||
100 | status = "okay"; | ||
101 | }; | ||
102 | |||
103 | &iomuxc { | ||
104 | hummingboard { | ||
105 | pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 { | ||
106 | fsl,pins = < | ||
107 | MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000 | ||
108 | MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000 | ||
109 | >; | ||
110 | }; | ||
111 | |||
112 | pinctrl_hummingboard_gpio1_2: hummingboard-gpio1_2 { | ||
113 | fsl,pins = < | ||
114 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 | ||
115 | >; | ||
116 | }; | ||
117 | |||
118 | pinctrl_hummingboard_hdmi: hummingboard-hdmi { | ||
119 | fsl,pins = < | ||
120 | MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 | ||
121 | >; | ||
122 | }; | ||
123 | |||
124 | pinctrl_hummingboard_i2c1: hummingboard-i2c1 { | ||
125 | fsl,pins = < | ||
126 | MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 | ||
127 | MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 | ||
128 | >; | ||
129 | }; | ||
130 | |||
131 | pinctrl_hummingboard_i2c2: hummingboard-i2c2 { | ||
132 | fsl,pins = < | ||
133 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 | ||
134 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 | ||
135 | >; | ||
136 | }; | ||
137 | |||
138 | pinctrl_hummingboard_spdif: hummingboard-spdif { | ||
139 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; | ||
140 | }; | ||
141 | |||
142 | pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus { | ||
143 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>; | ||
144 | }; | ||
145 | |||
146 | pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id { | ||
147 | /* | ||
148 | * Similar to pinctrl_usbotg_2, but we want it | ||
149 | * pulled down for a fixed host connection. | ||
150 | */ | ||
151 | fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>; | ||
152 | }; | ||
153 | |||
154 | pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus { | ||
155 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>; | ||
156 | }; | ||
157 | |||
158 | pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux { | ||
159 | fsl,pins = < | ||
160 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 | ||
161 | >; | ||
162 | }; | ||
163 | |||
164 | pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 { | ||
165 | fsl,pins = < | ||
166 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | ||
167 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 | ||
168 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 | ||
169 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 | ||
170 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 | ||
171 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 | ||
172 | >; | ||
173 | }; | ||
174 | }; | ||
175 | }; | ||
176 | |||
177 | &spdif { | ||
178 | pinctrl-names = "default"; | ||
179 | pinctrl-0 = <&pinctrl_hummingboard_spdif>; | ||
180 | status = "okay"; | ||
181 | }; | ||
182 | |||
183 | &usbh1 { | ||
184 | disable-over-current; | ||
185 | vbus-supply = <®_usbh1_vbus>; | ||
186 | status = "okay"; | ||
187 | }; | ||
188 | |||
189 | &usbotg { | ||
190 | disable-over-current; | ||
191 | pinctrl-names = "default"; | ||
192 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; | ||
193 | vbus-supply = <®_usbotg_vbus>; | ||
194 | status = "okay"; | ||
195 | }; | ||
196 | |||
197 | &usdhc2 { | ||
198 | pinctrl-names = "default"; | ||
199 | pinctrl-0 = < | ||
200 | &pinctrl_hummingboard_usdhc2_aux | ||
201 | &pinctrl_hummingboard_usdhc2 | ||
202 | >; | ||
203 | vmmc-supply = <®_3p3v>; | ||
204 | cd-gpios = <&gpio1 4 0>; | ||
205 | status = "okay"; | ||
206 | }; | 13 | }; |
diff --git a/arch/arm/boot/dts/imx6q-hummingboard.dts b/arch/arm/boot/dts/imx6q-hummingboard.dts new file mode 100644 index 000000000000..0a3574105165 --- /dev/null +++ b/arch/arm/boot/dts/imx6q-hummingboard.dts | |||
@@ -0,0 +1,13 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014 Rabeeh Khoury (rabeeh@solid-run.com) | ||
3 | * Based on dt work by Russell King | ||
4 | */ | ||
5 | /dts-v1/; | ||
6 | |||
7 | #include "imx6q.dtsi" | ||
8 | #include "imx6qdl-hummingboard.dtsi" | ||
9 | |||
10 | / { | ||
11 | model = "SolidRun HummingBoard Dual/Quad"; | ||
12 | compatible = "solidrun,hummingboard/q", "fsl,imx6q"; | ||
13 | }; | ||
diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi new file mode 100644 index 000000000000..bf38072a2779 --- /dev/null +++ b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi | |||
@@ -0,0 +1,200 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2013,2014 Russell King | ||
3 | */ | ||
4 | #include "imx6qdl-microsom.dtsi" | ||
5 | #include "imx6qdl-microsom-ar8035.dtsi" | ||
6 | |||
7 | / { | ||
8 | chosen { | ||
9 | stdout-path = &uart1; | ||
10 | }; | ||
11 | |||
12 | ir_recv: ir-receiver { | ||
13 | compatible = "gpio-ir-receiver"; | ||
14 | gpios = <&gpio1 2 1>; | ||
15 | pinctrl-names = "default"; | ||
16 | pinctrl-0 = <&pinctrl_hummingboard_gpio1_2>; | ||
17 | }; | ||
18 | |||
19 | regulators { | ||
20 | compatible = "simple-bus"; | ||
21 | |||
22 | reg_3p3v: 3p3v { | ||
23 | compatible = "regulator-fixed"; | ||
24 | regulator-name = "3P3V"; | ||
25 | regulator-min-microvolt = <3300000>; | ||
26 | regulator-max-microvolt = <3300000>; | ||
27 | regulator-always-on; | ||
28 | }; | ||
29 | |||
30 | reg_usbh1_vbus: usb-h1-vbus { | ||
31 | compatible = "regulator-fixed"; | ||
32 | enable-active-high; | ||
33 | gpio = <&gpio1 0 0>; | ||
34 | pinctrl-names = "default"; | ||
35 | pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>; | ||
36 | regulator-name = "usb_h1_vbus"; | ||
37 | regulator-min-microvolt = <5000000>; | ||
38 | regulator-max-microvolt = <5000000>; | ||
39 | }; | ||
40 | |||
41 | reg_usbotg_vbus: usb-otg-vbus { | ||
42 | compatible = "regulator-fixed"; | ||
43 | enable-active-high; | ||
44 | gpio = <&gpio3 22 0>; | ||
45 | pinctrl-names = "default"; | ||
46 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>; | ||
47 | regulator-name = "usb_otg_vbus"; | ||
48 | regulator-min-microvolt = <5000000>; | ||
49 | regulator-max-microvolt = <5000000>; | ||
50 | }; | ||
51 | }; | ||
52 | |||
53 | sound-spdif { | ||
54 | compatible = "fsl,imx-audio-spdif"; | ||
55 | model = "On-board SPDIF"; | ||
56 | /* IMX6 doesn't implement this yet */ | ||
57 | spdif-controller = <&spdif>; | ||
58 | spdif-out; | ||
59 | }; | ||
60 | }; | ||
61 | |||
62 | &can1 { | ||
63 | pinctrl-names = "default"; | ||
64 | pinctrl-0 = <&pinctrl_hummingboard_flexcan1>; | ||
65 | status = "okay"; | ||
66 | }; | ||
67 | |||
68 | &hdmi { | ||
69 | pinctrl-names = "default"; | ||
70 | pinctrl-0 = <&pinctrl_hummingboard_hdmi>; | ||
71 | ddc-i2c-bus = <&i2c2>; | ||
72 | status = "okay"; | ||
73 | }; | ||
74 | |||
75 | &i2c1 { | ||
76 | pinctrl-names = "default"; | ||
77 | pinctrl-0 = <&pinctrl_hummingboard_i2c1>; | ||
78 | |||
79 | /* | ||
80 | * Not fitted on Carrier-1 board... yet | ||
81 | status = "okay"; | ||
82 | |||
83 | rtc: pcf8523@68 { | ||
84 | compatible = "nxp,pcf8523"; | ||
85 | reg = <0x68>; | ||
86 | }; | ||
87 | */ | ||
88 | }; | ||
89 | |||
90 | &i2c2 { | ||
91 | clock-frequency = <100000>; | ||
92 | pinctrl-names = "default"; | ||
93 | pinctrl-0 = <&pinctrl_hummingboard_i2c2>; | ||
94 | status = "okay"; | ||
95 | }; | ||
96 | |||
97 | &iomuxc { | ||
98 | hummingboard { | ||
99 | pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 { | ||
100 | fsl,pins = < | ||
101 | MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000 | ||
102 | MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000 | ||
103 | >; | ||
104 | }; | ||
105 | |||
106 | pinctrl_hummingboard_gpio1_2: hummingboard-gpio1_2 { | ||
107 | fsl,pins = < | ||
108 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 | ||
109 | >; | ||
110 | }; | ||
111 | |||
112 | pinctrl_hummingboard_hdmi: hummingboard-hdmi { | ||
113 | fsl,pins = < | ||
114 | MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 | ||
115 | >; | ||
116 | }; | ||
117 | |||
118 | pinctrl_hummingboard_i2c1: hummingboard-i2c1 { | ||
119 | fsl,pins = < | ||
120 | MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 | ||
121 | MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 | ||
122 | >; | ||
123 | }; | ||
124 | |||
125 | pinctrl_hummingboard_i2c2: hummingboard-i2c2 { | ||
126 | fsl,pins = < | ||
127 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 | ||
128 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 | ||
129 | >; | ||
130 | }; | ||
131 | |||
132 | pinctrl_hummingboard_spdif: hummingboard-spdif { | ||
133 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; | ||
134 | }; | ||
135 | |||
136 | pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus { | ||
137 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>; | ||
138 | }; | ||
139 | |||
140 | pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id { | ||
141 | /* | ||
142 | * Similar to pinctrl_usbotg_2, but we want it | ||
143 | * pulled down for a fixed host connection. | ||
144 | */ | ||
145 | fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>; | ||
146 | }; | ||
147 | |||
148 | pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus { | ||
149 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>; | ||
150 | }; | ||
151 | |||
152 | pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux { | ||
153 | fsl,pins = < | ||
154 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 | ||
155 | >; | ||
156 | }; | ||
157 | |||
158 | pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 { | ||
159 | fsl,pins = < | ||
160 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | ||
161 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 | ||
162 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 | ||
163 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 | ||
164 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 | ||
165 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 | ||
166 | >; | ||
167 | }; | ||
168 | }; | ||
169 | }; | ||
170 | |||
171 | &spdif { | ||
172 | pinctrl-names = "default"; | ||
173 | pinctrl-0 = <&pinctrl_hummingboard_spdif>; | ||
174 | status = "okay"; | ||
175 | }; | ||
176 | |||
177 | &usbh1 { | ||
178 | disable-over-current; | ||
179 | vbus-supply = <®_usbh1_vbus>; | ||
180 | status = "okay"; | ||
181 | }; | ||
182 | |||
183 | &usbotg { | ||
184 | disable-over-current; | ||
185 | pinctrl-names = "default"; | ||
186 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; | ||
187 | vbus-supply = <®_usbotg_vbus>; | ||
188 | status = "okay"; | ||
189 | }; | ||
190 | |||
191 | &usdhc2 { | ||
192 | pinctrl-names = "default"; | ||
193 | pinctrl-0 = < | ||
194 | &pinctrl_hummingboard_usdhc2_aux | ||
195 | &pinctrl_hummingboard_usdhc2 | ||
196 | >; | ||
197 | vmmc-supply = <®_3p3v>; | ||
198 | cd-gpios = <&gpio1 4 0>; | ||
199 | status = "okay"; | ||
200 | }; | ||