This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5729: 16 bit asynchronous gpmc fpga interface

Part Number: AM5729
Other Parts Discussed in Thread: SYSCONFIG

We are developing gpmc driver for am5729 based board in which the GPMC will be used to connect external devices FPGA.

We have initialized all required gpmc registers and pin mux configuration in our driver. 

Register Settings,
GPMC_REVISION     : 0x60
GPMC_SYSCONFIG : 0x0
GPMC_SYSSTATUS : 0x1
GPMC_TIMEOUT_CONTROL: 0x1FF0
GPMC_CONFIG : 0xB00
GPMC_STATUS : 0x201
GPMC_CONFIG1_0 : 0x1611010
GPMC_CONFIG2_0 : 0x1D1D00
GPMC_CONFIG3_0 : 0x40400
GPMC_CONFIG4_0 : 0x1D001D00
GPMC_CONFIG5_0 : 0x31D1D1D
GPMC_CONFIG6_0 : 0x9F070FCF
GPMC_CONFIG7_0 : 0xF41

Device tree settings,

gpmc: gpmc@50000000 {
compatible = "ti,am3352-gpmc";
ti,hwmods = "gpmc";
reg = <0x50000000 0x37c>; /* device IO registers */
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&edma_xbar 4 0>;
dma-names = "rxtx";
gpmc,num-cs = <8>;
gpmc,num-waitpins = <2>;
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x01000000 0x10000000>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-controller;
#gpio-cells = <2>;
status = "okay";
fpga@0,0 {
reg = <0 0 0x01000000>;
};

};

When we try to access the memory location 0x01000000 using devmem, we are failing with Bus Error.

Regards,

Rahulkumar