2016-09-21 19:24:38 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2014-2016 Toradex AG
|
|
|
|
* Copyright 2012 Freescale Semiconductor, Inc.
|
|
|
|
* Copyright 2011 Linaro Ltd.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2017-01-03 18:27:13 +08:00
|
|
|
* This file is distributed in the hope that it will be useful,
|
2016-09-21 19:24:38 +08:00
|
|
|
* 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.
|
|
|
|
*
|
2017-01-03 18:27:13 +08:00
|
|
|
* Or, alternatively,
|
2016-09-21 19:24:38 +08:00
|
|
|
*
|
|
|
|
* 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
|
2017-01-03 18:27:13 +08:00
|
|
|
* restriction, including without limitation the rights to use,
|
2016-09-21 19:24:38 +08:00
|
|
|
* 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.
|
|
|
|
*
|
2017-01-03 18:27:13 +08:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
2016-09-21 19:24:38 +08:00
|
|
|
* 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
|
2017-01-03 18:27:13 +08:00
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
2016-09-21 19:24:38 +08:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
#include "imx6dl.dtsi"
|
|
|
|
#include "imx6qdl-colibri.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Toradex Colibri iMX6DL/S on Colibri Evaluation Board V3";
|
|
|
|
compatible = "toradex,colibri_imx6dl-eval-v3", "toradex,colibri_imx6dl",
|
|
|
|
"fsl,imx6dl";
|
|
|
|
|
2018-01-24 21:22:12 +08:00
|
|
|
/* Will be filled by the bootloader */
|
2018-02-23 01:16:35 +08:00
|
|
|
memory@10000000 {
|
|
|
|
reg = <0x10000000 0>;
|
2018-01-24 21:22:12 +08:00
|
|
|
};
|
|
|
|
|
2016-09-21 19:24:38 +08:00
|
|
|
aliases {
|
|
|
|
i2c0 = &i2c2;
|
|
|
|
i2c1 = &i2c3;
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
rtc0 = &rtc_i2c;
|
|
|
|
rtc1 = &snvs_rtc;
|
|
|
|
};
|
|
|
|
|
2018-02-27 16:00:23 +08:00
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
2016-09-21 19:24:38 +08:00
|
|
|
clocks {
|
|
|
|
/* Fixed crystal dedicated to mcp251x */
|
|
|
|
clk16m: clk@1 {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
reg = <1>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <16000000>;
|
|
|
|
clock-output-names = "clk16m";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_gpio_keys>;
|
|
|
|
|
|
|
|
wakeup {
|
|
|
|
label = "Wake-Up";
|
|
|
|
gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
|
|
|
|
linux,code = <KEY_WAKEUP>;
|
|
|
|
debounce-interval = <10>;
|
|
|
|
wakeup-source;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-10-05 22:31:40 +08:00
|
|
|
lcd_display: disp0 {
|
2016-09-21 19:24:38 +08:00
|
|
|
compatible = "fsl,imx-parallel-display";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
interface-pix-fmt = "bgr666";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_ipu1_lcdif>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
|
|
|
|
lcd_display_in: endpoint {
|
|
|
|
remote-endpoint = <&ipu1_di0_disp0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
|
|
|
|
lcd_display_out: endpoint {
|
|
|
|
remote-endpoint = <&lcd_panel_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
panel: panel {
|
|
|
|
/*
|
|
|
|
* edt,et057090dhu: EDT 5.7" LCD TFT
|
|
|
|
* edt,et070080dh6: EDT 7.0" LCD TFT
|
|
|
|
*/
|
|
|
|
compatible = "edt,et057090dhu";
|
|
|
|
backlight = <&backlight>;
|
|
|
|
|
|
|
|
port {
|
|
|
|
lcd_panel_in: endpoint {
|
|
|
|
remote-endpoint = <&lcd_display_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&backlight {
|
|
|
|
brightness-levels = <0 127 191 223 239 247 251 255>;
|
|
|
|
default-brightness-level = <1>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Colibri SSP */
|
|
|
|
&ecspi4 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
mcp251x0: mcp251x@1 {
|
|
|
|
compatible = "microchip,mcp2515";
|
|
|
|
reg = <0>;
|
|
|
|
clocks = <&clk16m>;
|
|
|
|
interrupt-parent = <&gpio3>;
|
|
|
|
interrupts = <27 0x2>;
|
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&hdmi {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
|
|
|
|
*/
|
|
|
|
&i2c3 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
/* M41T0M6 real time clock on carrier board */
|
|
|
|
rtc_i2c: rtc@68 {
|
2017-12-06 18:29:29 +08:00
|
|
|
compatible = "st,m41t0";
|
2016-09-21 19:24:38 +08:00
|
|
|
reg = <0x68>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ipu1_di0_disp0 {
|
|
|
|
remote-endpoint = <&lcd_display_in>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm4 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
®_usb_host_vbus {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbh1 {
|
|
|
|
vbus-supply = <®_usb_host_vbus>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbotg {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Colibri MMC */
|
|
|
|
&usdhc1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_mmc_cd>;
|
|
|
|
cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&weim {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
/* weim memory map: 32MB on CS0, 32MB on CS1, 32MB on CS2 */
|
|
|
|
ranges = <0 0 0x08000000 0x02000000
|
|
|
|
1 0 0x0a000000 0x02000000
|
|
|
|
2 0 0x0c000000 0x02000000>;
|
|
|
|
|
|
|
|
/* SRAM on Colibri nEXT_CS0 */
|
|
|
|
sram@0,0 {
|
|
|
|
compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
|
|
|
|
reg = <0 0 0x00010000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
bank-width = <2>;
|
|
|
|
fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
|
|
|
|
0x00000000 0x04000040 0x00000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* SRAM on Colibri nEXT_CS1 */
|
|
|
|
sram@1,0 {
|
|
|
|
compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
|
|
|
|
reg = <1 0 0x00010000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
bank-width = <2>;
|
|
|
|
fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
|
|
|
|
0x00000000 0x04000040 0x00000000>;
|
|
|
|
};
|
|
|
|
};
|