blob: 4b37797f21212426af5c0dd7a141b30abc91a58b [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 {
32 optee@de000000 {
33 reg = <0xde000000 0x02000000>;
34 no-map;
35 };
36 };
37
Patrice Chotard00442d02019-02-12 16:50:38 +010038 led {
39 red {
40 label = "error";
41 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
42 default-state = "off";
43 status = "okay";
44 };
Patrice Chotard00442d02019-02-12 16:50:38 +010045 };
46};
47
Patrice Chotarde861c202019-02-12 16:50:41 +010048&adc {
Patrice Chotarde861c202019-02-12 16:50:41 +010049 status = "okay";
Patrice Chotarde861c202019-02-12 16:50:41 +010050};
51
Patrice Chotard00442d02019-02-12 16:50:38 +010052&clk_hse {
53 st,digbypass;
54};
55
56&i2c4 {
57 u-boot,dm-pre-reloc;
58};
59
60&i2c4_pins_a {
61 u-boot,dm-pre-reloc;
62 pins {
63 u-boot,dm-pre-reloc;
64 };
65};
66
67&pmic {
68 u-boot,dm-pre-reloc;
69};
70
71&rcc {
72 st,clksrc = <
73 CLK_MPU_PLL1P
74 CLK_AXI_PLL2P
75 CLK_MCU_PLL3P
76 CLK_PLL12_HSE
77 CLK_PLL3_HSE
78 CLK_PLL4_HSE
79 CLK_RTC_LSE
80 CLK_MCO1_DISABLED
81 CLK_MCO2_DISABLED
82 >;
83
84 st,clkdiv = <
85 1 /*MPU*/
86 0 /*AXI*/
87 0 /*MCU*/
88 1 /*APB1*/
89 1 /*APB2*/
90 1 /*APB3*/
91 1 /*APB4*/
92 2 /*APB5*/
93 23 /*RTC*/
94 0 /*MCO1*/
95 0 /*MCO2*/
96 >;
97
98 st,pkcs = <
99 CLK_CKPER_HSE
100 CLK_FMC_ACLK
101 CLK_QSPI_ACLK
102 CLK_ETH_DISABLED
103 CLK_SDMMC12_PLL4P
104 CLK_DSI_DSIPLL
105 CLK_STGEN_HSE
106 CLK_USBPHY_HSE
107 CLK_SPI2S1_PLL3Q
108 CLK_SPI2S23_PLL3Q
109 CLK_SPI45_HSI
110 CLK_SPI6_HSI
111 CLK_I2C46_HSI
112 CLK_SDMMC3_PLL4P
113 CLK_USBO_USBPHY
114 CLK_ADC_CKPER
115 CLK_CEC_LSE
116 CLK_I2C12_HSI
117 CLK_I2C35_HSI
118 CLK_UART1_HSI
119 CLK_UART24_HSI
120 CLK_UART35_HSI
121 CLK_UART6_HSI
122 CLK_UART78_HSI
123 CLK_SPDIF_PLL4P
Antonio Borneo84159e82020-01-28 10:11:01 +0100124 CLK_FDCAN_PLL4R
Patrice Chotard00442d02019-02-12 16:50:38 +0100125 CLK_SAI1_PLL3Q
126 CLK_SAI2_PLL3Q
127 CLK_SAI3_PLL3Q
128 CLK_SAI4_PLL3Q
129 CLK_RNG1_LSI
130 CLK_RNG2_LSI
131 CLK_LPTIM1_PCLK1
132 CLK_LPTIM23_PCLK3
133 CLK_LPTIM45_LSE
134 >;
135
Patrice Chotard00442d02019-02-12 16:50:38 +0100136 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
137 pll2: st,pll@1 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100138 compatible = "st,stm32mp1-pll";
139 reg = <1>;
Patrice Chotard00442d02019-02-12 16:50:38 +0100140 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
141 frac = < 0x1400 >;
142 u-boot,dm-pre-reloc;
143 };
144
145 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
146 pll3: st,pll@2 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100147 compatible = "st,stm32mp1-pll";
148 reg = <2>;
Patrice Chotard00442d02019-02-12 16:50:38 +0100149 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
150 frac = < 0x1a04 >;
151 u-boot,dm-pre-reloc;
152 };
153
154 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
155 pll4: st,pll@3 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100156 compatible = "st,stm32mp1-pll";
157 reg = <3>;
Patrice Chotard00442d02019-02-12 16:50:38 +0100158 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
159 u-boot,dm-pre-reloc;
160 };
161};
162
163&sdmmc1 {
164 u-boot,dm-spl;
165};
166
167&sdmmc1_b4_pins_a {
168 u-boot,dm-spl;
Patrick Delaunay48c5e902020-03-06 17:54:41 +0100169 pins1 {
170 u-boot,dm-spl;
171 };
172 pins2 {
Patrice Chotard00442d02019-02-12 16:50:38 +0100173 u-boot,dm-spl;
174 };
175};
176
177&uart4 {
178 u-boot,dm-pre-reloc;
179};
180
181&uart4_pins_a {
182 u-boot,dm-pre-reloc;
183 pins1 {
184 u-boot,dm-pre-reloc;
185 };
186 pins2 {
187 u-boot,dm-pre-reloc;
Patrick Delaunay5179a852019-07-30 19:16:18 +0200188 /* pull-up on rx to avoid floating level */
189 bias-pull-up;
Patrice Chotard00442d02019-02-12 16:50:38 +0100190 };
191};
192
193&usbotg_hs {
Patrick Delaunay7f3384d2019-03-29 15:42:24 +0100194 u-boot,force-b-session-valid;
Patrice Chotard00442d02019-02-12 16:50:38 +0100195};