Re: Build error caused by "arm64: dts: agilex: add nand clocks"

From: Dinh Nguyen
Date: Tue Aug 04 2020 - 15:02:42 EST


Hi Markus,

Thanks for catching this.

There's a commit that is going through the clock tree that will fix this:

commit c2710fdf935bb1286e8eb6a6b44991bab1fe87af
Author: Dinh Nguyen <dinguyen@xxxxxxxxxx>
Date: Tue Jun 16 15:24:15 2020 -0500

dt-bindings: agilex: add NAND_X_CLK and NAND_ECC_CLK

Add the NAND_X_CLK and NAND_ECC_CLK clocks.

Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxx>
Link:
https://lore.kernel.org/r/20200616202417.14376-1-dinguyen@xxxxxxxxxx
Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxx>

Once the clock updates get merged, this should get fixed. I'll be more
mindful of this in the future.

Dinh


On 8/4/20 1:48 PM, Markus Mayer wrote:
> Hi,
>
> I don't know if anybody else is seeing this, but for me the commit
> "arm64: dts: agilex: add nand clocks"[1] is causing a build error
> while generating DTS files for ARM64.
>
> The error goes away when I drop the commit.
>
> $ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make defconfig dtbs
> HOSTCC scripts/basic/fixdep
> HOSTCC scripts/kconfig/conf.o
> HOSTCC scripts/kconfig/confdata.o
> HOSTCC scripts/kconfig/expr.o
> LEX scripts/kconfig/lexer.lex.c
> YACC scripts/kconfig/parser.tab.[ch]
> HOSTCC scripts/kconfig/lexer.lex.o
> HOSTCC scripts/kconfig/parser.tab.o
> HOSTCC scripts/kconfig/preprocess.o
> HOSTCC scripts/kconfig/symbol.o
> HOSTCC scripts/kconfig/util.o
> HOSTLD scripts/kconfig/conf
> *** Default configuration is based on 'defconfig'
> [...]
> DTC arch/arm64/boot/dts/freescale/imx8mq-pico-pi.dtb
> DTC arch/arm64/boot/dts/freescale/imx8mq-thor96.dtb
> DTC arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-rmb3.dtb
> DTC arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-zest.dtb
> DTC arch/arm64/boot/dts/freescale/imx8qxp-ai_ml.dtb
> DTC arch/arm64/boot/dts/freescale/imx8qxp-colibri-eval-v3.dtb
> DTC arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb
> DTC arch/arm64/boot/dts/freescale/s32v234-evb.dtb
> DTC arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb
> DTC arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dtb
> DTC arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dtb
> DTC arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb
> DTC arch/arm64/boot/dts/hisilicon/hip05-d02.dtb
> DTC arch/arm64/boot/dts/hisilicon/hip06-d03.dtb
> DTC arch/arm64/boot/dts/hisilicon/hip07-d05.dtb
> DTC arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dtb
> Error: arch/arm64/boot/dts/intel/socfpga_agilex.dtsi:313.15-16 syntax error
> FATAL ERROR: Unable to parse input tree
> make[3]: *** [scripts/Makefile.lib:309:
> arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dtb] Error 1
> make[2]: *** [scripts/Makefile.build:497: arch/arm64/boot/dts/intel] Error 2
> make[1]: *** [Makefile:1306: dtbs] Error 2
> make: *** [Makefile:336: __build_one_by_one] Error 2
>
> Regards,
> -Markus
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d4ae4dd346cd49302d157b129ead2f60d3a82534
>