The board arch/arm64/boot/dts/freescale/imx8mp.dtsi value is
ecspi2: spi@30830000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx8mp-ecspi", "fsl,imx6ul-ecspi";
reg = <0x30830000 0x10000>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MP_CLK_ECSPI2_ROOT>,
<&clk IMX8MP_CLK_ECSPI2_ROOT>;
clock-names = "ipg", "per";
assigned-clock-rates = <80000000>;
assigned-clocks = <&clk IMX8MP_CLK_ECSPI2>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_800M>;
dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
dma-names = "rx", "tx";
status = "disabled";
};
The main value is arch/arm64/boot/dts/congatec/imx8mp-cgtsx8p.dts
&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default","sleep";
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
pinctrl-1 = <&pinctrl_ecspi2_sleep &pinctrl_ecspi2_cs_sleep>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "disabled";
flash1: w25q64fw@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <500000>;
};
};
How can I add the section regarding encx24j600 to be controlled through spi.
In forums I could figure out a solution, but what about the pinout, interrupts? can be a valid solution this one? why was previously disabled?
./workspace/sources/linux-congatec-sx8p/arch/arm64/boot/dts/congatec/imx8mp-cgtsx8p.dts
&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default","sleep";
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
pinctrl-1 = <&pinctrl_ecspi2_sleep &pinctrl_ecspi2_cs_sleep>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay";
encx24j600: eth3@0 {
compatible = "microchip,encx24j600";
status = "okay";
reg = <0>;
spi-max-frequency = <10000000>;
#interrupt-parent = <&gpio0>;
#interrupts = <54 8>;
};
flash1: w25q64fw@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <500000>;
};
};