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