ARM: dts: stm32: Add QSPI NOR on AV96
authorMarek Vasut <marex@denx.de>
Tue, 31 Mar 2020 17:51:28 +0000 (19:51 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Wed, 1 Apr 2020 09:57:31 +0000 (11:57 +0200)
The DH Electronics DHCOR SOM has QSPI NOR on the SoM itself, add it
into the DT.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Change-Id: Ia7c454c496f50e3fc4851ec1154f3641c416e98e

arch/arm/dts/stm32mp157a-avenger96.dts

index 3fca1ed56d765e41959fd166c5c0960e8b67d644..023390a66225da59b2f4f11b756d8c6a014d747f 100644 (file)
@@ -20,6 +20,7 @@
                mmc0 = &sdmmc1;
                serial0 = &uart4;
                serial1 = &uart7;
+               spi0 = &qspi;
        };
 
        chosen {
        vdd_3v3_usbfs-supply = <&vdd_usb>;
 };
 
+&qspi {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
+       pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
+       reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       flash0: spi-flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-rx-bus-width = <4>;
+               spi-max-frequency = <108000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+       };
+};
+
 &rng1 {
        status = "okay";
 };