blob: f3002e995bcfab267f20f88eb759580ba0f5db59 [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>
Patrick Delaunay1a4f57c2020-03-06 17:54:41 +01007#include "stm32mp15-u-boot.dtsi"
Patrick Delaunay3d2d1152018-03-12 10:46:17 +01008#include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi"
9
10/ {
11 aliases {
Patrice Chotard23661602019-02-12 16:50:38 +010012 i2c3 = &i2c4;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010013 mmc0 = &sdmmc1;
Patrick Delaunay0ed232b2018-03-20 10:54:52 +010014 mmc1 = &sdmmc2;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010015 };
Patrick Delaunay8e166512018-07-27 16:37:05 +020016
Patrick Delaunay9a2ba282019-02-27 17:01:20 +010017 config {
Patrick Delaunaydd281082019-07-30 19:16:39 +020018 u-boot,boot-led = "heartbeat";
19 u-boot,error-led = "error";
Patrick Delaunay76db1682020-06-15 11:18:23 +020020 u-boot,mmc-env-partition = "ssbl";
Patrick Delaunay9a2ba282019-02-27 17:01:20 +010021 st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
22 st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
23 };
24
Etienne Carriere9e696962020-06-05 09:24:30 +020025 firmware {
26 optee {
27 compatible = "linaro,optee-tz";
28 method = "smc";
29 };
30 };
31
32 reserved-memory {
33 optee@fe000000 {
34 reg = <0xfe000000 0x02000000>;
35 no-map;
36 };
37 };
38
Patrick Delaunay8e166512018-07-27 16:37:05 +020039 led {
Patrick Delaunay8e166512018-07-27 16:37:05 +020040 red {
Patrick Delaunaydd281082019-07-30 19:16:39 +020041 label = "error";
Patrick Delaunay8e166512018-07-27 16:37:05 +020042 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
43 default-state = "off";
Patrick Delaunaydd281082019-07-30 19:16:39 +020044 status = "okay";
Patrick Delaunay8e166512018-07-27 16:37:05 +020045 };
Patrick Delaunay8e166512018-07-27 16:37:05 +020046 };
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010047};
48
Patrick Delaunaye74b74c2019-01-30 13:07:05 +010049&clk_hse {
50 st,digbypass;
51};
52
Patrice Chotard23661602019-02-12 16:50:38 +010053&i2c4 {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010054 u-boot,dm-pre-reloc;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010055};
56
57&i2c4_pins_a {
58 u-boot,dm-pre-reloc;
59 pins {
60 u-boot,dm-pre-reloc;
61 };
62};
63
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010064&pmic {
65 u-boot,dm-pre-reloc;
66};
67
Patrick Delaunaya6743132018-07-09 15:17:19 +020068&rcc {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010069 st,clksrc = <
70 CLK_MPU_PLL1P
71 CLK_AXI_PLL2P
72 CLK_MCU_PLL3P
73 CLK_PLL12_HSE
74 CLK_PLL3_HSE
75 CLK_PLL4_HSE
76 CLK_RTC_LSE
77 CLK_MCO1_DISABLED
78 CLK_MCO2_DISABLED
79 >;
80
81 st,clkdiv = <
82 1 /*MPU*/
83 0 /*AXI*/
84 0 /*MCU*/
85 1 /*APB1*/
86 1 /*APB2*/
87 1 /*APB3*/
88 1 /*APB4*/
89 2 /*APB5*/
90 23 /*RTC*/
91 0 /*MCO1*/
92 0 /*MCO2*/
93 >;
94
95 st,pkcs = <
Patrick Delaunay8a07d5b2018-07-09 15:17:24 +020096 CLK_CKPER_HSE
97 CLK_FMC_ACLK
98 CLK_QSPI_ACLK
99 CLK_ETH_DISABLED
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100100 CLK_SDMMC12_PLL4P
Patrick Delaunay8a07d5b2018-07-09 15:17:24 +0200101 CLK_DSI_DSIPLL
Patrick Delaunayb90f0e72018-03-20 11:41:26 +0100102 CLK_STGEN_HSE
Patrick Delaunay8a07d5b2018-07-09 15:17:24 +0200103 CLK_USBPHY_HSE
104 CLK_SPI2S1_PLL3Q
105 CLK_SPI2S23_PLL3Q
106 CLK_SPI45_HSI
107 CLK_SPI6_HSI
108 CLK_I2C46_HSI
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100109 CLK_SDMMC3_PLL4P
Patrick Delaunay8a07d5b2018-07-09 15:17:24 +0200110 CLK_USBO_USBPHY
111 CLK_ADC_CKPER
112 CLK_CEC_LSE
113 CLK_I2C12_HSI
114 CLK_I2C35_HSI
115 CLK_UART1_HSI
116 CLK_UART24_HSI
117 CLK_UART35_HSI
118 CLK_UART6_HSI
119 CLK_UART78_HSI
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100120 CLK_SPDIF_PLL4P
Antonio Borneodb0cd2d2020-01-28 10:11:01 +0100121 CLK_FDCAN_PLL4R
Patrick Delaunay8a07d5b2018-07-09 15:17:24 +0200122 CLK_SAI1_PLL3Q
123 CLK_SAI2_PLL3Q
124 CLK_SAI3_PLL3Q
125 CLK_SAI4_PLL3Q
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100126 CLK_RNG1_LSI
127 CLK_RNG2_LSI
Patrick Delaunay8a07d5b2018-07-09 15:17:24 +0200128 CLK_LPTIM1_PCLK1
129 CLK_LPTIM23_PCLK3
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100130 CLK_LPTIM45_LSE
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100131 >;
132
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100133 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
134 pll2: st,pll@1 {
Patrick Delaunay8d93a972020-01-28 10:11:03 +0100135 compatible = "st,stm32mp1-pll";
136 reg = <1>;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100137 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
138 frac = < 0x1400 >;
139 u-boot,dm-pre-reloc;
140 };
141
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100142 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100143 pll3: st,pll@2 {
Patrick Delaunay8d93a972020-01-28 10:11:03 +0100144 compatible = "st,stm32mp1-pll";
145 reg = <2>;
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100146 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
147 frac = < 0x1a04 >;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100148 u-boot,dm-pre-reloc;
149 };
150
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100151 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100152 pll4: st,pll@3 {
Patrick Delaunay8d93a972020-01-28 10:11:03 +0100153 compatible = "st,stm32mp1-pll";
154 reg = <3>;
Patrick Delaunaye74b74c2019-01-30 13:07:05 +0100155 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100156 u-boot,dm-pre-reloc;
157 };
158};
159
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200160&sdmmc1 {
161 u-boot,dm-spl;
162};
163
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100164&sdmmc1_b4_pins_a {
165 u-boot,dm-spl;
Patrick Delaunay1a4f57c2020-03-06 17:54:41 +0100166 pins1 {
167 u-boot,dm-spl;
168 };
169 pins2 {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100170 u-boot,dm-spl;
171 };
172};
173
174&sdmmc1_dir_pins_a {
175 u-boot,dm-spl;
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200176 pins1 {
177 u-boot,dm-spl;
178 };
179 pins2 {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100180 u-boot,dm-spl;
181 };
182};
183
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200184&sdmmc2 {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100185 u-boot,dm-spl;
186};
Patrick Delaunay0ed232b2018-03-20 10:54:52 +0100187
Patrick Delaunay0ed232b2018-03-20 10:54:52 +0100188&sdmmc2_b4_pins_a {
189 u-boot,dm-spl;
Patrick Delaunay4d7d0e22019-11-06 16:16:34 +0100190 pins1 {
191 u-boot,dm-spl;
192 };
193 pins2 {
Patrick Delaunay0ed232b2018-03-20 10:54:52 +0100194 u-boot,dm-spl;
195 };
196};
197
198&sdmmc2_d47_pins_a {
199 u-boot,dm-spl;
200 pins {
201 u-boot,dm-spl;
202 };
203};
204
Patrice Chotard23661602019-02-12 16:50:38 +0100205&uart4 {
206 u-boot,dm-pre-reloc;
207};
208
209&uart4_pins_a {
210 u-boot,dm-pre-reloc;
211 pins1 {
212 u-boot,dm-pre-reloc;
213 };
214 pins2 {
215 u-boot,dm-pre-reloc;
Patrick Delaunay7acda7e2019-07-30 19:16:18 +0200216 /* pull-up on rx to avoid floating level */
217 bias-pull-up;
Patrice Chotard23661602019-02-12 16:50:38 +0100218 };
219};