blob: 84af7fa47b78a54744a69850279bf11232fa8939 [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
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020024 led {
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020025 red {
Patrick Delaunayae0931d02019-07-30 19:16:39 +020026 label = "error";
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020027 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
28 default-state = "off";
Patrick Delaunayae0931d02019-07-30 19:16:39 +020029 status = "okay";
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020030 };
Patrick Delaunay1d6fa272018-07-27 16:37:05 +020031 };
Patrick Delaunay06020d82018-03-12 10:46:17 +010032};
33
Patrick Delaunay0c220e02019-01-30 13:07:05 +010034&clk_hse {
35 st,digbypass;
36};
37
Patrice Chotard00442d02019-02-12 16:50:38 +010038&i2c4 {
Patrick Delaunay06020d82018-03-12 10:46:17 +010039 u-boot,dm-pre-reloc;
Patrick Delaunay06020d82018-03-12 10:46:17 +010040};
41
42&i2c4_pins_a {
43 u-boot,dm-pre-reloc;
44 pins {
45 u-boot,dm-pre-reloc;
46 };
47};
48
Patrick Delaunay06020d82018-03-12 10:46:17 +010049&pmic {
50 u-boot,dm-pre-reloc;
51};
52
Patrick Delaunay50599142018-07-09 15:17:19 +020053&rcc {
Patrick Delaunay06020d82018-03-12 10:46:17 +010054 st,clksrc = <
55 CLK_MPU_PLL1P
56 CLK_AXI_PLL2P
57 CLK_MCU_PLL3P
58 CLK_PLL12_HSE
59 CLK_PLL3_HSE
60 CLK_PLL4_HSE
61 CLK_RTC_LSE
62 CLK_MCO1_DISABLED
63 CLK_MCO2_DISABLED
64 >;
65
66 st,clkdiv = <
67 1 /*MPU*/
68 0 /*AXI*/
69 0 /*MCU*/
70 1 /*APB1*/
71 1 /*APB2*/
72 1 /*APB3*/
73 1 /*APB4*/
74 2 /*APB5*/
75 23 /*RTC*/
76 0 /*MCO1*/
77 0 /*MCO2*/
78 >;
79
80 st,pkcs = <
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020081 CLK_CKPER_HSE
82 CLK_FMC_ACLK
83 CLK_QSPI_ACLK
84 CLK_ETH_DISABLED
Patrick Delaunay0c220e02019-01-30 13:07:05 +010085 CLK_SDMMC12_PLL4P
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020086 CLK_DSI_DSIPLL
Patrick Delaunay1780a762018-03-20 11:41:26 +010087 CLK_STGEN_HSE
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020088 CLK_USBPHY_HSE
89 CLK_SPI2S1_PLL3Q
90 CLK_SPI2S23_PLL3Q
91 CLK_SPI45_HSI
92 CLK_SPI6_HSI
93 CLK_I2C46_HSI
Patrick Delaunay0c220e02019-01-30 13:07:05 +010094 CLK_SDMMC3_PLL4P
Patrick Delaunaycdd0b732018-07-09 15:17:24 +020095 CLK_USBO_USBPHY
96 CLK_ADC_CKPER
97 CLK_CEC_LSE
98 CLK_I2C12_HSI
99 CLK_I2C35_HSI
100 CLK_UART1_HSI
101 CLK_UART24_HSI
102 CLK_UART35_HSI
103 CLK_UART6_HSI
104 CLK_UART78_HSI
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100105 CLK_SPDIF_PLL4P
Antonio Borneo84159e82020-01-28 10:11:01 +0100106 CLK_FDCAN_PLL4R
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200107 CLK_SAI1_PLL3Q
108 CLK_SAI2_PLL3Q
109 CLK_SAI3_PLL3Q
110 CLK_SAI4_PLL3Q
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100111 CLK_RNG1_LSI
112 CLK_RNG2_LSI
Patrick Delaunaycdd0b732018-07-09 15:17:24 +0200113 CLK_LPTIM1_PCLK1
114 CLK_LPTIM23_PCLK3
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100115 CLK_LPTIM45_LSE
Patrick Delaunay06020d82018-03-12 10:46:17 +0100116 >;
117
118 /* VCO = 1300.0 MHz => P = 650 (CPU) */
119 pll1: st,pll@0 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100120 compatible = "st,stm32mp1-pll";
121 reg = <0>;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100122 cfg = < 2 80 0 0 0 PQR(1,0,0) >;
123 frac = < 0x800 >;
124 u-boot,dm-pre-reloc;
125 };
126
127 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
128 pll2: st,pll@1 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100129 compatible = "st,stm32mp1-pll";
130 reg = <1>;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100131 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
132 frac = < 0x1400 >;
133 u-boot,dm-pre-reloc;
134 };
135
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100136 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
Patrick Delaunay06020d82018-03-12 10:46:17 +0100137 pll3: st,pll@2 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100138 compatible = "st,stm32mp1-pll";
139 reg = <2>;
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100140 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
141 frac = < 0x1a04 >;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100142 u-boot,dm-pre-reloc;
143 };
144
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100145 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
Patrick Delaunay06020d82018-03-12 10:46:17 +0100146 pll4: st,pll@3 {
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100147 compatible = "st,stm32mp1-pll";
148 reg = <3>;
Patrick Delaunay0c220e02019-01-30 13:07:05 +0100149 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100150 u-boot,dm-pre-reloc;
151 };
152};
153
Patrick Delaunaya3705302019-07-11 11:15:28 +0200154&sdmmc1 {
155 u-boot,dm-spl;
156};
157
Patrick Delaunay06020d82018-03-12 10:46:17 +0100158&sdmmc1_b4_pins_a {
159 u-boot,dm-spl;
Patrick Delaunay48c5e902020-03-06 17:54:41 +0100160 pins1 {
161 u-boot,dm-spl;
162 };
163 pins2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100164 u-boot,dm-spl;
165 };
166};
167
168&sdmmc1_dir_pins_a {
169 u-boot,dm-spl;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200170 pins1 {
171 u-boot,dm-spl;
172 };
173 pins2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100174 u-boot,dm-spl;
175 };
176};
177
Patrick Delaunaya3705302019-07-11 11:15:28 +0200178&sdmmc2 {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100179 u-boot,dm-spl;
180};
Patrick Delaunay8d050102018-03-20 10:54:52 +0100181
Patrick Delaunay8d050102018-03-20 10:54:52 +0100182&sdmmc2_b4_pins_a {
183 u-boot,dm-spl;
Patrick Delaunay2b0bbf52019-11-06 16:16:34 +0100184 pins1 {
185 u-boot,dm-spl;
186 };
187 pins2 {
Patrick Delaunay8d050102018-03-20 10:54:52 +0100188 u-boot,dm-spl;
189 };
190};
191
192&sdmmc2_d47_pins_a {
193 u-boot,dm-spl;
194 pins {
195 u-boot,dm-spl;
196 };
197};
198
Patrice Chotard00442d02019-02-12 16:50:38 +0100199&uart4 {
200 u-boot,dm-pre-reloc;
201};
202
203&uart4_pins_a {
204 u-boot,dm-pre-reloc;
205 pins1 {
206 u-boot,dm-pre-reloc;
207 };
208 pins2 {
209 u-boot,dm-pre-reloc;
Patrick Delaunay5179a852019-07-30 19:16:18 +0200210 /* pull-up on rx to avoid floating level */
211 bias-pull-up;
Patrice Chotard00442d02019-02-12 16:50:38 +0100212 };
213};