Patrice Chotard | df2e02a | 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; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 22 | mmc0 = &sdio1; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 23 | spi0 = &qspi; |
| 24 | }; |
| 25 | |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 26 | button1 { |
| 27 | compatible = "st,button1"; |
| 28 | button-gpio = <&gpioi 11 0>; |
| 29 | }; |
| 30 | |
| 31 | led1 { |
| 32 | compatible = "st,led1"; |
| 33 | led-gpio = <&gpioi 1 0>; |
| 34 | }; |
Dario Binacchi | 64c2408 | 2023-09-03 22:48:46 +0200 | [diff] [blame] | 35 | }; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 36 | |
Dario Binacchi | 64c2408 | 2023-09-03 22:48:46 +0200 | [diff] [blame] | 37 | <dc { |
| 38 | clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>; |
Dario Binacchi | 64c2408 | 2023-09-03 22:48:46 +0200 | [diff] [blame] | 39 | bootph-all; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 40 | }; |
| 41 | |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 42 | &fmc { |
| 43 | /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */ |
| 44 | bank1: bank@0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 45 | bootph-all; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 46 | st,sdram-control = /bits/ 8 <NO_COL_8 |
| 47 | NO_ROW_12 |
| 48 | MWIDTH_16 |
| 49 | BANKS_4 |
| 50 | CAS_3 |
| 51 | SDCLK_2 |
| 52 | RD_BURST_EN |
| 53 | RD_PIPE_DL_0>; |
| 54 | st,sdram-timing = /bits/ 8 <TMRD_2 |
| 55 | TXSR_6 |
| 56 | TRAS_4 |
| 57 | TRC_6 |
| 58 | TWR_2 |
| 59 | TRP_2 |
| 60 | TRCD_2>; |
| 61 | /* refcount = (64msec/total_row_sdram)*freq - 20 */ |
| 62 | st,sdram-refcount = < 1542 >; |
| 63 | }; |
| 64 | }; |
| 65 | |
Dario Binacchi | 6aa2dca | 2023-09-03 22:48:49 +0200 | [diff] [blame^] | 66 | &panel_rgb { |
| 67 | compatible = "simple-panel"; |
| 68 | |
| 69 | display-timings { |
| 70 | timing@0 { |
| 71 | clock-frequency = <9000000>; |
| 72 | hactive = <480>; |
| 73 | vactive = <272>; |
| 74 | hfront-porch = <2>; |
| 75 | hback-porch = <2>; |
| 76 | hsync-len = <41>; |
| 77 | vfront-porch = <2>; |
| 78 | vback-porch = <2>; |
| 79 | vsync-len = <10>; |
| 80 | hsync-active = <0>; |
| 81 | vsync-active = <0>; |
| 82 | de-active = <1>; |
| 83 | pixelclk-active = <1>; |
| 84 | }; |
| 85 | }; |
| 86 | }; |
| 87 | |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 88 | &pinctrl { |
| 89 | ethernet_mii: mii@0 { |
| 90 | pins { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 91 | pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */ |
| 92 | <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */ |
| 93 | <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */ |
| 94 | <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */ |
| 95 | <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */ |
| 96 | <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */ |
| 97 | <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */ |
| 98 | <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */ |
| 99 | <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 100 | slew-rate = <2>; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | fmc_pins: fmc@0 { |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 105 | pins { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 106 | pinmux = <STM32_PINMUX('D',10, AF12)>, /* D15 */ |
| 107 | <STM32_PINMUX('D', 9, AF12)>, /* D14 */ |
| 108 | <STM32_PINMUX('D', 8, AF12)>, /* D13 */ |
| 109 | <STM32_PINMUX('E',15, AF12)>, /* D12 */ |
| 110 | <STM32_PINMUX('E',14, AF12)>, /* D11 */ |
| 111 | <STM32_PINMUX('E',13, AF12)>, /* D10 */ |
| 112 | <STM32_PINMUX('E',12, AF12)>, /* D9 */ |
| 113 | <STM32_PINMUX('E',11, AF12)>, /* D8 */ |
| 114 | <STM32_PINMUX('E',10, AF12)>, /* D7 */ |
| 115 | <STM32_PINMUX('E', 9, AF12)>, /* D6 */ |
| 116 | <STM32_PINMUX('E', 8, AF12)>, /* D5 */ |
| 117 | <STM32_PINMUX('E', 7, AF12)>, /* D4 */ |
| 118 | <STM32_PINMUX('D', 1, AF12)>, /* D3 */ |
| 119 | <STM32_PINMUX('D', 0, AF12)>, /* D2 */ |
| 120 | <STM32_PINMUX('D',15, AF12)>, /* D1 */ |
| 121 | <STM32_PINMUX('D',14, AF12)>, /* D0 */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 122 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 123 | <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */ |
| 124 | <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 125 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 126 | <STM32_PINMUX('G', 5, AF12)>, /* BA1 */ |
| 127 | <STM32_PINMUX('G', 4, AF12)>, /* BA0 */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 128 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 129 | <STM32_PINMUX('G', 1, AF12)>, /* A11 */ |
| 130 | <STM32_PINMUX('G', 0, AF12)>, /* A10 */ |
| 131 | <STM32_PINMUX('F',15, AF12)>, /* A9 */ |
| 132 | <STM32_PINMUX('F',14, AF12)>, /* A8 */ |
| 133 | <STM32_PINMUX('F',13, AF12)>, /* A7 */ |
| 134 | <STM32_PINMUX('F',12, AF12)>, /* A6 */ |
| 135 | <STM32_PINMUX('F', 5, AF12)>, /* A5 */ |
| 136 | <STM32_PINMUX('F', 4, AF12)>, /* A4 */ |
| 137 | <STM32_PINMUX('F', 3, AF12)>, /* A3 */ |
| 138 | <STM32_PINMUX('F', 2, AF12)>, /* A2 */ |
| 139 | <STM32_PINMUX('F', 1, AF12)>, /* A1 */ |
| 140 | <STM32_PINMUX('F', 0, AF12)>, /* A0 */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 141 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 142 | <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */ |
| 143 | <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */ |
| 144 | <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */ |
| 145 | <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */ |
| 146 | <STM32_PINMUX('C', 3, AF12)>, /* SDCKE0 */ |
| 147 | <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 148 | slew-rate = <2>; |
| 149 | }; |
| 150 | }; |
| 151 | |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 152 | qspi_pins: qspi@0 { |
| 153 | pins { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 154 | pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */ |
| 155 | <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */ |
| 156 | <STM32_PINMUX('D',11, AF9)>, /* BK1_IO0 */ |
| 157 | <STM32_PINMUX('D',12, AF9)>, /* BK1_IO1 */ |
| 158 | <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */ |
| 159 | <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */ |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 160 | slew-rate = <2>; |
| 161 | }; |
| 162 | }; |
| 163 | |
Patrice Chotard | 62f5616 | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 164 | usart1_pins_b: usart1-1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 165 | bootph-all; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 166 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 167 | bootph-all; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 168 | }; |
| 169 | pins2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 170 | bootph-all; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 171 | }; |
| 172 | }; |
| 173 | }; |
| 174 | |
| 175 | &pwrcfg { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 176 | bootph-all; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 177 | }; |
| 178 | |
| 179 | &qspi { |
Patrice Chotard | fcbddcb | 2021-11-15 11:39:15 +0100 | [diff] [blame] | 180 | reg = <0xa0001000 0x1000>, <0x90000000 0x1000000>; |
Patrice Chotard | 62f5616 | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 181 | qflash0: n25q128a@0 { |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 182 | #address-cells = <1>; |
| 183 | #size-cells = <1>; |
Patrice Chotard | bc56e8f | 2019-04-29 18:25:33 +0200 | [diff] [blame] | 184 | compatible = "jedec,spi-nor"; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 185 | spi-max-frequency = <108000000>; |
Patrice Chotard | 6b2fd61 | 2019-04-29 18:23:31 +0200 | [diff] [blame] | 186 | spi-tx-bus-width = <4>; |
| 187 | spi-rx-bus-width = <4>; |
Patrice Chotard | df2e02a | 2019-02-19 00:37:20 +0100 | [diff] [blame] | 188 | reg = <0>; |
| 189 | }; |
| 190 | }; |