Re: [PATCH v3 1/2] dt-bindings: firmware: svc: Add IOMMU support for Agilex5
From: Romli, Khairul Anuar
Date: Tue Nov 04 2025 - 06:15:04 EST
On 4/11/2025 5:48 pm, Krzysztof Kozlowski wrote:
> On Tue, Nov 04, 2025 at 07:39:27AM +0800, Khairul Anuar Romli wrote:
>> In Agilex5, the TBU (Translation Buffer Unit) can now operate in non-secure
>> mode, enabling Linux to utilize it through the IOMMU framework. This allows
>> improved memory management capabilities in non-secure environments. With
>> Agilex5 lifting this restriction, we are now extending the device tree
>> bindings to support IOMMU for the Agilex5 SVC.
>>
>> Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@xxxxxxxxxx>
>> Reviewed-by: Adrian Ng Ho Yin <adrianhoyin.ng@xxxxxxxxxx>
>> Reviewed-by: Niravkumar L Rabara <niravkumarlaxmidas.rabara@xxxxxxxxxx>
>
> Two reviews but...
>
>>
>> -required:
>> - - compatible
>> - - method
>> - - memory-region
>> +allOf:
>> + - required:
>> + - compatible
>> + - method
>> + - memory-region
>
> ... none told you this is not the correct syntax / style?
>
> Were these reviews really happening? What exactly was reviewed here?
>
> Best regards,
> Krzysztof
>
The peer review was on the property and compatible added in this patch.
I was at fault for not emphasize to check on the syntax / style for the
logical changes.
I refers to
Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml
and the changes could be as follows:
required:
- compatible
- method
- memory-region
+allOf:
+ - if:
+ properties:
+ compatible:
+ const: intel,agilex5-svc
+ then:
+ required:
+ - iommus
Do I need to re-specify the rest of the compatible property other than
intel,agilex5-svc and their required properties under the allOf block?
My objective is to specify that iommus only for intel,agilex5-svc but
not the rest of devices.
Thanks.
Best Regards,
Khairul