[PATCH 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts

Benoît Monin posted 13 patches 1 month, 3 weeks ago
There is a newer version of this series
[PATCH 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts
Posted by Benoît Monin 1 month, 3 weeks ago
Add the device tree of the evaluation board of the EyeQ6Lplus SoC.

The board comes with 2GB of RAM, an SPI NAND connected to the octoSPI
controller, and the two SPI controllers are connected to each other via
an intermediate MCU for loopback testing. The UART of the SoC is used
as the serial console.

Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
---
 arch/mips/boot/dts/mobileye/Makefile            |   1 +
 arch/mips/boot/dts/mobileye/eyeq6lplus-epm6.dts | 112 ++++++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/arch/mips/boot/dts/mobileye/Makefile b/arch/mips/boot/dts/mobileye/Makefile
index 7cc89968aaac..9305dd01f4c8 100644
--- a/arch/mips/boot/dts/mobileye/Makefile
+++ b/arch/mips/boot/dts/mobileye/Makefile
@@ -3,3 +3,4 @@
 
 dtb-$(CONFIG_MACH_EYEQ5)		+= eyeq5-epm5.dtb
 dtb-$(CONFIG_MACH_EYEQ6H)		+= eyeq6h-epm6.dtb
+dtb-$(CONFIG_MACH_EYEQ6LPLUS)		+= eyeq6lplus-epm6.dtb
diff --git a/arch/mips/boot/dts/mobileye/eyeq6lplus-epm6.dts b/arch/mips/boot/dts/mobileye/eyeq6lplus-epm6.dts
new file mode 100644
index 000000000000..e42d05a4d213
--- /dev/null
+++ b/arch/mips/boot/dts/mobileye/eyeq6lplus-epm6.dts
@@ -0,0 +1,112 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright 2025 Mobileye Vision Technologies Ltd.
+ */
+
+/dts-v1/;
+
+#include "eyeq6lplus.dtsi"
+
+/ {
+	compatible = "mobileye,eyeq6lplus-epm6", "mobileye,eyeq6lplus";
+	model = "Mobileye EyeQ6Lplus Evaluation board";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:921600n8";
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x1 0x00000000 0x0 0x80000000>;
+	};
+
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		/* These reserved memory regions are also defined in bootmanager
+		 * for configuring inbound translation for BARS, don't change
+		 * these without syncing with bootmanager
+		 */
+		mhm_reserved_0: the-mhm-reserved-0 {
+			reg = <0x1 0x00000000 0x0 0x0000800>;
+		};
+		bm_logs_reserved: bm-logs-reserved {
+			reg = <0x1 0x0000800 0x0 0x000f800>;
+		};
+		shmem0_reserved: shmem@804000000 {
+			reg = <0x1 0x04000000 0x0 0x1000000>;
+		};
+		shmem1_reserved: shmem@805000000 {
+			reg = <0x1 0x05000000 0x0 0x1000000>;
+		};
+		mini_coredump0_reserved: mini-coredump0@806200000 {
+			reg = <0x1 0x06200000 0x0 0x100000>;
+		};
+		mailbox_reserved: mailbox-reserved {
+			reg = <0x1 0x06300000 0x0 0x000300>;
+		};
+		sys_logs_reserved: sys-logs-reserved {
+			reg = <0x1 0x10000000 0x0 0x800000>;
+		};
+		csl_policy_logs_reserved: csl-policy-logs-reserved {
+			reg = <0x1 0x10800000 0x0 0x10000>;
+		};
+	};
+};
+
+&ospi {
+	status = "okay";
+	flash@0 {
+		compatible = "spi-nand";
+		reg = <0>;
+		spi-max-frequency = <40000000>;
+		cdns,read-delay = <0>;
+		cdns,tshsl-ns = <400>;
+		cdns,tsd2d-ns = <120>;
+		cdns,tchsh-ns = <40>;
+		cdns,tslch-ns = <20>;
+		spi-tx-bus-width = <1>;
+		spi-rx-bus-width = <8>;
+	};
+};
+
+&spi0 {
+	pinctrl-0 = <&spi0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+	spidev@0 {
+		compatible = "lwn,bk4-spi";
+		spi-max-frequency = <5000000>;
+		reg = <0>;
+	};
+};
+
+&spi1 {
+	pinctrl-0 = <&spi1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+	slave {
+		compatible = "lwn,bk4-spi";
+		spi-max-frequency = <5000000>;
+	};
+};
+
+&uart0 {
+	pinctrl-0 = <&uart0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&i2c0 {
+	status = "okay";
+};
+
+&i2c1 {
+	status = "okay";
+};

-- 
2.52.0

Re: [PATCH 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts
Posted by Krzysztof Kozlowski 1 month, 3 weeks ago
On 17/12/2025 14:36, Benoît Monin wrote:
> +
> +&spi0 {
> +	pinctrl-0 = <&spi0_pins>;
> +	pinctrl-names = "default";
> +	status = "okay";
> +	spidev@0 {
> +		compatible = "lwn,bk4-spi";

NAK, you are not operating an excavator here.

Don't invent hardware.


Best regards,
Krzysztof
Re: [PATCH 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts
Posted by Benoît Monin 1 month, 2 weeks ago
Hi Krzysztof,

On 12/18/25 16:30, Krzysztof Kozlowski wrote:
> On 17/12/2025 14:36, Benoît Monin wrote:
>> +
>> +&spi0 {
>> +	pinctrl-0 = <&spi0_pins>;
>> +	pinctrl-names = "default";
>> +	status = "okay";
>> +	spidev@0 {
>> +		compatible = "lwn,bk4-spi";
> 
> NAK, you are not operating an excavator here.
> 
Indeed, I do not (and I should have known better...).

> Don't invent hardware.
> 
In my particular case of a microcontroller acting as an SPI "relay" on the
evaluation board, what would be the best way to describe it? It connects
the two SPI controllers of the SoC, one is a host and one is a target, so
it behave as an SPI target on one side and as an SPI host on the other.

The trivial devices bindings seems to be dedicated to devices, thus not for
SPI hosts. Do I need a dedicated binding or did I miss something I could
use for a trivial spidev slave?

> 
> Best regards,
> Krzysztof

Best regards,
-- 
Benoît Monin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Re: [PATCH 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts
Posted by Linus Walleij 1 month, 1 week ago
On Fri, Dec 19, 2025 at 4:57 PM Benoît Monin <benoit.monin@bootlin.com> wrote:

> In my particular case of a microcontroller acting as an SPI "relay" on the
> evaluation board, what would be the best way to describe it? It connects
> the two SPI controllers of the SoC, one is a host and one is a target, so
> it behave as an SPI target on one side and as an SPI host on the other.
>
> The trivial devices bindings seems to be dedicated to devices, thus not for
> SPI hosts. Do I need a dedicated binding or did I miss something I could
> use for a trivial spidev slave?

That needs to be detailed and discussed with the SPI maintainer on the SPI
devel list. (Added.)

Can you illustrate with a picture or so what is going on here?

Yours,
Linus Walleij
Re: [PATCH 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts
Posted by Krzysztof Kozlowski 1 month, 2 weeks ago
On 19/12/2025 16:57, Benoît Monin wrote:
> Hi Krzysztof,
> 
> On 12/18/25 16:30, Krzysztof Kozlowski wrote:
>> On 17/12/2025 14:36, Benoît Monin wrote:
>>> +
>>> +&spi0 {
>>> +	pinctrl-0 = <&spi0_pins>;
>>> +	pinctrl-names = "default";
>>> +	status = "okay";
>>> +	spidev@0 {
>>> +		compatible = "lwn,bk4-spi";
>>
>> NAK, you are not operating an excavator here.
>>
> Indeed, I do not (and I should have known better...).
> 
>> Don't invent hardware.
>>
> In my particular case of a microcontroller acting as an SPI "relay" on the
> evaluation board, what would be the best way to describe it? It connects
> the two SPI controllers of the SoC, one is a host and one is a target, so
> it behave as an SPI target on one side and as an SPI host on the other.
> 
> The trivial devices bindings seems to be dedicated to devices, thus not for
> SPI hosts. Do I need a dedicated binding or did I miss something I could
> use for a trivial spidev slave?

In DT you describe only a real device connected here, so in case of your
evalboard - nothing can be described, because there is no such real device.

Best regards,
Krzysztof