Devicetree
 help / color / mirror / Atom feed
* [PATCH v3] arm64: dts: qcom: monza: add Precision AD HAT overlay
@ 2026-11-23  5:23 Prashanth Reddy Baddam
  2026-11-23  5:31 ` sashiko-bot
  2026-11-23  7:02 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 3+ messages in thread
From: Prashanth Reddy Baddam @ 2026-11-23  5:23 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

Add a device tree overlay for the Waveshare High-Precision AD HAT,
based on the ADS1263, connected to the Monza 40-pin JHAT connector.

Configure SPI3 chip select 0 with TLMM GPIO90 as an active-low chip
select. Set the maximum SPI clock frequency to 8 MHz and select SPI
mode 1 for communication with the HAT through spidev.

Signed-off-by: Prashanth Reddy Baddam <prashanth.baddam@oss.qualcomm.com>
---
- Added overlay build entry and base DTB bundle in arch/arm64/boot/dts/qcom/Makefile.
---
 arch/arm64/boot/dts/qcom/Makefile                  |  3 +++
 .../qcom/monaco-arduino-monza-precision-hat.dtso   | 24 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 19310879349d..bdc455cfb388 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -93,6 +93,9 @@ dtb-$(CONFIG_ARCH_QCOM)	+= monaco-arduino-monza-el2.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-ac-evk.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-evk.dtb
 
+monaco-arduino-monza-precision-hat-dtbs := monaco-arduino-monza.dtb monaco-arduino-monza-precision-hat.dtbo
+dtb-$(CONFIG_ARCH_QCOM) += monaco-arduino-monza-precision-hat.dtb
+
 monaco-evk-camera-imx577-dtbs	:= monaco-evk.dtb monaco-evk-camera-imx577.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-evk-camera-imx577.dtb
 
diff --git a/arch/arm64/boot/dts/qcom/monaco-arduino-monza-precision-hat.dtso b/arch/arm64/boot/dts/qcom/monaco-arduino-monza-precision-hat.dtso
new file mode 100644
index 000000000000..e50b0c956057
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/monaco-arduino-monza-precision-hat.dtso
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ *
+ * Device tree overlay for the Waveshare High-Precision AD HAT (ADS1263)
+ * connected to the Monza 40-pin JHAT connector.
+ */
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+&spi3 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cs-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
+
+	spidev@0 {
+		compatible = "rohm,dh2228fv";
+		reg = <0>;
+		spi-max-frequency = <8000000>;
+		spi-cpha;
+	};
+};

---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261118-ventuno-q-precision-hat-a71bb5549334

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


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

* Re: [PATCH v3] arm64: dts: qcom: monza: add Precision AD HAT overlay
  2026-11-23  5:23 [PATCH v3] arm64: dts: qcom: monza: add Precision AD HAT overlay Prashanth Reddy Baddam
@ 2026-11-23  5:31 ` sashiko-bot
  2026-11-23  7:02 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-11-23  5:31 UTC (permalink / raw)
  To: Prashanth Reddy Baddam; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: qcom: monza: fake rohm,dh2228fv compatible and
  spidev@0 node name
- [Medium] arm64: dts: qcom: monza: spi3 cs-gpios conflicts with
  qup_spi3_cs on gpio28
--

commit 12190f9e8824425ba37639e1c8a7a3b6040d0713
Author: Prashanth Reddy Baddam <prashanth.baddam@oss.qualcomm.com>

arm64: dts: qcom: monza: add Precision AD HAT overlay

This commit adds a devicetree overlay and Makefile build rule for the
Waveshare High-Precision AD HAT (ADS1263) on the Monza 40-pin JHAT
connector.

> diff --git a/arch/arm64/boot/dts/qcom/monaco-arduino-monza-precision-hat.dtso b/arch/arm64/boot/dts/qcom/monaco-arduino-monza-precision-hat.dtso
> new file mode 100644
> index 0000000000000..e50b0c9560577
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/monaco-arduino-monza-precision-hat.dtso
> @@ -0,0 +1,24 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + *
> + * Device tree overlay for the Waveshare High-Precision AD HAT (ADS1263)
> + * connected to the Monza 40-pin JHAT connector.
> + */
> +/dts-v1/;
> +/plugin/;
> +
> +#include <dt-bindings/gpio/gpio.h>
> +
> +&spi3 {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +	cs-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;

[Severity: Medium]
Does setting cs-gpios to gpio90 without overriding pinctrl-0 on &spi3
leave gpio28 (JHAT_P24_SPI_CE0) muxed to the hardware chip-select 0
function?

In monaco.dtsi, spi3 defaults to:

  pinctrl-0 = <&qup_spi3_data_clk>, <&qup_spi3_cs>;

where qup_spi3_cs muxes gpio28 to function "qup0_se3".  Because
spi-geni-qcom drives its internal CS 0 output in setup_spi_params() and
setup_gsi_xfer() on every reg = <0> transfer, the QUP engine will assert
gpio28 on pin 24 of the 40-pin header alongside the software-toggled
gpio90, while gpio90 itself has no pinctrl entry.  Should &spi3 override
pinctrl-0 to decouple gpio28 (for example with qup_spi3_cs_gpio) and
configure gpio90?

> +
> +	spidev@0 {
> +		compatible = "rohm,dh2228fv";
> +		reg = <0>;
> +		spi-max-frequency = <8000000>;
> +		spi-cpha;
> +	};
> +};

[Severity: Medium]
Should this node describe the TI ADS1263 ADC with adc@0 and
compatible = "ti,ads1263", "ti,ads1262" instead of spidev@0 and
"rohm,dh2228fv"?

"rohm,dh2228fv" is a deprecated entry in
Documentation/devicetree/bindings/trivial-devices.yaml for a non-existent
Rohm DAC used to force spidev binding, which prevents the in-tree IIO
driver (drivers/iio/adc/ti-ads1262.c) from binding and violates the
generic node name requirement.  In addition, trivial-devices.yaml sets
additionalProperties: false and does not permit spi-cpha, so this node
fails dtbs_check, whereas Documentation/devicetree/bindings/iio/adc/ti,ads1262.yaml
allows both spi-cpha and spi-max-frequency.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-ventuno-q-precision-hat-v3-1-fb96fd6b7887@qti.qualcomm.com?part=1

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

* Re: [PATCH v3] arm64: dts: qcom: monza: add Precision AD HAT overlay
  2026-11-23  5:23 [PATCH v3] arm64: dts: qcom: monza: add Precision AD HAT overlay Prashanth Reddy Baddam
  2026-11-23  5:31 ` sashiko-bot
@ 2026-11-23  7:02 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23  7:02 UTC (permalink / raw)
  To: Prashanth Reddy Baddam, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel

On 23/11/2026 06:23, Prashanth Reddy Baddam wrote:
> +&spi3 {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +	cs-gpios = <&tlmm 90 GPIO_ACTIVE_LOW>;
> +
> +	spidev@0 {
> +		compatible = "rohm,dh2228fv";

That's not true. Please show the part of schematics that confirms you
have dh2228fv. How is it even possible to mount dh2228fv? Really? Do you
know that it does not exist?


Best regards,
Krzysztof

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  5:23 [PATCH v3] arm64: dts: qcom: monza: add Precision AD HAT overlay Prashanth Reddy Baddam
2026-11-23  5:31 ` sashiko-bot
2026-11-23  7:02 ` Krzysztof Kozlowski

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