0001 /*
0002 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
0003 *
0004 * This file is dual-licensed: you can use it either under the terms
0005 * of the GPL or the X11 license, at your option. Note that this dual
0006 * licensing only applies to this file, and not this project as a
0007 * whole.
0008 *
0009 * a) This file is free software; you can redistribute it and/or
0010 * modify it under the terms of the GNU General Public License as
0011 * published by the Free Software Foundation; either version 2 of the
0012 * License, or (at your option) any later version.
0013 *
0014 * This file is distributed in the hope that it will be useful,
0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0017 * GNU General Public License for more details.
0018 *
0019 * You should have received a copy of the GNU General Public
0020 * License along with this file; if not, write to the Free
0021 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
0022 * MA 02110-1301 USA
0023 *
0024 * Or, alternatively,
0025 *
0026 * b) Permission is hereby granted, free of charge, to any person
0027 * obtaining a copy of this software and associated documentation
0028 * files (the "Software"), to deal in the Software without
0029 * restriction, including without limitation the rights to use,
0030 * copy, modify, merge, publish, distribute, sublicense, and/or
0031 * sell copies of the Software, and to permit persons to whom the
0032 * Software is furnished to do so, subject to the following
0033 * conditions:
0034 *
0035 * The above copyright notice and this permission notice shall be
0036 * included in all copies or substantial portions of the Software.
0037 *
0038 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0039 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0040 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0041 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0042 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0043 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0044 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0045 * OTHER DEALINGS IN THE SOFTWARE.
0046 */
0047
0048 /dts-v1/;
0049 #include "stm32f429.dtsi"
0050 #include "stm32f429-pinctrl.dtsi"
0051 #include <dt-bindings/input/input.h>
0052 #include <dt-bindings/gpio/gpio.h>
0053
0054 / {
0055 model = "STMicroelectronics STM32429i-EVAL board";
0056 compatible = "st,stm32429i-eval", "st,stm32f429";
0057
0058 chosen {
0059 bootargs = "root=/dev/ram";
0060 stdout-path = "serial0:115200n8";
0061 };
0062
0063 memory@0 {
0064 device_type = "memory";
0065 reg = <0x00000000 0x2000000>;
0066 };
0067
0068 aliases {
0069 serial0 = &usart1;
0070 };
0071
0072 clocks {
0073 clk_ext_camera: clk-ext-camera {
0074 #clock-cells = <0>;
0075 compatible = "fixed-clock";
0076 clock-frequency = <24000000>;
0077 };
0078 };
0079
0080 soc {
0081 dma-ranges = <0xc0000000 0x0 0x10000000>;
0082 };
0083
0084 vdda: regulator-vdda {
0085 compatible = "regulator-fixed";
0086 regulator-name = "vdda";
0087 regulator-min-microvolt = <3300000>;
0088 regulator-max-microvolt = <3300000>;
0089 };
0090
0091 vref: regulator-vref {
0092 compatible = "regulator-fixed";
0093 regulator-name = "vref";
0094 regulator-min-microvolt = <3300000>;
0095 regulator-max-microvolt = <3300000>;
0096 };
0097
0098 vdd_panel: vdd-panel {
0099 compatible = "regulator-fixed";
0100 regulator-name = "vdd_panel";
0101 regulator-min-microvolt = <3300000>;
0102 regulator-max-microvolt = <3300000>;
0103 };
0104
0105 leds {
0106 compatible = "gpio-leds";
0107 led-green {
0108 gpios = <&gpiog 6 1>;
0109 linux,default-trigger = "heartbeat";
0110 };
0111 led-orange {
0112 gpios = <&gpiog 7 1>;
0113 };
0114 led-red {
0115 gpios = <&gpiog 10 1>;
0116 };
0117 led-blue {
0118 gpios = <&gpiog 12 1>;
0119 };
0120 };
0121
0122 gpio-keys {
0123 compatible = "gpio-keys";
0124 autorepeat;
0125 button-0 {
0126 label = "Wake up";
0127 linux,code = <KEY_WAKEUP>;
0128 gpios = <&gpioa 0 0>;
0129 };
0130 button-1 {
0131 label = "Tamper";
0132 linux,code = <KEY_RESTART>;
0133 gpios = <&gpioc 13 0>;
0134 };
0135 };
0136
0137 usbotg_hs_phy: usbphy {
0138 #phy-cells = <0>;
0139 compatible = "usb-nop-xceiv";
0140 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
0141 clock-names = "main_clk";
0142 };
0143
0144 panel_rgb: panel-rgb {
0145 compatible = "ampire,am-480272h3tmqw-t01h";
0146 power-supply = <&vdd_panel>;
0147 status = "okay";
0148 port {
0149 panel_in_rgb: endpoint {
0150 remote-endpoint = <<dc_out_rgb>;
0151 };
0152 };
0153 };
0154
0155 mmc_vcard: mmc_vcard {
0156 compatible = "regulator-fixed";
0157 regulator-name = "mmc_vcard";
0158 regulator-min-microvolt = <3300000>;
0159 regulator-max-microvolt = <3300000>;
0160 };
0161 };
0162
0163 &adc {
0164 pinctrl-names = "default";
0165 pinctrl-0 = <&adc3_in8_pin>;
0166 vdda-supply = <&vdda>;
0167 vref-supply = <&vref>;
0168 status = "okay";
0169 adc3: adc@200 {
0170 st,adc-channels = <8>;
0171 status = "okay";
0172 };
0173 };
0174
0175 &clk_hse {
0176 clock-frequency = <25000000>;
0177 };
0178
0179 &crc {
0180 status = "okay";
0181 };
0182
0183 &dcmi {
0184 status = "okay";
0185
0186 port {
0187 dcmi_0: endpoint {
0188 remote-endpoint = <&ov2640_0>;
0189 bus-type = <5>;
0190 bus-width = <8>;
0191 hsync-active = <0>;
0192 vsync-active = <0>;
0193 pclk-sample = <1>;
0194 };
0195 };
0196 };
0197
0198 &i2c1 {
0199 pinctrl-0 = <&i2c1_pins>;
0200 pinctrl-names = "default";
0201 status = "okay";
0202
0203 ov2640: camera@30 {
0204 compatible = "ovti,ov2640";
0205 reg = <0x30>;
0206 resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
0207 pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
0208 clocks = <&clk_ext_camera>;
0209 clock-names = "xvclk";
0210 status = "okay";
0211
0212 port {
0213 ov2640_0: endpoint {
0214 remote-endpoint = <&dcmi_0>;
0215 };
0216 };
0217 };
0218
0219 stmpe1600: stmpe1600@42 {
0220 compatible = "st,stmpe1600";
0221 reg = <0x42>;
0222 interrupts = <8 3>;
0223 interrupt-parent = <&gpioi>;
0224 interrupt-controller;
0225 wakeup-source;
0226
0227 stmpegpio: stmpe_gpio {
0228 compatible = "st,stmpe-gpio";
0229 gpio-controller;
0230 #gpio-cells = <2>;
0231 };
0232 };
0233 };
0234
0235 &iwdg {
0236 status = "okay";
0237 timeout-sec = <32>;
0238 };
0239
0240 <dc {
0241 status = "okay";
0242 pinctrl-0 = <<dc_pins_a>;
0243 pinctrl-names = "default";
0244
0245 port {
0246 ltdc_out_rgb: endpoint {
0247 remote-endpoint = <&panel_in_rgb>;
0248 };
0249 };
0250 };
0251
0252 &mac {
0253 status = "okay";
0254 pinctrl-0 = <ðernet_mii>;
0255 pinctrl-names = "default";
0256 phy-mode = "mii";
0257 phy-handle = <&phy1>;
0258 mdio0 {
0259 #address-cells = <1>;
0260 #size-cells = <0>;
0261 compatible = "snps,dwmac-mdio";
0262 phy1: ethernet-phy@1 {
0263 reg = <1>;
0264 };
0265 };
0266 };
0267
0268 &rtc {
0269 status = "okay";
0270 };
0271
0272 &sdio {
0273 status = "okay";
0274 vmmc-supply = <&mmc_vcard>;
0275 cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
0276 pinctrl-names = "default", "opendrain";
0277 pinctrl-0 = <&sdio_pins>;
0278 pinctrl-1 = <&sdio_pins_od>;
0279 bus-width = <4>;
0280 max-frequency = <12500000>;
0281 };
0282
0283 &timers1 {
0284 status = "okay";
0285
0286 pwm {
0287 pinctrl-0 = <&pwm1_pins>;
0288 pinctrl-names = "default";
0289 status = "okay";
0290 };
0291
0292 timer@0 {
0293 status = "okay";
0294 };
0295 };
0296
0297 &timers3 {
0298 status = "okay";
0299
0300 pwm {
0301 pinctrl-0 = <&pwm3_pins>;
0302 pinctrl-names = "default";
0303 status = "okay";
0304 };
0305
0306 timer@2 {
0307 status = "okay";
0308 };
0309 };
0310
0311 &timers5 {
0312 /* Override timer5 to act as clockevent */
0313 compatible = "st,stm32-timer";
0314 interrupts = <50>;
0315 status = "okay";
0316 /delete-property/#address-cells;
0317 /delete-property/#size-cells;
0318 /delete-property/clock-names;
0319 /delete-node/pwm;
0320 /delete-node/timer@4;
0321 };
0322
0323 &usart1 {
0324 pinctrl-0 = <&usart1_pins_a>;
0325 pinctrl-names = "default";
0326 status = "okay";
0327 };
0328
0329 &usbotg_hs {
0330 dr_mode = "host";
0331 phys = <&usbotg_hs_phy>;
0332 phy-names = "usb2-phy";
0333 pinctrl-0 = <&usbotg_hs_pins_a>;
0334 pinctrl-names = "default";
0335 status = "okay";
0336 };