Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp294468pxm; Wed, 2 Mar 2022 15:40:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGasNYHaCbl+O0+rVIsTgKgwGn0+5ANHT9+VmnPZLygrIMHUUtcMw9S1d71xeIChVqUflg X-Received: by 2002:a05:6a00:1705:b0:4e1:5a1:c626 with SMTP id h5-20020a056a00170500b004e105a1c626mr35559900pfc.1.1646264437716; Wed, 02 Mar 2022 15:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646264437; cv=none; d=google.com; s=arc-20160816; b=rGKZSTgNw93YKYlgxdjkUTGz2dvh+4O62baCO1BJs//UoPQiP9y0AOYb1KQfkF/Vbd GehvdmAbuo83eJ8Qcacf1mt9DqjiB3h2f6458KMe977P7nVxYEHjlBzvHAMycg++udOL NQ+a3mJ+Of4+h71LSfKzUuPSWYyiHTrnzCRUuG3iIq8xmDXH0eALD8rm2lwXBzvg6gdU Cc8Phpah/rq1FRs5yjkoV92JwOf1vYZzETGZ8QYa6eompFaNLk3FzaTwvGzC9GtrhihP P37QUWVl94khxehjuMXMzZ56vh2uKKzLuiZwk7FqSGP3p7ERhMAoJP54a1jaxigSBmr1 u5pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=UkxFWTOY+XtYzcICn28aqyEtDcF7pnt06bstIB+TIfM=; b=f7Fq0jBSMrjn0UeelDyJTZlnjRYix9gE555kZHhcfPk9WhAzuWAzopb2TFN0oB4uVp iUvJVF/dveFmcoTvJEqbvC+G5yP4/XvmDaYDJTUAghzSy8AHEqUGUV+2NYOgA0XH1x/p J3uX0rxUhOS60lItoZolEG4JwNptoAAHld5bwzD2V1i+v5JbX05qZn2pxX6nURLuD0k2 Cg5em6nfTqNTczd8//cp23wj+sVMjuyHY7+1t44nvR34NIlfQ+q1e9EW09Fq4rbfoHMJ HFno4d4t7SKKPY+Ow9+cF1TL/xd94qoJzu1yKADiSOpjOfTF77vHDwxuzByd1Bgy9W04 fDgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id kk6-20020a17090b4a0600b001bcadded95esi7536141pjb.147.2022.03.02.15.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:40:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 109B3381B3; Wed, 2 Mar 2022 15:07:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240990AbiCBQY0 (ORCPT + 99 others); Wed, 2 Mar 2022 11:24:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232397AbiCBQYY (ORCPT ); Wed, 2 Mar 2022 11:24:24 -0500 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A653CFDE; Wed, 2 Mar 2022 08:23:41 -0800 (PST) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4K7zvH3rXNz9sSR; Wed, 2 Mar 2022 17:23:39 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g3_V2IdfLWdQ; Wed, 2 Mar 2022 17:23:39 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4K7zvH2zcrz9sSN; Wed, 2 Mar 2022 17:23:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 5597B8B76D; Wed, 2 Mar 2022 17:23:39 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id jM4um5h1j013; Wed, 2 Mar 2022 17:23:39 +0100 (CET) Received: from [172.25.230.108] (unknown [172.25.230.108]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 241D08B763; Wed, 2 Mar 2022 17:23:39 +0100 (CET) Message-ID: Date: Wed, 2 Mar 2022 17:23:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [Reoprt] Some compile warning on ppc dts Content-Language: fr-FR To: "chenjun (AM)" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , "devicetree@vger.kernel.org" Cc: "Xiangrui (Euler)" References: From: Christophe Leroy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 01/03/2021 à 03:16, chenjun (AM) a écrit : > Hi > > After run the following commands > make distclean > make allmodconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- > make oldconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- > make -j64 ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- > > I get some warning: > arch/powerpc/boot/dts/mpc5200b.dtsi:267.20-280.4: Warning (pci_bridge): > /pci@f0000d00: missing ranges for PCI bridg > e (or not a bridge) > arch/powerpc/boot/dts/o2dnt2.dtb: Warning (pci_device_bus_num): Failed > prerequisite 'pci_bridge' > arch/powerpc/boot/dts/mpc5200b.dtsi:182.18-186.5: Warning > (spi_bus_bridge): /soc5200@f0000000/psc@2000: node name f > or SPI buses should be 'spi' > also defined at arch/powerpc/boot/dts/o2d.dtsi:32.12-43.5 > arch/powerpc/boot/dts/o2dnt2.dtb: Warning (spi_bus_reg): Failed > prerequisite 'spi_bus_bridge' > ... > > For the problem about "node name for SPI buses should be 'spi'": > Rename the psc@2000 to spi@2000 in arch/powerpc/boot/dts/o2d.dtsi can > fix it. > diff --git a/arch/powerpc/boot/dts/o2d.dtsi b/arch/powerpc/boot/dts/o2d.dtsi > index 6661955a2be4..cd3dc70cd72e 100644 > --- a/arch/powerpc/boot/dts/o2d.dtsi > +++ b/arch/powerpc/boot/dts/o2d.dtsi > @@ -29,7 +29,7 @@ rtc@800 { > >------>------->-------status = "disabled"; > >------>-------}; > - > ->------>-------psc@2000 {>----->-------// PSC1 > +>------>-------spi@2000 {>----->-------// PSC1 > >------>------->-------compatible = > "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi"; > >------>------->-------#address-cells = <1>; > >------>------->-------#size-cells = <0>; > --- > > For the problem about "missing ranges for PCI bridge (or not a bridge)": > Ranges should be add in arch/powerpc/boot/dts/mpc5200b.dtsi. > >-------pci: pci@f0000d00 { > >------->-------#interrupt-cells = <1>; > >------->-------#size-cells = <2>; > >------->-------#address-cells = <3>; > >------->-------device_type = "pci"; > >------->-------compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci"; > >------->-------reg = <0xf0000d00 0x100>; > >------->-------// interrupt-map-mask = need to add > >------->-------// interrupt-map = need to add > >------->-------clock-frequency = <0>; // From boot loader > >------->-------interrupts = <2 8 0 2 9 0 2 10 0>; > >------->-------bus-range = <0 0>; > >------->-------// ranges = need to add > >-------}; > I think the ranges should be add by someone who knows the mpc5200 better. > This patch has garbage instead of tabs, it doesn't apply