I would appreciate some comments/insights/criticism on my design:
I want to turn on/off a linear regulator (MIC5504) based on the light. I have tried just using a resistor and photoresistor voltage divider on the gate of the FET, but this causes flickering in certain lighting conditions (which is somewhat reduced with a 0.1uF cap, but whatever).
To overcome this, I decided to put in a Schmitt trigger roughly between 2/3V.
The op-amp then turns the FET on, enabling the 3.3V linear regulator.
I have not picked an op-amp. I have LM358P on hand, but am willing to go for some SOT-23 alternative, like AD8541. Not sure what the best "general purpose" op-amps are, but I feel like any old op-amp would work for my scenario. The reason I want to go for SOT-23 is because I have breakout boards to DIP for them on hand.
(The battery is connected to a BQ21040 for charging, but that is not included in this schematic.)
(I'm also aware that the battery won't stay at 3.7, and will be somewhere between 4.2 and 3-ish V. In those cases, I'm OK with the trigger values changing).