Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) |
| 2 | /* |
| 3 | * Copyright : STMicroelectronics 2018 |
| 4 | * |
| 5 | * Copyright (C) Linaro Ltd 2019 - All Rights Reserved |
| 6 | * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> |
| 7 | */ |
| 8 | |
| 9 | #include <dt-bindings/clock/stm32mp1-clksrc.h> |
Patrick Delaunay | 1a4f57c | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 10 | #include "stm32mp15-u-boot.dtsi" |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 11 | #include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi" |
| 12 | |
| 13 | / { |
| 14 | aliases { |
| 15 | mmc0 = &sdmmc1; |
| 16 | mmc1 = &sdmmc2; |
| 17 | usb0 = &usbotg_hs; |
| 18 | }; |
| 19 | |
| 20 | config { |
| 21 | u-boot,boot-led = "led1"; |
| 22 | u-boot,error-led = "led4"; |
| 23 | }; |
| 24 | }; |
| 25 | |
| 26 | &i2c4 { |
| 27 | u-boot,dm-pre-reloc; |
| 28 | }; |
| 29 | |
| 30 | &i2c4_pins_a { |
| 31 | u-boot,dm-pre-reloc; |
| 32 | pins { |
| 33 | u-boot,dm-pre-reloc; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | &pmic { |
| 38 | u-boot,dm-pre-reloc; |
| 39 | }; |
| 40 | |
| 41 | &rcc { |
| 42 | st,clksrc = < |
| 43 | CLK_MPU_PLL1P |
| 44 | CLK_AXI_PLL2P |
| 45 | CLK_MCU_PLL3P |
| 46 | CLK_PLL12_HSE |
| 47 | CLK_PLL3_HSE |
| 48 | CLK_PLL4_HSE |
| 49 | CLK_RTC_LSE |
| 50 | CLK_MCO1_DISABLED |
| 51 | CLK_MCO2_DISABLED |
| 52 | >; |
| 53 | |
| 54 | st,clkdiv = < |
| 55 | 1 /*MPU*/ |
| 56 | 0 /*AXI*/ |
| 57 | 0 /*MCU*/ |
| 58 | 1 /*APB1*/ |
| 59 | 1 /*APB2*/ |
| 60 | 1 /*APB3*/ |
| 61 | 1 /*APB4*/ |
| 62 | 2 /*APB5*/ |
| 63 | 23 /*RTC*/ |
| 64 | 0 /*MCO1*/ |
| 65 | 0 /*MCO2*/ |
| 66 | >; |
| 67 | |
| 68 | st,pkcs = < |
| 69 | CLK_CKPER_HSE |
| 70 | CLK_FMC_ACLK |
| 71 | CLK_QSPI_ACLK |
| 72 | CLK_ETH_DISABLED |
| 73 | CLK_SDMMC12_PLL4P |
| 74 | CLK_DSI_DSIPLL |
| 75 | CLK_STGEN_HSE |
| 76 | CLK_USBPHY_HSE |
| 77 | CLK_SPI2S1_PLL3Q |
| 78 | CLK_SPI2S23_PLL3Q |
| 79 | CLK_SPI45_HSI |
| 80 | CLK_SPI6_HSI |
| 81 | CLK_I2C46_HSI |
| 82 | CLK_SDMMC3_PLL4P |
| 83 | CLK_USBO_USBPHY |
| 84 | CLK_ADC_CKPER |
| 85 | CLK_CEC_LSE |
| 86 | CLK_I2C12_HSI |
| 87 | CLK_I2C35_HSI |
| 88 | CLK_UART1_HSI |
| 89 | CLK_UART24_HSI |
| 90 | CLK_UART35_HSI |
| 91 | CLK_UART6_HSI |
| 92 | CLK_UART78_HSI |
| 93 | CLK_SPDIF_PLL4P |
Antonio Borneo | db0cd2d | 2020-01-28 10:11:01 +0100 | [diff] [blame] | 94 | CLK_FDCAN_PLL4R |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 95 | CLK_SAI1_PLL3Q |
| 96 | CLK_SAI2_PLL3Q |
| 97 | CLK_SAI3_PLL3Q |
| 98 | CLK_SAI4_PLL3Q |
| 99 | CLK_RNG1_LSI |
| 100 | CLK_RNG2_LSI |
| 101 | CLK_LPTIM1_PCLK1 |
| 102 | CLK_LPTIM23_PCLK3 |
| 103 | CLK_LPTIM45_LSE |
| 104 | >; |
| 105 | |
| 106 | /* VCO = 1300.0 MHz => P = 650 (CPU) */ |
| 107 | pll1: st,pll@0 { |
Patrick Delaunay | 8d93a97 | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 108 | compatible = "st,stm32mp1-pll"; |
| 109 | reg = <0>; |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 110 | cfg = < 2 80 0 0 0 PQR(1,0,0) >; |
| 111 | frac = < 0x800 >; |
| 112 | u-boot,dm-pre-reloc; |
| 113 | }; |
| 114 | |
| 115 | /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */ |
| 116 | pll2: st,pll@1 { |
Patrick Delaunay | 8d93a97 | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 117 | compatible = "st,stm32mp1-pll"; |
| 118 | reg = <1>; |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 119 | cfg = < 2 65 1 0 0 PQR(1,1,1) >; |
| 120 | frac = < 0x1400 >; |
| 121 | u-boot,dm-pre-reloc; |
| 122 | }; |
| 123 | |
| 124 | /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */ |
| 125 | pll3: st,pll@2 { |
Patrick Delaunay | 8d93a97 | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 126 | compatible = "st,stm32mp1-pll"; |
| 127 | reg = <2>; |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 128 | cfg = < 1 33 1 16 36 PQR(1,1,1) >; |
| 129 | frac = < 0x1a04 >; |
| 130 | u-boot,dm-pre-reloc; |
| 131 | }; |
| 132 | |
| 133 | /* VCO = 480.0 MHz => P = 120, Q = 40, R = 96 */ |
| 134 | pll4: st,pll@3 { |
Patrick Delaunay | 8d93a97 | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 135 | compatible = "st,stm32mp1-pll"; |
| 136 | reg = <3>; |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 137 | cfg = < 1 39 3 11 4 PQR(1,1,1) >; |
| 138 | u-boot,dm-pre-reloc; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | &sdmmc1 { |
| 143 | u-boot,dm-spl; |
| 144 | }; |
| 145 | |
| 146 | &sdmmc1_b4_pins_a { |
| 147 | u-boot,dm-spl; |
Patrick Delaunay | 1a4f57c | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 148 | pins1 { |
| 149 | u-boot,dm-spl; |
| 150 | }; |
| 151 | pins2 { |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 152 | u-boot,dm-spl; |
| 153 | }; |
| 154 | }; |
| 155 | |
Marek Vasut | 45fa59b | 2020-03-31 19:51:25 +0200 | [diff] [blame] | 156 | &sdmmc1_dir_pins_b { |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 157 | u-boot,dm-spl; |
Marek Vasut | 81169ca | 2020-03-31 19:51:23 +0200 | [diff] [blame] | 158 | pins1 { |
| 159 | u-boot,dm-spl; |
| 160 | }; |
| 161 | pins2 { |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 162 | u-boot,dm-spl; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | &sdmmc2 { |
| 167 | u-boot,dm-spl; |
| 168 | }; |
| 169 | |
| 170 | &sdmmc2_b4_pins_a { |
| 171 | u-boot,dm-spl; |
Patrick Delaunay | 4d7d0e2 | 2019-11-06 16:16:34 +0100 | [diff] [blame] | 172 | pins1 { |
| 173 | u-boot,dm-spl; |
| 174 | }; |
| 175 | pins2 { |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 176 | u-boot,dm-spl; |
| 177 | }; |
| 178 | }; |
| 179 | |
Marek Vasut | df7f49c | 2020-03-31 19:51:27 +0200 | [diff] [blame] | 180 | &sdmmc2_d47_pins_b { |
Manivannan Sadhasivam | 93ffa2b | 2019-05-02 13:26:44 +0530 | [diff] [blame] | 181 | u-boot,dm-spl; |
| 182 | pins { |
| 183 | u-boot,dm-spl; |
| 184 | }; |
| 185 | }; |
| 186 | |
| 187 | &uart4 { |
| 188 | u-boot,dm-pre-reloc; |
| 189 | }; |
| 190 | |
| 191 | &uart4_pins_b { |
| 192 | u-boot,dm-pre-reloc; |
| 193 | pins1 { |
| 194 | u-boot,dm-pre-reloc; |
| 195 | }; |
| 196 | pins2 { |
| 197 | u-boot,dm-pre-reloc; |
| 198 | }; |
| 199 | }; |
| 200 | |
| 201 | &usbotg_hs { |
| 202 | u-boot,force-b-session-valid; |
| 203 | hnp-srp-disable; |
| 204 | }; |