LS1046 I2C for i2c3 cannot work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1046 I2C for i2c3 cannot work

706 Views
Sally_Jay
Contributor I

I cannot scan the device on i2c-3

In dts,the configure is

i2c3: i2c@21b0000 {
compatible = "fsl,vf610-i2c", "fsl,ls1046a-vf610-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x21b0000 0x0 0x10000>;
interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clockgen 4 1>;
fsl-scl-gpio = <&gpio3 12 0>;
status = "okay";
};
 
I checked the datasheet
Sally_Jay_0-1757378211038.pngSally_Jay_1-1757378233845.png

from the datasheet,it says the default value is 0000_1111h.
I add the bellow command to rcw_1800_qspiboot_1133_5a59.rcw
.pbi
//SCFG_RCWPMUXCR0, configure IIC4_SCL/SDA=000
write 0x157040C, 0x00000000
.end
after I add above command, the device cannot boot up.
I tried 0x00000011, 0x00330000.
all values will cause the device cannot boot.
What value do i need to configure? or I need to do more configure for this function?

0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2165491%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELS1046%20I2C%20for%20i2c3%20cannot%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165491%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20cannot%20scan%20the%20device%20on%20i2c-3%3C%2FP%3E%3CP%3EIn%20dts%EF%BC%8Cthe%20configure%20is%3C%2FP%3E%3CDIV%3E%3CSPAN%3Ei2c3%3A%20i2c%4021b0000%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ecompatible%20%3D%20%22fsl%2Cvf610-i2c%22%2C%20%22fsl%2Cls1046a-vf610-i2c%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ereg%20%3D%20%26lt%3B0x0%200x21b0000%200x0%200x10000%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Einterrupts%20%3D%20%3CGIC_SPI%2059%3D%22%22%20irq_type_level_high%3D%22%22%3E%3B%3C%2FGIC_SPI%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eclocks%20%3D%20%26lt%3B%26amp%3Bclockgen%204%201%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Efsl-scl-gpio%20%3D%20%26lt%3B%26amp%3Bgpio3%2012%200%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Estatus%20%3D%20%22okay%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EI%20checked%20the%20datasheet%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sally_Jay_0-1757378211038.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sally_Jay_0-1757378211038.png%22%20style%3D%22width%3A%20332px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355987iD9C8C6F1A0A6A0A2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sally_Jay_0-1757378211038.png%22%20alt%3D%22Sally_Jay_0-1757378211038.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sally_Jay_1-1757378233845.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sally_Jay_1-1757378233845.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355988i0513470E00DE4FA6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sally_Jay_1-1757378233845.png%22%20alt%3D%22Sally_Jay_1-1757378233845.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CP%3Efrom%20the%20datasheet%2Cit%20says%20the%20default%20value%20is%26nbsp%3B0000_1111h.%3CBR%20%2F%3EI%20add%20the%20bellow%20command%20to%20rcw_1800_qspiboot_1133_5a59.rcw%3CBR%20%2F%3E.pbi%3CBR%20%2F%3E%2F%2FSCFG_RCWPMUXCR0%2C%20configure%20IIC4_SCL%2FSDA%3D000%3CBR%20%2F%3Ewrite%200x157040C%2C%200x00000000%3CBR%20%2F%3E.end%3CBR%20%2F%3Eafter%20I%20add%20above%20command%2C%20the%20device%20cannot%20boot%20up.%3CBR%20%2F%3EI%20tried%26nbsp%3B0x00000011%2C%26nbsp%3B0x00330000.%3CBR%20%2F%3Eall%20values%20will%20cause%20the%20device%20cannot%20boot.%3CBR%20%2F%3EWhat%20value%20do%20i%20need%20to%20configure%3F%20or%20I%20need%20to%20do%20more%20configure%20for%20this%20function%3F%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E