From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C3A8C433EF for ; Wed, 27 Oct 2021 09:45:41 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B689A60EDF for ; Wed, 27 Oct 2021 09:45:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B689A60EDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mffUY-0003Qu-2C; Wed, 27 Oct 2021 05:45:06 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1mffUU-0003QW-6M for kernelnewbies@kernelnewbies.org; Wed, 27 Oct 2021 05:45:02 -0400 Received: from unknown (HELO send002-relay.gov-dooray.com) (211.180.235.153) by 129.254.9.16 with ESMTP; 27 Oct 2021 18:44:54 +0900 X-Original-SENDERIP: 211.180.235.153 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send002-relay.gov-dooray.com with SMTP id 6dc301d261791f96; Wed, 27 Oct 2021 18:44:54 +0900 DKIM-Signature: a=rsa-sha256; b=lvny48GbbFMSF/LJ9fnPtMN2fUtwF4P6RA+F+HnDny5ONaU6khcQgRWsn3RFT4UpRVycTyh6nY OXAmRpNzkJX2t4ILFct+yliOVkzVXcZv+lBIFSs+jH3XU5x10uq8d65zHFHqDGNwUFgdIt7Ci9uQ ZnHQowdPM/MKTncUMVst6s5VCkdzgH2NTNyrRoorHB+SVLr+GhSFaqhPFTsb3aE88uEXhLF/l+eH lh7cFNGTvMVEZuMgjNSkMD4dSJuAFqih7QJyBWVeF4fbm/JYUc+lU83fq2PmSBD6mA8wdHzQ55Kv SoXXPlsvZ8m+lWxrBw91boQ9TjQ0/Rwu9rCW3ejA==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=cdnugK00gxwTDzJ5FhJDSAjzMmvAh5sn5MPRtuqn54U=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id d2ffaa8061791f95; Wed, 27 Oct 2021 18:44:53 +0900 From: "Chan Kim" To: Subject: DTC compile error (simple-bus unit address format error for #address-cells = <2> case) Date: Wed, 27 Oct 2021 18:44:53 +0900 Message-ID: <00c301d7cb17$4afb52b0$e0f1f810$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AdfLFxLvzbT0GmeXQAqJ5bIB+yOWdw== X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6659907227050590236==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============6659907227050590236== Content-Type: multipart/alternative; boundary="----=_NextPart_000_00C4_01D7CB62.BAE3E510" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_00C4_01D7CB62.BAE3E510 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello all, Below is a part of arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi in linux kernel. This file is included by arch/arm64/boot/dts/arm/fvp-base-revc.dts. / { smb@8000000 { motherboard { arm,v2m-memory-map = "rs1"; compatible = "arm,vexpress,v2m-p1", "simple-bus"; #address-cells = <2>; /* SMB chipselect number and offset */ #size-cells = <1>; #interrupt-cells = <1>; ranges; flash@0,00000000 { compatible = "arm,vexpress-flash", "cfi-flash"; reg = <0 0x00000000 0x04000000>, <4 0x00000000 0x04000000>; bank-width = <4>; }; ethernet@2,02000000 { compatible = "smsc,lan91c111"; reg = <2 0x02000000 0x10000>; interrupts = <15>; }; When I compile the fvp-base-revc.dts file (following this method to handle pre-processing : https://stackoverflow.com/questions/50658326/device-tree-compiler-not-recogn izes-c-syntax-for-include-files), it gives me error below. arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi:20.21-25.6: Warning (simple_bus_reg): /smb@8000000/motherboard/flash@0,00000000: simple-bus unit address format error, expected "0" arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi:27.24-31.6: Warning (simple_bus_reg): /smb@8000000/motherboard/ethernet@2,02000000: simple-bus unit address format error, expected "202000000" The dtc is complaining about the address format `flash@0,00000000` or `ethernet@2,02000000`. But because the #address-cells = <2>, the node address should be given by chip select number and the offset (inside the chip select). How can I prevent this error? DTC version is 1.5.0. Any help will be appreciated. Thank you! Chan Kim ------=_NextPart_000_00C4_01D7CB62.BAE3E510 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all,

Below is a part of = arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi in linux kernel. This = file is included by = arch/arm64/boot/dts/arm/fvp-base-revc.dts.    =

 

/ {

    smb@8000000 {

        motherboard = {

          =   arm,v2m-memory-map =3D "rs1";

          =   compatible =3D "arm,vexpress,v2m-p1", = "simple-bus";

          =   #address-cells =3D <2>; /* SMB chipselect number and offset = */

          =   #size-cells =3D <1>;

          =   #interrupt-cells =3D <1>;

          =   ranges;

 

          =   flash@0,00000000 {

          =       compatible =3D = "arm,vexpress-flash", = "cfi-flash";

          =       reg =3D <0 0x00000000 = 0x04000000>,

          =             <4 = 0x00000000 0x04000000>;

          =       bank-width =3D = <4>;

          =   };

 

          =   ethernet@2,02000000 {

          =       compatible =3D = "smsc,lan91c111";

          =       reg =3D <2 0x02000000 = 0x10000>;

          =       interrupts =3D = <15>;

          =   };

 

When I compile the fvp-base-revc.dts file =

(following = this method to handle pre-processing : = https://stackoverflow.com/questions/50658326/device-tree-compiler-not-rec= ognizes-c-syntax-for-include-files), it gives me error = below.

 

arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi:20.21-25.6:= Warning (simple_bus_reg): /smb@8000000/motherboard/flash@0,00000000: = simple-bus unit address format error, expected = "0"

arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi:27.24-31.6:= Warning (simple_bus_reg): /smb@8000000/motherboard/ethernet@2,02000000: = simple-bus unit address format error, expected = "202000000"

 

The dtc is complaining about the address format = `flash@0,00000000` or `ethernet@2,02000000`.

But because the #address-cells =3D = <2>, the node address should be given by chip select number and = the offset (inside the chip select).

How can I prevent this error? DTC = version is 1.5.0.

 

Any help will be appreciated.

Thank you!

Chan Kim

 

------=_NextPart_000_00C4_01D7CB62.BAE3E510-- --===============6659907227050590236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============6659907227050590236==--