]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/kernel/utilite/linux-3.10-compulab-utilite-support.patch
slang: Update to 2.3.0
[people/pmueller/ipfire-2.x.git] / src / patches / kernel / utilite / linux-3.10-compulab-utilite-support.patch
1 Add initial support for cm-fx6 module.
2
3 cm-fx6 is a module based on mx6q SoC with the following features:
4 - Up to 4GB of DDR3
5 - 1 LCD/DVI output port
6 - 1 HDMI output port
7 - 2 LVDS LCD ports
8 - Gigabit Ethernet
9 - Analog Audio
10 - CAN
11 - SATA
12 - NAND
13 - PCIE
14
15 This patch allows to boot up the module, configures the serial console,
16 the Ethernet adapter and the heartbeat led.
17
18 cm-fx6 is embedded inside the Utilite computer.
19
20 Signed-off-by: Valentin Raevsky <valentin@compulab.co.il>
21 Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
22 ---
23
24 Shawn, can this still be applied for 3.13 ?
25
26 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
27 index f0895c5..7521a34 100644
28 --- a/arch/arm/boot/dts/Makefile
29 +++ b/arch/arm/boot/dts/Makefile
30 @@ -117,6 +117,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
31 imx6dl-sabresd.dtb \
32 imx6dl-wandboard.dtb \
33 imx6q-arm2.dtb \
34 + imx6q-cm-fx6.dtb \
35 imx6q-sabreauto.dtb \
36 imx6q-sabrelite.dtb \
37 imx6q-sabresd.dtb \
38 diff --git a/arch/arm/boot/dts/imx6q-cm-fx6.dts b/arch/arm/boot/dts/imx6q-cm-fx6.dts
39 new file mode 100644
40 index 0000000..2419751
41 --- /dev/null
42 +++ b/arch/arm/boot/dts/imx6q-cm-fx6.dts
43 @@ -0,0 +1,53 @@
44 +/*
45 + * Copyright 2013 CompuLab Ltd.
46 + *
47 + * Author: Valentin Raevsky <valentin@compulab.co.il>
48 + *
49 + * The code contained herein is licensed under the GNU General Public
50 + * License. You may obtain a copy of the GNU General Public License
51 + * Version 2 or later at the following locations:
52 + *
53 + * http://www.opensource.org/licenses/gpl-license.html
54 + * http://www.gnu.org/copyleft/gpl.html
55 + */
56 +
57 +/dts-v1/;
58 +#include "imx6q.dtsi"
59 +
60 +/ {
61 + model = "CompuLab CM-FX6";
62 + compatible = "compulab,cm-fx6", "fsl,imx6q";
63 +
64 + memory {
65 + reg = <0x10000000 0x80000000>;
66 + };
67 +
68 + leds {
69 + compatible = "gpio-leds";
70 +
71 + heartbeat-led {
72 + label = "Heartbeat";
73 + gpios = <&gpio2 31 0>;
74 + linux,default-trigger = "heartbeat";
75 + };
76 + };
77 +};
78 +
79 +&fec {
80 + pinctrl-names = "default";
81 + pinctrl-0 = <&pinctrl_enet_1>;
82 + phy-mode = "rgmii";
83 + status = "okay";
84 +};
85 +
86 +&gpmi {
87 + pinctrl-names = "default";
88 + pinctrl-0 = <&pinctrl_gpmi_nand_1>;
89 + status = "okay";
90 +};
91 +
92 +&uart4 {
93 + pinctrl-names = "default";
94 + pinctrl-0 = <&pinctrl_uart4_1>;
95 + status = "okay";
96 +};