Verdin AM62 + Mallow Carrier Board: SPI1 DTS Configuration — Are Output Pins Correct?

Hi @lucas_az.tx

First of all, thank you for the response!

I’m using the same code structure you shared previously for GPIO pull-up configuration, and I followed that style to set up the spidev overlay as well.

kernel - (6.6.84-7.2.0-devel)

Now, coming to the pre-built overlay — I see that it looks like this:

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
 * Copyright 2023 Toradex
 */

// Verdin AM62 spidev

/dts-v1/;
/plugin/;

/ {
	compatible = "toradex,verdin-am62";
};

/* Verdin SPI_1 */
&main_spi1 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	spidev@0 {
		/* Use compatible "rohm,dh2228fv" to bind spidev driver */
		compatible = "rohm,dh2228fv";
		reg = <0>;
		spi-max-frequency = <10000000>;
	};
};

Let’s say I want to modify the max frequency and SPI mode — I’d like to know where exactly I should make those changes, especially since it looks like these overlays are being pulled from GitHub directly.

Once everything is in place, what’s the best way to check if spidev is actually working?

Thanks again!

Best regards,
Raju