1 /* 2 * Copyright 2015 - Maxime Coquelin <mcoquelin. 3 * 4 * This file is dual-licensed: you can use it 5 * of the GPL or the X11 license, at your opti 6 * licensing only applies to this file, and no 7 * whole. 8 * 9 * a) This file is free software; you can red 10 * modify it under the terms of the GNU Ge 11 * published by the Free Software Foundati 12 * License, or (at your option) any later 13 * 14 * This file is distributed in the hope th 15 * but WITHOUT ANY WARRANTY; without even 16 * MERCHANTABILITY or FITNESS FOR A PARTIC 17 * GNU General Public License for more det 18 * 19 * You should have received a copy of the 20 * License along with this file; if not, w 21 * Software Foundation, Inc., 51 Franklin 22 * MA 02110-1301 USA 23 * 24 * Or, alternatively, 25 * 26 * b) Permission is hereby granted, free of c 27 * obtaining a copy of this software and a 28 * files (the "Software"), to deal in the 29 * restriction, including without limitati 30 * copy, modify, merge, publish, distribut 31 * sell copies of the Software, and to per 32 * Software is furnished to do so, subject 33 * conditions: 34 * 35 * The above copyright notice and this per 36 * included in all copies or substantial p 37 * 38 * THE SOFTWARE IS PROVIDED "AS IS", WITHO 39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT L 40 * OF MERCHANTABILITY, FITNESS FOR A PARTI 41 * NONINFRINGEMENT. IN NO EVENT SHALL THE 42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE 43 * WHETHER IN AN ACTION OF CONTRACT, TORT 44 * FROM, OUT OF OR IN CONNECTION WITH THE 45 * OTHER DEALINGS IN THE SOFTWARE. 46 */ 47 48 /dts-v1/; 49 #include "stm32f429.dtsi" 50 #include "stm32f429-pinctrl.dtsi" 51 #include <dt-bindings/input/input.h> 52 #include <dt-bindings/gpio/gpio.h> 53 #include <dt-bindings/media/video-interfaces.h 54 55 / { 56 model = "STMicroelectronics STM32429i- 57 compatible = "st,stm32429i-eval", "st, 58 59 chosen { 60 bootargs = "root=/dev/ram"; 61 stdout-path = "serial0:115200n 62 }; 63 64 memory@0 { 65 device_type = "memory"; 66 reg = <0x00000000 0x2000000>; 67 }; 68 69 aliases { 70 serial0 = &usart1; 71 }; 72 73 clocks { 74 clk_ext_camera: clk-ext-camera 75 #clock-cells = <0>; 76 compatible = "fixed-cl 77 clock-frequency = <240 78 }; 79 }; 80 81 soc { 82 dma-ranges = <0xc0000000 0x0 0 83 }; 84 85 vdda: regulator-vdda { 86 compatible = "regulator-fixed" 87 regulator-name = "vdda"; 88 regulator-min-microvolt = <330 89 regulator-max-microvolt = <330 90 }; 91 92 vref: regulator-vref { 93 compatible = "regulator-fixed" 94 regulator-name = "vref"; 95 regulator-min-microvolt = <330 96 regulator-max-microvolt = <330 97 }; 98 99 vdd_panel: vdd-panel { 100 compatible = "regulator-fixed" 101 regulator-name = "vdd_panel"; 102 regulator-min-microvolt = <330 103 regulator-max-microvolt = <330 104 }; 105 106 leds { 107 compatible = "gpio-leds"; 108 led-green { 109 gpios = <&gpiog 6 1>; 110 linux,default-trigger 111 }; 112 led-orange { 113 gpios = <&gpiog 7 1>; 114 }; 115 led-red { 116 gpios = <&gpiog 10 1>; 117 }; 118 led-blue { 119 gpios = <&gpiog 12 1>; 120 }; 121 }; 122 123 gpio-keys { 124 compatible = "gpio-keys"; 125 autorepeat; 126 button-0 { 127 label = "Wake up"; 128 linux,code = <KEY_WAKE 129 gpios = <&gpioa 0 0>; 130 }; 131 button-1 { 132 label = "Tamper"; 133 linux,code = <KEY_REST 134 gpios = <&gpioc 13 0>; 135 }; 136 }; 137 138 usbotg_hs_phy: usbphy { 139 #phy-cells = <0>; 140 compatible = "usb-nop-xceiv"; 141 clocks = <&rcc 0 STM32F4_AHB1_ 142 clock-names = "main_clk"; 143 }; 144 145 panel_rgb: panel-rgb { 146 compatible = "ampire,am-480272 147 power-supply = <&vdd_panel>; 148 status = "okay"; 149 port { 150 panel_in_rgb: endpoint 151 remote-endpoin 152 }; 153 }; 154 }; 155 156 mmc_vcard: mmc_vcard { 157 compatible = "regulator-fixed" 158 regulator-name = "mmc_vcard"; 159 regulator-min-microvolt = <330 160 regulator-max-microvolt = <330 161 }; 162 }; 163 164 &adc { 165 pinctrl-names = "default"; 166 pinctrl-0 = <&adc3_in8_pin>; 167 vdda-supply = <&vdda>; 168 vref-supply = <&vref>; 169 status = "okay"; 170 adc3: adc@200 { 171 st,adc-channels = <8>; 172 status = "okay"; 173 }; 174 }; 175 176 &clk_hse { 177 clock-frequency = <25000000>; 178 }; 179 180 &crc { 181 status = "okay"; 182 }; 183 184 &dcmi { 185 status = "okay"; 186 187 port { 188 dcmi_0: endpoint { 189 remote-endpoint = <&ov 190 bus-type = <MEDIA_BUS_ 191 bus-width = <8>; 192 hsync-active = <0>; 193 vsync-active = <0>; 194 pclk-sample = <1>; 195 }; 196 }; 197 }; 198 199 &i2c1 { 200 pinctrl-0 = <&i2c1_pins>; 201 pinctrl-names = "default"; 202 status = "okay"; 203 204 ov2640: camera@30 { 205 compatible = "ovti,ov2640"; 206 reg = <0x30>; 207 resetb-gpios = <&stmpegpio 2 G 208 pwdn-gpios = <&stmpegpio 0 GPI 209 clocks = <&clk_ext_camera>; 210 clock-names = "xvclk"; 211 status = "okay"; 212 213 port { 214 ov2640_0: endpoint { 215 remote-endpoin 216 }; 217 }; 218 }; 219 220 stmpe1600: stmpe1600@42 { 221 compatible = "st,stmpe1600"; 222 reg = <0x42>; 223 interrupts = <8 3>; 224 interrupt-parent = <&gpioi>; 225 wakeup-source; 226 227 stmpegpio: stmpe_gpio { 228 compatible = "st,stmpe 229 gpio-controller; 230 #gpio-cells = <2>; 231 }; 232 }; 233 }; 234 235 &iwdg { 236 status = "okay"; 237 timeout-sec = <32>; 238 }; 239 240 <dc { 241 status = "okay"; 242 pinctrl-0 = <<dc_pins_a>; 243 pinctrl-names = "default"; 244 245 port { 246 ltdc_out_rgb: endpoint { 247 remote-endpoint = <&pa 248 }; 249 }; 250 }; 251 252 &mac { 253 status = "okay"; 254 pinctrl-0 = <ðernet_mii>; 255 pinctrl-names = "default"; 256 phy-mode = "mii"; 257 phy-handle = <&phy1>; 258 mdio0 { 259 #address-cells = <1>; 260 #size-cells = <0>; 261 compatible = "snps,dwmac-mdio" 262 phy1: ethernet-phy@1 { 263 reg = <1>; 264 }; 265 }; 266 }; 267 268 &rtc { 269 status = "okay"; 270 }; 271 272 &sdio { 273 status = "okay"; 274 vmmc-supply = <&mmc_vcard>; 275 cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_ 276 pinctrl-names = "default", "opendrain" 277 pinctrl-0 = <&sdio_pins>; 278 pinctrl-1 = <&sdio_pins_od>; 279 bus-width = <4>; 280 max-frequency = <12500000>; 281 }; 282 283 &timers1 { 284 status = "okay"; 285 286 pwm { 287 pinctrl-0 = <&pwm1_pins>; 288 pinctrl-names = "default"; 289 status = "okay"; 290 }; 291 292 timer@0 { 293 status = "okay"; 294 }; 295 }; 296 297 &timers3 { 298 status = "okay"; 299 300 pwm { 301 pinctrl-0 = <&pwm3_pins>; 302 pinctrl-names = "default"; 303 status = "okay"; 304 }; 305 306 timer@2 { 307 status = "okay"; 308 }; 309 }; 310 311 &timers5 { 312 /* Override timer5 to act as clockeven 313 compatible = "st,stm32-timer"; 314 interrupts = <50>; 315 status = "okay"; 316 /delete-property/#address-cells; 317 /delete-property/#size-cells; 318 /delete-property/clock-names; 319 /delete-node/pwm; 320 /delete-node/timer@4; 321 }; 322 323 &usart1 { 324 pinctrl-0 = <&usart1_pins_a>; 325 pinctrl-names = "default"; 326 status = "okay"; 327 }; 328 329 &usbotg_hs { 330 dr_mode = "host"; 331 phys = <&usbotg_hs_phy>; 332 phy-names = "usb2-phy"; 333 pinctrl-0 = <&usbotg_hs_pins_a>; 334 pinctrl-names = "default"; 335 status = "okay"; 336 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.