2 * Copyright 2016 Lothar Waßmann <LW@KARO-electronics.de>
3 * Copyright 2016-2017 Oliver Wendt <OW@KARO-electronics.de>
4 * Copyright 2016 Michael Vyskocil <MV@KARO-electronics.de>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * version 2 as published by the Free Software Foundation.
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
46 * Please be reminded that in general DTSI file(s) are include files that are
47 * for more than one purpose (usually bound to a SoC) and as such shouldn't be
48 * edited. For end-user products it should be the DTS file(s) that choose which
49 * devices and pins are active and setup.
51 * The setup of DT files for Ka-Ro TX COM Modules under Yocto follow a
52 * different, non-standard, implementation, which can make it necessary.
56 * Please see the imx6*-tx6-gpio.h && imx6*-tx6.dtsi in "linux-karo-x.y.ab/tx6"
57 * for the definitions like TX_NAND or TX_EMMC, etc.
62 backlight0 = &backlight0;
64 * The node/alias 'display' is needed for U-Boot to be able to
65 * show a logo/splash image at boot time. It needs to include
66 * 'display-timings' as direct sub-node.
72 backlight0: backlight0 {
73 compatible = "pwm-backlight";
74 pwms = <TX_PWM 0 500000>;
75 power-supply = <®_lcd0_pwr>;
77 * a poor man's way to create a 1:1 relationship between
78 * the PWM value and the actual duty cycle
80 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
81 10 11 12 13 14 15 16 17 18 19
82 20 21 22 23 24 25 26 27 28 29
83 30 31 32 33 34 35 36 37 38 39
84 40 41 42 43 44 45 46 47 48 49
85 50 51 52 53 54 55 56 57 58 59
86 60 61 62 63 64 65 66 67 68 69
87 70 71 72 73 74 75 76 77 78 79
88 80 81 82 83 84 85 86 87 88 89
89 90 91 92 93 94 95 96 97 98 99
91 default-brightness-level = <50>;
96 compatible = "gpio-leds";
97 pinctrl-names = "default";
98 pinctrl-0 = <&pinctrl_gpio_leds>;
102 gpios = <TX_GPIO_PIN153 GPIO_ACTIVE_HIGH>;
103 linux,default-trigger = "heartbeat";
107 reg_lcd0_pwr: regulator-lcd0-power {
108 compatible = "regulator-fixed";
109 regulator-name = "LCD0 RESET";
110 regulator-min-microvolt = <3300000>;
111 regulator-max-microvolt = <3300000>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_lcd0_pwr>;
114 gpio = <TX_GPIO_PIN150 GPIO_ACTIVE_HIGH>;
123 pinctrl_edt_ft5x06: edt-ft5x06grp {
125 TX_GPIO_PAD148 /* Interrupt */
126 TX_GPIO_PAD149 /* Reset */
127 TX_GPIO_PAD152 /* Wake */
131 pinctrl_gpio_leds: gpioledsgrp {
133 TX_GPIO_PAD153 /* LED Heartbeat */
137 pinctrl_lcd0_pwr: lcd0-pwrgrp {
139 TX_GPIO_PAD150 /* LCD Reset */
146 * Ka-Ro device references in alphabetical order
155 compatible = "dallas,ds1339";
159 polytouch: edt-ft5x06@38 {
160 compatible = "edt,edt-ft5x06";
162 pinctrl-names = "default";
163 pinctrl-0 = <&pinctrl_edt_ft5x06>;
164 interrupt-extended = <TX_GPIO_PIN148 0>;
165 reset-gpios = <TX_GPIO_PIN149 GPIO_ACTIVE_LOW>;
166 wake-gpios = <TX_GPIO_PIN152 GPIO_ACTIVE_HIGH>;