blob: d6dc74636538ac79a8346fc1d152deccff0d8f95 [file] [log] [blame]
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +05301// 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>
10#include "stm32mp157-u-boot.dtsi"
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 Borneodb0cd2d2020-01-28 10:11:01 +010094 CLK_FDCAN_PLL4R
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +053095 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 Delaunay8d93a972020-01-28 10:11:03 +0100108 compatible = "st,stm32mp1-pll";
109 reg = <0>;
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +0530110 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 Delaunay8d93a972020-01-28 10:11:03 +0100117 compatible = "st,stm32mp1-pll";
118 reg = <1>;
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +0530119 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 Delaunay8d93a972020-01-28 10:11:03 +0100126 compatible = "st,stm32mp1-pll";
127 reg = <2>;
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +0530128 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 Delaunay8d93a972020-01-28 10:11:03 +0100135 compatible = "st,stm32mp1-pll";
136 reg = <3>;
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +0530137 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;
148 pins {
149 u-boot,dm-spl;
150 };
151};
152
153&sdmmc1_dir_pins_a {
154 u-boot,dm-spl;
155 pins {
156 u-boot,dm-spl;
157 };
158};
159
160&sdmmc2 {
161 u-boot,dm-spl;
162};
163
164&sdmmc2_b4_pins_a {
165 u-boot,dm-spl;
Patrick Delaunay4d7d0e22019-11-06 16:16:34 +0100166 pins1 {
167 u-boot,dm-spl;
168 };
169 pins2 {
Manivannan Sadhasivam93ffa2b2019-05-02 13:26:44 +0530170 u-boot,dm-spl;
171 };
172};
173
174&sdmmc2_d47_pins_a {
175 u-boot,dm-spl;
176 pins {
177 u-boot,dm-spl;
178 };
179};
180
181&uart4 {
182 u-boot,dm-pre-reloc;
183};
184
185&uart4_pins_b {
186 u-boot,dm-pre-reloc;
187 pins1 {
188 u-boot,dm-pre-reloc;
189 };
190 pins2 {
191 u-boot,dm-pre-reloc;
192 };
193};
194
195&usbotg_hs {
196 u-boot,force-b-session-valid;
197 hnp-srp-disable;
198};
199
200&v3v3 {
201 regulator-always-on;
202};