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