Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 | /* |
| 3 | * Copyright (C) STMicroelectronics 2017 - All Rights Reserved |
| 4 | * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics. |
| 5 | */ |
| 6 | |
| 7 | #include <dt-bindings/clock/stm32mp1-clks.h> |
| 8 | #include <dt-bindings/reset/stm32mp1-resets.h> |
| 9 | |
| 10 | / { |
| 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
| 13 | |
| 14 | aliases { |
| 15 | serial0 = &usart1; |
| 16 | serial1 = &usart2; |
| 17 | serial2 = &usart3; |
| 18 | serial3 = &uart4; |
| 19 | serial4 = &uart5; |
| 20 | serial5 = &usart6; |
| 21 | serial6 = &uart7; |
| 22 | serial7 = &uart8; |
| 23 | }; |
| 24 | |
| 25 | clocks { |
| 26 | clk_hse: clk-hse { |
| 27 | #clock-cells = <0>; |
| 28 | compatible = "fixed-clock"; |
| 29 | clock-frequency = <24000000>; |
| 30 | }; |
| 31 | |
| 32 | clk_hsi: clk-hsi { |
| 33 | #clock-cells = <0>; |
| 34 | compatible = "fixed-clock"; |
| 35 | clock-frequency = <64000000>; |
| 36 | }; |
| 37 | |
| 38 | clk_lse: clk-lse { |
| 39 | #clock-cells = <0>; |
| 40 | compatible = "fixed-clock"; |
| 41 | clock-frequency = <32768>; |
| 42 | }; |
| 43 | |
| 44 | clk_lsi: clk-lsi { |
| 45 | #clock-cells = <0>; |
| 46 | compatible = "fixed-clock"; |
| 47 | clock-frequency = <32000>; |
| 48 | }; |
| 49 | |
| 50 | clk_csi: clk-csi { |
| 51 | #clock-cells = <0>; |
| 52 | compatible = "fixed-clock"; |
| 53 | clock-frequency = <4000000>; |
| 54 | }; |
| 55 | |
| 56 | clk_i2s_ckin: i2s_ckin { |
| 57 | #clock-cells = <0>; |
| 58 | compatible = "fixed-clock"; |
| 59 | clock-frequency = <64000000>; |
| 60 | }; |
| 61 | |
| 62 | clk_dsi_phy: ck_dsi_phy { |
| 63 | #clock-cells = <0>; |
| 64 | compatible = "fixed-clock"; |
| 65 | clock-frequency = <0>; |
| 66 | }; |
| 67 | |
| 68 | clk_usbo_48m: ck_usbo_48m { |
| 69 | #clock-cells = <0>; |
| 70 | compatible = "fixed-clock"; |
| 71 | clock-frequency = <48000000>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | soc { |
| 76 | compatible = "simple-bus"; |
| 77 | #address-cells = <1>; |
| 78 | #size-cells = <1>; |
| 79 | ranges; |
| 80 | |
| 81 | usart2: serial@4000e000 { |
| 82 | compatible = "st,stm32h7-usart"; |
| 83 | reg = <0x4000e000 0x400>; |
| 84 | clocks = <&rcc USART2_K>; |
| 85 | status = "disabled"; |
| 86 | }; |
| 87 | |
| 88 | usart3: serial@4000f000 { |
| 89 | compatible = "st,stm32h7-usart"; |
| 90 | reg = <0x4000f000 0x400>; |
| 91 | clocks = <&rcc USART3_K>; |
| 92 | status = "disabled"; |
| 93 | }; |
| 94 | |
| 95 | uart4: serial@40010000 { |
| 96 | compatible = "st,stm32h7-uart"; |
| 97 | reg = <0x40010000 0x400>; |
| 98 | clocks = <&rcc UART4_K>; |
| 99 | status = "disabled"; |
| 100 | }; |
| 101 | |
| 102 | uart5: serial@40011000 { |
| 103 | compatible = "st,stm32h7-uart"; |
| 104 | reg = <0x40011000 0x400>; |
| 105 | clocks = <&rcc UART5_K>; |
| 106 | status = "disabled"; |
| 107 | }; |
| 108 | |
| 109 | |
| 110 | uart7: serial@40018000 { |
| 111 | compatible = "st,stm32h7-uart"; |
| 112 | reg = <0x40018000 0x400>; |
| 113 | clocks = <&rcc UART7_K>; |
| 114 | status = "disabled"; |
| 115 | }; |
| 116 | |
| 117 | uart8: serial@40019000 { |
| 118 | compatible = "st,stm32h7-uart"; |
| 119 | reg = <0x40019000 0x400>; |
| 120 | clocks = <&rcc UART8_K>; |
| 121 | status = "disabled"; |
| 122 | }; |
| 123 | |
| 124 | usart6: serial@44003000 { |
| 125 | compatible = "st,stm32h7-usart"; |
| 126 | reg = <0x44003000 0x400>; |
| 127 | clocks = <&rcc USART6_K>; |
| 128 | status = "disabled"; |
| 129 | }; |
| 130 | |
| 131 | sdmmc3: sdmmc@48004000 { |
| 132 | compatible = "st,stm32-sdmmc2"; |
| 133 | reg = <0x48004000 0x400>, <0x48005000 0x400>; |
| 134 | reg-names = "sdmmc", "delay"; |
| 135 | clocks = <&rcc SDMMC3_K>; |
| 136 | resets = <&rcc SDMMC3_R>; |
| 137 | cap-sd-highspeed; |
| 138 | cap-mmc-highspeed; |
| 139 | max-frequency = <120000000>; |
| 140 | status = "disabled"; |
| 141 | }; |
| 142 | |
| 143 | rcc: rcc@50000000 { |
| 144 | compatible = "syscon", "st,stm32mp1-rcc"; |
| 145 | #clock-cells = <1>; |
| 146 | #reset-cells = <1>; |
| 147 | reg = <0x50000000 0x1000>; |
| 148 | }; |
| 149 | |
| 150 | rcc_reboot: rcc-reboot@50000000 { |
| 151 | compatible = "syscon-reboot"; |
| 152 | regmap = <&rcc>; |
| 153 | offset = <0x404>; |
| 154 | mask = <0x1>; |
| 155 | }; |
| 156 | |
| 157 | rng1: rng@54003000 { |
| 158 | compatible = "st,stm32-rng"; |
| 159 | reg = <0x54003000 0x400>; |
| 160 | clocks = <&rcc RNG1_K>; |
| 161 | resets = <&rcc RNG1_R>; |
| 162 | status = "disabled"; |
| 163 | }; |
| 164 | |
| 165 | fmc_nand: fmc_nand@58002000 { |
| 166 | compatible = "st,stm32mp1-fmc"; |
| 167 | reg = <0x58002000 0x1000>, |
| 168 | <0x80000000 0x40000>, |
| 169 | <0x81000000 0x40000>, |
| 170 | <0x88000000 0x40000>, |
| 171 | <0x89000000 0x40000>; |
| 172 | clocks = <&rcc FMC_K>; |
| 173 | resets = <&rcc FMC_R>; |
| 174 | status = "disabled"; |
| 175 | }; |
| 176 | |
| 177 | qspi: qspi@58003000 { |
| 178 | compatible = "st,stm32f469-qspi"; |
| 179 | reg = <0x58003000 0x1000>, <0x70000000 0x10000000>; |
| 180 | clocks = <&rcc QSPI_K>; |
| 181 | status = "disabled"; |
| 182 | }; |
| 183 | |
| 184 | sdmmc1: sdmmc@58005000 { |
| 185 | compatible = "st,stm32-sdmmc2"; |
| 186 | reg = <0x58005000 0x1000>, <0x58006000 0x1000>; |
| 187 | reg-names = "sdmmc", "delay"; |
| 188 | clocks = <&rcc SDMMC1_K>; |
| 189 | resets = <&rcc SDMMC1_R>; |
| 190 | cap-sd-highspeed; |
| 191 | cap-mmc-highspeed; |
| 192 | max-frequency = <120000000>; |
| 193 | status = "disabled"; |
| 194 | }; |
| 195 | |
| 196 | sdmmc2: sdmmc@58007000 { |
| 197 | compatible = "st,stm32-sdmmc2"; |
| 198 | reg = <0x58007000 0x1000>, <0x58008000 0x1000>; |
| 199 | reg-names = "sdmmc", "delay"; |
| 200 | clocks = <&rcc SDMMC2_K>; |
| 201 | resets = <&rcc SDMMC2_R>; |
| 202 | cap-sd-highspeed; |
| 203 | cap-mmc-highspeed; |
| 204 | max-frequency = <120000000>; |
| 205 | status = "disabled"; |
| 206 | }; |
| 207 | |
| 208 | iwdg2: iwdg@5a002000 { |
| 209 | compatible = "st,stm32mp1-iwdg"; |
| 210 | reg = <0x5a002000 0x400>; |
| 211 | clocks = <&rcc IWDG2>, <&rcc CK_LSI>; |
| 212 | clock-names = "pclk", "lsi"; |
| 213 | status = "disabled"; |
| 214 | }; |
| 215 | |
| 216 | usart1: serial@5c000000 { |
| 217 | compatible = "st,stm32h7-usart"; |
| 218 | reg = <0x5c000000 0x400>; |
| 219 | clocks = <&rcc USART1_K>; |
| 220 | status = "disabled"; |
| 221 | }; |
| 222 | |
| 223 | i2c4: i2c@5c002000 { |
| 224 | compatible = "st,stm32f7-i2c"; |
| 225 | reg = <0x5c002000 0x400>; |
| 226 | clocks = <&rcc I2C4_K>; |
| 227 | resets = <&rcc I2C4_R>; |
| 228 | #address-cells = <1>; |
| 229 | #size-cells = <0>; |
| 230 | status = "disabled"; |
| 231 | }; |
| 232 | |
| 233 | rtc: rtc@5c004000 { |
| 234 | compatible = "st,stm32mp1-rtc"; |
| 235 | reg = <0x5c004000 0x400>; |
| 236 | clocks = <&rcc RTCAPB>, <&rcc RTC>; |
| 237 | clock-names = "pclk", "rtc_ck"; |
| 238 | }; |
| 239 | }; |
| 240 | }; |