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,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x7>;
};
};