linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: linux-spi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Heiko Schocher <hs@denx.de>,
	Conor Dooley <conor+dt@kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Rob Herring <robh@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Shawn Guo <shawnguo@kernel.org>,
	devicetree@vger.kernel.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 3/3] arm64: dts: imx8mp: add ABB spi sensors
Date: Sat, 19 Jul 2025 08:33:54 +0200	[thread overview]
Message-ID: <20250719063355.73111-4-hs@denx.de> (raw)
In-Reply-To: <20250719063355.73111-1-hs@denx.de>

add for the spi busses the ABB sensor trivial compatible
entry, so they can be accessed from userspace.

Signed-off-by: Heiko Schocher <hs@denx.de>
---

 .../freescale/imx8mp-aristainetos3-helios.dts | 28 +++++++++++++++++++
 .../imx8mp-aristainetos3-proton2s.dts         | 22 +++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts
index a4e649a8239b..b6ba6229acd7 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts
@@ -52,6 +52,34 @@
 	};
 };
 
+&ecspi1 {
+	spidev0_0: spi@0 {
+		reg = <0>;
+		compatible = "abb,spi-sensor";
+		spi-max-frequency = <54000000>;
+	};
+
+	spidev0_1: spi@1 {
+		compatible = "abb,spi-sensor";
+		reg = <1>;
+		spi-max-frequency = <54000000>;
+	};
+};
+
+&ecspi2 {
+	spidev1_0: spi@0 {
+		reg = <0>;
+		compatible = "abb,spi-sensor";
+		spi-max-frequency = <54000000>;
+	};
+
+	spidev1_1: spi@1 {
+		reg = <1>;
+		compatible = "abb,spi-sensor";
+		spi-max-frequency = <54000000>;
+	};
+};
+
 &ethphy1 {
 	status = "disabled";
 };
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts
index 2a736dbe96b4..e804688b2e74 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts
@@ -28,6 +28,28 @@
 	};
 };
 
+&ecspi1 {
+	spidev0_0: spi@0 {
+		compatible = "abb,spi-sensor";
+		reg = <0>;
+		spi-max-frequency = <54000000>;
+	};
+
+	spidev0_1: spi@1 {
+		compatible = "abb,spi-sensor";
+		reg = <1>;
+		spi-max-frequency = <54000000>;
+	};
+};
+
+&ecspi2 {
+	spidev1_0: spi@0 {
+		compatible = "abb,spi-sensor";
+		reg = <0>;
+		spi-max-frequency = <54000000>;
+	};
+};
+
 &ethphy1 {
 	status = "disabled";
 };
-- 
2.20.1



  reply	other threads:[~2025-07-19  6:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-19  6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
2025-07-19  6:33 ` Heiko Schocher [this message]
2025-07-21 15:56 ` (subset) " Mark Brown
2025-07-21 16:24   ` Krzysztof Kozlowski
2025-07-21 17:34     ` Mark Brown
2025-07-22  4:05     ` Heiko Schocher
2025-07-22  4:58       ` Guenter Roeck
2025-07-22 10:20         ` Jonathan Cameron
2025-08-01  4:45           ` Heiko Schocher
2025-07-22 11:07       ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250719063355.73111-4-hs@denx.de \
    --to=hs@denx.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).