Can't enable SPI enable in IMX6UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't enable SPI enable in IMX6UL

758 Views
umershah81
Contributor II

I have edited .dts file and added spi4 and ecspi1 code inside. 
the code for SPI4 is ::
 

spi4 {
compatible = "spi-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi4>;
pinctrl-assert-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
status = "okay";
gpio-sck = <&gpio5 11 0>;
gpio-mosi = <&gpio5 10 0>;
cs-gpios = <&gpio5 7 0>;
num-chipselects = <1>;
#address-cells = <1>;
#size-cells = <0>;

gpio_spi: gpio_spi@0 {
compatible = "fairchild,74hc595";
gpio-controller;
#gpio-cells = <2>;
reg = <0>;
registers-number = <1>;
registers-default = /bits/ 8 <0x57>;
spi-max-frequency = <100000>;
};
};

....

and in

&iomuxc {

....

pinctrl_spi4: spi4grp {
fsl,pins = <
MX6UL_PAD_BOOT_MODE0__GPIO5_IO10 0x70a1
MX6UL_PAD_BOOT_MODE1__GPIO5_IO11 0x70a1
MX6UL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x70a1
MX6UL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x80000000
>;
};

.....}

but it's giving me miso not found. and SPI is not apearing in /dev/.

if there is any solution? :smileysad: :smileysad:

Labels (1)
0 Kudos
1 Reply

646 Views
igorpadykov
NXP Employee
NXP Employee

Hi syed

one can look at ecspi4 example in nxp linux:

imx6ul-14x14-evk-ecspi.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Linux documentation

i.MX Software | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos