From patchwork Mon Mar 1 02:16:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chenjun (AM)" X-Patchwork-Id: 1445410 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DpnC02HLZz9sVw for ; Mon, 1 Mar 2021 15:21:32 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4DpnC01YmWz3ck8 for ; Mon, 1 Mar 2021 15:21:32 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=huawei.com (client-ip=45.249.212.255; helo=szxga08-in.huawei.com; envelope-from=chenjun102@huawei.com; receiver=) X-Greylist: delayed 997 seconds by postgrey-1.36 at boromir; Mon, 01 Mar 2021 13:34:01 AEDT Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Dpkpx3G0Zz30N8 for ; Mon, 1 Mar 2021 13:33:58 +1100 (AEDT) Received: from dggeml405-hub.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4DpkNH0z2rz140Vj; Mon, 1 Mar 2021 10:14:23 +0800 (CST) Received: from DGGEML509-MBX.china.huawei.com ([169.254.1.252]) by dggeml405-hub.china.huawei.com ([10.3.17.49]) with mapi id 14.03.0509.000; Mon, 1 Mar 2021 10:16:55 +0800 From: "chenjun (AM)" To: "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Rob Herring , Michael Ellerman , "Benjamin Herrenschmidt" , Paul Mackerras , "devicetree@vger.kernel.org" Subject: [Reoprt] Some compile warning on ppc dts Thread-Topic: [Reoprt] Some compile warning on ppc dts Thread-Index: AdcOQPNGmFy3U3BrTyOQctVQlk5NMQ== Date: Mon, 1 Mar 2021 02:16:55 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.178.53] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mailman-Approved-At: Mon, 01 Mar 2021 15:21:17 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Xiangrui \(Euler\)" Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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. --- 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. Can anyone fix this? 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>;