Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | #include <stm32f7-u-boot.dtsi> |
| 4 | /{ |
| 5 | chosen { |
| 6 | bootargs = "root=/dev/ram rdinit=/linuxrc"; |
| 7 | }; |
| 8 | |
| 9 | aliases { |
| 10 | /* Aliases for gpios so as to use sequence */ |
| 11 | gpio0 = &gpioa; |
| 12 | gpio1 = &gpiob; |
| 13 | gpio2 = &gpioc; |
| 14 | gpio3 = &gpiod; |
| 15 | gpio4 = &gpioe; |
| 16 | gpio5 = &gpiof; |
| 17 | gpio6 = &gpiog; |
| 18 | gpio7 = &gpioh; |
| 19 | gpio8 = &gpioi; |
| 20 | gpio9 = &gpioj; |
| 21 | gpio10 = &gpiok; |
| 22 | mmc0 = &sdio2; |
| 23 | spi0 = &qspi; |
| 24 | }; |
| 25 | |
| 26 | button1 { |
| 27 | compatible = "st,button1"; |
| 28 | button-gpio = <&gpioa 0 0>; |
| 29 | }; |
| 30 | |
| 31 | led1 { |
| 32 | compatible = "st,led1"; |
| 33 | led-gpio = <&gpioj 5 0>; |
| 34 | }; |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 35 | |
| 36 | panel: panel { |
| 37 | compatible = "orisetech,otm8009a"; |
| 38 | reset-gpios = <&gpioj 15 1>; |
| 39 | status = "okay"; |
| 40 | |
| 41 | port { |
| 42 | panel_in: endpoint { |
| 43 | remote-endpoint = <&dsi_out>; |
| 44 | }; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | soc { |
| 49 | dsi: dsi@40016c00 { |
| 50 | compatible = "st,stm32-dsi"; |
Patrice Chotard | f1a3eb5 | 2021-11-15 11:39:14 +0100 | [diff] [blame] | 51 | reg = <0x40016c00 0x800>; |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 52 | resets = <&rcc STM32F7_APB2_RESET(DSI)>; |
Patrice Chotard | f1a3eb5 | 2021-11-15 11:39:14 +0100 | [diff] [blame] | 53 | clocks = <&rcc 0 STM32F7_APB2_CLOCK(DSI)>, |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 54 | <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>, |
| 55 | <&clk_hse>; |
| 56 | clock-names = "pclk", "px_clk", "ref"; |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 57 | bootph-all; |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 58 | status = "okay"; |
| 59 | |
| 60 | ports { |
| 61 | port@0 { |
| 62 | dsi_out: endpoint { |
| 63 | remote-endpoint = <&panel_in>; |
| 64 | }; |
| 65 | }; |
| 66 | port@1 { |
| 67 | dsi_in: endpoint { |
| 68 | remote-endpoint = <&dp_out>; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | }; |
Dario Binacchi | 555cf4c | 2023-11-11 11:44:36 +0100 | [diff] [blame] | 73 | }; |
| 74 | }; |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 75 | |
Dario Binacchi | 555cf4c | 2023-11-11 11:44:36 +0100 | [diff] [blame] | 76 | <dc { |
| 77 | clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>; |
| 78 | bootph-all; |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 79 | |
Dario Binacchi | 555cf4c | 2023-11-11 11:44:36 +0100 | [diff] [blame] | 80 | ports { |
| 81 | port@0 { |
| 82 | dp_out: endpoint { |
| 83 | remote-endpoint = <&dsi_in>; |
Yannick Fertré | 30173ba | 2019-10-07 15:29:11 +0200 | [diff] [blame] | 84 | }; |
| 85 | }; |
| 86 | }; |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | &fmc { |
| 90 | /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */ |
| 91 | bank1: bank@0 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 92 | bootph-all; |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 93 | st,sdram-control = /bits/ 8 <NO_COL_8 |
| 94 | NO_ROW_12 |
| 95 | MWIDTH_32 |
| 96 | BANKS_4 |
| 97 | CAS_3 |
| 98 | SDCLK_2 |
| 99 | RD_BURST_EN |
| 100 | RD_PIPE_DL_0>; |
| 101 | st,sdram-timing = /bits/ 8 <TMRD_2 |
| 102 | TXSR_6 |
| 103 | TRAS_4 |
| 104 | TRC_6 |
| 105 | TWR_2 |
| 106 | TRP_2 |
| 107 | TRCD_2>; |
| 108 | /* refcount = (64msec/total_row_sdram)*freq - 20 */ |
| 109 | st,sdram-refcount = < 1542 >; |
| 110 | }; |
| 111 | }; |
| 112 | |
| 113 | &pinctrl { |
| 114 | ethernet_mii: mii@0 { |
| 115 | pins { |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 116 | pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */ |
| 117 | <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */ |
| 118 | <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */ |
| 119 | <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */ |
| 120 | <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */ |
| 121 | <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */ |
| 122 | <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */ |
| 123 | <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */ |
| 124 | <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 125 | slew-rate = <2>; |
| 126 | }; |
| 127 | }; |
| 128 | |
| 129 | fmc_pins: fmc@0 { |
| 130 | pins { |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 131 | pinmux = <STM32_PINMUX('I',10, AF12)>, /* D31 */ |
| 132 | <STM32_PINMUX('I', 9, AF12)>, /* D30 */ |
| 133 | <STM32_PINMUX('I', 7, AF12)>, /* D29 */ |
| 134 | <STM32_PINMUX('I', 6, AF12)>, /* D28 */ |
| 135 | <STM32_PINMUX('I', 3, AF12)>, /* D27 */ |
| 136 | <STM32_PINMUX('I', 2, AF12)>, /* D26 */ |
| 137 | <STM32_PINMUX('I', 1, AF12)>, /* D25 */ |
| 138 | <STM32_PINMUX('I', 0, AF12)>, /* D24 */ |
| 139 | <STM32_PINMUX('H',15, AF12)>, /* D23 */ |
| 140 | <STM32_PINMUX('H',14, AF12)>, /* D22 */ |
| 141 | <STM32_PINMUX('H',13, AF12)>, /* D21 */ |
| 142 | <STM32_PINMUX('H',12, AF12)>, /* D20 */ |
| 143 | <STM32_PINMUX('H',11, AF12)>, /* D19 */ |
| 144 | <STM32_PINMUX('H',10, AF12)>, /* D18 */ |
| 145 | <STM32_PINMUX('H', 9, AF12)>, /* D17 */ |
| 146 | <STM32_PINMUX('H', 8, AF12)>, /* D16 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 147 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 148 | <STM32_PINMUX('D',10, AF12)>, /* D15 */ |
| 149 | <STM32_PINMUX('D', 9, AF12)>, /* D14 */ |
| 150 | <STM32_PINMUX('D', 8, AF12)>, /* D13 */ |
| 151 | <STM32_PINMUX('E',15, AF12)>, /* D12 */ |
| 152 | <STM32_PINMUX('E',14, AF12)>, /* D11 */ |
| 153 | <STM32_PINMUX('E',13, AF12)>, /* D10 */ |
| 154 | <STM32_PINMUX('E',12, AF12)>, /* D9 */ |
| 155 | <STM32_PINMUX('E',11, AF12)>, /* D8 */ |
| 156 | <STM32_PINMUX('E',10, AF12)>, /* D7 */ |
| 157 | <STM32_PINMUX('E', 9, AF12)>, /* D6 */ |
| 158 | <STM32_PINMUX('E', 8, AF12)>, /* D5 */ |
| 159 | <STM32_PINMUX('E', 7, AF12)>, /* D4 */ |
| 160 | <STM32_PINMUX('D', 1, AF12)>, /* D3 */ |
| 161 | <STM32_PINMUX('D', 0, AF12)>, /* D2 */ |
| 162 | <STM32_PINMUX('D',15, AF12)>, /* D1 */ |
| 163 | <STM32_PINMUX('D',14, AF12)>, /* D0 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 164 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 165 | <STM32_PINMUX('I', 5, AF12)>, /* NBL3 */ |
| 166 | <STM32_PINMUX('I', 4, AF12)>, /* NBL2 */ |
| 167 | <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */ |
| 168 | <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 169 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 170 | <STM32_PINMUX('G', 5, AF12)>, /* BA1 */ |
| 171 | <STM32_PINMUX('G', 4, AF12)>, /* BA0 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 172 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 173 | <STM32_PINMUX('G', 1, AF12)>, /* A11 */ |
| 174 | <STM32_PINMUX('G', 0, AF12)>, /* A10 */ |
| 175 | <STM32_PINMUX('F',15, AF12)>, /* A9 */ |
| 176 | <STM32_PINMUX('F',14, AF12)>, /* A8 */ |
| 177 | <STM32_PINMUX('F',13, AF12)>, /* A7 */ |
| 178 | <STM32_PINMUX('F',12, AF12)>, /* A6 */ |
| 179 | <STM32_PINMUX('F', 5, AF12)>, /* A5 */ |
| 180 | <STM32_PINMUX('F', 4, AF12)>, /* A4 */ |
| 181 | <STM32_PINMUX('F', 3, AF12)>, /* A3 */ |
| 182 | <STM32_PINMUX('F', 2, AF12)>, /* A2 */ |
| 183 | <STM32_PINMUX('F', 1, AF12)>, /* A1 */ |
| 184 | <STM32_PINMUX('F', 0, AF12)>, /* A0 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 185 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 186 | <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */ |
| 187 | <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */ |
| 188 | <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */ |
| 189 | <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */ |
| 190 | <STM32_PINMUX('H', 2, AF12)>, /* SDCKE0 */ |
| 191 | <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 192 | slew-rate = <2>; |
| 193 | }; |
| 194 | }; |
| 195 | |
| 196 | qspi_pins: qspi@0 { |
| 197 | pins { |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 198 | pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */ |
| 199 | <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */ |
| 200 | <STM32_PINMUX('C', 9, AF9)>, /* BK1_IO0 */ |
| 201 | <STM32_PINMUX('C',10, AF9)>, /* BK1_IO1 */ |
| 202 | <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */ |
| 203 | <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */ |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 204 | slew-rate = <2>; |
| 205 | }; |
| 206 | }; |
Patrice Chotard | b8e8fdf | 2019-06-25 10:06:05 +0200 | [diff] [blame] | 207 | |
Patrice Chotard | 61c88ac | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 208 | usart1_pins_a: usart1-0 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 209 | bootph-all; |
Patrice Chotard | b8e8fdf | 2019-06-25 10:06:05 +0200 | [diff] [blame] | 210 | pins1 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 211 | bootph-all; |
Patrice Chotard | b8e8fdf | 2019-06-25 10:06:05 +0200 | [diff] [blame] | 212 | }; |
| 213 | pins2 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 214 | bootph-all; |
Patrice Chotard | b8e8fdf | 2019-06-25 10:06:05 +0200 | [diff] [blame] | 215 | }; |
| 216 | }; |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 217 | }; |
| 218 | |
| 219 | &qspi { |
Patrice Chotard | f1a3eb5 | 2021-11-15 11:39:14 +0100 | [diff] [blame] | 220 | reg = <0xa0001000 0x1000>, <0x90000000 0x4000000>; |
Patrice Chotard | 61c88ac | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 221 | flash0: mx66l51235l@0 { |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 222 | #address-cells = <1>; |
| 223 | #size-cells = <1>; |
Patrice Chotard | b42721d | 2019-04-29 17:39:29 +0200 | [diff] [blame] | 224 | compatible = "jedec,spi-nor"; |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 225 | spi-max-frequency = <108000000>; |
Patrice Chotard | 78d5b61 | 2019-04-30 11:32:42 +0200 | [diff] [blame] | 226 | spi-tx-bus-width = <4>; |
Patrice Chotard | 01aabf9 | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 227 | spi-rx-bus-width = <4>; |
| 228 | reg = <0>; |
| 229 | }; |
| 230 | }; |