Skip to contentSkip to conversation

arm64: dts: airoha: en7581: Add Clock Controller node

PATCH Applied Christian Marangi 2 participants 7 messages Jan 5, 2025 – Feb 6, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 arm64: dts: airoha: en7581: Add Clock Controller node

Add Clock Controller node for EN7581 SoC to correctly expose supported clock for any user in the SoC.

---
 arch/arm64/boot/dts/airoha/en7581.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/airoha/en7581.dtsi +8 -0
index 55eb1762fb11..f584409e72cd 100644
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/en7523-clk.h>
 
 / {
 	interrupt-parent = <&gic>;
@@ -142,6 +143,13 @@ gic: interrupt-controller@9000000 {
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
 		};
 
+		scuclk: clock-controller@1fa20000 {
+			compatible = "airoha,en7581-scu";
+			reg = <0x0 0x1fb00000 0x0 0x970>;
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+		};
+
 		uart1: serial@1fbf0000 {
 			compatible = "ns16550";
 			reg = <0x0 0x1fbf0000 0x0 0x30>;
Signature · 1 line
2.45.2
#1 lore raw

PATCH 2/3 arm64: dts: airoha: en7581: Add SNAND node

Add SNAND node to enable support of attached SPI-NAND on the EN7581 SoC.

---
 arch/arm64/boot/dts/airoha/en7581.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/airoha/en7581.dtsi +23 -0
index f584409e72cd..dbd296b049f9 100644
@@ -143,6 +143,29 @@ gic: interrupt-controller@9000000 {
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
 		};
 
+		spi@1fa10000 {
+			compatible = "airoha,en7581-snand";
+			reg = <0x0 0x1fa10000 0x0 0x140>,
+			      <0x0 0x1fa11000 0x0 0x160>;
+
+			clocks = <&scuclk EN7523_CLK_SPI>;
+			clock-names = "spi";
+
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			status = "disabled";
+
+			spi_nand: nand@0 {
+				compatible = "spi-nand";
+				reg = <0>;
+
+				spi-max-frequency = <50000000>;
+				spi-tx-bus-width = <1>;
+				spi-rx-bus-width = <2>;
+			};
+		};
+
 		scuclk: clock-controller@1fa20000 {
 			compatible = "airoha,en7581-scu";
 			reg = <0x0 0x1fb00000 0x0 0x970>;
Signature · 1 line
2.45.2
#3 lore raw

PATCH 3/3 arm64: dts: airoha: en7581: Add default partition table for EVB board

In reply to Christian Marangi

Add default partition table for EN7581 SoC EVB board.

---
 arch/arm64/boot/dts/airoha/en7581-evb.dts | 40 +++++++++++++++++++++++
 1 file changed, 40 insertions(+)
arch/arm64/boot/dts/airoha/en7581-evb.dts +40 -0
index cf58e43dd5b2..a4cdcadd1ae5 100644
@@ -24,3 +24,43 @@ memory@80000000 {
 		reg = <0x0 0x80000000 0x2 0x00000000>;
 	};
 };
+
+&spi_nand {
+	partitions {
+		compatible = "fixed-partitions";
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		bootloader@0 {
+			label = "bootloader";
+			reg = <0x00000000 0x00080000>;
+			read-only;
+		};
+
+		art@200000 {
+			label = "art";
+			reg = <0x00200000 0x00400000>;
+		};
+
+		tclinux@600000 {
+			label = "tclinux";
+			reg = <0x00600000 0x03200000>;
+		};
+
+		tclinux_slave@3800000 {
+			label = "tclinux_alt";
+			reg = <0x03800000 0x03200000>;
+		};
+
+		rootfs_data@6a00000 {
+			label = "rootfs_data";
+			reg = <0x06a00000 0x01400000>;
+		};
+
+		reserved_bmt@7e00000 {
+			label = "reserved_bmt";
+			reg = <0x07e00000 0x00200000>;
+			read-only;
+		};
+	};
+};
Signature · 1 line
2.45.2
maintainer Applied
#6 lore raw
In reply to Christian Marangi
Quoted 4 lines · Christian Marangi

Add Clock Controller node for EN7581 SoC to correctly expose supported clock for any user in the SoC.

Applied to v6.14-next/dts64, thanks!

[1/3] arm64: dts: airoha: en7581: Add Clock Controller node

      commit: 7693017580e9be839fa5f27130bb6500f3597595
[2/3] arm64: dts: airoha: en7581: Add SNAND node
      commit: 8e2e6908a8919a8608866626e5b3bcf242f90b38
[3/3] arm64: dts: airoha: en7581: Add default partition table for EVB board
      commit: 34833a6f17f6ea99fa9d7788d93221f610061d23

Cheers,
Angelo