]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: Support SC573-EZKIT
authorOliver Gaskell <Oliver.Gaskell@analog.com>
Thu, 12 Sep 2024 15:50:42 +0000 (16:50 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 3 Oct 2024 15:29:22 +0000 (09:29 -0600)
Adds minimal device tree for Analog Devices' SC573-EZKIT board and
common files for the SC57x/SC5xx family.

This also adds all sc5* devicetrees to ARM SC5XX in MAINTAINERS, and
adds the ADSP Linux mailing list as the list for ARM SC5XX.

Co-developed-by: Greg Malysa <greg.malysa@timesys.com>
Signed-off-by: Greg Malysa <greg.malysa@timesys.com>
Co-developed-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
Signed-off-by: Oliver Gaskell <Oliver.Gaskell@analog.com>
MAINTAINERS
arch/arm/dts/Makefile
arch/arm/dts/sc573-ezkit.dts [new file with mode: 0644]
arch/arm/dts/sc57x.dtsi [new file with mode: 0644]
arch/arm/dts/sc5xx.dtsi [new file with mode: 0644]

index 2050ae24df8229db7c28df511bd1971a86dbcc47..b172e1ea95554035f60c174d59550372223af71f 100644 (file)
@@ -601,8 +601,10 @@ M: Ian Roberts <ian.roberts@timesys.com>
 M:     Vasileios Bimpikas <vasileios.bimpikas@analog.com>
 M:     Utsav Agarwal <utsav.agarwal@analog.com>
 M:     Arturs Artamonovs <arturs.artamonovs@analog.com>
+L:     adsp-linux@analog.com
 S:     Supported
 T:     git https://github.com/analogdevicesinc/lnxdsp-u-boot
+F:     arch/arm/dts/sc5*
 F:     arch/arm/include/asm/arch-adi/
 F:     arch/arm/mach-sc5xx/
 F:     drivers/clk/adi/
index 2d931c23fc830f08029b00648a1bb3b56297e23d..d2194908d9c1cf80f81839c61b92aeafbc2b231f 100644 (file)
@@ -1258,6 +1258,8 @@ dtb-$(CONFIG_TARGET_IMX8MM_CL_IOT_GATE_OPTEE) += imx8mm-cl-iot-gate-optee.dtb \
                                        imx8mm-cl-iot-gate-ied-tpm0.dtbo \
                                        imx8mm-cl-iot-gate-ied-tpm1.dtbo
 
+dtb-$(CONFIG_TARGET_SC573_EZKIT) += sc573-ezkit.dtb
+
 ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),)
 dtb-y += imx8mp-rsb3720-a1.dtb
 endif
diff --git a/arch/arm/dts/sc573-ezkit.dts b/arch/arm/dts/sc573-ezkit.dts
new file mode 100644 (file)
index 0000000..0dc2962
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * (C) Copyright 2024 - Analog Devices, Inc.
+ */
+
+/dts-v1/;
+
+#include "sc57x.dtsi"
+
+/ {
+       model = "ADI SC573-EZKIT";
+       compatible = "adi,sc573-ezkit", "adi,sc57x";
+};
diff --git a/arch/arm/dts/sc57x.dtsi b/arch/arm/dts/sc57x.dtsi
new file mode 100644 (file)
index 0000000..ddfcae8
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * (C) Copyright 2024 - Analog Devices, Inc.
+ */
+
+#include "sc5xx.dtsi"
+
+/ {
+       gic: interrupt-controller@310b2000 {
+               compatible = "arm,cortex-a5-gic";
+               #interrupt-cells = <3>;
+               #address-cells = <0>;
+               interrupt-controller;
+               reg = <0x310B2000 0x1000>,
+                     <0x310B4000 0x100>;
+       };
+};
+
+&timer0 {
+       clocks = <&clk ADSP_SC57X_CLK_CGU0_SCLK0>;
+};
diff --git a/arch/arm/dts/sc5xx.dtsi b/arch/arm/dts/sc5xx.dtsi
new file mode 100644 (file)
index 0000000..3f440da
--- /dev/null
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * (C) Copyright 2024 - Analog Devices, Inc.
+ */
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/adi-sc5xx-clock.h>
+
+/ {
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       clocks {
+               sys_clkin0: sys_clkin0 {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <25000000>;
+                       bootph-all;
+               };
+
+               sys_clkin1: sys_clkin1 {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <25000000>;
+                       bootph-all;
+               };
+       };
+
+       soc {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "simple-bus";
+               device_type = "soc";
+               ranges;
+               bootph-all;
+
+               timer0: timer@31018000 {
+                       compatible = "adi,sc5xx-gptimer";
+                       reg = <0x31018004 0x100>,
+                             <0x31018060 0x100>;
+                       status = "okay";
+                       bootph-all;
+               };
+
+               clk: clocks@3108d000 {
+                       reg = <0x3108d000 0x1000>;
+                       #clock-cells = <1>;
+                       clocks = <&sys_clkin0>, <&sys_clkin1>;
+                       clock-names = "sys_clkin0", "sys_clkin1";
+                       status = "okay";
+                       bootph-all;
+               };
+       };
+};