Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (C) 2020 Marcin Sloniewski <marcin.sloniewski@gmail.com> |
| 4 | */ |
| 5 | |
| 6 | #include <dt-bindings/clock/stm32mp1-clksrc.h> |
| 7 | #include "stm32mp15-u-boot.dtsi" |
| 8 | #include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi" |
| 9 | |
| 10 | / { |
| 11 | config { |
| 12 | u-boot,boot-led = "heartbeat"; |
| 13 | }; |
| 14 | }; |
| 15 | |
| 16 | &clk_hse { |
| 17 | st,digbypass; |
| 18 | }; |
| 19 | |
| 20 | &i2c2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 21 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | &i2c2_pins_a { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 25 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 26 | pins { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 27 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 28 | }; |
| 29 | }; |
| 30 | |
| 31 | &pmic { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | &rcc { |
| 36 | st,clksrc = < |
| 37 | CLK_MPU_PLL1P |
| 38 | CLK_AXI_PLL2P |
| 39 | CLK_MCU_PLL3P |
| 40 | CLK_PLL12_HSE |
| 41 | CLK_PLL3_HSE |
| 42 | CLK_PLL4_HSE |
| 43 | CLK_RTC_LSE |
| 44 | CLK_MCO1_DISABLED |
| 45 | CLK_MCO2_DISABLED |
| 46 | >; |
| 47 | |
| 48 | st,clkdiv = < |
| 49 | 1 /*MPU*/ |
| 50 | 0 /*AXI*/ |
| 51 | 0 /*MCU*/ |
| 52 | 1 /*APB1*/ |
| 53 | 1 /*APB2*/ |
| 54 | 1 /*APB3*/ |
| 55 | 1 /*APB4*/ |
| 56 | 2 /*APB5*/ |
| 57 | 23 /*RTC*/ |
| 58 | 0 /*MCO1*/ |
| 59 | 0 /*MCO2*/ |
| 60 | >; |
| 61 | |
| 62 | st,pkcs = < |
| 63 | CLK_CKPER_HSE |
| 64 | CLK_FMC_ACLK |
| 65 | CLK_QSPI_ACLK |
| 66 | CLK_ETH_DISABLED |
| 67 | CLK_SDMMC12_PLL4P |
| 68 | CLK_DSI_DSIPLL |
| 69 | CLK_STGEN_HSE |
| 70 | CLK_USBPHY_HSE |
| 71 | CLK_SPI2S1_PLL3Q |
| 72 | CLK_SPI2S23_PLL3Q |
| 73 | CLK_SPI45_HSI |
| 74 | CLK_SPI6_HSI |
| 75 | CLK_I2C46_HSI |
| 76 | CLK_SDMMC3_PLL4P |
| 77 | CLK_USBO_USBPHY |
| 78 | CLK_ADC_CKPER |
| 79 | CLK_CEC_LSE |
| 80 | CLK_I2C12_HSI |
| 81 | CLK_I2C35_HSI |
| 82 | CLK_UART1_HSI |
| 83 | CLK_UART24_HSI |
| 84 | CLK_UART35_HSI |
| 85 | CLK_UART6_HSI |
| 86 | CLK_UART78_HSI |
| 87 | CLK_SPDIF_PLL4P |
| 88 | CLK_FDCAN_PLL4R |
| 89 | CLK_SAI1_PLL3Q |
| 90 | CLK_SAI2_PLL3Q |
| 91 | CLK_SAI3_PLL3Q |
| 92 | CLK_SAI4_PLL3Q |
| 93 | CLK_RNG1_LSI |
| 94 | CLK_RNG2_LSI |
| 95 | CLK_LPTIM1_PCLK1 |
| 96 | CLK_LPTIM23_PCLK3 |
| 97 | CLK_LPTIM45_LSE |
| 98 | >; |
| 99 | |
| 100 | /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */ |
| 101 | pll2: st,pll@1 { |
| 102 | compatible = "st,stm32mp1-pll"; |
| 103 | reg = <1>; |
| 104 | cfg = < 2 65 1 0 0 PQR(1,1,1) >; |
| 105 | frac = < 0x1400 >; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 106 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */ |
| 110 | pll3: st,pll@2 { |
| 111 | compatible = "st,stm32mp1-pll"; |
| 112 | reg = <2>; |
| 113 | cfg = < 1 33 1 16 36 PQR(1,1,1) >; |
| 114 | frac = < 0x1a04 >; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 115 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 116 | }; |
| 117 | |
| 118 | /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */ |
| 119 | pll4: st,pll@3 { |
| 120 | compatible = "st,stm32mp1-pll"; |
| 121 | reg = <3>; |
| 122 | cfg = < 3 98 5 7 7 PQR(1,1,1) >; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 123 | bootph-all; |
Marcin Sloniewski | 83e7c20 | 2020-07-08 19:56:22 +0200 | [diff] [blame] | 124 | }; |
| 125 | }; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 126 | |
| 127 | &sdmmc2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 128 | bootph-pre-ram; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 129 | }; |
| 130 | |
| 131 | &sdmmc2_b4_pins_a { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 132 | bootph-pre-ram; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 133 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 134 | bootph-pre-ram; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 135 | }; |
| 136 | pins2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 137 | bootph-pre-ram; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 138 | }; |
| 139 | }; |
| 140 | |
| 141 | &sdmmc2_d47_pins_d { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 142 | bootph-pre-ram; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 143 | pins { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 144 | bootph-pre-ram; |
Grzegorz Szymaszek | 885d234 | 2021-06-02 19:09:18 +0200 | [diff] [blame] | 145 | }; |
| 146 | }; |