Commit | Line | Data |
---|---|---|
e1bf86ac SA |
1 | /* |
2 | * Copyright 2014 Toradex AG | |
3 | * | |
9f3440dd SA |
4 | * 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. | |
e1bf86ac SA |
40 | */ |
41 | ||
42 | / { | |
43 | chosen { | |
4f182ff7 | 44 | stdout-path = "serial0:115200n8"; |
e1bf86ac | 45 | }; |
505251e5 | 46 | |
9fca0151 BD |
47 | clk16m: clk16m { |
48 | compatible = "fixed-clock"; | |
49 | #clock-cells = <0>; | |
50 | clock-frequency = <16000000>; | |
51 | }; | |
52 | ||
77f0862d SA |
53 | panel: panel { |
54 | compatible = "edt,et057090dhu"; | |
55 | backlight = <&bl>; | |
56 | }; | |
57 | ||
3da17857 SA |
58 | reg_3v3: regulator-3v3 { |
59 | compatible = "regulator-fixed"; | |
60 | regulator-name = "3.3V"; | |
61 | regulator-min-microvolt = <3300000>; | |
62 | regulator-max-microvolt = <3300000>; | |
63 | }; | |
64 | ||
4f41525b SA |
65 | reg_5v0: regulator-5v0 { |
66 | compatible = "regulator-fixed"; | |
67 | regulator-name = "5V"; | |
68 | regulator-min-microvolt = <5000000>; | |
69 | regulator-max-microvolt = <5000000>; | |
70 | }; | |
505251e5 | 71 | |
4f41525b SA |
72 | reg_usbh_vbus: regulator-usbh-vbus { |
73 | compatible = "regulator-fixed"; | |
74 | pinctrl-names = "default"; | |
75 | pinctrl-0 = <&pinctrl_usbh1_reg>; | |
76 | regulator-name = "VCC_USB[1-4]"; | |
77 | regulator-min-microvolt = <5000000>; | |
78 | regulator-max-microvolt = <5000000>; | |
79 | gpio = <&gpio2 19 GPIO_ACTIVE_LOW>; /* USBH_PEN resp. USBH_P_EN */ | |
80 | vin-supply = <®_5v0>; | |
505251e5 | 81 | }; |
e1bf86ac SA |
82 | }; |
83 | ||
84 | &bl { | |
85 | brightness-levels = <0 4 8 16 32 64 128 255>; | |
86 | default-brightness-level = <6>; | |
3da17857 | 87 | power-supply = <®_3v3>; |
e1bf86ac SA |
88 | status = "okay"; |
89 | }; | |
90 | ||
77f0862d SA |
91 | &dcu0 { |
92 | pinctrl-names = "default"; | |
93 | pinctrl-0 = <&pinctrl_dcu0_1>; | |
94 | fsl,panel = <&panel>; | |
95 | status = "okay"; | |
96 | }; | |
97 | ||
9fca0151 BD |
98 | &dspi1 { |
99 | status = "okay"; | |
100 | ||
101 | mcp2515can: can@0 { | |
102 | compatible = "microchip,mcp2515"; | |
103 | pinctrl-names = "default"; | |
104 | pinctrl-0 = <&pinctrl_can_int>; | |
105 | reg = <0>; | |
106 | clocks = <&clk16m>; | |
107 | spi-max-frequency = <10000000>; | |
108 | interrupt-parent = <&gpio1>; | |
109 | interrupts = <11 GPIO_ACTIVE_LOW>; | |
110 | }; | |
111 | }; | |
112 | ||
e1bf86ac SA |
113 | &esdhc1 { |
114 | pinctrl-names = "default"; | |
115 | pinctrl-0 = <&pinctrl_esdhc1>; | |
116 | bus-width = <4>; | |
117 | status = "okay"; | |
118 | }; | |
119 | ||
120 | &fec1 { | |
121 | phy-mode = "rmii"; | |
122 | pinctrl-names = "default"; | |
123 | pinctrl-0 = <&pinctrl_fec1>; | |
124 | status = "okay"; | |
125 | }; | |
126 | ||
1ddeb484 BD |
127 | &i2c0 { |
128 | status = "okay"; | |
2149b95f BD |
129 | |
130 | /* M41T0M6 real time clock on carrier board */ | |
131 | rtc: m41t0m6@68 { | |
132 | compatible = "st,m41t00"; | |
133 | reg = <0x68>; | |
134 | }; | |
1ddeb484 BD |
135 | }; |
136 | ||
e1bf86ac SA |
137 | &pwm0 { |
138 | status = "okay"; | |
139 | }; | |
140 | ||
141 | &pwm1 { | |
142 | status = "okay"; | |
143 | }; | |
144 | ||
3da17857 SA |
145 | ®_module_3v3 { |
146 | vin-supply = <®_3v3>; | |
147 | }; | |
148 | ||
77f0862d SA |
149 | &tcon0 { |
150 | status = "okay"; | |
151 | }; | |
152 | ||
e1bf86ac SA |
153 | &uart0 { |
154 | status = "okay"; | |
155 | }; | |
156 | ||
157 | &uart1 { | |
158 | status = "okay"; | |
159 | }; | |
160 | ||
161 | &uart2 { | |
162 | status = "okay"; | |
1ddeb484 | 163 | }; |
505251e5 SA |
164 | |
165 | &usbh1 { | |
4f41525b | 166 | vbus-supply = <®_usbh_vbus>; |
505251e5 | 167 | }; |
9fca0151 BD |
168 | |
169 | &iomuxc { | |
170 | vf610-colibri { | |
171 | pinctrl_can_int: can_int { | |
172 | fsl,pins = < | |
173 | VF610_PAD_PTB21__GPIO_43 0x22ed | |
174 | >; | |
175 | }; | |
176 | }; | |
177 | }; |