FRAM support for TI Am64x

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
xixiguo
Level 1
Level 1
First reply posted First question asked Welcome!

Hi, 

I patched the linux-5.4.40-cy-spimem.patch to TI provided SDK.

And I modified the device tree like below,

&main_spi0 {
pinctrl-names = "default";
pinctrl-0 = <&main_spi0_pins_default>;
ti,pindir-d0-out-d1-in = <1>;
nvram@0 {
compatible = "cy-spimem", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
#spi-cs-high;
#data-size = <16>;
};
};

But the spi speed is not 40Mhz as expected. Please help to point out how to set the spi speed in device tree for FRAM?

Best Regards

xixiguo

0 Likes
1 Solution
Shubham_D
Moderator
Moderator
Moderator
10 likes received First question asked 50 solutions authored

Hi @xixiguo ,

Please find out the link below for the linux Patch covers CY15B104Q.

Link:https://github.com/Infineon/F-RAM/blob/master/Linux%20Driver%20Support%20for%20QSPI%20F-RAM/linux-5....

 

Thanks,

Shubham

View solution in original post

0 Likes
4 Replies
Shubham_D
Moderator
Moderator
Moderator
10 likes received First question asked 50 solutions authored

Hi @xixiguo ,

 

Let us know the MPN  of the part that you are using .

 

Thanks ,

Shubham

0 Likes
xixiguo
Level 1
Level 1
First reply posted First question asked Welcome!

Hi Shubham,

It's CYPRESS, CY15B104Q

Regards

xixiguo

 

0 Likes
Shubham_D
Moderator
Moderator
Moderator
10 likes received First question asked 50 solutions authored

Hi @xixiguo ,

Please find out the link below for the linux Patch covers CY15B104Q.

Link:https://github.com/Infineon/F-RAM/blob/master/Linux%20Driver%20Support%20for%20QSPI%20F-RAM/linux-5....

 

Thanks,

Shubham

0 Likes

Hi Shubham,

Thank you for this input!

I found that maybe it's because that AM64x REFCLK for spi can not be divided into 40Mhz, but it still needs to be confirmed.

Regards,

xixiguo

0 Likes