From patchwork Mon Dec 7 08:47:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 339157 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2628245jai; Mon, 7 Dec 2020 00:50:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTVdGkn0m9Aa27fEct5tBV3cuIdohvvgAdfCH4nRkoxuF2pdU/DL6t1f3mXvwtf7WE6+mW X-Received: by 2002:aa7:c919:: with SMTP id b25mr18367061edt.108.1607331010136; Mon, 07 Dec 2020 00:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607331010; cv=none; d=google.com; s=arc-20160816; b=kl7vzfg7iw/gdfLCunCtAMKK6Rbd1Ib2OAxDY4WF0PELTOzf3dfKi1icHSfR4tZ22r bAI+kmFSoQbzHFOScZDA7vmvkXIxT7/9DeuEsEbdLoJopakKe5GF4gjUDdA+wA3ghOwJ Ou0DKC00sTVHRehPdgW+a9kPgvqRwaitVUKG5XkQ+Vtpdgwd8O28l4HNJBNKuC98UmM4 IXvFylyybjOeDqlcJkgjYO3WntQn22NpyLoLVmSAq/kIZejb1OHI+AT4PrFJLe0BmzvL 9iyMWEOnU1OLhkww9NyIEGxJAy+POoPqeHTDSur6rtMjgQ4vqs9lhl78vyIdKgbCxsyv t75Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Hbv38KELcgv/usRYfNUG39tpkOG4ROWlQKIhokBm1sE=; b=j7jtTHPiKFMZW1cUgkJc/FMy1Sgot+S+lkl43QD32WLW63I/xQX0ZVFTQ0n6GEhm98 LK9VHiRcE2F2LmcMMoRJo9uaTR2y6Us0UuV6Rh/x/e5neWNQgDrDw2GmFxAung+rXt2t rgyiBvCL0r7mQZfftHWPbfIdtvNAMoUfwtprwlN2vINnxOwroqfFh2hQij3u1GUAkMix LYz3F5boWW1616waPgT14h1IbepWp+B4pR9breBckXSUnoez4JGJ0+rRWxnyyg+txmT0 BjFl8LC8A+X1FIiTfWwmW0MyVS0zzVHA3NUFxEOTS+CGmsVpyEy8iL3Fs028fftI4g4Q caQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 35si887838edm.126.2020.12.07.00.50.09; Mon, 07 Dec 2020 00:50:10 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726406AbgLGIs7 (ORCPT + 6 others); Mon, 7 Dec 2020 03:48:59 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9109 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbgLGIs7 (ORCPT ); Mon, 7 Dec 2020 03:48:59 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CqH4n62CGzLwd9; Mon, 7 Dec 2020 16:47:37 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 16:48:07 +0800 From: Zhen Lei To: Lubomir Rintel , Pavel Machek , "Arnd Bergmann" , Rob Herring , linux-arm-kernel , devicetree , linux-kernel CC: Zhen Lei Subject: [PATCH v2 1/1] ARM: dts: mmp2-olpc-xo-1-75: clear the warnings when make dtbs Date: Mon, 7 Dec 2020 16:47:52 +0800 Message-ID: <20201207084752.1665-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201207084752.1665-1-thunder.leizhen@huawei.com> References: <20201207084752.1665-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.9] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The check_spi_bus_bridge() in scripts/dtc/checks.c requires that the node have "spi-slave" property must with "#address-cells = <0>" and "#size-cells = <0>". But currently both "#address-cells" and "#size-cells" properties are deleted, the corresponding default values are 2 and 1. As a result, the check fails and below warnings is displayed. arch/arm/boot/dts/mmp2.dtsi:472.23-480.6: Warning (spi_bus_bridge): \ /soc/apb@d4000000/spi@d4037000: incorrect #address-cells for SPI bus also defined at arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts:225.7-237.3 arch/arm/boot/dts/mmp2.dtsi:472.23-480.6: Warning (spi_bus_bridge): \ /soc/apb@d4000000/spi@d4037000: incorrect #size-cells for SPI bus also defined at arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts:225.7-237.3 arch/arm/boot/dts/mmp2-olpc-xo-1-75.dtb: Warning (spi_bus_reg): \ Failed prerequisite 'spi_bus_bridge' Because the value of "#size-cells" is already defined as zero in the node "ssp3: spi@d4037000" in arch/arm/boot/dts/mmp2.dtsi. So we only need to explicitly add "#address-cells = <0>" and keep "#size-cells" no change. Signed-off-by: Zhen Lei --- arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.3 diff --git a/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts b/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts index adde62d6fce73b9..82da44dacba7172 100644 --- a/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts +++ b/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts @@ -224,7 +224,7 @@ &ssp3 { /delete-property/ #address-cells; - /delete-property/ #size-cells; + #address-cells = <0>; spi-slave; status = "okay"; ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>;