]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts: P2020RDB: Add ESPI slave device node
authorXiaowei Bao <xiaowei.bao@nxp.com>
Thu, 4 Jun 2020 15:16:38 +0000 (23:16 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 24 Sep 2020 12:27:44 +0000 (08:27 -0400)
Add ESPI slave node for P2020RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/dts/p2020rdb-pc.dts
arch/powerpc/dts/p2020rdb-pc_36b.dts

index 08befd4c5934071e49561c27eca75703b03ff6e6..5ae278cbfc585a71e9da8696073da21e74ff4114 100644 (file)
                ranges = <0x01000000 0x0 0x00000000 0x0 0xffc00000 0x0 0x00010000   /* downstream I/O */
                          0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000>; /* non-prefetchable memory */
        };
+
+       aliases {
+               spi0 = &espi0;
+       };
 };
 
 /include/ "p2020-post.dtsi"
+
+&espi0 {
+       status = "okay";
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               reg = <0>;
+               spi-max-frequency = <10000000>; /* input clock */
+       };
+};
index 04b2519e1a568adbc8f70ed9d102952d73efcc6b..542fffc33ec66533e04eb06f1c7d62311d3658c5 100644 (file)
                ranges = <0x01000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x00010000   /* downstream I/O */
                          0x02000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000>; /* non-prefetchable memory */
        };
+
+       aliases {
+               spi0 = &espi0;
+       };
 };
 
 /include/ "p2020-post.dtsi"
+
+&espi0 {
+       status = "okay";
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               reg = <0>;
+               spi-max-frequency = <10000000>; /* input clock */
+       };
+};