blob: 630c96efd085937fa579fec8fcc90e4e92c7abbf [file] [log] [blame]
Jagan Tekic0f218b2021-03-16 21:52:03 +05301// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4 * Copyright (c) 2020 Amarula Solutions(India)
5 * Author: Jagan Teki <jagan@amarulasolutions.com>
6 */
7
8#include <dt-bindings/clock/stm32mp1-clksrc.h>
9#include "stm32mp15-u-boot.dtsi"
10#include "stm32mp15-ddr3-icore-1x4Gb-1066-binG.dtsi"
11
12&vddcore {
Simon Glassd3a98cb2023-02-13 08:56:33 -070013 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053014};
15
16&vdd {
Simon Glassd3a98cb2023-02-13 08:56:33 -070017 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053018};
19
20&vdd_usb {
Simon Glassd3a98cb2023-02-13 08:56:33 -070021 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053022};
23
24&vdda {
Simon Glassd3a98cb2023-02-13 08:56:33 -070025 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053026};
27
28&vdd_ddr {
Simon Glassd3a98cb2023-02-13 08:56:33 -070029 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053030};
31
32&vtt_ddr {
Simon Glassd3a98cb2023-02-13 08:56:33 -070033 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053034};
35
36&vref_ddr {
Simon Glassd3a98cb2023-02-13 08:56:33 -070037 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053038};
39
40&vdd_sd {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053042};
43
44&v3v3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070045 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053046};
47
48&v2v8 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070049 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053050};
51
52&v1v8 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070053 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +053054};
55
56&rcc {
57 st,clksrc = <
58 CLK_MPU_PLL1P
59 CLK_AXI_PLL2P
60 CLK_MCU_PLL3P
61 CLK_PLL12_HSE
62 CLK_PLL3_HSE
63 CLK_PLL4_HSE
64 CLK_RTC_LSE
65 CLK_MCO1_DISABLED
66 CLK_MCO2_DISABLED
67 >;
68
69 st,clkdiv = <
70 1 /*MPU*/
71 0 /*AXI*/
72 0 /*MCU*/
73 1 /*APB1*/
74 1 /*APB2*/
75 1 /*APB3*/
76 1 /*APB4*/
77 2 /*APB5*/
78 23 /*RTC*/
79 0 /*MCO1*/
80 0 /*MCO2*/
81 >;
82
83 st,pkcs = <
84 CLK_CKPER_HSE
85 CLK_FMC_ACLK
86 CLK_QSPI_ACLK
87 CLK_ETH_DISABLED
88 CLK_SDMMC12_PLL4P
89 CLK_DSI_DSIPLL
90 CLK_STGEN_HSE
91 CLK_USBPHY_HSE
92 CLK_SPI2S1_PLL3Q
93 CLK_SPI2S23_PLL3Q
94 CLK_SPI45_HSI
95 CLK_SPI6_HSI
96 CLK_I2C46_HSI
97 CLK_SDMMC3_PLL4P
98 CLK_USBO_USBPHY
99 CLK_ADC_CKPER
100 CLK_CEC_LSE
101 CLK_I2C12_HSI
102 CLK_I2C35_HSI
103 CLK_UART1_HSI
104 CLK_UART24_HSI
105 CLK_UART35_HSI
106 CLK_UART6_HSI
107 CLK_UART78_HSI
108 CLK_SPDIF_PLL4P
109 CLK_FDCAN_PLL4R
110 CLK_SAI1_PLL3Q
111 CLK_SAI2_PLL3Q
112 CLK_SAI3_PLL3Q
113 CLK_SAI4_PLL3Q
114 CLK_RNG1_LSI
115 CLK_RNG2_LSI
116 CLK_LPTIM1_PCLK1
117 CLK_LPTIM23_PCLK3
118 CLK_LPTIM45_LSE
119 >;
120
121 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
122 pll2: st,pll@1 {
123 compatible = "st,stm32mp1-pll";
124 reg = <1>;
125 cfg = < 2 65 1 0 0 PQR(1,1,1) >;
126 frac = < 0x1400 >;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700127 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +0530128 };
129
130 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
131 pll3: st,pll@2 {
132 compatible = "st,stm32mp1-pll";
133 reg = <2>;
134 cfg = < 1 33 1 16 36 PQR(1,1,1) >;
135 frac = < 0x1a04 >;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700136 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +0530137 };
138
139 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
140 pll4: st,pll@3 {
141 compatible = "st,stm32mp1-pll";
142 reg = <3>;
143 cfg = < 3 98 5 7 7 PQR(1,1,1) >;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700144 bootph-all;
Jagan Tekic0f218b2021-03-16 21:52:03 +0530145 };
146};