AnsweredAssumed Answered

Board fails to connect in mass storage mode | Mfgtool  | Custom Sabreauto based board

Question asked by Sooraj S on Jan 12, 2018
Latest reply on Jan 18, 2018 by Sooraj S

Complete log https://hastebin.com/raw/refomujino

usbcore: registered new interface driver usbfs 
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
2000000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
2000000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
i2c i2c-1: IMX I2C adapter registered

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
imx_usb 2184000.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517 udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers
ci_hdrc ci_hdrc.0: EHCI Host Controller ci_hdrc 
ci_hdrc.0: new USB bus registered, assigned bus number 1 ci_hdrc
ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517
Starting UTP uuc 0.5 [built Mar 12 2016 19:04:20] 
UTP: Waiting for device to appear
mmc1: new DDR MMC card at address 0001
mmcblk1: mmc1:0001 VM010B 14.5 GiB
mmcblk1boot0: mmc1:0001 VM010B partition 1 512 KiB
mmcblk1boot1: mmc1:0001 VM010B partition 2 512 KiB
mmcblk1rpmb: mmc1:0001 VM010B partition 3 512 KiB
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517
mmc2: host does not support reading read-only switch, assuming write-enable
mmc2: new high speed SDHC card at address aaaa
mmcblk2: mmc2:aaaa SS16G 14.8 GiB 
mmcblk2:
imx_usb 2184000.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517

USB_OTG_ID is on same pin as Sabreauto "MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID" also the regulator and other usb pins are same as sabreauto
Though there are changes to I2c3 SDA pin has been changed to GPIO_6 from EIM_D18 also port expander reset pin has been changed to EIM_DA14 from SD2_DAT0 and out board does not use Steer logic


In U-boot https://hastebin.com/raw/ogixatinad 

        .sda = { -               .i2c_mode = MX6_PAD_EIM_D18__I2C3_SDA | PC, -               .gpio_mode = MX6_PAD_EIM_D18__GPIO3_IO18 | PC, -               .gp = IMX_GPIO_NR(3, 18) +               .i2c_mode = MX6_PAD_GPIO_6__I2C3_SDA | PC, +               .gpio_mode = MX6_PAD_GPIO_6__GPIO1_IO06 | PC, +               .gp = IMX_GPIO_NR(1, 6)         }  };  #endif     static iomux_v3_cfg_t const port_exp[] = { -       MX6_PAD_SD2_DAT0__GPIO1_IO15            | MUX_PAD_CTRL(NO_PAD_CTRL), +       MX6_PAD_EIM_DA14__GPIO3_IO14            | MUX_PAD_CTRL(NO_PAD_CTRL),  };
pinctrl_i2c3: i2c3grp {
    fsl,pins = <
          MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
          MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
    >;

};

 

Manually probing i2c in uboot

U-Boot 2016.03-imx_v2016.03_4.1.15_2.0.0_ga+ga57b13b942 (Jan 11 2018 - 23:22:49 +0530)

 

CPU:   Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C) at 51C
Reset cause: POR
Board: MX6Q-Sabreauto revA
I2C:   ready
DRAM:  2 GiB
PMIC:  PFUZE100 ID=0x10
NAND:  0 MiB
MMC:   board_mmc_init : fsl_esdhc_initialize Successful
board_mmc_init : fsl_esdhc_initialize Successful
FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

 

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc1 is current device
Net:   Board Net Initialization Failed
No ethernet found.
Boot from USB for mfgtools
Use default environment for                              mfgtools
Run bootcmd_mfg: run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};
Hit any key to stop autoboot:  0
Bad Linux ARM zImage magic!
=> i2c dev 2
Setting bus to 2
=> i2c probe
Valid chip addresses: 20 30 34
=> i2c probe 34
Valid chip addresses: 34
=> i2c bus
Bus 0:  mxc0
Bus 1:  mxc1
Bus 2:  mxc2
=> i2c probe 30
Valid chip addresses: 30

 

I don't see i2c expander pin anywhere in kernel device tree.
Can anyone help find out what i must be missing ?

Outcomes