@@ -26,6 +26,26 @@ memory@80000000 {
};
};
+&spi0 {
+ nand: nand@0 {
+ compatible = "spi-nand";
+ reg = <0>;
+ nand-ecc-engine = <&nand>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x80000>;
+ read-only;
+ };
+ };
+ };
+};
+
&gpio0 {
status = "okay";
};
@@ -201,4 +201,15 @@ pcie_intc1: interrupt-controller {
#interrupt-cells = <1>;
};
};
+
+ spi0: spi@1fa10000 {
+ compatible = "airoha,en7523-spi";
+ reg = <0x1fa10000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&scu EN7523_CLK_SPI>;
+ clock-names = "spi";
+ spi-rx-bus-width = <2>;
+ spi-tx-bus-width = <2>;
+ };
};
This adds an SPI node for the EN7523, so far only used for hooking up the NAND boot flash. Signed-off-by: Bert Vermeulen <bert@biot.com> --- arch/arm/boot/dts/en7523-evb.dts | 20 ++++++++++++++++++++ arch/arm/boot/dts/en7523.dtsi | 11 +++++++++++ 2 files changed, 31 insertions(+)