Re: [PATCH v4 3/8] dt-bindings: arm: altera: add Agilex5 SOCDK eMMC board variant

"Kathpalia, Tanmay" <[email protected]>
Newsgroups dev.linux.lists.sashiko-reviews,org.kernel.vger.linux-devicetree
Message-ID <[email protected]>
On 8/11/2026 12:40 AM, [email protected] wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] Device Tree compilation will fail due to the undefined macro `COMBOPHY_RESET` in the `emmc` node.
> --
>
> --- Patch [3]: [PATCH v4 3/8] dt-bindings: arm: altera: add Agilex5 SOCDK eMMC board variant ---
> commit a686e27903fc966d624926fbeae5d10fa6638ad7
> Author: Tanmay Kathpalia <[email protected]>
>
> dt-bindings: arm: altera: add Agilex5 SOCDK eMMC board variant
>
> Document the Agilex5 SoCDK with the eMMC daughter card, which uses the
> shared HPS SD/eMMC host for onboard eMMC instead of an SD slot.
>
>> diff --git a/Documentation/devicetree/bindings/arm/altera.yaml b/Documentation/devicetree/bindings/arm/altera.yaml
>> index 0b418d9d60dbd..ce3a8c1679e57 100644
>> --- a/Documentation/devicetree/bindings/arm/altera.yaml
>> +++ b/Documentation/devicetree/bindings/arm/altera.yaml
>> @@ -112,6 +112,7 @@ properties:
>>                 - intel,socfpga-agilex5-socdk
>>                 - intel,socfpga-agilex5-socdk-013b
>>                 - intel,socfpga-agilex5-socdk-debug
>> +              - intel,socfpga-agilex5-socdk-emmc
> [Severity: Low]
> Does this new variant introduce a regression when compiling the emmc node in
> socfpga_agilex5.dtsi?
>
> It appears that Device Tree compilation will fail due to the undefined macro
> COMBOPHY_RESET in the emmc node.
>
> In arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi:
>
> 		emmc: mmc@10808000 {
> 			compatible = "altr,agilex5-sd6hc", "cdns,sd6hc";
> 			...
> 			resets = <&rst SDMMC_RESET>, <&rst COMBOPHY_RESET>,
> 				 <&rst SDMMC_OCP_RESET>;
>
> The resets property uses the COMBOPHY_RESET macro which is not defined in
> dt-bindings/reset/altr,rst-mgr-s10.h or anywhere else in the tree. Because
> the C preprocessor leaves undefined macros unexpanded, executing the dtbs make
> target will result in a syntax error when the compiler expects integer cell
> references.
>
> Should this macro be added to the reset bindings, or is a different reset
> intended here?

This comment applies to patch 2/8 (arm64: dts: agilex5: add SD/eMMC host
controller), which adds the emmc node.

COMBOPHY_RESET is already defined. It was added by:
commit ab45ecfab540 ("dt-bindings: reset: altr: add COMBOPHY_RESET for 
Agilex5")
which is in mainline via the reset tree:
   #define COMBOPHY_RESET        38
in include/dt-bindings/reset/altr,rst-mgr-s10.h.

That commit is not yet in mmc/next, which is why DT builds against mmc/next
alone can fail. The dependency is called out in the cover letter and in the
patch 2/8.


>>                 - intel,socfpga-agilex5-socdk-modular
>>                 - intel,socfpga-agilex5-socdk-nand
>>             - const: intel,socfpga-agilex5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.