Red trim is usually artillery isn't it? And obviously that's a 23 on his kepi, so that would be the 23rd Artillery Regt of somewhere. Looped braid on the cuffs too, which should narrow it down a bit more. Google tells me there were a few independent regiments of artillery, belonging to the various northern states.