Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> |
| 3 | * |
| 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 as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * This file is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public |
| 20 | * License along with this file; if not, write to the Free |
| 21 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 22 | * MA 02110-1301 USA |
| 23 | * |
| 24 | * Or, alternatively, |
| 25 | * |
| 26 | * b) Permission is hereby granted, free of charge, to any person |
| 27 | * obtaining a copy of this software and associated documentation |
| 28 | * files (the "Software"), to deal in the Software without |
| 29 | * restriction, including without limitation the rights to use, |
| 30 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 31 | * sell copies of the Software, and to permit persons to whom the |
| 32 | * Software is furnished to do so, subject to the following |
| 33 | * conditions: |
| 34 | * |
| 35 | * The above copyright notice and this permission notice shall be |
| 36 | * included in all copies or substantial portions of the Software. |
| 37 | * |
| 38 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 39 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 40 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 41 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 42 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 43 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 44 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 45 | * OTHER DEALINGS IN THE SOFTWARE. |
| 46 | */ |
| 47 | |
| 48 | /dts-v1/; |
| 49 | #include "stm32f429.dtsi" |
Alexandre Torgue | 2aaae13a | 2017-10-04 15:34:48 +0200 | [diff] [blame] | 50 | #include "stm32f429-pinctrl.dtsi" |
Maxime Coquelin | 5670501 | 2016-09-02 15:45:53 +0200 | [diff] [blame] | 51 | #include <dt-bindings/input/input.h> |
Hugues Fruchet | 13dd385 | 2017-05-05 17:31:00 +0200 | [diff] [blame] | 52 | #include <dt-bindings/gpio/gpio.h> |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 53 | |
| 54 | / { |
| 55 | model = "STMicroelectronics STM32429i-EVAL board"; |
| 56 | compatible = "st,stm32429i-eval", "st,stm32f429"; |
| 57 | |
| 58 | chosen { |
Alexandre TORGUE | d3609ee | 2017-07-17 10:36:00 +0200 | [diff] [blame] | 59 | bootargs = "root=/dev/ram"; |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 60 | stdout-path = "serial0:115200n8"; |
| 61 | }; |
| 62 | |
| 63 | memory { |
Maxime Coquelin | b2aa7f7 | 2015-12-02 17:47:17 +0100 | [diff] [blame] | 64 | reg = <0x00000000 0x2000000>; |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | aliases { |
| 68 | serial0 = &usart1; |
| 69 | }; |
Maxime Coquelin | b690172 | 2015-03-16 19:05:57 +0100 | [diff] [blame] | 70 | |
Hugues Fruchet | 13dd385 | 2017-05-05 17:31:00 +0200 | [diff] [blame] | 71 | clocks { |
| 72 | clk_ext_camera: clk-ext-camera { |
| 73 | #clock-cells = <0>; |
| 74 | compatible = "fixed-clock"; |
| 75 | clock-frequency = <24000000>; |
| 76 | }; |
| 77 | }; |
| 78 | |
Alexandre TORGUE | 626e7ea | 2016-11-03 15:16:38 +0100 | [diff] [blame] | 79 | soc { |
| 80 | dma-ranges = <0xc0000000 0x0 0x10000000>; |
| 81 | }; |
| 82 | |
Fabrice GASNIER | 7465d81 | 2017-01-09 14:08:32 +0100 | [diff] [blame] | 83 | regulators { |
| 84 | compatible = "simple-bus"; |
| 85 | #address-cells = <1>; |
| 86 | #size-cells = <0>; |
| 87 | |
| 88 | reg_vref: regulator@0 { |
| 89 | compatible = "regulator-fixed"; |
| 90 | reg = <0>; |
| 91 | regulator-name = "vref"; |
| 92 | regulator-min-microvolt = <3300000>; |
| 93 | regulator-max-microvolt = <3300000>; |
| 94 | }; |
| 95 | }; |
| 96 | |
Maxime Coquelin | b690172 | 2015-03-16 19:05:57 +0100 | [diff] [blame] | 97 | leds { |
| 98 | compatible = "gpio-leds"; |
| 99 | green { |
| 100 | gpios = <&gpiog 6 1>; |
| 101 | linux,default-trigger = "heartbeat"; |
| 102 | }; |
| 103 | orange { |
| 104 | gpios = <&gpiog 7 1>; |
| 105 | }; |
| 106 | red { |
| 107 | gpios = <&gpiog 10 1>; |
| 108 | }; |
| 109 | blue { |
| 110 | gpios = <&gpiog 12 1>; |
| 111 | }; |
| 112 | }; |
Maxime Coquelin | c8cc1b7 | 2016-02-23 17:11:42 +0100 | [diff] [blame] | 113 | |
Maxime Coquelin | 5670501 | 2016-09-02 15:45:53 +0200 | [diff] [blame] | 114 | gpio_keys { |
| 115 | compatible = "gpio-keys"; |
| 116 | #address-cells = <1>; |
| 117 | #size-cells = <0>; |
| 118 | autorepeat; |
| 119 | button@0 { |
| 120 | label = "Wake up"; |
| 121 | linux,code = <KEY_WAKEUP>; |
| 122 | gpios = <&gpioa 0 0>; |
| 123 | }; |
| 124 | button@1 { |
| 125 | label = "Tamper"; |
| 126 | linux,code = <KEY_RESTART>; |
| 127 | gpios = <&gpioc 13 0>; |
| 128 | }; |
| 129 | }; |
| 130 | |
Maxime Coquelin | c8cc1b7 | 2016-02-23 17:11:42 +0100 | [diff] [blame] | 131 | usbotg_hs_phy: usbphy { |
| 132 | #phy-cells = <0>; |
| 133 | compatible = "usb-nop-xceiv"; |
Gabriel Fernandez | f20a406 | 2017-02-01 16:16:27 +0100 | [diff] [blame] | 134 | clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>; |
Maxime Coquelin | c8cc1b7 | 2016-02-23 17:11:42 +0100 | [diff] [blame] | 135 | clock-names = "main_clk"; |
| 136 | }; |
Yannick Fertre | 85d95f7 | 2017-06-07 15:20:53 +0200 | [diff] [blame] | 137 | |
| 138 | panel_rgb: panel-rgb { |
| 139 | compatible = "ampire,am-480272h3tmqw-t01h"; |
| 140 | status = "okay"; |
| 141 | port { |
| 142 | panel_in_rgb: endpoint { |
| 143 | remote-endpoint = <<dc_out_rgb>; |
| 144 | }; |
| 145 | }; |
| 146 | }; |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 147 | }; |
| 148 | |
Fabrice GASNIER | 7465d81 | 2017-01-09 14:08:32 +0100 | [diff] [blame] | 149 | &adc { |
| 150 | pinctrl-names = "default"; |
| 151 | pinctrl-0 = <&adc3_in8_pin>; |
| 152 | vref-supply = <®_vref>; |
| 153 | status = "okay"; |
| 154 | adc3: adc@200 { |
| 155 | st,adc-channels = <8>; |
| 156 | status = "okay"; |
| 157 | }; |
| 158 | }; |
| 159 | |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 160 | &clk_hse { |
| 161 | clock-frequency = <25000000>; |
| 162 | }; |
| 163 | |
Cosar Dindar | d699823 | 2017-05-22 16:35:00 +0200 | [diff] [blame] | 164 | &crc { |
| 165 | status = "okay"; |
| 166 | }; |
| 167 | |
Hugues Fruchet | e8e16b7b | 2017-05-05 17:31:00 +0200 | [diff] [blame] | 168 | &dcmi { |
| 169 | status = "okay"; |
| 170 | |
| 171 | port { |
| 172 | dcmi_0: endpoint { |
Hugues Fruchet | 13dd385 | 2017-05-05 17:31:00 +0200 | [diff] [blame] | 173 | remote-endpoint = <&ov2640_0>; |
| 174 | bus-width = <8>; |
| 175 | hsync-active = <0>; |
| 176 | vsync-active = <0>; |
| 177 | pclk-sample = <1>; |
Hugues Fruchet | e8e16b7b | 2017-05-05 17:31:00 +0200 | [diff] [blame] | 178 | }; |
| 179 | }; |
| 180 | }; |
| 181 | |
M'boumba Cedric Madianga | 390891d | 2017-02-01 18:20:43 +0100 | [diff] [blame] | 182 | &i2c1 { |
| 183 | pinctrl-0 = <&i2c1_pins>; |
| 184 | pinctrl-names = "default"; |
| 185 | status = "okay"; |
Hugues Fruchet | c04b2e7 | 2017-06-07 17:39:11 +0200 | [diff] [blame] | 186 | |
Hugues Fruchet | 13dd385 | 2017-05-05 17:31:00 +0200 | [diff] [blame] | 187 | ov2640: camera@30 { |
| 188 | compatible = "ovti,ov2640"; |
| 189 | reg = <0x30>; |
| 190 | resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>; |
| 191 | pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>; |
| 192 | clocks = <&clk_ext_camera>; |
| 193 | clock-names = "xvclk"; |
| 194 | status = "okay"; |
| 195 | |
| 196 | port { |
| 197 | ov2640_0: endpoint { |
| 198 | remote-endpoint = <&dcmi_0>; |
| 199 | }; |
| 200 | }; |
| 201 | }; |
| 202 | |
Hugues Fruchet | c04b2e7 | 2017-06-07 17:39:11 +0200 | [diff] [blame] | 203 | stmpe1600: stmpe1600@42 { |
| 204 | compatible = "st,stmpe1600"; |
| 205 | reg = <0x42>; |
Hugues Fruchet | c04b2e7 | 2017-06-07 17:39:11 +0200 | [diff] [blame] | 206 | interrupts = <8 3>; |
Alexandre Torgue | 4edd812 | 2017-10-04 11:42:00 +0200 | [diff] [blame] | 207 | interrupt-parent = <&gpioi>; |
Hugues Fruchet | c04b2e7 | 2017-06-07 17:39:11 +0200 | [diff] [blame] | 208 | interrupt-controller; |
| 209 | wakeup-source; |
| 210 | |
| 211 | stmpegpio: stmpe_gpio { |
| 212 | compatible = "st,stmpe-gpio"; |
| 213 | gpio-controller; |
| 214 | #gpio-cells = <2>; |
| 215 | }; |
| 216 | }; |
M'boumba Cedric Madianga | 390891d | 2017-02-01 18:20:43 +0100 | [diff] [blame] | 217 | }; |
| 218 | |
Yannick Fertre | 7bffbd2 | 2017-06-07 15:39:40 +0200 | [diff] [blame] | 219 | &iwdg { |
| 220 | status = "okay"; |
| 221 | timeout-sec = <32>; |
| 222 | }; |
| 223 | |
Yannick Fertre | 85d95f7 | 2017-06-07 15:20:53 +0200 | [diff] [blame] | 224 | <dc { |
| 225 | status = "okay"; |
| 226 | pinctrl-0 = <<dc_pins>; |
| 227 | pinctrl-names = "default"; |
| 228 | dma-ranges; |
| 229 | |
| 230 | port { |
| 231 | ltdc_out_rgb: endpoint { |
| 232 | remote-endpoint = <&panel_in_rgb>; |
| 233 | }; |
| 234 | }; |
| 235 | }; |
| 236 | |
Alexandre TORGUE | d9b296b | 2016-10-24 09:57:08 +0200 | [diff] [blame] | 237 | &mac { |
Alexandre TORGUE | 1375954 | 2016-02-29 17:29:00 +0100 | [diff] [blame] | 238 | status = "okay"; |
Alexandre TORGUE | d9b296b | 2016-10-24 09:57:08 +0200 | [diff] [blame] | 239 | pinctrl-0 = <ðernet_mii>; |
Alexandre TORGUE | 1375954 | 2016-02-29 17:29:00 +0100 | [diff] [blame] | 240 | pinctrl-names = "default"; |
Alexandre TORGUE | d9b296b | 2016-10-24 09:57:08 +0200 | [diff] [blame] | 241 | phy-mode = "mii"; |
Alexandre TORGUE | 682d77c | 2016-09-07 12:28:17 +0200 | [diff] [blame] | 242 | phy-handle = <&phy1>; |
Alexandre TORGUE | 1375954 | 2016-02-29 17:29:00 +0100 | [diff] [blame] | 243 | mdio0 { |
| 244 | #address-cells = <1>; |
| 245 | #size-cells = <0>; |
| 246 | compatible = "snps,dwmac-mdio"; |
| 247 | phy1: ethernet-phy@1 { |
| 248 | reg = <1>; |
| 249 | }; |
| 250 | }; |
| 251 | }; |
| 252 | |
Amelie Delaunay | a4e6964 | 2017-01-16 14:29:00 +0100 | [diff] [blame] | 253 | &rtc { |
| 254 | status = "okay"; |
| 255 | }; |
| 256 | |
Fabrice Gasnier | d5a7e74 | 2017-01-26 15:28:00 +0100 | [diff] [blame] | 257 | &timers1 { |
| 258 | status = "okay"; |
| 259 | |
| 260 | pwm { |
| 261 | pinctrl-0 = <&pwm1_pins>; |
| 262 | pinctrl-names = "default"; |
| 263 | status = "okay"; |
| 264 | }; |
| 265 | |
| 266 | timer@0 { |
| 267 | status = "okay"; |
| 268 | }; |
| 269 | }; |
| 270 | |
| 271 | &timers3 { |
| 272 | status = "okay"; |
| 273 | |
| 274 | pwm { |
| 275 | pinctrl-0 = <&pwm3_pins>; |
| 276 | pinctrl-names = "default"; |
| 277 | status = "okay"; |
| 278 | }; |
| 279 | |
| 280 | timer@2 { |
| 281 | status = "okay"; |
| 282 | }; |
| 283 | }; |
| 284 | |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 285 | &usart1 { |
Maxime Coquelin | 521df6f | 2015-10-14 18:15:04 +0200 | [diff] [blame] | 286 | pinctrl-0 = <&usart1_pins_a>; |
| 287 | pinctrl-names = "default"; |
Maxime Coquelin | 83722c2 | 2015-07-12 11:27:36 +0200 | [diff] [blame] | 288 | status = "okay"; |
| 289 | }; |
Maxime Coquelin | c8cc1b7 | 2016-02-23 17:11:42 +0100 | [diff] [blame] | 290 | |
| 291 | &usbotg_hs { |
| 292 | dr_mode = "host"; |
| 293 | phys = <&usbotg_hs_phy>; |
| 294 | phy-names = "usb2-phy"; |
| 295 | pinctrl-0 = <&usbotg_hs_pins_a>; |
| 296 | pinctrl-names = "default"; |
| 297 | status = "okay"; |
| 298 | }; |