Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1757073imw; Tue, 5 Jul 2022 15:04:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smVr4i3Vvw5l2jYZtVA8V2Q3FmaBRMU/hsnVfmo+tcRsKxU2Ho6/sW9PDq+2bmos7bOdUB X-Received: by 2002:a05:6402:278c:b0:439:6b09:de52 with SMTP id b12-20020a056402278c00b004396b09de52mr37758927ede.182.1657058678578; Tue, 05 Jul 2022 15:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657058678; cv=none; d=google.com; s=arc-20160816; b=wuSiZPEfqZE5NywfFzz77L0RqNEnph8f/YZqgBOF4rB/6fYKgUZZOEjnmQYpGNYgmz 7X3alHIws1Z4y8Zhe0I3imoCA1VnY7iceA+Nb9LBsqEqgwocC3wMyGC8BN0PKjA7IMx1 G6V12Egd2NF6IIb0U/NMx72H2WA+Wktx5PM91959gOXa8ovSL1lqANFO6FABLxZEj7cZ Z8AmiIw3Xreiw5TMLR1tpOx5Ki3vgbbtuqHSQh+pypRmEWpoyh54uBRISB5KsunBw/bz hN207n2TlIrnb7/6mI+W32ADlBF/aDxxqgI+usL62iPnFVlNU7v1jmEgWd5HUvM/dMOH UV3w== 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 :dkim-signature; bh=j2Z7TaOJeXWEtVLR0e0XhsP1PHcFQhAlsDhisuCTI68=; b=JDJg6hGqnBPP3Dscf4/8dTaNxCWqOukF2l96FXFv1n1YGDOau6k+LESabkRAuPXK1k f/Y/wblLop0TOv+At/2uhetlRSdjm6/HNAV0rlSBDQ4fBzzCL598IUx66YTSD/a0wOjT lc6B2Oyrg3b5qcFpeBzeJrgdJB0G0Z5vE+8EYIg9ArxcI2ZSKEx7ZjUEIVSz4KOhwZlQ umuScU3YT3H6m1WLHJ21Aq5zOXTN5CEefTzL9lVy3U6GZ0DqL2c9ZKKBqi7g7d3PY79b 9o6faLniHdUjJ7wronLlBOlFdn2uln+kBuXr11O6P44S0C7vDHNVEA9q9+aHg0U0C7Bz 5EjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b="XggLeeA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a056402320600b0043a7df069f0si2381760eda.192.2022.07.05.15.04.13; Tue, 05 Jul 2022 15:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b="XggLeeA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232788AbiGEVxX (ORCPT + 99 others); Tue, 5 Jul 2022 17:53:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232641AbiGEVwu (ORCPT ); Tue, 5 Jul 2022 17:52:50 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E26A319C37 for ; Tue, 5 Jul 2022 14:52:39 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id s1so19375222wra.9 for ; Tue, 05 Jul 2022 14:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j2Z7TaOJeXWEtVLR0e0XhsP1PHcFQhAlsDhisuCTI68=; b=XggLeeA/WTS9mEYdccjis5lFemn3ADc/NC/Rio0Njit6fDYwe4KqULiDHCG1BZE6D7 xE1+PrCMW9skQC1G33FqTwwPeBVBm/URrT/J92o4sQSWXYea58XJ8ipPVetQcYT5JnKf mZMGjP9ep5bFp6GU9hORlbtT4huMBIwRMdf0/KPbAZpcIRuPjVBV3UH8TZOhacY8n4dM PAM8XYn2VU8Fb8hzhh1pfmCjiAz+jbVzQe5YMIidd2uNKPz+nr7Nw2qaI4Snuqv4SzxU fRbg2ISKK9sV333yjUBDG+pIjyUIkQl6puDYlat0+7RJr6DyNpJs9468VUk0tOPfCyhB qhSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j2Z7TaOJeXWEtVLR0e0XhsP1PHcFQhAlsDhisuCTI68=; b=nR/736XlPkAe9CQvg+kU33lh0opQXVgrIcosYIwLHjvgwZlO/pzg0XyDFzMZuW+HlY YloqbgrugjPurRyOHz0k28sQkvFAh/CvBhl8FhALznFDt3cCh78hJdEZYcilZmdaDkhH LXXK3A0ZE8QE5l2QC69e0cibowOg8JwMBw20AaV3pBSBvzU5ZSC0ow3+8Z1fk61lKsu+ vcgEnEXjvC0y5xIQW4udwYskWgk+80SBiBxmUQ2vGi3cBEulRrK27mEKzrphaG9hB6wK +wIYEeDpTcA+IkeGK1oUIlt/jAHnqZcxEuHX1fO0aL9Gio7o+3UET4xSsdyuVO+EMVii 5naw== X-Gm-Message-State: AJIora/rsNFVZlTXSqIaUZqzv5IG6kfHMrUN5j7GI6Fc7nSlWGtvaGHC HG6jUnhu4IrJ3THBcBEaoOqhXg== X-Received: by 2002:a5d:5292:0:b0:21d:6c3b:a30a with SMTP id c18-20020a5d5292000000b0021d6c3ba30amr10584330wrv.602.1657057959345; Tue, 05 Jul 2022 14:52:39 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id g34-20020a05600c4ca200b0039c7dbafa7asm18353920wmp.19.2022.07.05.14.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 14:52:38 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 11/13] riscv: dts: canaan: fix bus {ranges,reg} warnings Date: Tue, 5 Jul 2022 22:52:12 +0100 Message-Id: <20220705215213.1802496-12-mail@conchuod.ie> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705215213.1802496-1-mail@conchuod.ie> References: <20220705215213.1802496-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Conor Dooley The k210 devicetrees warn about missing/empty reg and/or ranges properties: arch/riscv/boot/dts/canaan/k210.dtsi:408.22-460.5: Warning (unit_address_vs_reg): /soc/bus@52000000: node has a unit name, but no reg or ranges property arch/riscv/boot/dts/canaan/k210.dtsi:352.22-406.5: Warning (simple_bus_reg): /soc/bus@50400000: missing or empty reg/ranges property Add a ranges properties that naively caps the buses after the allocation of their last devices. Tested-by: Niklas Cassel Signed-off-by: Conor Dooley --- arch/riscv/boot/dts/canaan/k210.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/canaan/k210.dtsi index 948dc235e39d..a515e5fb1af3 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -163,7 +163,7 @@ apb0: bus@50200000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-pm-bus"; - ranges; + ranges = <0x50200000 0x50200000 0x200000>; clocks = <&sysclk K210_CLK_APB0>; gpio1: gpio@50200000 { @@ -382,7 +382,7 @@ apb1: bus@50400000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-pm-bus"; - ranges; + ranges = <0x50400000 0x50400000 0x40100>; clocks = <&sysclk K210_CLK_APB1>; wdt0: watchdog@50400000 { @@ -437,7 +437,7 @@ apb2: bus@52000000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-pm-bus"; - ranges; + ranges = <0x52000000 0x52000000 0x2000200>; clocks = <&sysclk K210_CLK_APB2>; spi0: spi@52000000 { -- 2.37.0