[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220927113229.1214224-4-bert@biot.com>
Date: Tue, 27 Sep 2022 13:32:29 +0200
From: Bert Vermeulen <bert@...t.com>
To: Mark Brown <broonie@...nel.org>, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
linux-spi@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Bert Vermeulen <bert@...t.com>, John Crispin <john@...ozen.org>,
Benjamin Larsson <benjamin.larsson@...sys.eu>
Subject: [PATCH v2 3/3] ARM: dts: en7523: Add SPI node
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@...t.com>
---
arch/arm/boot/dts/en7523-evb.dts | 20 ++++++++++++++++++++
arch/arm/boot/dts/en7523.dtsi | 10 ++++++++++
2 files changed, 30 insertions(+)
diff --git a/arch/arm/boot/dts/en7523-evb.dts b/arch/arm/boot/dts/en7523-evb.dts
index f23a25cce119..50ccd58b1672 100644
--- a/arch/arm/boot/dts/en7523-evb.dts
+++ b/arch/arm/boot/dts/en7523-evb.dts
@@ -26,6 +26,26 @@ memory@...00000 {
};
};
+&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";
};
diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi
index 7f839331a777..a0d0862005fb 100644
--- a/arch/arm/boot/dts/en7523.dtsi
+++ b/arch/arm/boot/dts/en7523.dtsi
@@ -201,4 +201,14 @@ pcie_intc1: interrupt-controller {
#interrupt-cells = <1>;
};
};
+
+ spi0: spi@...10000 {
+ compatible = "airoha,en7523-spi";
+ reg = <0x1fa10000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&scu EN7523_CLK_SPI>;
+ spi-rx-bus-width = <2>;
+ spi-tx-bus-width = <2>;
+ };
};
--
2.25.1
Powered by blists - more mailing lists