blob: b49467372643d5288ea7c86955ab8e4cc98b2332 [file] [log] [blame]
Stefan Agnere1bf86a2014-11-02 21:36:47 +01001/*
2 * Copyright 2014 Toradex AG
3 *
Stefan Agner9f3440d2015-12-07 13:51:14 -08004 * 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 Agnere1bf86a2014-11-02 21:36:47 +010040 */
41
42/ {
43 chosen {
Stefan Agner4f182ff2015-07-15 16:50:17 +020044 stdout-path = "serial0:115200n8";
Stefan Agnere1bf86a2014-11-02 21:36:47 +010045 };
Stefan Agner505251e2014-11-16 19:00:28 +010046
Bhuvanchandra DV9fca0152015-01-29 21:57:45 +053047 clk16m: clk16m {
48 compatible = "fixed-clock";
49 #clock-cells = <0>;
50 clock-frequency = <16000000>;
51 };
52
Stefan Agner505251e2014-11-16 19:00:28 +010053 regulators {
54 compatible = "simple-bus";
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 sys_5v0_reg: regulator@0 {
59 compatible = "regulator-fixed";
60 reg = <0>;
61 regulator-name = "5v0";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
64 regulator-always-on;
65 };
66
67 /* USBH_PEN */
68 usbh_vbus_reg: regulator@1 {
69 compatible = "regulator-fixed";
70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_usbh1_reg>;
72 reg = <1>;
73 regulator-name = "usbh_vbus";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
Stefan Agner76713952015-01-16 18:06:15 +010076 gpio = <&gpio2 19 GPIO_ACTIVE_LOW>;
Stefan Agner505251e2014-11-16 19:00:28 +010077 vin-supply = <&sys_5v0_reg>;
78 };
79 };
Stefan Agnere1bf86a2014-11-02 21:36:47 +010080};
81
82&bl {
83 brightness-levels = <0 4 8 16 32 64 128 255>;
84 default-brightness-level = <6>;
85 status = "okay";
86};
87
Bhuvanchandra DV9fca0152015-01-29 21:57:45 +053088&dspi1 {
89 status = "okay";
90
91 mcp2515can: can@0 {
92 compatible = "microchip,mcp2515";
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_can_int>;
95 reg = <0>;
96 clocks = <&clk16m>;
97 spi-max-frequency = <10000000>;
98 interrupt-parent = <&gpio1>;
99 interrupts = <11 GPIO_ACTIVE_LOW>;
100 };
101};
102
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100103&esdhc1 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_esdhc1>;
106 bus-width = <4>;
107 status = "okay";
108};
109
110&fec1 {
111 phy-mode = "rmii";
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_fec1>;
114 status = "okay";
115};
116
Bhuvanchandra DV1ddeb482014-11-13 10:05:31 +0530117&i2c0 {
118 status = "okay";
Bhuvanchandra DV2149b952014-11-13 10:05:32 +0530119
120 /* M41T0M6 real time clock on carrier board */
121 rtc: m41t0m6@68 {
122 compatible = "st,m41t00";
123 reg = <0x68>;
124 };
Bhuvanchandra DV1ddeb482014-11-13 10:05:31 +0530125};
126
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100127&pwm0 {
128 status = "okay";
129};
130
131&pwm1 {
132 status = "okay";
133};
134
135&uart0 {
136 status = "okay";
137};
138
139&uart1 {
140 status = "okay";
141};
142
143&uart2 {
144 status = "okay";
Bhuvanchandra DV1ddeb482014-11-13 10:05:31 +0530145};
Stefan Agner505251e2014-11-16 19:00:28 +0100146
147&usbh1 {
148 vbus-supply = <&usbh_vbus_reg>;
149};
Bhuvanchandra DV9fca0152015-01-29 21:57:45 +0530150
151&iomuxc {
152 vf610-colibri {
153 pinctrl_can_int: can_int {
154 fsl,pins = <
155 VF610_PAD_PTB21__GPIO_43 0x22ed
156 >;
157 };
158 };
159};