Only cash contributions (e.g., checks, credit card charges) are acceptable in 529 plans. You’ll have to sell the stock and donate the proceeds. If the stock has appreciated, you’ll owe capital gains tax on your profits; if the value has declined, you’ll be able to take a tax loss.
An unincorporated business or income-producing entity organized by two or more persons. A partnership is not subject to tax but passes through to the partners all income, deductions, and credits, according to the terms of the partnership agreement.