Thread (24 messages) 24 messages, 9 authors, 2025-09-08

Re: [PATCH v1 7/7] arm64: dts: ti: Add support for Kontron SMARC-sAM67

From: Andrew Davis <hidden>
Date: 2025-08-27 15:26:10
Also in: linux-arm-kernel, linux-hwmon, linux-watchdog, lkml

On 8/22/25 8:15 AM, Michael Walle wrote:
quoted hunk ↗ jump to hunk
The Kontron SMARC-sAM67 is a SMARC module which features a TI AM67 SoC.
It supports the following features:
  * Quad-core AM67A94 with 1.4GHz
  * 8 GiB RAM
  * 64 GiB eMMC
  * 4 MiB SPI flash for failsafe booting
  * 4x UART
  * 1x USB 2.0
  * 1x USB 3.2 (or 4x USB3.2 with onboard USB 3.2 hub)
  * 1x RTC
  * 2x GBE
  * 1x QSPI (with 2 chip selects)
  * 1x SPI (with 2 chip selects)
  * 7x I2C
  * 4x CSI (*)
  * 2x LVDS (or one dual-link LVDS)
  * 1x DSI (*)
  * 1x DP (*)
  * onboard microcontroller for boot control, failsafe booting and
    external watchdog

(*) not yet supported by the kernel

There is a base device tree and overlays which will add optional
features. At the moment there is one full featured variant of that
board whose device tree is generated during build by merging all the
device tree overlays.

Signed-off-by: Michael Walle <mwalle@kernel.org>
---
  arch/arm64/boot/dts/ti/Makefile               |    6 +
  .../dts/ti/k3-am67a-kontron-sa67-base.dts     | 1092 +++++++++++++++++
  .../dts/ti/k3-am67a-kontron-sa67-gbe1.dtso    |   19 +
  .../ti/k3-am67a-kontron-sa67-rtc-rv8263.dtso  |   24 +
  4 files changed, 1141 insertions(+)
  create mode 100644 arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-base.dts
  create mode 100644 arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-gbe1.dtso
  create mode 100644 arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-rtc-rv8263.dtso
diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
[...]
quoted hunk ↗ jump to hunk
diff --git a/arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-gbe1.dtso b/arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-gbe1.dtso
new file mode 100644
index 000000000000..4e9eb7998f38
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-gbe1.dtso
@@ -0,0 +1,19 @@
DTSO files should have copyright and license here same as DTS.

Andrew
quoted hunk ↗ jump to hunk
+/dts-v1/;
+/plugin/;
+
+&cpsw3g_mdio {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	phy1: ethernet-phy@1 {
+		reg = <1>;
+	};
+};
+
+&cpsw_port2 {
+	phy-connection-type = "rgmii-id";
+	phy-handle = <&phy1>;
+	nvmem-cells = <&base_mac_address 1>;
+	nvmem-cell-names = "mac-address";
+	status = "okay";
+};
diff --git a/arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-rtc-rv8263.dtso b/arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-rtc-rv8263.dtso
new file mode 100644
index 000000000000..c9aa15269c92
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-rtc-rv8263.dtso
@@ -0,0 +1,24 @@
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/interrupt-controller/irq.h>
+
+&{/} {
+	aliases {
+		rtc0 = "/bus@f0000/i2c@20000000/rtc@51"; /* &rtc */
+		rtc1 = "/bus@f0000/bus@b00000/rtc@2b1f0000"; /* &wkup_rtc0 */
+	};
+};
+
+&main_i2c0 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	rtc: rtc@51 {
+		compatible = "microcrystal,rv8263";
+		reg = <0x51>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&rtc_pins_default>;
+		interrupts-extended = <&main_gpio0 36 IRQ_TYPE_EDGE_FALLING>;
+	};
+};
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help