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
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
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 \
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
26 index 0000000..0270e6c
28 +++ b/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
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>
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
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.
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.
49 + * Or, alternatively,
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
60 + * The above copyright notice and this permission notice shall be
61 + * included in all copies or substantial portions of the Software.
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.
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.
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.
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.
90 +#include "imx6dl.dtsi"
91 +#include "imx6qdl-tx6.dtsi"
92 +#include "txbase-mb7.dtsi"
95 + model = "Ka-Ro electronics TX6U Module (eMMC & RGB)";
96 + compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
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
118 + * Remaining device references in alphabetical order
124 + * Users should add their custom timing here, therewith
125 + * therewith overwriting the default/pre-defined timings. For more see:
127 + * txbase/{BASEBOARD}-{DISPLAY-IF}/txbase-{BASEBOARD}-{DISPLAY-IF}.dtsi
130 + * txbase/mb7-lvds/txbase-aclavis.dtsi
142 + compatible = "microchip,mcp7940x";
146 + polytouch: edt-ft5x06@38 {
147 + compatible = "edt,edt-ft5x06";
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>;