blob: fc6066aab2d824afea4e67e4c6e6f22812dab590 [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 };
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020014
Patrick Delaunay008d3c32019-02-27 17:01:20 +010015 config {
Patrick Delaunayae0931d02019-07-30 19:16:39 +020016 u-boot,boot-led = "heartbeat";
17 u-boot,error-led = "error";
Patrick Delaunay2ad1d362020-06-15 11:18:23 +020018 u-boot,mmc-env-partition = "ssbl";
Patrick Delaunay466d3af2021-07-09 09:53:37 +020019 st,fastboot-gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
20 st,stm32prog-gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
Patrick Delaunay008d3c32019-02-27 17:01:20 +010021 };
22
Etienne Carrierec461e1a2020-06-05 09:24:30 +020023 firmware {
24 optee {
25 compatible = "linaro,optee-tz";
26 method = "smc";
27 };
28 };
29
30 reserved-memory {
31 optee@fe000000 {
32 reg = <0xfe000000 0x02000000>;
33 no-map;
34 };
35 };
36
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020037 led {
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020038 red {
Patrick Delaunayae0931d02019-07-30 19:16:39 +020039 label = "error";
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020040 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
41 default-state = "off";
Patrick Delaunayae0931d02019-07-30 19:16:39 +020042 status = "okay";
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020043 };
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020044 };
Patrick Delaunay06020d82018-03-12 10:46:17 +010045};
46
Patrick Delaunay0c220e02019-01-30 13:07:05 +010047&clk_hse {
48 st,digbypass;
49};
50
Patrice Chotard00442d02019-02-12 16:50:38 +010051&i2c4 {
Patrick Delaunay06020d82018-03-12 10:46:17 +010052 u-boot,dm-pre-reloc;
Patrick Delaunay06020d82018-03-12 10:46:17 +010053};
54
55&i2c4_pins_a {
56 u-boot,dm-pre-reloc;
57 pins {
58 u-boot,dm-pre-reloc;
59 };
60};
61
Patrick Delaunay06020d82018-03-12 10:46:17 +010062&pmic {
63 u-boot,dm-pre-reloc;
64};
65
Patrick Delaunay50599142018-07-09 15:17:19 +020066&rcc {
Patrick Delaunay06020d82018-03-12 10:46:17 +010067 st,clksrc = <
68 CLK_MPU_PLL1P
69 CLK_AXI_PLL2P
70 CLK_MCU_PLL3P
71 CLK_PLL12_HSE
72 CLK_PLL3_HSE
73 CLK_PLL4_HSE
74 CLK_RTC_LSE
75 CLK_MCO1_DISABLED
76 CLK_MCO2_DISABLED
77 >;
78
79 st,clkdiv = <
80 1 /*MPU*/
81 0 /*AXI*/
82 0 /*MCU*/
83 1 /*APB1*/
84 1 /*APB2*/
85 1 /*APB3*/
86 1 /*APB4*/
87 2 /*APB5*/
88 23 /*RTC*/
89 0 /*MCO1*/
90 0 /*MCO2*/
91 >;
92
93 st,pkcs = <
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020094 CLK_CKPER_HSE
95 CLK_FMC_ACLK
96 CLK_QSPI_ACLK
97 CLK_ETH_DISABLED
Patrick Delaunay0c220e02019-01-30 13:07:05 +010098 CLK_SDMMC12_PLL4P
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020099 CLK_DSI_DSIPLL
Patrick Delaunay1780a762018-03-20 11:41:26 +0100100 CLK_STGEN_HSE
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200101 CLK_USBPHY_HSE
102 CLK_SPI2S1_PLL3Q
103 CLK_SPI2S23_PLL3Q
104 CLK_SPI45_HSI
105 CLK_SPI6_HSI
106 CLK_I2C46_HSI
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100107 CLK_SDMMC3_PLL4P
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200108 CLK_USBO_USBPHY
109 CLK_ADC_CKPER
110 CLK_CEC_LSE
111 CLK_I2C12_HSI
112 CLK_I2C35_HSI
113 CLK_UART1_HSI
114 CLK_UART24_HSI
115 CLK_UART35_HSI
116 CLK_UART6_HSI
117 CLK_UART78_HSI
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100118 CLK_SPDIF_PLL4P
Antonio Borneo84159e82020-01-28 10:11:01 +0100119 CLK_FDCAN_PLL4R
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200120 CLK_SAI1_PLL3Q
121 CLK_SAI2_PLL3Q
122 CLK_SAI3_PLL3Q
123 CLK_SAI4_PLL3Q
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100124 CLK_RNG1_LSI
125 CLK_RNG2_LSI
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200126 CLK_LPTIM1_PCLK1
127 CLK_LPTIM23_PCLK3
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100128 CLK_LPTIM45_LSE
Patrick Delaunay06020d82018-03-12 10:46:17 +0100129 >;
130
Patrick Delaunay06020d82018-03-12 10:46:17 +0100131 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
132 pll2: st,pll@1 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100133 compatible = "st,stm32mp1-pll";
134 reg = <1>;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100135 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
136 frac = < 0x1400 >;
137 u-boot,dm-pre-reloc;
138 };
139
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100140 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
Patrick Delaunay06020d82018-03-12 10:46:17 +0100141 pll3: st,pll@2 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100142 compatible = "st,stm32mp1-pll";
143 reg = <2>;
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100144 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
145 frac = < 0x1a04 >;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100146 u-boot,dm-pre-reloc;
147 };
148
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100149 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
Patrick Delaunay06020d82018-03-12 10:46:17 +0100150 pll4: st,pll@3 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100151 compatible = "st,stm32mp1-pll";
152 reg = <3>;
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100153 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100154 u-boot,dm-pre-reloc;
155 };
156};
157
Patrick Delaunaya3705302019-07-11 11:15:28 +0200158&sdmmc1 {
159 u-boot,dm-spl;
160};
161
Patrick Delaunay06020d82018-03-12 10:46:17 +0100162&sdmmc1_b4_pins_a {
163 u-boot,dm-spl;
Patrick Delaunay48c5e902020-03-06 17:54:41 +0100164 pins1 {
165 u-boot,dm-spl;
166 };
167 pins2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100168 u-boot,dm-spl;
169 };
170};
171
172&sdmmc1_dir_pins_a {
173 u-boot,dm-spl;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200174 pins1 {
175 u-boot,dm-spl;
176 };
177 pins2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100178 u-boot,dm-spl;
179 };
180};
181
Patrick Delaunaya3705302019-07-11 11:15:28 +0200182&sdmmc2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100183 u-boot,dm-spl;
184};
Patrick Delaunay8d050102018-03-20 10:54:52 +0100185
Patrick Delaunay8d050102018-03-20 10:54:52 +0100186&sdmmc2_b4_pins_a {
187 u-boot,dm-spl;
Patrick Delaunay2b0bbf52019-11-06 16:16:34 +0100188 pins1 {
189 u-boot,dm-spl;
190 };
191 pins2 {
Patrick Delaunay8d050102018-03-20 10:54:52 +0100192 u-boot,dm-spl;
193 };
194};
195
196&sdmmc2_d47_pins_a {
197 u-boot,dm-spl;
198 pins {
199 u-boot,dm-spl;
200 };
201};
202
Patrice Chotard00442d02019-02-12 16:50:38 +0100203&uart4 {
204 u-boot,dm-pre-reloc;
205};
206
207&uart4_pins_a {
208 u-boot,dm-pre-reloc;
209 pins1 {
210 u-boot,dm-pre-reloc;
211 };
212 pins2 {
213 u-boot,dm-pre-reloc;
Patrick Delaunay5179a852019-07-30 19:16:18 +0200214 /* pull-up on rx to avoid floating level */
215 bias-pull-up;
Patrice Chotard00442d02019-02-12 16:50:38 +0100216 };
217};