Re: [PATCH 1/3] dt-bindings: iio: proximity: add Sharp GP2AP070S proximity sensor
From: Kaustabh Chakraborty
Date: Wed Jul 29 2026 - 13:40:02 EST
On 2026-07-23 23:47 +02:00, Joshua Crofts wrote:
> On Thu, 23 Jul 2026 22:58:33 +0530
> Kaustabh Chakraborty <kauschluss@xxxxxxxxxxx> wrote:
>
>> The GP2AP070S is a proximity sensor designed and manufactured by Sharp
>> Corporation. Unlike the other GP2AP* schemas, this is strictly a
>> proximity sensor and NOT an ambient light sensor.
>>
>> For power supplies, it expects two voltage supplies, one for core and
>> other for driving the infrared LED which is used to measure proximity
>> distance.
>>
>> This chip has been used in production mobile devices such as the Samsung
>> Galaxy J6.
>>
>> Signed-off-by: Kaustabh Chakraborty <kauschluss@xxxxxxxxxxx>
>> ---
>
> ...
>
>> + vdd-supply:
>> + description: Voltage supply for the internal circuitry
>> +
>> + vled-supply:
>> + description: Voltage supply for the IR LED
>> +
>> + proximity-near-level: true
>> +
>> +required:
>> + - compatible
>> + - reg
>> + - interrupts
>
> vdd-supply and vled-supply are definitely required.
Only marking vdd-supply as required as some chips are able to draw LED
power from vdd-supply instead of its own regulator.