// SPDX-License-Identifier: GPL-2.0+ #include /{ chosen { bootargs = "root=/dev/ram rdinit=/linuxrc"; }; aliases { /* Aliases for gpios so as to use sequence */ gpio0 = &gpioa; gpio1 = &gpiob; gpio2 = &gpioc; gpio3 = &gpiod; gpio4 = &gpioe; gpio5 = &gpiof; gpio6 = &gpiog; gpio7 = &gpioh; gpio8 = &gpioi; gpio9 = &gpioj; gpio10 = &gpiok; mmc0 = &sdio1; spi0 = &qspi; }; backlight: backlight { compatible = "gpio-backlight"; gpios = <&gpiok 3 0>; status = "okay"; }; button1 { compatible = "st,button1"; button-gpio = <&gpioi 11 0>; }; led1 { compatible = "st,led1"; led-gpio = <&gpioi 1 0>; }; panel-rgb@0 { compatible = "simple-panel"; backlight = <&backlight>; enable-gpios = <&gpioi 12 0>; status = "okay"; display-timings { timing@0 { clock-frequency = <9000000>; hactive = <480>; vactive = <272>; hfront-porch = <2>; hback-porch = <2>; hsync-len = <41>; vfront-porch = <2>; vback-porch = <2>; vsync-len = <10>; hsync-active = <0>; vsync-active = <0>; de-active = <1>; pixelclk-active = <1>; }; }; }; }; <dc { clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>; pinctrl-0 = <<dc_pins>; status = "okay"; bootph-all; }; &fmc { /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */ bank1: bank@0 { bootph-all; st,sdram-control = /bits/ 8 ; st,sdram-timing = /bits/ 8 ; /* refcount = (64msec/total_row_sdram)*freq - 20 */ st,sdram-refcount = < 1542 >; }; }; &pinctrl { ethernet_mii: mii@0 { pins { pinmux = , /* ETH_RMII_TXD0 */ , /* ETH_RMII_TXD1 */ , /* ETH_RMII_TX_EN */ , /* ETH_MDIO */ , /* ETH_MDC */ , /* ETH_RMII_REF_CLK */ , /* ETH_RMII_CRS_DV */ , /* ETH_RMII_RXD0 */ ; /* ETH_RMII_RXD1 */ slew-rate = <2>; }; }; fmc_pins: fmc@0 { pins { pinmux = , /* D15 */ , /* D14 */ , /* D13 */ , /* D12 */ , /* D11 */ , /* D10 */ , /* D9 */ , /* D8 */ , /* D7 */ , /* D6 */ , /* D5 */ , /* D4 */ , /* D3 */ , /* D2 */ , /* D1 */ , /* D0 */ , /* NBL1 */ , /* NBL0 */ , /* BA1 */ , /* BA0 */ , /* A11 */ , /* A10 */ , /* A9 */ , /* A8 */ , /* A7 */ , /* A6 */ , /* A5 */ , /* A4 */ , /* A3 */ , /* A2 */ , /* A1 */ , /* A0 */ , /* SDNE0 */ , /* SDNWE */ , /* SDNRAS */ , /* SDNCAS */ , /* SDCKE0 */ ; /* SDCLK> */ slew-rate = <2>; }; }; ltdc_pins: ltdc@0 { pins { pinmux = , /* B0 */ , /* B4 */ , /* VSYNC */ , /* HSYNC */ , /* CLK */ , /* R0 */ , /* R1 */ , /* R2 */ , /* R3 */ , /* R4 */ , /* R5 */ , /* R6 */ , /* R7 */ , /* G0 */ , /* G1 */ , /* G2 */ , /* G3 */ , /* G4 */ , /* B1 */ , /* B2 */ , /* B3 */ , /* G5 */ , /* G6 */ , /* G7 */ , /* B5 */ , /* B6 */ , /* B7 */ ; /* DE */ slew-rate = <2>; }; }; qspi_pins: qspi@0 { pins { pinmux = , /* CLK */ , /* BK1_NCS */ , /* BK1_IO0 */ , /* BK1_IO1 */ , /* BK1_IO3 */ ; /* BK1_IO2 */ slew-rate = <2>; }; }; usart1_pins_b: usart1-1 { bootph-all; pins1 { bootph-all; }; pins2 { bootph-all; }; }; }; &pwrcfg { bootph-all; }; &qspi { reg = <0xa0001000 0x1000>, <0x90000000 0x1000000>; qflash0: n25q128a@0 { #address-cells = <1>; #size-cells = <1>; compatible = "jedec,spi-nor"; spi-max-frequency = <108000000>; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; reg = <0>; }; };