]> git.kernelconcepts.de Git - meta-kc-bsp.git/blob - recipes-kernel/linux/linux-karo-4.9.11/0001-DTS-Add-Stratec-TX6-devicetree.patch
linux-karo: Add initial version of linux-karo 4.9.11 based on NXP kernel tree
[meta-kc-bsp.git] / recipes-kernel / linux / linux-karo-4.9.11 / 0001-DTS-Add-Stratec-TX6-devicetree.patch
1 From 52902ee8a80e2aec3135e47a9189811f5d209c3c Mon Sep 17 00:00:00 2001
2 From: Florian Boor <florian.boor@kernelconcepts.de>
3 Date: Tue, 6 Mar 2018 13:59:22 +0100
4 Subject: [PATCH] DTS: Add Stratec TX6 devicetree
5
6 ---
7  arch/arm/boot/dts/Makefile                        |   1 +
8  arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts | 128 ++++++++++++++++++++++
9  2 files changed, 129 insertions(+)
10  create mode 100644 arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
11
12 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
13 index f151ec7..e03cd14 100644
14 --- a/arch/arm/boot/dts/Makefile
15 +++ b/arch/arm/boot/dts/Makefile
16 @@ -400,6 +400,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
17         imx6dl-tx6u-8033-mb7.dtb \
18         imx6dl-tx6u-811x.dtb \
19         imx6dl-tx6u-81xx-mb7.dtb \
20 +       imx6dl-tx6-emmc-mb7-stratec.dtb \
21         imx6dl-udoo.dtb \
22         imx6dl-wandboard.dtb \
23         imx6dl-wandboard-revb1.dtb \
24 diff --git a/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts b/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
25 new file mode 100644
26 index 0000000..0270e6c
27 --- /dev/null
28 +++ b/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
29 @@ -0,0 +1,128 @@
30 +/*
31 + * Copyright 2016 Lothar Waßmann <LW@KARO-electronics.de>
32 + * Copyright 2016 Oliver Wendt <OW@KARO-electronics.de>
33 + * Copyright 2016 Michael Vyskocil <MV@KARO-electronics.de>
34 + *
35 + * This file is dual-licensed: you can use it either under the terms
36 + * of the GPL or the X11 license, at your option. Note that this dual
37 + * licensing only applies to this file, and not this project as a
38 + * whole.
39 + *
40 + *  a) This file is free software; you can redistribute it and/or
41 + *     modify it under the terms of the GNU General Public License
42 + *     version 2 as published by the Free Software Foundation.
43 + *
44 + *     This file is distributed in the hope that it will be useful,
45 + *     but WITHOUT ANY WARRANTY; without even the implied warranty of
46 + *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47 + *     GNU General Public License for more details.
48 + *
49 + * Or, alternatively,
50 + *
51 + *  b) Permission is hereby granted, free of charge, to any person
52 + *     obtaining a copy of this software and associated documentation
53 + *     files (the "Software"), to deal in the Software without
54 + *     restriction, including without limitation the rights to use,
55 + *     copy, modify, merge, publish, distribute, sublicense, and/or
56 + *     sell copies of the Software, and to permit persons to whom the
57 + *     Software is furnished to do so, subject to the following
58 + *     conditions:
59 + *
60 + *     The above copyright notice and this permission notice shall be
61 + *     included in all copies or substantial portions of the Software.
62 + *
63 + *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
64 + *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
65 + *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
66 + *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
67 + *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
68 + *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
69 + *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
70 + *     OTHER DEALINGS IN THE SOFTWARE.
71 + */
72 +
73 +/*
74 + * Please be reminded that - in general - DTSI file(s) are include files that
75 + * are for more than one purpose (usually bound to a SoC) and as such shouldn't
76 + * be edited. For end-user products it should be the DTS file(s) that choose
77 + * which devices and pins are active and setup.
78 + *
79 + * The setup of DT files for Ka-Ro TX COM Modules under Yocto follow a
80 + * different, non-standard, implementation to the mainline Linux kernel.
81 + */
82 +
83 +/*
84 + * Please see the imx6*-tx6-gpio.h && imx6*-tx6.dtsi in "linux-karo-x.y.ab/tx6"
85 + * for the definitions like TX_NAND or TX_EMMC, etc.
86 + */
87 +
88 +/dts-v1/;
89 +
90 +#include "imx6dl.dtsi"
91 +#include "imx6qdl-tx6.dtsi"
92 +#include "txbase-mb7.dtsi"
93 +
94 +/ {
95 +       model = "Ka-Ro electronics TX6U Module (eMMC & RGB)";
96 +       compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
97 +};
98 +
99 +/*
100 + * Every VOU is multi parted: backlight, device, framebuffer, pwm
101 + * Thus all parts have to be enabled before a display can be used on the
102 + * specific port.
103 + */
104 +
105 +&backlight0 {
106 +       status = "okay";
107 +};
108 +
109 +/*
110 + * NVM setup
111 + */
112 +
113 +TX_EMMC {
114 +       status = "okay";
115 +};
116 +
117 +/*
118 + * Remaining device references in alphabetical order
119 + */
120 +
121 +TX_LCD {
122 +       status = "okay";
123 +       /*
124 +        * Users should add their custom timing here, therewith
125 +        * therewith overwriting the default/pre-defined timings. For more see:
126 +        *
127 +        * txbase/{BASEBOARD}-{DISPLAY-IF}/txbase-{BASEBOARD}-{DISPLAY-IF}.dtsi
128 +        *
129 +        * e.g.:
130 +        * txbase/mb7-lvds/txbase-aclavis.dtsi
131 +        */
132 +};
133 +
134 +TX_LCD_FB {
135 +       status = "okay";
136 +};
137 +
138 +TX_I2C {
139 +       status = "okay";
140 +
141 +       rtc@6f {
142 +               compatible = "microchip,mcp7940x";
143 +               reg = <0x6f>;
144 +       };
145 +
146 +       polytouch: edt-ft5x06@38 {
147 +               compatible = "edt,edt-ft5x06";
148 +               reg = <0x38>;
149 +               pinctrl-names = "default";
150 +               pinctrl-0 = <&pinctrl_edt_ft5x06>;
151 +               interrupts-extended = <TX_GPIO_PIN148 0>;
152 +               reset-gpios = <TX_GPIO_PIN149 GPIO_ACTIVE_LOW>;
153 +               wake-gpios = <TX_GPIO_PIN152 GPIO_ACTIVE_HIGH>;
154 +               linux,wakeup;
155 +       };
156 +};
157 +
158 -- 
159 2.1.4
160