Form: S-8

Initial registration statement for securities to be offered to employees pursuant to employee benefit plans

June 7, 2023

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the use of our report dated March 3, 2023, with respect to the consolidated financial statements of TTM Technologies, Inc., and the effectiveness of internal control over financial reporting, incorporated herein by reference.

/s/ KPMG LLP

Irvine, California

June 7, 2023