Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Toradex AG |
| 3 | * |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This file is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License |
| 11 | * version 2 as published by the Free Software Foundation. |
| 12 | * |
| 13 | * This file is distributed in the hope that it will be useful |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * Or, alternatively |
| 19 | * |
| 20 | * b) Permission is hereby granted, free of charge, to any person |
| 21 | * obtaining a copy of this software and associated documentation |
| 22 | * files (the "Software"), to deal in the Software without |
| 23 | * restriction, including without limitation the rights to use |
| 24 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 25 | * sell copies of the Software, and to permit persons to whom the |
| 26 | * Software is furnished to do so, subject to the following |
| 27 | * conditions: |
| 28 | * |
| 29 | * The above copyright notice and this permission notice shall be |
| 30 | * included in all copies or substantial portions of the Software. |
| 31 | * |
| 32 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND |
| 33 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 34 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 35 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 36 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY |
| 37 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 38 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 39 | * OTHER DEALINGS IN THE SOFTWARE. |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 40 | */ |
| 41 | |
| 42 | #include "vf500.dtsi" |
| 43 | #include "vf-colibri.dtsi" |
| 44 | |
| 45 | / { |
| 46 | model = "Toradex Colibri VF50 COM"; |
| 47 | compatible = "toradex,vf610-colibri_vf50", "fsl,vf500"; |
| 48 | |
| 49 | memory { |
| 50 | reg = <0x80000000 0x8000000>; |
| 51 | }; |
Sanchayan Maity | 6e994c5 | 2015-09-01 18:06:53 +0530 | [diff] [blame] | 52 | |
| 53 | touchscreen: vf50-touchscreen { |
| 54 | compatible = "toradex,vf50-touchscreen"; |
| 55 | io-channels = <&adc1 0>,<&adc0 0>, |
| 56 | <&adc0 1>,<&adc1 2>; |
| 57 | xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
| 58 | xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; |
| 59 | yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
| 60 | ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; |
| 61 | interrupt-parent = <&gpio0>; |
| 62 | interrupts = <8 IRQ_TYPE_LEVEL_LOW>; |
| 63 | pinctrl-names = "idle","default","gpios"; |
| 64 | pinctrl-0 = <&pinctrl_touchctrl_idle>; |
| 65 | pinctrl-1 = <&pinctrl_touchctrl_default>; |
| 66 | pinctrl-2 = <&pinctrl_touchctrl_gpios>; |
| 67 | vf50-ts-min-pressure = <200>; |
| 68 | status = "disabled"; |
| 69 | }; |
| 70 | }; |
| 71 | |
Stefan Agner | 6d20b24 | 2016-04-01 23:13:40 -0700 | [diff] [blame] | 72 | &nfc { |
| 73 | assigned-clocks = <&clks VF610_CLK_NFC>; |
| 74 | assigned-clock-rates = <33000000>; |
| 75 | }; |
| 76 | |
Sanchayan Maity | 6e994c5 | 2015-09-01 18:06:53 +0530 | [diff] [blame] | 77 | &iomuxc { |
| 78 | vf610-colibri { |
| 79 | pinctrl_touchctrl_idle: touchctrl_idle { |
| 80 | fsl,pins = < |
| 81 | VF610_PAD_PTA18__GPIO_8 0x006d |
| 82 | VF610_PAD_PTA19__GPIO_9 0x006c |
| 83 | >; |
| 84 | }; |
| 85 | |
| 86 | pinctrl_touchctrl_default: touchctrl_default { |
| 87 | fsl,pins = < |
| 88 | VF610_PAD_PTA18__ADC0_SE0 0x0040 |
| 89 | VF610_PAD_PTA19__ADC0_SE1 0x0040 |
| 90 | VF610_PAD_PTA16__ADC1_SE0 0x0040 |
| 91 | VF610_PAD_PTB2__ADC1_SE2 0x0040 |
| 92 | >; |
| 93 | }; |
| 94 | |
| 95 | pinctrl_touchctrl_gpios: touchctrl_gpios { |
| 96 | fsl,pins = < |
| 97 | VF610_PAD_PTA23__GPIO_13 0x22e9 |
| 98 | VF610_PAD_PTB23__GPIO_93 0x22e9 |
| 99 | VF610_PAD_PTA22__GPIO_12 0x22e9 |
| 100 | VF610_PAD_PTA11__GPIO_4 0x22e9 |
| 101 | >; |
| 102 | }; |
| 103 | }; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 104 | }; |