Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 1 | // 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 Delaunay | 48c5e90 | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 7 | #include "stm32mp15-u-boot.dtsi" |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 8 | #include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi" |
| 9 | |
| 10 | / { |
| 11 | aliases { |
| 12 | i2c3 = &i2c4; |
| 13 | mmc0 = &sdmmc1; |
Patrick Delaunay | 58bc0cd | 2019-03-29 15:42:23 +0100 | [diff] [blame] | 14 | usb0 = &usbotg_hs; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 15 | }; |
| 16 | config { |
| 17 | u-boot,boot-led = "heartbeat"; |
| 18 | u-boot,error-led = "error"; |
| 19 | st,adc_usb_pd = <&adc1 18>, <&adc1 19>; |
Patrick Delaunay | 3f030fb | 2019-07-30 19:16:17 +0200 | [diff] [blame] | 20 | st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
| 21 | st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 22 | }; |
| 23 | led { |
| 24 | red { |
| 25 | label = "error"; |
| 26 | gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
| 27 | default-state = "off"; |
| 28 | status = "okay"; |
| 29 | }; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 30 | }; |
| 31 | }; |
| 32 | |
Patrice Chotard | e861c20 | 2019-02-12 16:50:41 +0100 | [diff] [blame] | 33 | &adc { |
Patrice Chotard | e861c20 | 2019-02-12 16:50:41 +0100 | [diff] [blame] | 34 | status = "okay"; |
Patrice Chotard | e861c20 | 2019-02-12 16:50:41 +0100 | [diff] [blame] | 35 | }; |
| 36 | |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 37 | &clk_hse { |
| 38 | st,digbypass; |
| 39 | }; |
| 40 | |
| 41 | &i2c4 { |
| 42 | u-boot,dm-pre-reloc; |
| 43 | }; |
| 44 | |
| 45 | &i2c4_pins_a { |
| 46 | u-boot,dm-pre-reloc; |
| 47 | pins { |
| 48 | u-boot,dm-pre-reloc; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | &pmic { |
| 53 | u-boot,dm-pre-reloc; |
| 54 | }; |
| 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 |
Antonio Borneo | 84159e8 | 2020-01-28 10:11:01 +0100 | [diff] [blame] | 109 | CLK_FDCAN_PLL4R |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 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 = 1300.0 MHz => P = 650 (CPU) */ |
| 122 | pll1: st,pll@0 { |
Patrick Delaunay | c22caac | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 123 | compatible = "st,stm32mp1-pll"; |
| 124 | reg = <0>; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 125 | cfg = < 2 80 0 0 0 PQR(1,0,0) >; |
| 126 | frac = < 0x800 >; |
| 127 | u-boot,dm-pre-reloc; |
| 128 | }; |
| 129 | |
| 130 | /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */ |
| 131 | pll2: st,pll@1 { |
Patrick Delaunay | c22caac | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 132 | compatible = "st,stm32mp1-pll"; |
| 133 | reg = <1>; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 134 | cfg = < 2 65 1 0 0 PQR(1,1,1) >; |
| 135 | frac = < 0x1400 >; |
| 136 | u-boot,dm-pre-reloc; |
| 137 | }; |
| 138 | |
| 139 | /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */ |
| 140 | pll3: st,pll@2 { |
Patrick Delaunay | c22caac | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 141 | compatible = "st,stm32mp1-pll"; |
| 142 | reg = <2>; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 143 | cfg = < 1 33 1 16 36 PQR(1,1,1) >; |
| 144 | frac = < 0x1a04 >; |
| 145 | u-boot,dm-pre-reloc; |
| 146 | }; |
| 147 | |
| 148 | /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */ |
| 149 | pll4: st,pll@3 { |
Patrick Delaunay | c22caac | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 150 | compatible = "st,stm32mp1-pll"; |
| 151 | reg = <3>; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 152 | cfg = < 3 98 5 7 7 PQR(1,1,1) >; |
| 153 | u-boot,dm-pre-reloc; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | &sdmmc1 { |
| 158 | u-boot,dm-spl; |
| 159 | }; |
| 160 | |
| 161 | &sdmmc1_b4_pins_a { |
| 162 | u-boot,dm-spl; |
Patrick Delaunay | 48c5e90 | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 163 | pins1 { |
| 164 | u-boot,dm-spl; |
| 165 | }; |
| 166 | pins2 { |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 167 | u-boot,dm-spl; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | &uart4 { |
| 172 | u-boot,dm-pre-reloc; |
| 173 | }; |
| 174 | |
| 175 | &uart4_pins_a { |
| 176 | u-boot,dm-pre-reloc; |
| 177 | pins1 { |
| 178 | u-boot,dm-pre-reloc; |
| 179 | }; |
| 180 | pins2 { |
| 181 | u-boot,dm-pre-reloc; |
Patrick Delaunay | 5179a85 | 2019-07-30 19:16:18 +0200 | [diff] [blame] | 182 | /* pull-up on rx to avoid floating level */ |
| 183 | bias-pull-up; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 184 | }; |
| 185 | }; |
| 186 | |
| 187 | &usbotg_hs { |
Patrick Delaunay | 7f3384d | 2019-03-29 15:42:24 +0100 | [diff] [blame] | 188 | u-boot,force-b-session-valid; |
Patrice Chotard | 00442d0 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 189 | hnp-srp-disable; |
| 190 | }; |