What was the non-GAAP gross profit for NXPI in Q4 2022 
and down in the low 20% range versus quarter four '22. Mobile is expected to be down about in the mid-40% range, both on a year-on-year and sequential basis.
Finally, communication infrastructure and other is expected to be about flat, both on a year on year and sequentially. In summary, as we head into 2023, our automotive and core Industrial businesses remained supply constraint in select areas. Within automotive, the increase of global production levels and the secular adoption of xEV are tailwinds to continued content increases. In industrial and IoT, we expect relative strength in the core industrial submarkets as our products enable critical infrastructure and companies to be more efficient.
However, the consumer IoT and the mobile segment will continue to be dependent on a cyclical rebound. And lastly, in communications infrastructure, we expect our supply capability to improve against pent-up demand, specifically in our RFID packing solutions, secure access products, and e-government identification. Within the 5G base station markets, growth in '23 will be dependent on the build-out, especially in India. At the same time, we do believe from an external macro perspective, the general demand environment is offering much higher levels of uncertainty than last year.
And in the very short term, we are expecting a dip in China due to the spike in infection rates following the policy shift relating to COVID. Additionally, we expect continued cyclical weakness in demand for consumer-oriented products and a potential correction of customer inventory. In this more uncertain demand environment, we will focus on prudently managing what is in our control. And especially while we have plenty of orders, we will continue to very vigilantly manage general inventory to a 1.6 months level, which is about a month's below our long-term target, equaling approximately 500 million of revenue.
We intend to maintain that 1.6 months channel inventory in the first quarter, while we are well positioned with our on-hand inventory to increase channel inventory, if and when demand in China evolves. So, far, quarter to date, our distribution sales through in China is off to a slow start as is incorporated in our guidance. Over the midterm, we are cautiously optimistic given customer engagement levels, design win momentum in our strategic focus areas, and a potential rebound in China. And now I would like to pass the call to you, Bill, for a review of our financial performance.
Bill Betz -- Chief Financial Officer
Thank you, Kurt, and good morning to everyone on today's call. As Kurt has already covered the drivers of revenue during Q4 and provided our revenue outlook for Q1, I will move to the financial highlights. Overall, our Q4 financial performance was very good. Revenue was slightly above the midpoint of our guidance range, and both non-GAAP gross profit and non-GAAP operating profit were above the midpoint of our guidance.
I will first provide full year highlights and then move to the Q4 results. Full year revenue for 2022 was 13.21 billion, up 19% year on year. We generated 7.64 billion in non-GAAP gross profit and recorded a non-GAAP gross margin of 57.9%, up 180 basis points year on year as a result of higher internal factory utilization and follow-through on higher revenue, which is at the high end of our long-term financial model. Total non-GAAP operating expenses were 2.86 billion or 21.6% of revenue of our lower long-term financial model.
Total non-GAAP operating profit was 4.79 billion, up 32% year on year. This reflects a non-GAAP operating margin of 36.3%, up 340 basis points year on year and above our long-term financial model. Non-GAAP interest expense was 386 million; cash taxes for ongoing operations were 558 million; noncontrolling interests of 46 million; and stock-based compensation, which is not included in our non-GAAP earnings, was 364 million. Full year cash flow highlights include 3.9 billion in cash flow from operations and 1.06 billion in net capex investments, or 8% of revenue, resulting in 2.83 billion of non-GAAP
and down in the low 20% range versus quarter four '22. Mobile is expected to be down about in the mid-40% range, both on a year-on-year and sequential basis.
Finally, communication infrastructure and other is expected to be about flat, both on a year on year and sequentially. In summary, as we head into 2023, our automotive and core Industrial businesses remained supply constraint in select areas. Within automotive, the increase of global production levels and the secular adoption of xEV are tailwinds to continued content increases. In industrial and IoT, we expect relative strength in the core industrial submarkets as our products enable critical infrastructure and companies to be more efficient.
However, the consumer IoT and the mobile segment will continue to be dependent on a cyclical rebound. And lastly, in communications infrastructure, we expect our supply capability to improve against pent-up demand, specifically in our RFID packing solutions, secure access products, and e-government identification. Within the 5G base station markets, growth in '23 will be dependent on the build-out, especially in India. At the same time, we do believe from an external macro perspective, the general demand environment is offering much higher levels of uncertainty than last year.
And in the very short term, we are expecting a dip in China due to the spike in infection rates following the policy shift relating to COVID. Additionally, we expect continued cyclical weakness in demand for consumer-oriented products and a potential correction of customer inventory. In this more uncertain demand environment, we will focus on prudently managing what is in our control. And especially while we have plenty of orders, we will continue to very vigilantly manage general inventory to a 1.6 months level, which is about a month's below our long-term target, equaling approximately 500 million of revenue.
We intend to maintain that 1.6 months channel inventory in the first quarter, while we are well positioned with our on-hand inventory to increase channel inventory, if and when demand in China evolves. So, far, quarter to date, our distribution sales through in China is off to a slow start as is incorporated in our guidance. Over the midterm, we are cautiously optimistic given customer engagement levels, design win momentum in our strategic focus areas, and a potential rebound in China. And now I would like to pass the call to you, Bill, for a review of our financial performance.
Bill Betz -- Chief Financial Officer
 Thank you, Kurt, and good morning to everyone on today's call. As Kurt has already covered the drivers of revenue during Q4 and provided our revenue outlook for Q1, I will move to the financial highlights. Overall, our Q4 financial performance was very good. Revenue was slightly above the midpoint of our guidance range, and both non-GAAP gross profit and non-GAAP operating profit were above the midpoint of our guidance.
I will first provide full year highlights and then move to the Q4 results. Full year revenue for 2022 was 13.21 billion, up 19% year on year. We generated 7.64 billion in non-GAAP gross profit and recorded a non-GAAP gross margin of 57.9%, up 180 basis points year on year as a result of higher internal factory utilization and follow-through on higher revenue, which is at the high end of our long-term financial model. Total non-GAAP operating expenses were 2.86 billion or 21.6% of revenue of our lower long-term financial model.
Total non-GAAP operating profit was 4.79 billion, up 32% year on year. This reflects a non-GAAP operating margin of 36.3%, up 340 basis points year on year and above our long-term financial model. Non-GAAP interest expense was 386 million; cash taxes for ongoing operations were 558 million; noncontrolling interests of 46 million; and stock-based compensation, which is not included in our non-GAAP earnings, was 364 million. Full year cash flow highlights include 3.9 billion in cash flow from operations and 1.06 billion in net capex investments, or 8% of revenue, resulting in 2.83 billion of non-GAAP