Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Toradex AG |
| 3 | * |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 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. |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 40 | */ |
| 41 | |
| 42 | / { |
| 43 | chosen { |
Stefan Agner | 4f182ff | 2015-07-15 16:50:17 +0200 | [diff] [blame] | 44 | stdout-path = "serial0:115200n8"; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 45 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 46 | |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 47 | clk16m: clk16m { |
| 48 | compatible = "fixed-clock"; |
| 49 | #clock-cells = <0>; |
| 50 | clock-frequency = <16000000>; |
| 51 | }; |
| 52 | |
Stefan Agner | 3da1785 | 2016-02-17 15:41:00 -0800 | [diff] [blame] | 53 | reg_3v3: regulator-3v3 { |
| 54 | compatible = "regulator-fixed"; |
| 55 | regulator-name = "3.3V"; |
| 56 | regulator-min-microvolt = <3300000>; |
| 57 | regulator-max-microvolt = <3300000>; |
| 58 | }; |
| 59 | |
Stefan Agner | 4f41525 | 2016-02-17 15:40:58 -0800 | [diff] [blame] | 60 | reg_5v0: regulator-5v0 { |
| 61 | compatible = "regulator-fixed"; |
| 62 | regulator-name = "5V"; |
| 63 | regulator-min-microvolt = <5000000>; |
| 64 | regulator-max-microvolt = <5000000>; |
| 65 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 66 | |
Stefan Agner | 4f41525 | 2016-02-17 15:40:58 -0800 | [diff] [blame] | 67 | reg_usbh_vbus: regulator-usbh-vbus { |
| 68 | compatible = "regulator-fixed"; |
| 69 | pinctrl-names = "default"; |
| 70 | pinctrl-0 = <&pinctrl_usbh1_reg>; |
| 71 | regulator-name = "VCC_USB[1-4]"; |
| 72 | regulator-min-microvolt = <5000000>; |
| 73 | regulator-max-microvolt = <5000000>; |
| 74 | gpio = <&gpio2 19 GPIO_ACTIVE_LOW>; /* USBH_PEN resp. USBH_P_EN */ |
| 75 | vin-supply = <®_5v0>; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 76 | }; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | &bl { |
| 80 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 81 | default-brightness-level = <6>; |
Stefan Agner | 3da1785 | 2016-02-17 15:41:00 -0800 | [diff] [blame] | 82 | power-supply = <®_3v3>; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 83 | status = "okay"; |
| 84 | }; |
| 85 | |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 86 | &dspi1 { |
| 87 | status = "okay"; |
| 88 | |
| 89 | mcp2515can: can@0 { |
| 90 | compatible = "microchip,mcp2515"; |
| 91 | pinctrl-names = "default"; |
| 92 | pinctrl-0 = <&pinctrl_can_int>; |
| 93 | reg = <0>; |
| 94 | clocks = <&clk16m>; |
| 95 | spi-max-frequency = <10000000>; |
| 96 | interrupt-parent = <&gpio1>; |
| 97 | interrupts = <11 GPIO_ACTIVE_LOW>; |
| 98 | }; |
| 99 | }; |
| 100 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 101 | &esdhc1 { |
| 102 | pinctrl-names = "default"; |
| 103 | pinctrl-0 = <&pinctrl_esdhc1>; |
| 104 | bus-width = <4>; |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | |
| 108 | &fec1 { |
| 109 | phy-mode = "rmii"; |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&pinctrl_fec1>; |
| 112 | status = "okay"; |
| 113 | }; |
| 114 | |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 115 | &i2c0 { |
| 116 | status = "okay"; |
Bhuvanchandra DV | 2149b95 | 2014-11-13 10:05:32 +0530 | [diff] [blame] | 117 | |
| 118 | /* M41T0M6 real time clock on carrier board */ |
| 119 | rtc: m41t0m6@68 { |
| 120 | compatible = "st,m41t00"; |
| 121 | reg = <0x68>; |
| 122 | }; |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 123 | }; |
| 124 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 125 | &pwm0 { |
| 126 | status = "okay"; |
| 127 | }; |
| 128 | |
| 129 | &pwm1 { |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
Stefan Agner | 3da1785 | 2016-02-17 15:41:00 -0800 | [diff] [blame] | 133 | ®_module_3v3 { |
| 134 | vin-supply = <®_3v3>; |
| 135 | }; |
| 136 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 137 | &uart0 { |
| 138 | status = "okay"; |
| 139 | }; |
| 140 | |
| 141 | &uart1 { |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | &uart2 { |
| 146 | status = "okay"; |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 147 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 148 | |
| 149 | &usbh1 { |
Stefan Agner | 4f41525 | 2016-02-17 15:40:58 -0800 | [diff] [blame] | 150 | vbus-supply = <®_usbh_vbus>; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 151 | }; |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 152 | |
| 153 | &iomuxc { |
| 154 | vf610-colibri { |
| 155 | pinctrl_can_int: can_int { |
| 156 | fsl,pins = < |
| 157 | VF610_PAD_PTB21__GPIO_43 0x22ed |
| 158 | >; |
| 159 | }; |
| 160 | }; |
| 161 | }; |