Part Number: AM625
Other Parts Discussed in Thread: SYSCONFIG, AM5728
My configuration is as follows:
gpmc0_pins_default: gpmc0-pins-default {
bootph-all;
pinctrl-single,pins = <
AM62X_IOPAD(0x003C, PIN_INPUT, 0) /* (K19) GPMC0_AD0 */
AM62X_IOPAD(0x0040, PIN_INPUT, 0) /* (L19) GPMC0_AD1 */
AM62X_IOPAD(0x0044, PIN_INPUT, 0) /* (L20) GPMC0_AD2 */
AM62X_IOPAD(0x0048, PIN_INPUT, 0) /* (L21) GPMC0_AD3 */
AM62X_IOPAD(0x004C, PIN_INPUT, 0) /* (M21) GPMC0_AD4 */
AM62X_IOPAD(0x0050, PIN_INPUT, 0) /* (L17) GPMC0_AD5 */
AM62X_IOPAD(0x0054, PIN_INPUT, 0) /* (L18) GPMC0_AD6 */
AM62X_IOPAD(0x0058, PIN_INPUT, 0) /* (M20) GPMC0_AD7 */
AM62X_IOPAD(0x0090, PIN_OUTPUT, 0) /* (K17) GPMC0_BE0n_CLE */
AM62X_IOPAD(0x0094, PIN_OUTPUT, 0) /* (K18) GPMC0_BE1n */
AM62X_IOPAD(0x00A8, PIN_OUTPUT, 0) /* (J18) GPMC0_CSn0 */
AM62X_IOPAD(0x00AC, PIN_OUTPUT, 0) /* (H17) GPMC0_CSn1 */
AM62X_IOPAD(0x00B0, PIN_OUTPUT, 0) /* (H18) GPMC0_CSn2 */
AM62X_IOPAD(0x0098, PIN_INPUT, 0) /* (P21) GPMC0_WAIT0 */
AM62X_IOPAD(0x0084, PIN_OUTPUT, 0) /* (K20) GPMC0_ADVn_ALE */
AM62X_IOPAD(0x007C, PIN_OUTPUT, 0) /* (M19) GPMC0_CLK */
AM62X_IOPAD(0x00A4, PIN_OUTPUT, 0) /* (J19) GPMC0_DIR */
AM62X_IOPAD(0x0088, PIN_OUTPUT, 0) /* (K21) GPMC0_OEn_REn */
AM62X_IOPAD(0x008c, PIN_OUTPUT, 0) /* (J17) GPMC0_WEn */
AM62X_IOPAD(0x00B8, PIN_OUTPUT, 1) /* (R21) VOUT0_DATA0 to GPMC0_A0 */
AM62X_IOPAD(0x00BC, PIN_OUTPUT, 1) /* (P18) VOUT0_DATA1 to GPMC0_A1 */
AM62X_IOPAD(0x00C0, PIN_OUTPUT, 1) /* (R18) VOUT0_DATA2 to GPMC0_A2 */
AM62X_IOPAD(0x00C4, PIN_OUTPUT, 1) /* (R19) VOUT0_DATA3 to GPMC0_A3 */
AM62X_IOPAD(0x00C8, PIN_OUTPUT, 1) /* (R20) VOUT0_DATA4 to GPMC0_A4 */
AM62X_IOPAD(0x00CC, PIN_OUTPUT, 1) /* (T20) VOUT0_DATA5 to GPMC0_A5 */
AM62X_IOPAD(0x00D0, PIN_OUTPUT, 1) /* (T21) VOUT0_DATA6 to GPMC0_A6 */
AM62X_IOPAD(0x00D4, PIN_OUTPUT, 1) /* (T19) VOUT0_DATA7 to GPMC0_A7 */
AM62X_IOPAD(0x00D8, PIN_OUTPUT, 1) /* (U21) VOUT0_DATA8 to GPMC0_A8 */
AM62X_IOPAD(0x00DC, PIN_OUTPUT, 1) /* (R17) VOUT0_DATA9 to GPMC0_A9 */
AM62X_IOPAD(0x00E0, PIN_OUTPUT, 1) /* (T18) VOUT0_DATA10 to GPMC0_A10 */
AM62X_IOPAD(0x00E4, PIN_OUTPUT, 1) /* (U20) VOUT0_DATA11 to GPMC0_A11 */
AM62X_IOPAD(0x00E8, PIN_OUTPUT, 1) /* (U19) VOUT0_DATA12 to GPMC0_A12 */
AM62X_IOPAD(0x00EC, PIN_OUTPUT, 1) /* (V21) VOUT0_DATA13 to GPMC0_A13 */
AM62X_IOPAD(0x00F0, PIN_OUTPUT, 1) /* (U18) VOUT0_DATA14 to GPMC0_A14 */
AM62X_IOPAD(0x00F4, PIN_OUTPUT, 1) /* (V20) VOUT0_DATA15 to GPMC0_A15 */
AM62X_IOPAD(0x00F0, PIN_OUTPUT, 1) /* (W21) VOUT0_HSYNC to GPMC0_A16 */
AM62X_IOPAD(0x00FC, PIN_OUTPUT, 1) /* (T17) VOUT0_DE to GPMC0_A17 */
AM62X_IOPAD(0x0100, PIN_OUTPUT, 1) /* (T16) VOUT0_VSYNC to GPMC0_A18 */
AM62X_IOPAD(0x0104, PIN_OUTPUT, 1) /* (U17) VOUT0_PCLK to GPMC0_A19 */
AM62X_IOPAD(0x00B4, PIN_OUTPUT, 2) /* (H19) GPMC0_CSn3 to GPMC0_A20 */
AM62X_IOPAD(0x009C, PIN_OUTPUT, 2) /* (P17) GPMC0_WAIT1 to GPMC0_A21 */
AM62X_IOPAD(0x00A0, PIN_OUTPUT, 2) /* (J20) GPMC0_WPn to GPMC0_A22 */
>;
};
1.Could you help verify if this configuration and hardware design are feasible?
2.Apart from the pin configuration, are there any required modifications to the settings below?
&gpmc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&gpmc0_default_pins>;
#address-cells = <2>;
#size-cells = <1>;
nand@0,0 {
compatible = "ti,am64-nand";
reg = <0 0 64>; /* device IO registers */
interrupt-parent = <&gpmc0>;
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
<1 IRQ_TYPE_NONE>; /* termcount */
rb-gpios = <&gpmc0 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
ti,nand-xfer-type = "prefetch-polled";
ti,nand-ecc-opt = "bch8"; /* BCH8: Bootrom limitation */
ti,elm-id = <&elm0>;
nand-bus-width = <8>;
gpmc,device-width = <1>;
gpmc,sync-clk-ps = <0>;
gpmc,cs-on-ns = <0>;
gpmc,cs-rd-off-ns = <40>;
gpmc,cs-wr-off-ns = <40>;
gpmc,adv-on-ns = <0>;
gpmc,adv-rd-off-ns = <25>;
gpmc,adv-wr-off-ns = <25>;
gpmc,we-on-ns = <0>;
gpmc,we-off-ns = <20>;
gpmc,oe-on-ns = <3>;
gpmc,oe-off-ns = <30>;
gpmc,access-ns = <30>;
gpmc,rd-cycle-ns = <40>;
gpmc,wr-cycle-ns = <40>;
gpmc,bus-turnaround-ns = <0>;
gpmc,cycle2cycle-delay-ns = <0>;
gpmc,clk-activation-ns = <0>;
gpmc,wr-access-ns = <40>;
gpmc,wr-data-mux-bus-ns = <0>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
bootph-all;
label = "NAND.tiboot3";
reg = <0x00000000 0x00200000>; /* 2M */
};
partition@200000 {
bootph-all;
label = "NAND.tispl";
reg = <0x00200000 0x00200000>; /* 2M */
};
partition@400000 {
bootph-all;
label = "NAND.tiboot3.backup"; /* 2M */
reg = <0x00400000 0x00200000>; /* BootROM looks at 4M */
};
partition@600000 {
bootph-all;
label = "NAND.u-boot";
reg = <0x00600000 0x00400000>; /* 4M */
};
partition@a00000 {
bootph-all;
label = "NAND.u-boot-env";
reg = <0x00a00000 0x00040000>; /* 256K */
};
partition@a40000 {
bootph-all;
label = "NAND.u-boot-env.backup";
reg = <0x00a40000 0x00040000>; /* 256K */
};
partition@a80000 {
bootph-all;
label = "NAND.file-system";
reg = <0x00a80000 0x3f580000>;
};
};
};
};






