1*4882a593Smuzhiyun/* 2*4882a593Smuzhiyun * Copyright 2016 - Michael Kurz <michi.kurz@gmail.com> 3*4882a593Smuzhiyun * Copyright 2016 - Vikas MANOCHA <vikas.manocha@st.com> 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Based on: 6*4882a593Smuzhiyun * stm32f429.dtsi from Linux 7*4882a593Smuzhiyun * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms 10*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual 11*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a 12*4882a593Smuzhiyun * whole. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * a) This file is free software; you can redistribute it and/or 15*4882a593Smuzhiyun * modify it under the terms of the GNU General Public License as 16*4882a593Smuzhiyun * published by the Free Software Foundation; either version 2 of the 17*4882a593Smuzhiyun * License, or (at your option) any later version. 18*4882a593Smuzhiyun * 19*4882a593Smuzhiyun * This file is distributed in the hope that it will be useful, 20*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*4882a593Smuzhiyun * GNU General Public License for more details. 23*4882a593Smuzhiyun * 24*4882a593Smuzhiyun * Or, alternatively, 25*4882a593Smuzhiyun * 26*4882a593Smuzhiyun * b) Permission is hereby granted, free of charge, to any person 27*4882a593Smuzhiyun * obtaining a copy of this software and associated documentation 28*4882a593Smuzhiyun * files (the "Software"), to deal in the Software without 29*4882a593Smuzhiyun * restriction, including without limitation the rights to use, 30*4882a593Smuzhiyun * copy, modify, merge, publish, distribute, sublicense, and/or 31*4882a593Smuzhiyun * sell copies of the Software, and to permit persons to whom the 32*4882a593Smuzhiyun * Software is furnished to do so, subject to the following 33*4882a593Smuzhiyun * conditions: 34*4882a593Smuzhiyun * 35*4882a593Smuzhiyun * The above copyright notice and this permission notice shall be 36*4882a593Smuzhiyun * included in all copies or substantial portions of the Software. 37*4882a593Smuzhiyun * 38*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 39*4882a593Smuzhiyun * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 40*4882a593Smuzhiyun * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 41*4882a593Smuzhiyun * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 42*4882a593Smuzhiyun * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 43*4882a593Smuzhiyun * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44*4882a593Smuzhiyun * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 45*4882a593Smuzhiyun * OTHER DEALINGS IN THE SOFTWARE. 46*4882a593Smuzhiyun */ 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun#include "armv7-m.dtsi" 49*4882a593Smuzhiyun#include <dt-bindings/pinctrl/stm32f746-pinfunc.h> 50*4882a593Smuzhiyun#include <dt-bindings/clock/stm32fx-clock.h> 51*4882a593Smuzhiyun#include <dt-bindings/mfd/stm32f7-rcc.h> 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun/ { 54*4882a593Smuzhiyun clocks { 55*4882a593Smuzhiyun clk_hse: clk-hse { 56*4882a593Smuzhiyun #clock-cells = <0>; 57*4882a593Smuzhiyun compatible = "fixed-clock"; 58*4882a593Smuzhiyun clock-frequency = <0>; 59*4882a593Smuzhiyun }; 60*4882a593Smuzhiyun}; 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun soc { 63*4882a593Smuzhiyun u-boot,dm-pre-reloc; 64*4882a593Smuzhiyun mac: ethernet@40028000 { 65*4882a593Smuzhiyun compatible = "st,stm32-dwmac"; 66*4882a593Smuzhiyun reg = <0x40028000 0x8000>; 67*4882a593Smuzhiyun reg-names = "stmmaceth"; 68*4882a593Smuzhiyun interrupts = <61>, <62>; 69*4882a593Smuzhiyun interrupt-names = "macirq", "eth_wake_irq"; 70*4882a593Smuzhiyun snps,pbl = <8>; 71*4882a593Smuzhiyun snps,mixed-burst; 72*4882a593Smuzhiyun dma-ranges; 73*4882a593Smuzhiyun status = "disabled"; 74*4882a593Smuzhiyun }; 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun fmc: fmc@A0000000 { 77*4882a593Smuzhiyun compatible = "st,stm32-fmc"; 78*4882a593Smuzhiyun reg = <0xA0000000 0x1000>; 79*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB3_CLOCK(FMC)>; 80*4882a593Smuzhiyun u-boot,dm-pre-reloc; 81*4882a593Smuzhiyun }; 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun qspi: quadspi@A0001000 { 84*4882a593Smuzhiyun compatible = "st,stm32-qspi"; 85*4882a593Smuzhiyun #address-cells = <1>; 86*4882a593Smuzhiyun #size-cells = <0>; 87*4882a593Smuzhiyun reg = <0xA0001000 0x1000>, <0x90000000 0x10000000>; 88*4882a593Smuzhiyun reg-names = "QuadSPI", "QuadSPI-memory"; 89*4882a593Smuzhiyun interrupts = <92>; 90*4882a593Smuzhiyun spi-max-frequency = <108000000>; 91*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB3_CLOCK(QSPI)>; 92*4882a593Smuzhiyun status = "disabled"; 93*4882a593Smuzhiyun }; 94*4882a593Smuzhiyun usart1: serial@40011000 { 95*4882a593Smuzhiyun compatible = "st,stm32f7-usart", "st,stm32f7-uart"; 96*4882a593Smuzhiyun reg = <0x40011000 0x400>; 97*4882a593Smuzhiyun interrupts = <37>; 98*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_APB2_CLOCK(USART1)>; 99*4882a593Smuzhiyun status = "disabled"; 100*4882a593Smuzhiyun u-boot,dm-pre-reloc; 101*4882a593Smuzhiyun }; 102*4882a593Smuzhiyun rcc: rcc@40023810 { 103*4882a593Smuzhiyun #reset-cells = <1>; 104*4882a593Smuzhiyun #clock-cells = <2>; 105*4882a593Smuzhiyun compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; 106*4882a593Smuzhiyun reg = <0x40023800 0x400>; 107*4882a593Smuzhiyun clocks = <&clk_hse>; 108*4882a593Smuzhiyun u-boot,dm-pre-reloc; 109*4882a593Smuzhiyun }; 110*4882a593Smuzhiyun 111*4882a593Smuzhiyun pinctrl: pin-controller { 112*4882a593Smuzhiyun #address-cells = <1>; 113*4882a593Smuzhiyun #size-cells = <1>; 114*4882a593Smuzhiyun compatible = "st,stm32f746-pinctrl"; 115*4882a593Smuzhiyun ranges = <0 0x40020000 0x3000>; 116*4882a593Smuzhiyun u-boot,dm-pre-reloc; 117*4882a593Smuzhiyun pins-are-numbered; 118*4882a593Smuzhiyun 119*4882a593Smuzhiyun gpioa: gpio@40020000 { 120*4882a593Smuzhiyun gpio-controller; 121*4882a593Smuzhiyun #gpio-cells = <2>; 122*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 123*4882a593Smuzhiyun reg = <0x0 0x400>; 124*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOA)>; 125*4882a593Smuzhiyun st,bank-name = "GPIOA"; 126*4882a593Smuzhiyun u-boot,dm-pre-reloc; 127*4882a593Smuzhiyun }; 128*4882a593Smuzhiyun 129*4882a593Smuzhiyun gpiob: gpio@40020400 { 130*4882a593Smuzhiyun gpio-controller; 131*4882a593Smuzhiyun #gpio-cells = <2>; 132*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 133*4882a593Smuzhiyun reg = <0x400 0x400>; 134*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOB)>; 135*4882a593Smuzhiyun st,bank-name = "GPIOB"; 136*4882a593Smuzhiyun u-boot,dm-pre-reloc; 137*4882a593Smuzhiyun }; 138*4882a593Smuzhiyun 139*4882a593Smuzhiyun 140*4882a593Smuzhiyun gpioc: gpio@40020800 { 141*4882a593Smuzhiyun gpio-controller; 142*4882a593Smuzhiyun #gpio-cells = <2>; 143*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 144*4882a593Smuzhiyun reg = <0x800 0x400>; 145*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOC)>; 146*4882a593Smuzhiyun st,bank-name = "GPIOC"; 147*4882a593Smuzhiyun u-boot,dm-pre-reloc; 148*4882a593Smuzhiyun }; 149*4882a593Smuzhiyun 150*4882a593Smuzhiyun gpiod: gpio@40020c00 { 151*4882a593Smuzhiyun gpio-controller; 152*4882a593Smuzhiyun #gpio-cells = <2>; 153*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 154*4882a593Smuzhiyun reg = <0xc00 0x400>; 155*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOD)>; 156*4882a593Smuzhiyun st,bank-name = "GPIOD"; 157*4882a593Smuzhiyun u-boot,dm-pre-reloc; 158*4882a593Smuzhiyun }; 159*4882a593Smuzhiyun 160*4882a593Smuzhiyun gpioe: gpio@40021000 { 161*4882a593Smuzhiyun gpio-controller; 162*4882a593Smuzhiyun #gpio-cells = <2>; 163*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 164*4882a593Smuzhiyun reg = <0x1000 0x400>; 165*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOE)>; 166*4882a593Smuzhiyun st,bank-name = "GPIOE"; 167*4882a593Smuzhiyun u-boot,dm-pre-reloc; 168*4882a593Smuzhiyun }; 169*4882a593Smuzhiyun 170*4882a593Smuzhiyun gpiof: gpio@40021400 { 171*4882a593Smuzhiyun gpio-controller; 172*4882a593Smuzhiyun #gpio-cells = <2>; 173*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 174*4882a593Smuzhiyun reg = <0x1400 0x400>; 175*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOF)>; 176*4882a593Smuzhiyun st,bank-name = "GPIOF"; 177*4882a593Smuzhiyun u-boot,dm-pre-reloc; 178*4882a593Smuzhiyun }; 179*4882a593Smuzhiyun 180*4882a593Smuzhiyun gpiog: gpio@40021800 { 181*4882a593Smuzhiyun gpio-controller; 182*4882a593Smuzhiyun #gpio-cells = <2>; 183*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 184*4882a593Smuzhiyun reg = <0x1800 0x400>; 185*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOG)>; 186*4882a593Smuzhiyun st,bank-name = "GPIOG"; 187*4882a593Smuzhiyun u-boot,dm-pre-reloc; 188*4882a593Smuzhiyun }; 189*4882a593Smuzhiyun 190*4882a593Smuzhiyun gpioh: gpio@40021c00 { 191*4882a593Smuzhiyun gpio-controller; 192*4882a593Smuzhiyun #gpio-cells = <2>; 193*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 194*4882a593Smuzhiyun reg = <0x1c00 0x400>; 195*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOH)>; 196*4882a593Smuzhiyun st,bank-name = "GPIOH"; 197*4882a593Smuzhiyun u-boot,dm-pre-reloc; 198*4882a593Smuzhiyun }; 199*4882a593Smuzhiyun 200*4882a593Smuzhiyun gpioi: gpio@40022000 { 201*4882a593Smuzhiyun gpio-controller; 202*4882a593Smuzhiyun #gpio-cells = <2>; 203*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 204*4882a593Smuzhiyun reg = <0x2000 0x400>; 205*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOI)>; 206*4882a593Smuzhiyun st,bank-name = "GPIOI"; 207*4882a593Smuzhiyun u-boot,dm-pre-reloc; 208*4882a593Smuzhiyun }; 209*4882a593Smuzhiyun 210*4882a593Smuzhiyun gpioj: gpio@40022400 { 211*4882a593Smuzhiyun gpio-controller; 212*4882a593Smuzhiyun #gpio-cells = <2>; 213*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 214*4882a593Smuzhiyun reg = <0x2400 0x400>; 215*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOJ)>; 216*4882a593Smuzhiyun st,bank-name = "GPIOJ"; 217*4882a593Smuzhiyun u-boot,dm-pre-reloc; 218*4882a593Smuzhiyun }; 219*4882a593Smuzhiyun 220*4882a593Smuzhiyun gpiok: gpio@40022800 { 221*4882a593Smuzhiyun gpio-controller; 222*4882a593Smuzhiyun #gpio-cells = <2>; 223*4882a593Smuzhiyun compatible = "st,stm32-gpio"; 224*4882a593Smuzhiyun reg = <0x2800 0x400>; 225*4882a593Smuzhiyun clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOK)>; 226*4882a593Smuzhiyun st,bank-name = "GPIOK"; 227*4882a593Smuzhiyun u-boot,dm-pre-reloc; 228*4882a593Smuzhiyun }; 229*4882a593Smuzhiyun 230*4882a593Smuzhiyun }; 231*4882a593Smuzhiyun }; 232*4882a593Smuzhiyun}; 233*4882a593Smuzhiyun 234*4882a593Smuzhiyun&systick { 235*4882a593Smuzhiyun status = "okay"; 236*4882a593Smuzhiyun}; 237