Part Number: AM3352
Tool/software: TI C/C++ Compiler
Hi,
I am using 4.14 kernel for my AM3352 custom board with gpmc NOR flash as my boot device. But i am not able to enable my nor flash using compatible cfi-flash.
Same thing is working fine with 3.14 kernel. Issue seen with only 4.14 kernel. My MTD blocks are not enabled.
Please find below logs and device tree.
&gpmc {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&nor0_pin>;
gpmc,num-waitpins = <1>;
ranges = <0 0 0x08000000 0x04000000>; //0x08000000 is memory address and 64mb of NOR
#address-cells = <2>;
#size-cells = <1>;
nor@0,0 {
compatible = "cfi-flash";
linux,mtd-name = "winbond,xxxxxxxx";
reg = <0 0x00000000 0x04000000>;//64mb of flash
bank-width = <2>;//16-bit flash i.e width
#address-cells = <1>;
#size-cells = <1>;
use-advanced-sector-protection;
gpmc,mux-add-data = <2>;
gpmc,cs-on-ns = <5>;//20
gpmc,cs-rd-off-ns = <150>;
gpmc,cs-wr-off-ns = <150>;
gpmc,adv-on-ns = <0>;
gpmc,adv-rd-off-ns = <10>;
gpmc,adv-wr-off-ns = <10>;
gpmc,oe-on-ns = <20>;
gpmc,oe-off-ns = <110>;
gpmc,we-on-ns = <0>;
gpmc,we-off-ns = <110>;
gpmc,rd-cycle-ns = <140>;
gpmc,wr-cycle-ns = <140>;
gpmc,access-ns = <120>;
gpmc,page-burst-access-ns = <30>;
gpmc,bus-turnaround-ns = <20>;
gpmc,cycle2cycle-delay-ns = <30>;
gpmc,wr-data-mux-bus-ns = <70>;
gpmc,wr-access-ns = <120>;
partition@0 {
label = "u-boot";
-------
logs:
[ 1.458116] pinctrl-single 44e10800.pinmux: pin PIN35 already requested by 4c
[ 1.469482] pinctrl-single 44e10800.pinmux: pin-35 (50000000.gpmc) status -22
[ 1.476977] pinctrl-single 44e10800.pinmux: could not request pin 35 (PIN35)e
[ 1.489745] omap-gpmc 50000000.gpmc: Error applying setting, reverse things k
[ 1.497528] omap-gpmc: probe of 50000000.gpmc failed with error -22 ------------------------------->this is the error for gpmc
[ 1.506147] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.527153] rtc rtc1: invalid alarm value: 1970-5-25 25:84:0
Please help to solve this issue. Working fine with 3.14
Regards,
Subramanya