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.

AM625: dmesg log same issue sram interfacing gpmc cs2

Part Number: AM625


Tool/software:

root@phyboard-lyra-am62xx-3:proc# dmesg | grep gpmc
[    0.988619] omap-gpmc 3b000000.memory-controller: GPMC revision 6.0
[    0.995093] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    1.001760] omap-gpmc 3b000000.memory-controller: /bus@f0000/memory-controller@3b000000/sram@51000000 has malformed 'reg' property
[    1.013801] omap-gpmc 3b000000.memory-controller: failed to probe DT child 'sram': -19

	gpmc0_pins_default: gpmc0-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x00b8, PIN_OUTPUT, 1) /* (U22) VOUT0_DATA0.GPMC0_A0 */
			AM62X_IOPAD(0x00bc, PIN_OUTPUT, 1) /* (V24) VOUT0_DATA1.GPMC0_A1 */
			AM62X_IOPAD(0x00e0, PIN_OUTPUT, 1) /* (V20) VOUT0_DATA10.GPMC0_A10 */
			AM62X_IOPAD(0x00e4, PIN_OUTPUT, 1) /* (AA23) VOUT0_DATA11.GPMC0_A11 */
			AM62X_IOPAD(0x00c0, PIN_OUTPUT, 1) /* (W25) VOUT0_DATA2.GPMC0_A2 */
			AM62X_IOPAD(0x00c4, PIN_OUTPUT, 1) /* (W24) VOUT0_DATA3.GPMC0_A3 */
			AM62X_IOPAD(0x00c8, PIN_OUTPUT, 1) /* (Y25) VOUT0_DATA4.GPMC0_A4 */
			AM62X_IOPAD(0x00cc, PIN_OUTPUT, 1) /* (Y24) VOUT0_DATA5.GPMC0_A5 */
			AM62X_IOPAD(0x00d0, PIN_OUTPUT, 1) /* (Y23) VOUT0_DATA6.GPMC0_A6 */
			AM62X_IOPAD(0x00d4, PIN_OUTPUT, 1) /* (AA25) VOUT0_DATA7.GPMC0_A7 */
			AM62X_IOPAD(0x00d8, PIN_OUTPUT, 1) /* (V21) VOUT0_DATA8.GPMC0_A8 */
			AM62X_IOPAD(0x00dc, PIN_OUTPUT, 1) /* (W21) VOUT0_DATA9.GPMC0_A9 */
			AM62X_IOPAD(0x003c, PIN_INPUT, 0) /* (M25) GPMC0_AD0 */
			AM62X_IOPAD(0x0040, PIN_INPUT, 0) /* (N23) GPMC0_AD1 */
			AM62X_IOPAD(0x0064, PIN_INPUT, 0) /* (T25) GPMC0_AD10 */
			AM62X_IOPAD(0x0068, PIN_INPUT, 0) /* (R21) GPMC0_AD11 */
			AM62X_IOPAD(0x006c, PIN_INPUT, 0) /* (T22) GPMC0_AD12 */
			AM62X_IOPAD(0x0070, PIN_INPUT, 0) /* (T24) GPMC0_AD13 */
			AM62X_IOPAD(0x0074, PIN_INPUT, 0) /* (U25) GPMC0_AD14 */
			AM62X_IOPAD(0x0078, PIN_INPUT, 0) /* (U24) GPMC0_AD15 */
			AM62X_IOPAD(0x0044, PIN_INPUT, 0) /* (N24) GPMC0_AD2 */
			AM62X_IOPAD(0x0048, PIN_INPUT, 0) /* (N25) GPMC0_AD3 */
			AM62X_IOPAD(0x004c, PIN_INPUT, 0) /* (P24) GPMC0_AD4 */
			AM62X_IOPAD(0x0050, PIN_INPUT, 0) /* (P22) GPMC0_AD5 */
			AM62X_IOPAD(0x0054, PIN_INPUT, 0) /* (P21) GPMC0_AD6 */
			AM62X_IOPAD(0x0058, PIN_INPUT, 0) /* (R23) GPMC0_AD7 */
			AM62X_IOPAD(0x005c, PIN_INPUT, 0) /* (R24) GPMC0_AD8 */
			AM62X_IOPAD(0x0060, PIN_INPUT, 0) /* (R25) GPMC0_AD9 */
			AM62X_IOPAD(0x0098, PIN_INPUT, 0) /* (U23) GPMC0_WAIT0 */
			AM62X_IOPAD(0x00b0, PIN_OUTPUT, 0) /* (K22) GPMC0_CSn2 */
			AM62X_IOPAD(0x0088, PIN_OUTPUT, 0) /* (L24) GPMC0_OEn_REn */
			AM62X_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L25) GPMC0_WEn */
		>;
	};






&gpmc0 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&gpmc0_pins_default>;
        ranges = <2 0 0x0 0x52000000 0x40000>; 
	#address-cells = <2>;
	#size-cells = <1>;


	
 sram@08000000 {
        compatible = "cypress,cy7c02av";
        reg = <2 0 0x00080000>; /* CS2, 512KB memory */
        #address-cells = <1>;
        #size-cells = <1>;

        gpmc,cs = <2>;
        gpmc,device-width = <2>; /* 16-bit DPRAM */
        gpmc,mux-add-data = <0>; /* No address/data mux */
        gpmc,wait-pin = <0>; /* No wait pin required */

        /* Corrected Timing Parameters for 25 ns cycle */
        gpmc,cs-on-ns      = <10>;
        gpmc,cs-rd-off-ns  = <30>;
        gpmc,cs-wr-off-ns  = <30>;

        gpmc,adv-on-ns     = <0>;
        gpmc,adv-rd-off-ns = <30>;
        gpmc,adv-wr-off-ns = <30>;

        gpmc,we-on-ns      = <10>;
        gpmc,we-off-ns     = <30>;
        gpmc,oe-on-ns      = <10>;
        gpmc,oe-off-ns     = <30>;

        gpmc,rd-cycle-ns   = <25>;
        gpmc,wr-cycle-ns   = <25>;
        gpmc,access-ns     = <20>;
        gpmc,wr-access-ns  = <20>;

        gpmc,cycle2cycle-delay-ns = <10>;
        gpmc,wr-data-mux-bus-ns   = <10>;
        gpmc,bus-turnaround-ns    = <10>;

        /* Removed unsupported burst settings */
    };

};