2014-11-03 03:36:47 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Toradex AG
|
|
|
|
*
|
2015-12-08 04:51:14 +07:00
|
|
|
* 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 17:27:13 +07:00
|
|
|
* This file is distributed in the hope that it will be useful,
|
2015-12-08 04:51:14 +07: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 17:27:13 +07:00
|
|
|
* Or, alternatively,
|
2015-12-08 04:51:14 +07: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 17:27:13 +07:00
|
|
|
* restriction, including without limitation the rights to use,
|
2015-12-08 04:51:14 +07: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 17:27:13 +07:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
2015-12-08 04:51:14 +07: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 17:27:13 +07:00
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
2015-12-08 04:51:14 +07: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.
|
2014-11-03 03:36:47 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
2015-07-15 21:50:17 +07:00
|
|
|
stdout-path = "serial0:115200n8";
|
2014-11-03 03:36:47 +07:00
|
|
|
};
|
2014-11-17 01:00:28 +07:00
|
|
|
|
2015-01-29 23:27:45 +07:00
|
|
|
clk16m: clk16m {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <16000000>;
|
|
|
|
};
|
|
|
|
|
2016-04-05 12:28:40 +07:00
|
|
|
panel: panel {
|
|
|
|
compatible = "edt,et057090dhu";
|
|
|
|
backlight = <&bl>;
|
2016-09-07 01:46:57 +07:00
|
|
|
|
|
|
|
port {
|
|
|
|
panel_in: endpoint {
|
|
|
|
remote-endpoint = <&dcu_out>;
|
|
|
|
};
|
|
|
|
};
|
2016-04-05 12:28:40 +07:00
|
|
|
};
|
|
|
|
|
2016-02-18 06:41:00 +07:00
|
|
|
reg_3v3: regulator-3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "3.3V";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
|
2016-02-18 06:40:58 +07:00
|
|
|
reg_5v0: regulator-5v0 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "5V";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
};
|
2014-11-17 01:00:28 +07:00
|
|
|
|
2016-02-18 06:40:58 +07:00
|
|
|
reg_usbh_vbus: regulator-usbh-vbus {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_usbh1_reg>;
|
|
|
|
regulator-name = "VCC_USB[1-4]";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&gpio2 19 GPIO_ACTIVE_LOW>; /* USBH_PEN resp. USBH_P_EN */
|
|
|
|
vin-supply = <®_5v0>;
|
2014-11-17 01:00:28 +07:00
|
|
|
};
|
2014-11-03 03:36:47 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&bl {
|
|
|
|
brightness-levels = <0 4 8 16 32 64 128 255>;
|
|
|
|
default-brightness-level = <6>;
|
2016-02-18 06:41:00 +07:00
|
|
|
power-supply = <®_3v3>;
|
2014-11-03 03:36:47 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-04-05 12:28:40 +07:00
|
|
|
&dcu0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_dcu0_1>;
|
|
|
|
status = "okay";
|
2016-09-07 01:46:57 +07:00
|
|
|
|
|
|
|
port {
|
|
|
|
dcu_out: endpoint {
|
|
|
|
remote-endpoint = <&panel_in>;
|
|
|
|
};
|
|
|
|
};
|
2016-04-05 12:28:40 +07:00
|
|
|
};
|
|
|
|
|
2015-01-29 23:27:45 +07:00
|
|
|
&dspi1 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
mcp2515can: can@0 {
|
|
|
|
compatible = "microchip,mcp2515";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_can_int>;
|
|
|
|
reg = <0>;
|
|
|
|
clocks = <&clk16m>;
|
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
interrupt-parent = <&gpio1>;
|
2018-05-14 06:24:54 +07:00
|
|
|
interrupts = <11 IRQ_TYPE_EDGE_RISING>;
|
2015-01-29 23:27:45 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-11-03 03:36:47 +07:00
|
|
|
&esdhc1 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_esdhc1>;
|
|
|
|
bus-width = <4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&fec1 {
|
|
|
|
phy-mode = "rmii";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_fec1>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-11-13 11:35:31 +07:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
2014-11-13 11:35:32 +07:00
|
|
|
|
|
|
|
/* M41T0M6 real time clock on carrier board */
|
|
|
|
rtc: m41t0m6@68 {
|
2017-12-06 17:29:29 +07:00
|
|
|
compatible = "st,m41t0";
|
2014-11-13 11:35:32 +07:00
|
|
|
reg = <0x68>;
|
|
|
|
};
|
2014-11-13 11:35:31 +07:00
|
|
|
};
|
|
|
|
|
2014-11-03 03:36:47 +07:00
|
|
|
&pwm0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-02-18 06:41:00 +07:00
|
|
|
®_module_3v3 {
|
|
|
|
vin-supply = <®_3v3>;
|
|
|
|
};
|
|
|
|
|
2016-04-05 12:28:40 +07:00
|
|
|
&tcon0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-11-03 03:36:47 +07:00
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
2014-11-13 11:35:31 +07:00
|
|
|
};
|
2014-11-17 01:00:28 +07:00
|
|
|
|
|
|
|
&usbh1 {
|
2016-02-18 06:40:58 +07:00
|
|
|
vbus-supply = <®_usbh_vbus>;
|
2014-11-17 01:00:28 +07:00
|
|
|
};
|
2015-01-29 23:27:45 +07:00
|
|
|
|
|
|
|
&iomuxc {
|
|
|
|
vf610-colibri {
|
|
|
|
pinctrl_can_int: can_int {
|
|
|
|
fsl,pins = <
|
|
|
|
VF610_PAD_PTB21__GPIO_43 0x22ed
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|