* [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* Re: [PATCH v2] arm64: dts: qcom: monza: add Automation HAT overlay
2026-11-23 5:16 [PATCH v2] arm64: dts: qcom: monza: add Automation HAT overlay prashanth.baddam
@ 2026-11-23 5:25 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-23 5:25 UTC (permalink / raw)
To: prashanth.baddam; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] arm64: dts: qcom: decimal LED unit addresses in Monza Automation
HAT dtso
- [Low] arm64: dts: qcom: unused gpio.h include and unsorted Makefile
entry
--
commit 07a4903ac9dd988a99b288586f1d04540b8de474
Author: Prashanth Reddy Baddam <prashanth.baddam@oss.qualcomm.com>
arm64: dts: qcom: monza: add Automation HAT overlay
This commit adds a devicetree overlay for the Pimoroni Automation HAT on
the Monza 40-pin JHAT connector and registers the overlay build rule in
arch/arm64/boot/dts/qcom/Makefile.
> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
> index 19310879349d0..b60abdd392ea9 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 0000000000000..3c35b76f9c2f2
> --- /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>
[Severity: Low]
This isn't a bug, but dt-bindings/gpio/gpio.h is not used in this overlay,
and the monaco-arduino-monza-automation-hat rules in the Makefile are
placed in the middle of the monaco-evk targets rather than in alphabetical
order alongside monaco-arduino-monza.dtb.
[ ... ]
> + 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";
> + };
> + };
> +};
[Severity: Low]
Should these LED child nodes be named led@10, led@11, and led@12?
Devicetree unit addresses use lowercase hexadecimal to match the node's reg
property, so decimal reg values <16>, <17>, and <18> correspond to unit
addresses @10, @11, and @12 (just as monaco-arduino-monza.dts uses led@a
and led@b for reg = <10> and <11>).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-automation-hat-v2-1-bdef1a18b858@qti.qualcomm.com?part=1
^ permalink raw reply [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