Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014-2016 Toradex AG |
| 3 | * Copyright 2012 Freescale Semiconductor, Inc. |
| 4 | * Copyright 2011 Linaro Ltd. |
| 5 | * |
| 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 |
| 9 | * whole. |
| 10 | * |
| 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. |
| 14 | * |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 15 | * This file is distributed in the hope that it will be useful, |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 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. |
| 19 | * |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 20 | * Or, alternatively, |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 21 | * |
| 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 |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 25 | * restriction, including without limitation the rights to use, |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 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 |
| 29 | * conditions: |
| 30 | * |
| 31 | * The above copyright notice and this permission notice shall be |
| 32 | * included in all copies or substantial portions of the Software. |
| 33 | * |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 34 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 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 |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 38 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 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. |
| 42 | */ |
| 43 | |
| 44 | /dts-v1/; |
| 45 | |
| 46 | #include <dt-bindings/input/input.h> |
| 47 | #include <dt-bindings/interrupt-controller/irq.h> |
| 48 | #include "imx6dl.dtsi" |
| 49 | #include "imx6qdl-colibri.dtsi" |
| 50 | |
| 51 | / { |
| 52 | model = "Toradex Colibri iMX6DL/S on Colibri Evaluation Board V3"; |
| 53 | compatible = "toradex,colibri_imx6dl-eval-v3", "toradex,colibri_imx6dl", |
| 54 | "fsl,imx6dl"; |
| 55 | |
Marco Franchi | 6de5723 | 2018-01-24 11:22:12 -0200 | [diff] [blame] | 56 | /* Will be filled by the bootloader */ |
Fabio Estevam | edc0581 | 2018-02-22 14:16:35 -0300 | [diff] [blame] | 57 | memory@10000000 { |
| 58 | reg = <0x10000000 0>; |
Marco Franchi | 6de5723 | 2018-01-24 11:22:12 -0200 | [diff] [blame] | 59 | }; |
| 60 | |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 61 | aliases { |
| 62 | i2c0 = &i2c2; |
| 63 | i2c1 = &i2c3; |
| 64 | }; |
| 65 | |
| 66 | aliases { |
| 67 | rtc0 = &rtc_i2c; |
| 68 | rtc1 = &snvs_rtc; |
| 69 | }; |
| 70 | |
Stefan Agner | f10acff | 2018-02-27 09:00:23 +0100 | [diff] [blame] | 71 | chosen { |
| 72 | stdout-path = "serial0:115200n8"; |
| 73 | }; |
| 74 | |
Shawn Guo | 8799b5d | 2018-05-04 08:24:16 +0800 | [diff] [blame] | 75 | /* Fixed crystal dedicated to mcp251x */ |
| 76 | clk16m: clock-16m { |
| 77 | compatible = "fixed-clock"; |
| 78 | #clock-cells = <0>; |
| 79 | clock-frequency = <16000000>; |
| 80 | clock-output-names = "clk16m"; |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | gpio-keys { |
| 84 | compatible = "gpio-keys"; |
| 85 | pinctrl-names = "default"; |
| 86 | pinctrl-0 = <&pinctrl_gpio_keys>; |
| 87 | |
| 88 | wakeup { |
| 89 | label = "Wake-Up"; |
| 90 | gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */ |
| 91 | linux,code = <KEY_WAKEUP>; |
| 92 | debounce-interval = <10>; |
| 93 | wakeup-source; |
| 94 | }; |
| 95 | }; |
| 96 | |
Marco Franchi | 792d4ed | 2017-10-05 11:31:40 -0300 | [diff] [blame] | 97 | lcd_display: disp0 { |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 98 | compatible = "fsl,imx-parallel-display"; |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <0>; |
| 101 | interface-pix-fmt = "bgr666"; |
| 102 | pinctrl-names = "default"; |
| 103 | pinctrl-0 = <&pinctrl_ipu1_lcdif>; |
| 104 | status = "okay"; |
| 105 | |
| 106 | port@0 { |
| 107 | reg = <0>; |
| 108 | |
| 109 | lcd_display_in: endpoint { |
| 110 | remote-endpoint = <&ipu1_di0_disp0>; |
| 111 | }; |
| 112 | }; |
| 113 | |
| 114 | port@1 { |
| 115 | reg = <1>; |
| 116 | |
| 117 | lcd_display_out: endpoint { |
| 118 | remote-endpoint = <&lcd_panel_in>; |
| 119 | }; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | panel: panel { |
| 124 | /* |
| 125 | * edt,et057090dhu: EDT 5.7" LCD TFT |
| 126 | * edt,et070080dh6: EDT 7.0" LCD TFT |
| 127 | */ |
| 128 | compatible = "edt,et057090dhu"; |
| 129 | backlight = <&backlight>; |
| 130 | |
| 131 | port { |
| 132 | lcd_panel_in: endpoint { |
| 133 | remote-endpoint = <&lcd_display_out>; |
| 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | &backlight { |
| 140 | brightness-levels = <0 127 191 223 239 247 251 255>; |
| 141 | default-brightness-level = <1>; |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | /* Colibri SSP */ |
| 146 | &ecspi4 { |
| 147 | status = "okay"; |
| 148 | |
| 149 | mcp251x0: mcp251x@1 { |
| 150 | compatible = "microchip,mcp2515"; |
| 151 | reg = <0>; |
| 152 | clocks = <&clk16m>; |
| 153 | interrupt-parent = <&gpio3>; |
| 154 | interrupts = <27 0x2>; |
| 155 | spi-max-frequency = <10000000>; |
| 156 | status = "okay"; |
| 157 | }; |
| 158 | }; |
| 159 | |
| 160 | &hdmi { |
| 161 | status = "okay"; |
| 162 | }; |
| 163 | |
| 164 | /* |
| 165 | * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board) |
| 166 | */ |
| 167 | &i2c3 { |
| 168 | status = "okay"; |
| 169 | |
| 170 | /* M41T0M6 real time clock on carrier board */ |
| 171 | rtc_i2c: rtc@68 { |
Stefan Agner | c53bec1 | 2017-12-06 11:29:29 +0100 | [diff] [blame] | 172 | compatible = "st,m41t0"; |
Sanchayan Maity | fc48e76 | 2016-09-21 16:54:38 +0530 | [diff] [blame] | 173 | reg = <0x68>; |
| 174 | }; |
| 175 | }; |
| 176 | |
| 177 | &ipu1_di0_disp0 { |
| 178 | remote-endpoint = <&lcd_display_in>; |
| 179 | }; |
| 180 | |
| 181 | &pwm1 { |
| 182 | status = "okay"; |
| 183 | }; |
| 184 | |
| 185 | &pwm2 { |
| 186 | status = "okay"; |
| 187 | }; |
| 188 | |
| 189 | &pwm3 { |
| 190 | status = "okay"; |
| 191 | }; |
| 192 | |
| 193 | &pwm4 { |
| 194 | status = "okay"; |
| 195 | }; |
| 196 | |
| 197 | ®_usb_host_vbus { |
| 198 | status = "okay"; |
| 199 | }; |
| 200 | |
| 201 | &uart1 { |
| 202 | status = "okay"; |
| 203 | }; |
| 204 | |
| 205 | &uart2 { |
| 206 | status = "okay"; |
| 207 | }; |
| 208 | |
| 209 | &uart3 { |
| 210 | status = "okay"; |
| 211 | }; |
| 212 | |
| 213 | &usbh1 { |
| 214 | vbus-supply = <®_usb_host_vbus>; |
| 215 | status = "okay"; |
| 216 | }; |
| 217 | |
| 218 | &usbotg { |
| 219 | status = "okay"; |
| 220 | }; |
| 221 | |
| 222 | /* Colibri MMC */ |
| 223 | &usdhc1 { |
| 224 | pinctrl-names = "default"; |
| 225 | pinctrl-0 = <&pinctrl_mmc_cd>; |
| 226 | cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */ |
| 227 | status = "okay"; |
| 228 | }; |
| 229 | |
| 230 | &weim { |
| 231 | status = "okay"; |
| 232 | |
| 233 | /* weim memory map: 32MB on CS0, 32MB on CS1, 32MB on CS2 */ |
| 234 | ranges = <0 0 0x08000000 0x02000000 |
| 235 | 1 0 0x0a000000 0x02000000 |
| 236 | 2 0 0x0c000000 0x02000000>; |
| 237 | |
| 238 | /* SRAM on Colibri nEXT_CS0 */ |
| 239 | sram@0,0 { |
| 240 | compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram"; |
| 241 | reg = <0 0 0x00010000>; |
| 242 | #address-cells = <1>; |
| 243 | #size-cells = <1>; |
| 244 | bank-width = <2>; |
| 245 | fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000 |
| 246 | 0x00000000 0x04000040 0x00000000>; |
| 247 | }; |
| 248 | |
| 249 | /* SRAM on Colibri nEXT_CS1 */ |
| 250 | sram@1,0 { |
| 251 | compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram"; |
| 252 | reg = <1 0 0x00010000>; |
| 253 | #address-cells = <1>; |
| 254 | #size-cells = <1>; |
| 255 | bank-width = <2>; |
| 256 | fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000 |
| 257 | 0x00000000 0x04000040 0x00000000>; |
| 258 | }; |
| 259 | }; |