Hardware reset related to spi5

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

Hardware reset related to spi5

Jump to solution
1,548 Views
yan4
Contributor II

Hi community,

     Board: S32G399AAAVUC

     Software:bsp40

     I encountered a strange problem when i use spi5 in Mcore and disabled spi5 node in device tree of Acore . A hardware reset occurred after I used shutdown command and shutdown completed. I deleted spi5 node in device tree of Acore to solve the problem and it didn't happen again. I want to know what could have caused this issue, especially since this node is already disabled. Why do I have to delete it?

S32G3 

0 Kudos
Reply
1 Solution
1,472 Views
chenyin_h
NXP Employee
NXP Employee

Hi, @yan4 

Would you please double confirm that there is not any other &spi5 {} node that existed in other dtsi/dts file from your custom board? which may change the default status that set from s32cc.dtsi?

Thanks

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
6 Replies
1,412 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @yan4 

You are welcome

Glad to hear that the issue is solved

 

BR

Chenyin

0 Kudos
Reply
1,473 Views
chenyin_h
NXP Employee
NXP Employee

Hi, @yan4 

Would you please double confirm that there is not any other &spi5 {} node that existed in other dtsi/dts file from your custom board? which may change the default status that set from s32cc.dtsi?

Thanks

 

BR

Chenyin

0 Kudos
Reply
1,426 Views
yan4
Contributor II
Hi, @chenyin_h
Thanks a lot for your notification, I find a higher level device tree set its status to okay. Sincerely appreciate.
BR
yan
0 Kudos
Reply
1,496 Views
chenyin_h
NXP Employee
NXP Employee

Hi, @yan4 

Thanks for sharing the findings,  seems other part indeed did not take care of the status node. let me check if it is specific issue that caused by BSP or upstream.

 

BR

Chenyin

0 Kudos
Reply
1,516 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @yan4 

Thanks for your post.

From my understanding, there would be no differences for the two settings you made, maybe some code do not check whether a node is disabled, which may be the reason for the issues.

I assume that you are working with a custom board? the dts you mentioned is from TFA or kernel?

 

BR

Chenyin

0 Kudos
Reply
1,509 Views
yan4
Contributor II

Hi,@chenyin_h

    I find out that when device tree node is disabled, spi5 driver is not installed but its interrupt exists in /proc/interrupts. It seems that GIC automatically create the interrupt.

    The board im working with is a custom board but it only changes storage medium, so i won't assume that this issue is caused by customization. The device tree is from kernel, arch/arm64/boot/dts/freescale/s32cc.dtsi.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2019233%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2019233%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20community%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BBoard%3A%20S32G399AAAVUC%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BSoftware%3Absp40%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BI%20encountered%20a%20strange%20problem%20when%20i%20use%20spi5%20in%20Mcore%20and%20disabled%20spi5%20node%20in%20device%20tree%20of%20Acore%20.%20A%20hardware%20reset%20occurred%20after%20I%20used%20shutdown%20command%20and%20shutdown%20completed.%20I%20deleted%20spi5%20node%20in%20device%20tree%20of%20Acore%20to%20solve%20the%20problem%20and%20it%20didn't%20happen%20again.%26nbsp%3B%3CSPAN%3EI%20want%20to%20know%20what%20could%20have%20caused%20this%20issue%2C%20especially%20since%20this%20node%20is%20already%20disabled.%20Why%20do%20I%20have%20to%20delete%20it%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32G3%2Fpd-p%2FS32G3%22%20class%3D%22lia-product-mention%22%20data-product%3D%221686-1%22%20target%3D%22_blank%22%3ES32G3%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2020069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2020069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241049%22%20target%3D%22_blank%22%3E%40yan4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20are%20welcome%3C%2FP%3E%0A%3CP%3EGlad%20to%20hear%20that%20the%20issue%20is%20solved%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2019912%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2019912%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%2C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24163%22%20target%3D%22_blank%22%3E%40chenyin_h%3C%2FA%3E%3CBR%20%2F%3EThanks%20a%20lot%20for%20your%20notification%2C%20I%20find%20a%20higher%20level%20device%20tree%20set%20its%20status%20to%20okay.%20Sincerely%20appreciate.%3CBR%20%2F%3EBR%3CBR%20%2F%3Eyan%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2019838%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2019838%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241049%22%20target%3D%22_blank%22%3E%40yan4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWould%20you%20please%20double%20confirm%20that%20there%20is%20not%20any%20other%20%26amp%3Bspi5%20%7B%7D%20node%20that%20existed%20in%20other%20dtsi%2Fdts%20file%20from%20your%20custom%20board%3F%20which%20may%20change%20the%20default%20status%20that%20set%20from%20s32cc.dtsi%3F%3C%2FP%3E%0A%3CP%3EThanks%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2019677%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2019677%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241049%22%20target%3D%22_blank%22%3E%40yan4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20sharing%20the%20findings%2C%26nbsp%3B%20seems%20other%20part%20indeed%20did%20not%20take%20care%20of%20the%20status%20node.%20let%20me%20check%20if%20it%20is%20specific%20issue%20that%20caused%20by%20BSP%20or%20upstream.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2019483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2019483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%40chenyin_h%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20I%20find%20out%20that%20when%20device%20tree%20node%20is%20disabled%2C%20spi5%20driver%20is%20not%20installed%20but%20its%20interrupt%20exists%20in%20%2Fproc%2Finterrupts.%20It%20seems%20that%20GIC%20automatically%20create%20the%20interrupt.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20The%20board%20im%20working%20with%20is%20a%20custom%20board%20but%20it%20only%20changes%20storage%20medium%2C%20so%20i%20won't%20assume%20that%20this%20issue%20is%20caused%20by%20customization.%20The%20device%20tree%20is%20from%20kernel%2C%20arch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fs32cc.dtsi.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2019460%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Hardware%20reset%20related%20to%20spi5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2019460%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241049%22%20target%3D%22_blank%22%3E%40yan4%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3EFrom%20my%20understanding%2C%20there%20would%20be%20no%20differences%20for%20the%20two%20settings%20you%20made%2C%20maybe%20some%20code%20do%20not%20check%20whether%20a%20node%20is%20disabled%2C%20which%20may%20be%20the%20reason%20for%20the%20issues.%3C%2FP%3E%0A%3CP%3EI%20assume%20that%20you%20are%20working%20with%20a%20custom%20board%3F%20the%20dts%20you%20mentioned%20is%20from%20TFA%20or%20kernel%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E