Hello,
We have designed a iMX28 board that should use the SSP0 port in SPI mode (that should be ok refering to datasheet).
We are using a stable kernel version 4.4.x-fslc kernel with the following devicetree node defined
ssp@80010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-spi";
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a &spi0_sck_cfg>;
num-chipselects = <1>;
status = "okay";
enc28j60@0 {
compatible = "microchip,enc28j60";
pinctrl-names = "default";
pinctrl-0 = <&enc28j60_pins>;
interrupt-parent = <&gpio2>;
interrupts = <27 0x2>;
spi-max-frequency = <20000000>;
reg = <0>;
};
};
The pinmux is defined like below:
spi0_pins_a: spi0@0 {
reg = <0>;
fsl,pinmux-ids = <
MX28_PAD_SSP0_SCK__SSP0_SCK
MX28_PAD_SSP0_CMD__SSP0_CMD
MX28_PAD_SSP0_DATA0__SSP0_D0
MX28_PAD_SSP0_DATA3__SSP0_D3
>;
fsl,drive-strength = <MXS_DRIVE_8mA>;
fsl,voltage = <MXS_VOLTAGE_HIGH>;
fsl,pull-up = <MXS_PULL_ENABLE>;
};
Can you confirm that this configuration is possible ? Until now we did not success making it work.
Hi:
Can you share how to add ENC28J60 to the DTS ? thanks
Hi Kamel,
The compatible string you use is not correct.
Take a look at this dts file that shows the usage of a m25p80 spi flash on mx28,as reference:
imx28-m28evk.dts\dts\boot\arm\arch - kernel/git/stable/linux.git - Linux kernel stable tree
Regards