blob: ef3e7f45a3620905254ec2275e1764b4b3400398 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay06020d82018-03-12 10:46:17 +01002/*
3 * Copyright : STMicroelectronics 2018
Patrick Delaunay06020d82018-03-12 10:46:17 +01004 */
5
6#include <dt-bindings/clock/stm32mp1-clksrc.h>
Patrick Delaunay48c5e902020-03-06 17:54:41 +01007#include "stm32mp15-u-boot.dtsi"
Patrick Delaunay06020d82018-03-12 10:46:17 +01008#include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi"
9
10/ {
11 aliases {
Patrice Chotard00442d02019-02-12 16:50:38 +010012 i2c3 = &i2c4;
Patrick Delaunay06020d82018-03-12 10:46:17 +010013 mmc0 = &sdmmc1;
Patrick Delaunay8d050102018-03-20 10:54:52 +010014 mmc1 = &sdmmc2;
Patrick Delaunay06020d82018-03-12 10:46:17 +010015 };
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020016
Patrick Delaunay008d3c32019-02-27 17:01:20 +010017 config {
Patrick Delaunayae0931d02019-07-30 19:16:39 +020018 u-boot,boot-led = "heartbeat";
19 u-boot,error-led = "error";
Patrick Delaunay008d3c32019-02-27 17:01:20 +010020 st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
21 st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
22 };
23
Etienne Carrierec461e1a2020-06-05 09:24:30 +020024 firmware {
25 optee {
26 compatible = "linaro,optee-tz";
27 method = "smc";
28 };
29 };
30
31 reserved-memory {
32 optee@fe000000 {
33 reg = <0xfe000000 0x02000000>;
34 no-map;
35 };
36 };
37
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020038 led {
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020039 red {
Patrick Delaunayae0931d02019-07-30 19:16:39 +020040 label = "error";
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020041 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
42 default-state = "off";
Patrick Delaunayae0931d02019-07-30 19:16:39 +020043 status = "okay";
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020044 };
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020045 };
Patrick Delaunay06020d82018-03-12 10:46:17 +010046};
47
Patrick Delaunay0c220e02019-01-30 13:07:05 +010048&clk_hse {
49 st,digbypass;
50};
51
Patrice Chotard00442d02019-02-12 16:50:38 +010052&i2c4 {
Patrick Delaunay06020d82018-03-12 10:46:17 +010053 u-boot,dm-pre-reloc;
Patrick Delaunay06020d82018-03-12 10:46:17 +010054};
55
56&i2c4_pins_a {
57 u-boot,dm-pre-reloc;
58 pins {
59 u-boot,dm-pre-reloc;
60 };
61};
62
Patrick Delaunay06020d82018-03-12 10:46:17 +010063&pmic {
64 u-boot,dm-pre-reloc;
65};
66
Patrick Delaunay50599142018-07-09 15:17:19 +020067&rcc {
Patrick Delaunay06020d82018-03-12 10:46:17 +010068 st,clksrc = <
69 CLK_MPU_PLL1P
70 CLK_AXI_PLL2P
71 CLK_MCU_PLL3P
72 CLK_PLL12_HSE
73 CLK_PLL3_HSE
74 CLK_PLL4_HSE
75 CLK_RTC_LSE
76 CLK_MCO1_DISABLED
77 CLK_MCO2_DISABLED
78 >;
79
80 st,clkdiv = <
81 1 /*MPU*/
82 0 /*AXI*/
83 0 /*MCU*/
84 1 /*APB1*/
85 1 /*APB2*/
86 1 /*APB3*/
87 1 /*APB4*/
88 2 /*APB5*/
89 23 /*RTC*/
90 0 /*MCO1*/
91 0 /*MCO2*/
92 >;
93
94 st,pkcs = <
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020095 CLK_CKPER_HSE
96 CLK_FMC_ACLK
97 CLK_QSPI_ACLK
98 CLK_ETH_DISABLED
Patrick Delaunay0c220e02019-01-30 13:07:05 +010099 CLK_SDMMC12_PLL4P
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200100 CLK_DSI_DSIPLL
Patrick Delaunay1780a762018-03-20 11:41:26 +0100101 CLK_STGEN_HSE
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200102 CLK_USBPHY_HSE
103 CLK_SPI2S1_PLL3Q
104 CLK_SPI2S23_PLL3Q
105 CLK_SPI45_HSI
106 CLK_SPI6_HSI
107 CLK_I2C46_HSI
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100108 CLK_SDMMC3_PLL4P
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200109 CLK_USBO_USBPHY
110 CLK_ADC_CKPER
111 CLK_CEC_LSE
112 CLK_I2C12_HSI
113 CLK_I2C35_HSI
114 CLK_UART1_HSI
115 CLK_UART24_HSI
116 CLK_UART35_HSI
117 CLK_UART6_HSI
118 CLK_UART78_HSI
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100119 CLK_SPDIF_PLL4P
Antonio Borneo84159e82020-01-28 10:11:01 +0100120 CLK_FDCAN_PLL4R
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200121 CLK_SAI1_PLL3Q
122 CLK_SAI2_PLL3Q
123 CLK_SAI3_PLL3Q
124 CLK_SAI4_PLL3Q
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100125 CLK_RNG1_LSI
126 CLK_RNG2_LSI
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200127 CLK_LPTIM1_PCLK1
128 CLK_LPTIM23_PCLK3
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100129 CLK_LPTIM45_LSE
Patrick Delaunay06020d82018-03-12 10:46:17 +0100130 >;
131
Patrick Delaunay06020d82018-03-12 10:46:17 +0100132 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
133 pll2: st,pll@1 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100134 compatible = "st,stm32mp1-pll";
135 reg = <1>;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100136 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
137 frac = < 0x1400 >;
138 u-boot,dm-pre-reloc;
139 };
140
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100141 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
Patrick Delaunay06020d82018-03-12 10:46:17 +0100142 pll3: st,pll@2 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100143 compatible = "st,stm32mp1-pll";
144 reg = <2>;
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100145 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
146 frac = < 0x1a04 >;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100147 u-boot,dm-pre-reloc;
148 };
149
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100150 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
Patrick Delaunay06020d82018-03-12 10:46:17 +0100151 pll4: st,pll@3 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100152 compatible = "st,stm32mp1-pll";
153 reg = <3>;
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100154 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100155 u-boot,dm-pre-reloc;
156 };
157};
158
Patrick Delaunaya3705302019-07-11 11:15:28 +0200159&sdmmc1 {
160 u-boot,dm-spl;
Patrick Delaunay1535e772020-06-19 11:19:45 +0200161 broken-cd;
162 /delete-property/ cd-gpios;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200163};
164
Patrick Delaunay06020d82018-03-12 10:46:17 +0100165&sdmmc1_b4_pins_a {
166 u-boot,dm-spl;
Patrick Delaunay48c5e902020-03-06 17:54:41 +0100167 pins1 {
168 u-boot,dm-spl;
169 };
170 pins2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100171 u-boot,dm-spl;
172 };
173};
174
175&sdmmc1_dir_pins_a {
176 u-boot,dm-spl;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200177 pins1 {
178 u-boot,dm-spl;
179 };
180 pins2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100181 u-boot,dm-spl;
182 };
183};
184
Patrick Delaunaya3705302019-07-11 11:15:28 +0200185&sdmmc2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100186 u-boot,dm-spl;
187};
Patrick Delaunay8d050102018-03-20 10:54:52 +0100188
Patrick Delaunay8d050102018-03-20 10:54:52 +0100189&sdmmc2_b4_pins_a {
190 u-boot,dm-spl;
Patrick Delaunay2b0bbf52019-11-06 16:16:34 +0100191 pins1 {
192 u-boot,dm-spl;
193 };
194 pins2 {
Patrick Delaunay8d050102018-03-20 10:54:52 +0100195 u-boot,dm-spl;
196 };
197};
198
199&sdmmc2_d47_pins_a {
200 u-boot,dm-spl;
201 pins {
202 u-boot,dm-spl;
203 };
204};
205
Patrice Chotard00442d02019-02-12 16:50:38 +0100206&uart4 {
207 u-boot,dm-pre-reloc;
208};
209
210&uart4_pins_a {
211 u-boot,dm-pre-reloc;
212 pins1 {
213 u-boot,dm-pre-reloc;
214 };
215 pins2 {
216 u-boot,dm-pre-reloc;
Patrick Delaunay5179a852019-07-30 19:16:18 +0200217 /* pull-up on rx to avoid floating level */
218 bias-pull-up;
Patrice Chotard00442d02019-02-12 16:50:38 +0100219 };
220};