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 | * |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 13 | * This file is distributed in the hope that it will be useful, |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 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 | * |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 18 | * Or, alternatively, |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 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 |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 23 | * restriction, including without limitation the rights to use, |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 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 | * |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 32 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 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 |
Alexandre Belloni | 1328362 | 2017-01-03 11:27:13 +0100 | [diff] [blame] | 36 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
Stefan Agner | 9f3440d | 2015-12-07 13:51:14 -0800 | [diff] [blame] | 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 | 77f0862 | 2016-04-04 22:28:40 -0700 | [diff] [blame] | 53 | panel: panel { |
| 54 | compatible = "edt,et057090dhu"; |
| 55 | backlight = <&bl>; |
Stefan Agner | 78eb28a | 2016-09-06 11:46:57 -0700 | [diff] [blame] | 56 | |
| 57 | port { |
| 58 | panel_in: endpoint { |
| 59 | remote-endpoint = <&dcu_out>; |
| 60 | }; |
| 61 | }; |
Stefan Agner | 77f0862 | 2016-04-04 22:28:40 -0700 | [diff] [blame] | 62 | }; |
| 63 | |
Stefan Agner | 3da1785 | 2016-02-17 15:41:00 -0800 | [diff] [blame] | 64 | reg_3v3: regulator-3v3 { |
| 65 | compatible = "regulator-fixed"; |
| 66 | regulator-name = "3.3V"; |
| 67 | regulator-min-microvolt = <3300000>; |
| 68 | regulator-max-microvolt = <3300000>; |
| 69 | }; |
| 70 | |
Stefan Agner | 4f41525 | 2016-02-17 15:40:58 -0800 | [diff] [blame] | 71 | reg_5v0: regulator-5v0 { |
| 72 | compatible = "regulator-fixed"; |
| 73 | regulator-name = "5V"; |
| 74 | regulator-min-microvolt = <5000000>; |
| 75 | regulator-max-microvolt = <5000000>; |
| 76 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 77 | |
Stefan Agner | 4f41525 | 2016-02-17 15:40:58 -0800 | [diff] [blame] | 78 | reg_usbh_vbus: regulator-usbh-vbus { |
| 79 | compatible = "regulator-fixed"; |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&pinctrl_usbh1_reg>; |
| 82 | regulator-name = "VCC_USB[1-4]"; |
| 83 | regulator-min-microvolt = <5000000>; |
| 84 | regulator-max-microvolt = <5000000>; |
| 85 | gpio = <&gpio2 19 GPIO_ACTIVE_LOW>; /* USBH_PEN resp. USBH_P_EN */ |
| 86 | vin-supply = <®_5v0>; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 87 | }; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 88 | }; |
| 89 | |
| 90 | &bl { |
| 91 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 92 | default-brightness-level = <6>; |
Stefan Agner | 3da1785 | 2016-02-17 15:41:00 -0800 | [diff] [blame] | 93 | power-supply = <®_3v3>; |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 94 | status = "okay"; |
| 95 | }; |
| 96 | |
Stefan Agner | 77f0862 | 2016-04-04 22:28:40 -0700 | [diff] [blame] | 97 | &dcu0 { |
| 98 | pinctrl-names = "default"; |
| 99 | pinctrl-0 = <&pinctrl_dcu0_1>; |
Stefan Agner | 77f0862 | 2016-04-04 22:28:40 -0700 | [diff] [blame] | 100 | status = "okay"; |
Stefan Agner | 78eb28a | 2016-09-06 11:46:57 -0700 | [diff] [blame] | 101 | |
| 102 | port { |
| 103 | dcu_out: endpoint { |
| 104 | remote-endpoint = <&panel_in>; |
| 105 | }; |
| 106 | }; |
Stefan Agner | 77f0862 | 2016-04-04 22:28:40 -0700 | [diff] [blame] | 107 | }; |
| 108 | |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 109 | &dspi1 { |
| 110 | status = "okay"; |
| 111 | |
| 112 | mcp2515can: can@0 { |
| 113 | compatible = "microchip,mcp2515"; |
| 114 | pinctrl-names = "default"; |
| 115 | pinctrl-0 = <&pinctrl_can_int>; |
| 116 | reg = <0>; |
| 117 | clocks = <&clk16m>; |
| 118 | spi-max-frequency = <10000000>; |
| 119 | interrupt-parent = <&gpio1>; |
HernĂ¡n Gonzalez | 3dc82c3 | 2018-05-13 20:24:54 -0300 | [diff] [blame^] | 120 | interrupts = <11 IRQ_TYPE_EDGE_RISING>; |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 121 | }; |
| 122 | }; |
| 123 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 124 | &esdhc1 { |
| 125 | pinctrl-names = "default"; |
| 126 | pinctrl-0 = <&pinctrl_esdhc1>; |
| 127 | bus-width = <4>; |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | &fec1 { |
| 132 | phy-mode = "rmii"; |
| 133 | pinctrl-names = "default"; |
| 134 | pinctrl-0 = <&pinctrl_fec1>; |
| 135 | status = "okay"; |
| 136 | }; |
| 137 | |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 138 | &i2c0 { |
| 139 | status = "okay"; |
Bhuvanchandra DV | 2149b95 | 2014-11-13 10:05:32 +0530 | [diff] [blame] | 140 | |
| 141 | /* M41T0M6 real time clock on carrier board */ |
| 142 | rtc: m41t0m6@68 { |
Stefan Agner | c53bec1 | 2017-12-06 11:29:29 +0100 | [diff] [blame] | 143 | compatible = "st,m41t0"; |
Bhuvanchandra DV | 2149b95 | 2014-11-13 10:05:32 +0530 | [diff] [blame] | 144 | reg = <0x68>; |
| 145 | }; |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 146 | }; |
| 147 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 148 | &pwm0 { |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | &pwm1 { |
| 153 | status = "okay"; |
| 154 | }; |
| 155 | |
Stefan Agner | 3da1785 | 2016-02-17 15:41:00 -0800 | [diff] [blame] | 156 | ®_module_3v3 { |
| 157 | vin-supply = <®_3v3>; |
| 158 | }; |
| 159 | |
Stefan Agner | 77f0862 | 2016-04-04 22:28:40 -0700 | [diff] [blame] | 160 | &tcon0 { |
| 161 | status = "okay"; |
| 162 | }; |
| 163 | |
Stefan Agner | e1bf86a | 2014-11-02 21:36:47 +0100 | [diff] [blame] | 164 | &uart0 { |
| 165 | status = "okay"; |
| 166 | }; |
| 167 | |
| 168 | &uart1 { |
| 169 | status = "okay"; |
| 170 | }; |
| 171 | |
| 172 | &uart2 { |
| 173 | status = "okay"; |
Bhuvanchandra DV | 1ddeb48 | 2014-11-13 10:05:31 +0530 | [diff] [blame] | 174 | }; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 175 | |
| 176 | &usbh1 { |
Stefan Agner | 4f41525 | 2016-02-17 15:40:58 -0800 | [diff] [blame] | 177 | vbus-supply = <®_usbh_vbus>; |
Stefan Agner | 505251e | 2014-11-16 19:00:28 +0100 | [diff] [blame] | 178 | }; |
Bhuvanchandra DV | 9fca015 | 2015-01-29 21:57:45 +0530 | [diff] [blame] | 179 | |
| 180 | &iomuxc { |
| 181 | vf610-colibri { |
| 182 | pinctrl_can_int: can_int { |
| 183 | fsl,pins = < |
| 184 | VF610_PAD_PTB21__GPIO_43 0x22ed |
| 185 | >; |
| 186 | }; |
| 187 | }; |
| 188 | }; |