Re: [PATCH v3] arm64: dts: qcom: sdm630: Add support for modem remoteproc

From: Krzysztof Kozlowski
Date: Wed Jul 19 2023 - 06:19:01 EST


On 19/07/2023 12:10, Alexey Minnekhanov wrote:
> On 19.07.2023 12:45, Krzysztof Kozlowski wrote:
>> On 19/07/2023 11:34, Alexey Minnekhanov wrote:
>>> Modem subsystem in SDM630/660 is similar to MSM8998 and
>>> device tree node for it is based on the one from msm8998.dtsi.
>>>
>>> Signed-off-by: Alexey Minnekhanov <alexeymin@xxxxxxxxxxxxxxxx>
>>> ---
>>>
>>> V3: Use memory-region property to specify memory regions, instead
>>> of using "mba" and "mpss" subnodes.
>>>
>>> V2 link: https://lore.kernel.org/lkml/20230621175046.61521-3-alexeymin@xxxxxxxxxxxxxxxx/
>>>
>>> arch/arm64/boot/dts/qcom/sdm630.dtsi | 59 ++++++++++++++++++++++++++++
>>> 1 file changed, 59 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
>>> index 2136ded22f7e..797625cf78ac 100644
>>> --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
>>> +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
>>> @@ -1032,6 +1032,65 @@ data-pins {
>>> };
>>> };
>>>
>>> + remoteproc_mss: remoteproc@4080000 {
>>> + compatible = "qcom,sdm660-mss-pil";
>>
>> Missing bindings so standard comment:
>>
>> It does not look like you tested the DTS against bindings. Please run
>> `make dtbs_check` (see
>> Documentation/devicetree/bindings/writing-schema.rst or
>> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
>> for instructions).
>>
>> Best regards,
>> Krzysztof
>>
>
> Bindings are already in linux-next/master since
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ed50ac266f67829d4732c8ca61ef1953c2cc63d0

Hm, I checked a two days older next. Provide explanations or links if
you resend DTS in such case.

> .
>
> And I did check DTS against bindings, it spat 2 warnings about new
> remoteproc node, which do not make much sense to me:
>
> DTC_CHK arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dtb
> .../arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dtb:
> remoteproc@4080000: qcom,halt-regs:0: [43] is too short

That's ok.

> From schema:
> .../Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml
> .../arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dtb:
> remoteproc@4080000: memory-region: [[45], [46]] is too short
> From schema:
> .../Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml

This needs fixes. The binding lists expected memory regions and you do
not have three of them.

Best regards,
Krzysztof