Mainline u-boot now has support for T113-S3.... for the T113-S4 you need to apply this patch to the DRAM initialization to change mapping from 5 to no remapping. Then T113-S4 DRAM is initialized correctly as 256MB
diff --git a/drivers/ram/sunxi/dram_sun20i_d1.c b/drivers/ram/sunxi/dram_sun20i_d1.c
index 25005ceefb..258d854f7f 100644
--- a/drivers/ram/sunxi/dram_sun20i_d1.c
+++ b/drivers/ram/sunxi/dram_sun20i_d1.c
@@ -674,7 +674,7 @@ static void mctl_phy_ac_remapping(dram_para_t *para)
switch (fuse) {
case 8: cfg = ac_remapping_tables[2]; break;
case 9: cfg = ac_remapping_tables[3]; break;
- case 10: cfg = ac_remapping_tables[5]; break;
+ case 10: cfg = ac_remapping_tables[0]; break;
case 11: cfg = ac_remapping_tables[4]; break;
default:
case 12: cfg = ac_remapping_tables[1]; break;