]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/dts/r8a77970-eagle.dts
ARM: rmobile: Enable RPC QSPI on R8A77970 V3M Eagle
[u-boot] / arch / arm / dts / r8a77970-eagle.dts
index 71a379f9e276abad1a445203b721c45fcdfbd376..c051cddb256d7fadc2049dfd072b43d210d7588c 100644 (file)
@@ -4,9 +4,7 @@
  * Copyright (C) 2016-2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
  *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 /dts-v1/;
@@ -19,6 +17,7 @@
        aliases {
                serial0 = &scif0;
                ethernet0 = &avb;
+               spi0 = &rpc;
        };
 
        chosen {
        };
 };
 
+&rpc {
+       num-cs = <1>;
+       status = "okay";
+       spi-max-frequency = <50000000>;
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       flash0: spi-flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "s25fs512s", "spi-flash", "jedec,spi-nor";
+               spi-max-frequency = <50000000>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <1>;
+               reg = <0>;
+               status = "okay";
+       };
+};
+
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";