Re: [PATCH V5 3/5] dt-bindings: iio: adc: Add support for QCOM PMIC5 Gen3 ADC

From: Krzysztof Kozlowski
Date: Wed Feb 26 2025 - 04:42:59 EST


On 26/02/2025 09:51, Jishnu Prakash wrote:
>>> +
>>> + interrupts:
>>> + items:
>>> + - description: SDAM0 end of conversion (EOC) interrupt
>>> + - description: SDAM1 EOC interrupt
>>> + minItems: 1
>>
>> Same question.
>
> To explain why "reg" and "interrupts" are flexible:
>
> We need to add one item under each of these properties, per ADC SDAM. The number of PMIC SDAM peripherals allocated for ADC is not correlated with the PMIC used,
> it is programmed in FW (PBS) and is fixed per SOC, based on the SOC requirements.
>
> The number of ADC SDAMs used on a given SOC with a given PMIC (like PMK8550) will be fixed, but it is possible for
> the same PMIC to have 1 of its SDAMs allocated for ADC when used on one SOC and 2 SDAMs allocated for ADC when used on another SOC.
>
> All boards using a particular (SOC + PMIC) combination will have the same number of ADC SDAMs supported on that PMIC.

OK. Parts of above should be captured in commit msg or binding description.


Best regards,
Krzysztof