blob: adeeb63e84b95d6d353a7eb123b895d0a6386ab6 [file] [log] [blame]
Patrice Chotarda7815ea2019-06-28 15:03:01 +02001* STMicroelectronics Quad Serial Peripheral Interface(QSPI)
Michael Kurzbccef712017-01-22 16:04:23 +01002
3Required properties:
Patrice Chotarda7815ea2019-06-28 15:03:01 +02004- compatible: should be "st,stm32f469-qspi"
5- reg: the first contains the register location and length.
6 the second contains the memory mapping address and length
7- reg-names: should contain the reg names "qspi" "qspi_mm"
8- interrupts: should contain the interrupt for the device
9- clocks: the phandle of the clock needed by the QSPI controller
10- A pinctrl must be defined to set pins in mode of operation for QSPI transfer
Michael Kurzbccef712017-01-22 16:04:23 +010011
Patrice Chotarda7815ea2019-06-28 15:03:01 +020012Optional properties:
13- resets: must contain the phandle to the reset controller.
14
15A spi flash (NOR/NAND) must be a child of spi node and could have some
16properties. Also see jedec,spi-nor.txt.
17
18Required properties:
19- reg: chip-Select number (QSPI controller may connect 2 flashes)
20- spi-max-frequency: max frequency of spi bus
21
22Optional property:
23- spi-rx-bus-width: see ./spi-bus.txt for the description
Michael Kurzbccef712017-01-22 16:04:23 +010024
25Example:
Michael Kurzbccef712017-01-22 16:04:23 +010026
Patrice Chotarda7815ea2019-06-28 15:03:01 +020027qspi: spi@a0001000 {
28 compatible = "st,stm32f469-qspi";
29 reg = <0xa0001000 0x1000>, <0x90000000 0x10000000>;
30 reg-names = "qspi", "qspi_mm";
31 interrupts = <91>;
32 resets = <&rcc STM32F4_AHB3_RESET(QSPI)>;
33 clocks = <&rcc 0 STM32F4_AHB3_CLOCK(QSPI)>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&pinctrl_qspi0>;
36
37 flash@0 {
38 compatible = "jedec,spi-nor";
39 reg = <0>;
40 spi-rx-bus-width = <4>;
41 spi-max-frequency = <108000000>;
42 ...
Michael Kurzbccef712017-01-22 16:04:23 +010043 };
Patrice Chotarda7815ea2019-06-28 15:03:01 +020044};