Tall cranes dominate the waterfront at the Portsmouth Naval Shipyard in Kittery on Friday. Credit: Robert F. Bukaty | AP

The USS California has arrived for scheduled maintenance at Portsmouth Naval Shipyard.

The Virginia-class attack submarine traveled up the Piscataqua River to the shipyard on Sunday. It’ll undergo system upgrades and maintenance in coming months.

The nuclear-powered submarine, which is homeported in Groton, Connecticut, traveled 42,000 nautical miles on its last tour that wrapped up in the fall.

The submarine has a crew of 15 officers and 115 enlisted personnel. It’s the seventh Navy ship — and the first submarine — to be named for the Golden State.