• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2014 Toradex AG
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9
10/ {
11	chosen {
12		stdout-path = "serial0:115200n8";
13	};
14
15	clk16m: clk16m {
16		compatible = "fixed-clock";
17		#clock-cells = <0>;
18		clock-frequency = <16000000>;
19	};
20
21	regulators {
22		compatible = "simple-bus";
23		#address-cells = <1>;
24		#size-cells = <0>;
25
26		sys_5v0_reg: regulator@0 {
27			compatible = "regulator-fixed";
28			reg = <0>;
29			regulator-name = "5v0";
30			regulator-min-microvolt = <5000000>;
31			regulator-max-microvolt = <5000000>;
32			regulator-always-on;
33		};
34
35		/* USBH_PEN */
36		usbh_vbus_reg: regulator@1 {
37			compatible = "regulator-fixed";
38			pinctrl-names = "default";
39			pinctrl-0 = <&pinctrl_usbh1_reg>;
40			reg = <1>;
41			regulator-name = "usbh_vbus";
42			regulator-min-microvolt = <5000000>;
43			regulator-max-microvolt = <5000000>;
44			gpio = <&gpio2 19 GPIO_ACTIVE_LOW>;
45			vin-supply = <&sys_5v0_reg>;
46		};
47	};
48};
49
50&bl {
51	brightness-levels = <0 4 8 16 32 64 128 255>;
52	default-brightness-level = <6>;
53	status  = "okay";
54};
55
56&dspi1 {
57	status = "okay";
58
59	mcp2515can: can@0 {
60		compatible = "microchip,mcp2515";
61		pinctrl-names = "default";
62		pinctrl-0 = <&pinctrl_can_int>;
63		reg = <0>;
64		clocks = <&clk16m>;
65		spi-max-frequency = <10000000>;
66		interrupt-parent = <&gpio1>;
67		interrupts = <11 GPIO_ACTIVE_LOW>;
68	};
69};
70
71&esdhc1 {
72	pinctrl-names = "default";
73	pinctrl-0 = <&pinctrl_esdhc1>;
74	bus-width = <4>;
75	status = "okay";
76};
77
78&fec1 {
79	phy-mode = "rmii";
80	pinctrl-names = "default";
81	pinctrl-0 = <&pinctrl_fec1>;
82	status = "okay";
83};
84
85&i2c0 {
86	status = "okay";
87
88	/* M41T0M6 real time clock on carrier board */
89	rtc: m41t0m6@68 {
90		compatible = "st,m41t00";
91		reg = <0x68>;
92	};
93};
94
95&pwm0 {
96	status = "okay";
97};
98
99&pwm1 {
100	status = "okay";
101};
102
103&uart0 {
104	status = "okay";
105};
106
107&uart1 {
108	status = "okay";
109};
110
111&uart2 {
112	status = "okay";
113};
114
115&usbh1 {
116	vbus-supply = <&usbh_vbus_reg>;
117};
118
119&iomuxc {
120	vf610-colibri {
121		pinctrl_can_int: can_int {
122			fsl,pins = <
123				VF610_PAD_PTB21__GPIO_43	0x22ed
124			>;
125		};
126	};
127};
128