blob: 5b8be93512b5fac4cb261da2877f515f9dd76ea6 [file] [log] [blame]
Tom Rini4549e782018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay3d2d1152018-03-12 10:46:17 +01002/*
3 * Copyright : STMicroelectronics 2018
Patrick Delaunay3d2d1152018-03-12 10:46:17 +01004 */
5
6#include <dt-bindings/clock/stm32mp1-clksrc.h>
7#include "stm32mp157-u-boot.dtsi"
8#include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi"
9
10/ {
11 aliases {
12 mmc0 = &sdmmc1;
Patrick Delaunay0ed232b2018-03-20 10:54:52 +010013 mmc1 = &sdmmc2;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010014 i2c3 = &i2c4;
15 };
16};
17
18&uart4_pins_a {
19 u-boot,dm-pre-reloc;
20 pins1 {
21 u-boot,dm-pre-reloc;
22 };
23 pins2 {
24 u-boot,dm-pre-reloc;
25 };
26};
27
28&i2c4_pins_a {
29 u-boot,dm-pre-reloc;
30 pins {
31 u-boot,dm-pre-reloc;
32 };
33};
34
35&uart4 {
36 u-boot,dm-pre-reloc;
37};
38
39&i2c4 {
40 u-boot,dm-pre-reloc;
41};
42
43&pmic {
44 u-boot,dm-pre-reloc;
45};
46
47/* CLOCK init */
48&rcc_clk {
49 st,clksrc = <
50 CLK_MPU_PLL1P
51 CLK_AXI_PLL2P
52 CLK_MCU_PLL3P
53 CLK_PLL12_HSE
54 CLK_PLL3_HSE
55 CLK_PLL4_HSE
56 CLK_RTC_LSE
57 CLK_MCO1_DISABLED
58 CLK_MCO2_DISABLED
59 >;
60
61 st,clkdiv = <
62 1 /*MPU*/
63 0 /*AXI*/
64 0 /*MCU*/
65 1 /*APB1*/
66 1 /*APB2*/
67 1 /*APB3*/
68 1 /*APB4*/
69 2 /*APB5*/
70 23 /*RTC*/
71 0 /*MCO1*/
72 0 /*MCO2*/
73 >;
74
75 st,pkcs = <
76 CLK_CKPER_DISABLED
77 CLK_SDMMC12_PLL3R
Patrick Delaunayb90f0e72018-03-20 11:41:26 +010078 CLK_STGEN_HSE
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010079 CLK_I2C46_PCLK5
80 CLK_I2C12_PCLK1
Patrick Delaunay0ed232b2018-03-20 10:54:52 +010081 CLK_SDMMC3_PLL3R
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010082 CLK_I2C35_PCLK1
83 CLK_UART1_PCLK5
84 CLK_UART24_PCLK1
85 CLK_UART35_PCLK1
86 CLK_UART6_PCLK2
87 CLK_UART78_PCLK1
88 >;
89
90 /* VCO = 1300.0 MHz => P = 650 (CPU) */
91 pll1: st,pll@0 {
92 cfg = < 2 80 0 0 0 PQR(1,0,0) >;
93 frac = < 0x800 >;
94 u-boot,dm-pre-reloc;
95 };
96
97 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
98 pll2: st,pll@1 {
99 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
100 frac = < 0x1400 >;
101 u-boot,dm-pre-reloc;
102 };
103
104 /* VCO = 774.0 MHz => P = 194, Q = 37, R = 97 */
105 pll3: st,pll@2 {
106 cfg = < 3 128 3 20 7 PQR(1,1,1) >;
107 u-boot,dm-pre-reloc;
108 };
109
110 /* VCO = 508.0 MHz => P = 56, Q = 56, R = 56 */
111 pll4: st,pll@3 {
112 cfg = < 5 126 8 8 8 PQR(1,1,1) >;
113 u-boot,dm-pre-reloc;
114 };
115};
116
117/* SPL part **************************************/
118/* MMC1 boot */
119&sdmmc1_b4_pins_a {
120 u-boot,dm-spl;
121 pins {
122 u-boot,dm-spl;
123 };
124};
125
126&sdmmc1_dir_pins_a {
127 u-boot,dm-spl;
128 pins {
129 u-boot,dm-spl;
130 };
131};
132
133&sdmmc1 {
134 u-boot,dm-spl;
135};
Patrick Delaunay0ed232b2018-03-20 10:54:52 +0100136
137/* MMC2 boot */
138&sdmmc2_b4_pins_a {
139 u-boot,dm-spl;
140 pins {
141 u-boot,dm-spl;
142 };
143};
144
145&sdmmc2_d47_pins_a {
146 u-boot,dm-spl;
147 pins {
148 u-boot,dm-spl;
149 };
150};
151
152&sdmmc2 {
153 u-boot,dm-spl;
154};