blob: a8e15ad09a3ea3203e6b957d4881f50a1f548e65 [file] [log] [blame]
Patrice Chotard00442d02019-02-12 16:50:38 +01001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2/*
3 * Copyright : STMicroelectronics 2018
4 */
5
6#include <dt-bindings/clock/stm32mp1-clksrc.h>
Patrick Delaunay48c5e902020-03-06 17:54:41 +01007#include "stm32mp15-u-boot.dtsi"
Patrice Chotard00442d02019-02-12 16:50:38 +01008#include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi"
9
10/ {
11 aliases {
12 i2c3 = &i2c4;
Patrick Delaunay58bc0cd2019-03-29 15:42:23 +010013 usb0 = &usbotg_hs;
Patrice Chotard00442d02019-02-12 16:50:38 +010014 };
15 config {
16 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";
Patrice Chotard00442d02019-02-12 16:50:38 +010019 st,adc_usb_pd = <&adc1 18>, <&adc1 19>;
Patrick Delaunay466d3af2021-07-09 09:53:37 +020020 st,fastboot-gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
21 st,stm32prog-gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
Patrice Chotard00442d02019-02-12 16:50:38 +010022 };
Etienne Carrierec461e1a2020-06-05 09:24:30 +020023
24 firmware {
25 optee {
26 compatible = "linaro,optee-tz";
27 method = "smc";
28 };
29 };
30
31 reserved-memory {
Alexandru Gagniuc9bf2f5b2021-07-15 14:19:27 -050032 u-boot,dm-spl;
33
Etienne Carrierec461e1a2020-06-05 09:24:30 +020034 optee@de000000 {
35 reg = <0xde000000 0x02000000>;
36 no-map;
Alexandru Gagniuc9bf2f5b2021-07-15 14:19:27 -050037 u-boot,dm-spl;
Etienne Carrierec461e1a2020-06-05 09:24:30 +020038 };
39 };
40
Patrice Chotard00442d02019-02-12 16:50:38 +010041 led {
42 red {
43 label = "error";
44 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
45 default-state = "off";
46 status = "okay";
47 };
Patrice Chotard00442d02019-02-12 16:50:38 +010048 };
49};
50
Patrice Chotarde861c202019-02-12 16:50:41 +010051&adc {
Patrice Chotarde861c202019-02-12 16:50:41 +010052 status = "okay";
Patrice Chotarde861c202019-02-12 16:50:41 +010053};
54
Patrice Chotard00442d02019-02-12 16:50:38 +010055&clk_hse {
56 st,digbypass;
57};
58
59&i2c4 {
60 u-boot,dm-pre-reloc;
61};
62
63&i2c4_pins_a {
64 u-boot,dm-pre-reloc;
65 pins {
66 u-boot,dm-pre-reloc;
67 };
68};
69
70&pmic {
71 u-boot,dm-pre-reloc;
72};
73
74&rcc {
75 st,clksrc = <
76 CLK_MPU_PLL1P
77 CLK_AXI_PLL2P
78 CLK_MCU_PLL3P
79 CLK_PLL12_HSE
80 CLK_PLL3_HSE
81 CLK_PLL4_HSE
82 CLK_RTC_LSE
83 CLK_MCO1_DISABLED
84 CLK_MCO2_DISABLED
85 >;
86
87 st,clkdiv = <
88 1 /*MPU*/
89 0 /*AXI*/
90 0 /*MCU*/
91 1 /*APB1*/
92 1 /*APB2*/
93 1 /*APB3*/
94 1 /*APB4*/
95 2 /*APB5*/
96 23 /*RTC*/
97 0 /*MCO1*/
98 0 /*MCO2*/
99 >;
100
101 st,pkcs = <
102 CLK_CKPER_HSE
103 CLK_FMC_ACLK
104 CLK_QSPI_ACLK
105 CLK_ETH_DISABLED
106 CLK_SDMMC12_PLL4P
107 CLK_DSI_DSIPLL
108 CLK_STGEN_HSE
109 CLK_USBPHY_HSE
110 CLK_SPI2S1_PLL3Q
111 CLK_SPI2S23_PLL3Q
112 CLK_SPI45_HSI
113 CLK_SPI6_HSI
114 CLK_I2C46_HSI
115 CLK_SDMMC3_PLL4P
116 CLK_USBO_USBPHY
117 CLK_ADC_CKPER
118 CLK_CEC_LSE
119 CLK_I2C12_HSI
120 CLK_I2C35_HSI
121 CLK_UART1_HSI
122 CLK_UART24_HSI
123 CLK_UART35_HSI
124 CLK_UART6_HSI
125 CLK_UART78_HSI
126 CLK_SPDIF_PLL4P
Antonio Borneo84159e82020-01-28 10:11:01 +0100127 CLK_FDCAN_PLL4R
Patrice Chotard00442d02019-02-12 16:50:38 +0100128 CLK_SAI1_PLL3Q
129 CLK_SAI2_PLL3Q
130 CLK_SAI3_PLL3Q
131 CLK_SAI4_PLL3Q
132 CLK_RNG1_LSI
133 CLK_RNG2_LSI
134 CLK_LPTIM1_PCLK1
135 CLK_LPTIM23_PCLK3
136 CLK_LPTIM45_LSE
137 >;
138
Patrice Chotard00442d02019-02-12 16:50:38 +0100139 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
140 pll2: st,pll@1 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100141 compatible = "st,stm32mp1-pll";
142 reg = <1>;
Patrice Chotard00442d02019-02-12 16:50:38 +0100143 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
144 frac = < 0x1400 >;
145 u-boot,dm-pre-reloc;
146 };
147
148 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
149 pll3: st,pll@2 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100150 compatible = "st,stm32mp1-pll";
151 reg = <2>;
Patrice Chotard00442d02019-02-12 16:50:38 +0100152 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
153 frac = < 0x1a04 >;
154 u-boot,dm-pre-reloc;
155 };
156
157 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
158 pll4: st,pll@3 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100159 compatible = "st,stm32mp1-pll";
160 reg = <3>;
Patrice Chotard00442d02019-02-12 16:50:38 +0100161 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
162 u-boot,dm-pre-reloc;
163 };
164};
165
166&sdmmc1 {
167 u-boot,dm-spl;
168};
169
170&sdmmc1_b4_pins_a {
171 u-boot,dm-spl;
Patrick Delaunay48c5e902020-03-06 17:54:41 +0100172 pins1 {
173 u-boot,dm-spl;
174 };
175 pins2 {
Patrice Chotard00442d02019-02-12 16:50:38 +0100176 u-boot,dm-spl;
177 };
178};
179
180&uart4 {
181 u-boot,dm-pre-reloc;
182};
183
184&uart4_pins_a {
185 u-boot,dm-pre-reloc;
186 pins1 {
187 u-boot,dm-pre-reloc;
188 };
189 pins2 {
190 u-boot,dm-pre-reloc;
Patrick Delaunay5179a852019-07-30 19:16:18 +0200191 /* pull-up on rx to avoid floating level */
192 bias-pull-up;
Patrice Chotard00442d02019-02-12 16:50:38 +0100193 };
194};
195
196&usbotg_hs {
Patrick Delaunay7f3384d2019-03-29 15:42:24 +0100197 u-boot,force-b-session-valid;
Patrice Chotard00442d02019-02-12 16:50:38 +0100198};