[Urgent] Configure device tree for second ethernet port (enc424j600) on Jetson Nano 2gb Developer kit

Hi, I am currently configuring a second ethernet port of enc424j600. Would like to request help on how to write up the device tree. The enc424j600 is connected to the SPI0 chip select 0 and interrupt pin on GPIO11

Done enable the driver through menuconfig, selected Y for driver encx24j600.

Currently I have write up the device tree as shown below. However for the pinctrl and interrupt settings is unclear with what to proceed next.

spi@7000d400 {
		compatible = "nvidia,tegra210-spi";
		reg = <0x0 0x7000d400 0x0 0x200>;
		interrupts = <0x0 0x3b 0x4>;
		iommus = <0x30 0xe>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		dmas = <0x50 0xf 0x50 0xf>;
		dma-names = "rx", "tx";
		nvidia,clk-parents = "pll_p", "clk_m";
		clocks = <0x26 0x29 0x26 0xf3 0x26 0xe9>;
		clock-names = "spi", "pll_p", "clk_m";
		resets = <0x26 0x29>;
		reset-names = "spi";
		status = "okay";
		linux,phandle = <0xf2>;
		phandle = <0xf2>;

		prod-settings {
			#prod-cells = <0x3>;

			prod {
				prod = <0x4 0xfff 0x0>;

			prod_c_flash {
				status = "disabled";
				prod = <0x4 0x3f 0x7>;

			prod_c_loop {
				status = "disabled";
				prod = <0x4 0xfff 0x44b>;

		ethernet@0 {
			compatible = "microchip,encx24j600";
			reg = <0x0>;
			spi-max-frequency = <0x1f78a40>;
			pinctrl-names = "default";
            pinctrl-0 = <>;
            interrupt-parent = <>;
            interrupts = <>;
			controller-data {
				nvidia,rx-clk-tap-delay = <0x7>;

We don’t support ethernet over SPI so no such experience with this device.

Maybe you should contact the vendor to know what should be written to the DT.

I see.
Is there any related documentation on the pinctrl and interrupts that I could refer to for writing the dt?
Second, could I request for the original dts code with human readable format, to improve the readability and coding process?

The source code is already released and it is released for every version.

I only know the dtb is in kernel/dtb. How about the dts file?

That is why I shared a website to you. How about you check the website first?

Ah I found the tegra210-p3448-0003-p3542-0000.dts.
Thanks for the help.

1 Like