Devicetree
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: qcom: monza: add Automation HAT overlay
@ 2026-11-23  5:16 prashanth.baddam
  2026-11-23  5:25 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: prashanth.baddam @ 2026-11-23  5:16 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Prashanth Reddy Baddam

From: Prashanth Reddy Baddam <prashanth.baddam@oss.qualcomm.com>

Add a device tree overlay for the Pimoroni Automation HAT
connected through the Monza 40-pin JHAT connector.

Configure the ADS1015 ADC and SN3218 LED controller on I2C0.

Add the overlay to the Makefile so the Automation HAT
DTB is built together with the Monza base DTB.

Signed-off-by: Prashanth Reddy Baddam <prashanth.baddam@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/Makefile                  |  3 ++
 .../qcom/monaco-arduino-monza-automation-hat.dtso  | 62 ++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 19310879349d..b60abdd392ea 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -96,6 +96,9 @@ dtb-$(CONFIG_ARCH_QCOM)	+= monaco-evk.dtb
 monaco-evk-camera-imx577-dtbs	:= monaco-evk.dtb monaco-evk-camera-imx577.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-evk-camera-imx577.dtb
 
+monaco-arduino-monza-automation-hat-dtbs := monaco-arduino-monza.dtb monaco-arduino-monza-automation-hat.dtbo
+dtb-$(CONFIG_ARCH_QCOM) += monaco-arduino-monza-automation-hat.dtb
+
 monaco-evk-el2-dtbs := monaco-evk.dtb monaco-el2.dtbo
 
 monaco-ac-evk-ifp-mezzanine-dtbs	:= monaco-ac-evk.dtb monaco-evk-ifp-mezzanine.dtbo
diff --git a/arch/arm64/boot/dts/qcom/monaco-arduino-monza-automation-hat.dtso b/arch/arm64/boot/dts/qcom/monaco-arduino-monza-automation-hat.dtso
new file mode 100644
index 000000000000..3c35b76f9c2f
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/monaco-arduino-monza-automation-hat.dtso
@@ -0,0 +1,62 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ *
+ * Device tree overlay for the Pimoroni Automation HAT connected to the
+ * Monza 40-pin JHAT connector.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+&i2c0 {
+	clock-frequency = <400000>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	automation_hat_adc: adc@48 {
+		compatible = "ti,ads1015";
+		reg = <0x48>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		channel@4 {
+			reg = <4>;
+			ti,gain = <1>;
+		};
+
+		channel@5 {
+			reg = <5>;
+			ti,gain = <1>;
+		};
+
+		channel@6 {
+			reg = <6>;
+			ti,gain = <1>;
+		};
+	};
+
+	automation_hat_leds: led-controller@54 {
+		compatible = "si-en,sn3218";
+		reg = <0x54>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		led@16 {
+			reg = <16>;
+			label = "automation-hat:red:warn";
+		};
+
+		led@17 {
+			reg = <17>;
+			label = "automation-hat:green:comms";
+		};
+
+		led@18 {
+			reg = <18>;
+			label = "automation-hat:blue:power";
+		};
+	};
+};

---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261119-automation-hat-c23e616942d8

Best regards,
--  
Prashanth Reddy Baddam <praspras@qti.qualcomm.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-23  5:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  5:16 [PATCH v2] arm64: dts: qcom: monza: add Automation HAT overlay prashanth.baddam
2026-11-23  5:25 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox