2014-11-02 13:36:47 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Toradex AG
|
|
|
|
*
|
2015-12-07 14: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 03:27:13 -07:00
|
|
|
* This file is distributed in the hope that it will be useful,
|
2015-12-07 14: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 03:27:13 -07:00
|
|
|
* Or, alternatively,
|
2015-12-07 14: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 03:27:13 -07:00
|
|
|
* restriction, including without limitation the rights to use,
|
2015-12-07 14: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 03:27:13 -07:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
2015-12-07 14: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 03:27:13 -07:00
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
2015-12-07 14: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-02 13:36:47 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
2015-07-15 08:50:17 -06:00
|
|
|
stdout-path = "serial0:115200n8";
|
2014-11-02 13:36:47 -07:00
|
|
|
};
|
2014-11-16 11:00:28 -07:00
|
|
|
|
2015-01-29 09:27:45 -07:00
|
|
|
clk16m: clk16m {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <16000000>;
|
|
|
|
};
|
|
|
|
|
2016-04-04 23:28:40 -06:00
|
|
|
panel: panel {
|
|
|
|
compatible = "edt,et057090dhu";
|
|
|
|
backlight = <&bl>;
|
2016-09-06 12:46:57 -06:00
|
|
|
|
|
|
|
port {
|
|
|
|
panel_in: endpoint {
|
|
|
|
remote-endpoint = <&dcu_out>;
|
|
|
|
};
|
|
|
|
};
|
2016-04-04 23:28:40 -06:00
|
|
|
};
|
|
|
|
|
2016-02-17 16: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-17 16:40:58 -07:00
|
|
|
reg_5v0: regulator-5v0 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "5V";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
};
|
2014-11-16 11:00:28 -07:00
|
|
|
|
2016-02-17 16: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-16 11:00:28 -07:00
|
|
|
};
|
2014-11-02 13:36:47 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
&bl {
|
|
|
|
brightness-levels = <0 4 8 16 32 64 128 255>;
|
|
|
|
default-brightness-level = <6>;
|
2016-02-17 16:41:00 -07:00
|
|
|
power-supply = <®_3v3>;
|
2014-11-02 13:36:47 -07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-04-04 23:28:40 -06:00
|
|
|
&dcu0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_dcu0_1>;
|
|
|
|
status = "okay";
|
2016-09-06 12:46:57 -06:00
|
|
|
|
|
|
|
port {
|
|
|
|
dcu_out: endpoint {
|
|
|
|
remote-endpoint = <&panel_in>;
|
|
|
|
};
|
|
|
|
};
|
2016-04-04 23:28:40 -06:00
|
|
|
};
|
|
|
|
|
2015-01-29 09: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>;
|
|
|
|
interrupts = <11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-11-02 13: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-12 21:35:31 -07:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
2014-11-12 21:35:32 -07:00
|
|
|
|
|
|
|
/* M41T0M6 real time clock on carrier board */
|
|
|
|
rtc: m41t0m6@68 {
|
|
|
|
compatible = "st,m41t00";
|
|
|
|
reg = <0x68>;
|
|
|
|
};
|
2014-11-12 21:35:31 -07:00
|
|
|
};
|
|
|
|
|
2014-11-02 13:36:47 -07:00
|
|
|
&pwm0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-02-17 16:41:00 -07:00
|
|
|
®_module_3v3 {
|
|
|
|
vin-supply = <®_3v3>;
|
|
|
|
};
|
|
|
|
|
2016-04-04 23:28:40 -06:00
|
|
|
&tcon0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-11-02 13:36:47 -07:00
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
2014-11-12 21:35:31 -07:00
|
|
|
};
|
2014-11-16 11:00:28 -07:00
|
|
|
|
|
|
|
&usbh1 {
|
2016-02-17 16:40:58 -07:00
|
|
|
vbus-supply = <®_usbh_vbus>;
|
2014-11-16 11:00:28 -07:00
|
|
|
};
|
2015-01-29 09:27:45 -07:00
|
|
|
|
|
|
|
&iomuxc {
|
|
|
|
vf610-colibri {
|
|
|
|
pinctrl_can_int: can_int {
|
|
|
|
fsl,pins = <
|
|
|
|
VF610_PAD_PTB21__GPIO_43 0x22ed
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|