LS1043A QSPI device tree for FRAM

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

LS1043A QSPI device tree for FRAM

573 Views
Pierre_B
Contributor I

Hi,

I am currently working with a LS1043A on a custom board. I am using the QSPI-B bus to communicate with two FRAMs, one at CS0 and one at CS1. Nothing is on QSPI-A. However, I'm not sure how to implement the corresponding device tree node. For now, it seems that when booting Linux it checks for something on the QSPI-A bus (I can see the CS pins going low when it tries to read the JEDEC id bytes, as well as the clock), but nothing on QSPI-B (CS0/1 not moving, still high).

Current implementation of device tree for QSPI:

fsl-ls1043a.dtsi :

qspi: quadspi@1550000
{
compatible = "fsl,ls1043a-qspi", "fsl,ls1021a-qspi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x1550000 0x0 0x10000>,
<0x0 0x40000000 0x0 0x4000000>;
reg-names = "QuadSPI", "QuadSPI-memory";
interrupts = <0 99 0x4>;
clock-names = "qspi_en", "qspi";
clocks = <&clockgen 4 0>, <&clockgen 4 0>;
big-endian = <1>;
status = "disabled";
};

my_file.dtsi (with every reg tried) :

&qspi
{
status = "okay";
fsl,qspi-has-second-chip = <1>;
bus-num = <0>;

qflash0:cy15v104q@10
{
#address-cells = <1>;
#size-cells = <1>;
compatible = "cy15v104q", "jedec,spi-nor"; /* 16MB */
reg = <0>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
spi-max-frequency = <65200000>; /* input clock */
};

qflash1:cy15v104q@1
{
#address-cells = <1>;
#size-cells = <1>;
compatible = "cy15v104q", "jedec,spi-nor"; /* 16MB */
reg = <1>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
spi-max-frequency = <65200000>; /* input clock */
};

qflash2:cy15v104q@2
{
#address-cells = <1>;
#size-cells = <1>;
compatible = "cy15v104q", "jedec,spi-nor"; /* 16MB */
reg = <2>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
spi-max-frequency = <65200000>; /* input clock */
};

qflash3: cy15v104q@3
{
#address-cells = <1>;
#size-cells = <1>;
compatible = "cy15v104q", "jedec,spi-nor";
reg = <3>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
spi-max-frequency = <65200000>; /* input clock */
};
};

Am I missing something in order to use the LS1043A QSPI-B bus ?

Thank you in advance for your help.

Best regards,

Pierre

0 Kudos
1 Reply

568 Views
ufedor
NXP Employee
NXP Employee

Please provide U-Boot booting log as text file for inspection.

0 Kudos