Apparently it was purely in software on iPhone/iPad. However, starting with the iPhone 16 and M4 iPad Pro, the LED indicator is rendered by a separate secure exclave:
https://www.tomsguide.com/phones/iphones/iphone-16s-a18-chip...
https://mastodon.social/@_inside/112552696723119626