Only compensation can be used to fund an IRA. Generally, compensation is what you earn from working.
See - https://www.irs.gov/publications/p590a#en_US_2020_publink1000230364
Compensation doesn’t include any of the following items.
Earnings and profits from property, such as rental income, interest income, and dividend income.
Pension or annuity income.
Deferred compensation received (compensation payments postponed from a past year).
Income from a partnership for which you don’t provide services that are a material income-producing factor.
Conservation Reserve Program (CRP) payments reported on Schedule SE (Form 1040), line 1b.
Any amounts (other than combat pay) you exclude from income, such as foreign earned income and housing costs.
thank you
follow up question if you can
would this qualify s a contribution to self employed retirement plan?