]> git.kernelconcepts.de Git - meta-kc-bsp.git/blobdiff - 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
diff --git a/recipes-kernel/linux/linux-karo-4.9.11/0001-DTS-Add-Stratec-TX6-devicetree.patch b/recipes-kernel/linux/linux-karo-4.9.11/0001-DTS-Add-Stratec-TX6-devicetree.patch
new file mode 100644 (file)
index 0000000..f30ba1d
--- /dev/null
@@ -0,0 +1,160 @@
+From 52902ee8a80e2aec3135e47a9189811f5d209c3c Mon Sep 17 00:00:00 2001
+From: Florian Boor <florian.boor@kernelconcepts.de>
+Date: Tue, 6 Mar 2018 13:59:22 +0100
+Subject: [PATCH] DTS: Add Stratec TX6 devicetree
+
+---
+ arch/arm/boot/dts/Makefile                        |   1 +
+ arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts | 128 ++++++++++++++++++++++
+ 2 files changed, 129 insertions(+)
+ create mode 100644 arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
+
+diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
+index f151ec7..e03cd14 100644
+--- a/arch/arm/boot/dts/Makefile
++++ b/arch/arm/boot/dts/Makefile
+@@ -400,6 +400,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
+       imx6dl-tx6u-8033-mb7.dtb \
+       imx6dl-tx6u-811x.dtb \
+       imx6dl-tx6u-81xx-mb7.dtb \
++      imx6dl-tx6-emmc-mb7-stratec.dtb \
+       imx6dl-udoo.dtb \
+       imx6dl-wandboard.dtb \
+       imx6dl-wandboard-revb1.dtb \
+diff --git a/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts b/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
+new file mode 100644
+index 0000000..0270e6c
+--- /dev/null
++++ b/arch/arm/boot/dts/imx6dl-tx6-emmc-mb7-stratec.dts
+@@ -0,0 +1,128 @@
++/*
++ * Copyright 2016 Lothar Waßmann <LW@KARO-electronics.de>
++ * Copyright 2016 Oliver Wendt <OW@KARO-electronics.de>
++ * Copyright 2016 Michael Vyskocil <MV@KARO-electronics.de>
++ *
++ * This file is dual-licensed: you can use it either under the terms
++ * of the GPL or the X11 license, at your option. Note that this dual
++ * licensing only applies to this file, and not this project as a
++ * whole.
++ *
++ *  a) This file is free software; you can redistribute it and/or
++ *     modify it under the terms of the GNU General Public License
++ *     version 2 as published by the Free Software Foundation.
++ *
++ *     This file is distributed in the hope that it will be useful,
++ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
++ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ *     GNU General Public License for more details.
++ *
++ * Or, alternatively,
++ *
++ *  b) Permission is hereby granted, free of charge, to any person
++ *     obtaining a copy of this software and associated documentation
++ *     files (the "Software"), to deal in the Software without
++ *     restriction, including without limitation the rights to use,
++ *     copy, modify, merge, publish, distribute, sublicense, and/or
++ *     sell copies of the Software, and to permit persons to whom the
++ *     Software is furnished to do so, subject to the following
++ *     conditions:
++ *
++ *     The above copyright notice and this permission notice shall be
++ *     included in all copies or substantial portions of the Software.
++ *
++ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
++ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
++ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
++ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
++ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
++ *     OTHER DEALINGS IN THE SOFTWARE.
++ */
++
++/*
++ * Please be reminded that - in general - DTSI file(s) are include files that
++ * are for more than one purpose (usually bound to a SoC) and as such shouldn't
++ * be edited. For end-user products it should be the DTS file(s) that choose
++ * which devices and pins are active and setup.
++ *
++ * The setup of DT files for Ka-Ro TX COM Modules under Yocto follow a
++ * different, non-standard, implementation to the mainline Linux kernel.
++ */
++
++/*
++ * Please see the imx6*-tx6-gpio.h && imx6*-tx6.dtsi in "linux-karo-x.y.ab/tx6"
++ * for the definitions like TX_NAND or TX_EMMC, etc.
++ */
++
++/dts-v1/;
++
++#include "imx6dl.dtsi"
++#include "imx6qdl-tx6.dtsi"
++#include "txbase-mb7.dtsi"
++
++/ {
++      model = "Ka-Ro electronics TX6U Module (eMMC & RGB)";
++      compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
++};
++
++/*
++ * Every VOU is multi parted: backlight, device, framebuffer, pwm
++ * Thus all parts have to be enabled before a display can be used on the
++ * specific port.
++ */
++
++&backlight0 {
++      status = "okay";
++};
++
++/*
++ * NVM setup
++ */
++
++TX_EMMC {
++      status = "okay";
++};
++
++/*
++ * Remaining device references in alphabetical order
++ */
++
++TX_LCD {
++      status = "okay";
++      /*
++       * Users should add their custom timing here, therewith
++       * therewith overwriting the default/pre-defined timings. For more see:
++       *
++       * txbase/{BASEBOARD}-{DISPLAY-IF}/txbase-{BASEBOARD}-{DISPLAY-IF}.dtsi
++       *
++       * e.g.:
++       * txbase/mb7-lvds/txbase-aclavis.dtsi
++       */
++};
++
++TX_LCD_FB {
++      status = "okay";
++};
++
++TX_I2C {
++      status = "okay";
++
++      rtc@6f {
++              compatible = "microchip,mcp7940x";
++              reg = <0x6f>;
++      };
++
++      polytouch: edt-ft5x06@38 {
++              compatible = "edt,edt-ft5x06";
++              reg = <0x38>;
++              pinctrl-names = "default";
++              pinctrl-0 = <&pinctrl_edt_ft5x06>;
++              interrupts-extended = <TX_GPIO_PIN148 0>;
++              reset-gpios = <TX_GPIO_PIN149 GPIO_ACTIVE_LOW>;
++              wake-gpios = <TX_GPIO_PIN152 GPIO_ACTIVE_HIGH>;
++              linux,wakeup;
++      };
++};
++
+-- 
+2.1.4
+