Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp890238iog; Wed, 29 Jun 2022 12:17:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tPwv226eBn7kaz9zIvZlBeEDLy8dzYFCsYbJNL066e9TkK3GmD9LMuzmRUMyRcf/OIfNUc X-Received: by 2002:a17:90a:640d:b0:1ed:2255:372b with SMTP id g13-20020a17090a640d00b001ed2255372bmr7372135pjj.128.1656530278189; Wed, 29 Jun 2022 12:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656530278; cv=none; d=google.com; s=arc-20160816; b=Zd0y5cToMiZHi0piwAmLH+IskQNrO11rJItNv0gKu7wSuLxav7+wfJGOdOioZA3p2A J82aqvJO4Lj31kkYi9R1xMDz31LtsL6Q/xD2gumM5JHO2BfbKmjcN3k8M6Wps8kiRf5f Zsrw2biUfN6bhlqF6HTNZYXv1tLuT1NpSUntu2NI6oumgMVjmvRgixDARvLnagyTvGic tZsXFqG6wQW7QH2TxepWrNgbd66hl7H/nPhNxCc8uIqdhBLPxqBN4bRaO1eLVhQBPtYM Tel9TEG6XA2g4OzR5XbzQ5VVJXahecTnag2gElQphrWXOmjO79QZq6ne1AFtQrbb/ntG 1K+Q== 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=At25po1Wc0Z0LVVscrUsguBv2A3DKxx2gWOZDMIuiaM=; b=MB0C4A4ft0FaL9sWuov6W/+Pyl0g/CeFACLrDDKhYJYim4fRFBdzCrhm8fK1lsNgKI p4xIHhCalY9xQjpTMFlvFUpIe1fMLY1wrMtC/R8YEx3JtNX6GtJmWwfs86LAGD6K36LZ ki4mJWOFmDAjrBPIQhUcm8skgxPpTi+6c6rVl6Xs3KnfFT9pnx11IKN1SqdcLn9a8caL TmGwMD6s090yuD2nLHstQ3Xk4o0JLnQjoF68InmocFVFCCgDk/SfvhzJYc8KxFYbQLhG mqb8l1HNIBdXA5Ti/FQELsSt9Umd4R7RQ47rmJckNOcVssduRbtoE8X7vGy//1vqgAMO fFJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=WijjS3QG; 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 t10-20020a056a0021ca00b00527cbdcec81si6612434pfj.127.2022.06.29.12.17.43; Wed, 29 Jun 2022 12:17:58 -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=WijjS3QG; 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 S229699AbiF2SpY (ORCPT + 99 others); Wed, 29 Jun 2022 14:45:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbiF2SpE (ORCPT ); Wed, 29 Jun 2022 14:45:04 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E85C225296 for ; Wed, 29 Jun 2022 11:44:58 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id i25so18273597wrc.13 for ; Wed, 29 Jun 2022 11:44:58 -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=At25po1Wc0Z0LVVscrUsguBv2A3DKxx2gWOZDMIuiaM=; b=WijjS3QGog80xtGqzblrYaaoGoUeqfb6SjDeiBhfRNzBdio44L6EGW9/Z8tdELkAW6 L9clreZk2UZKoJ9JIA0XqRhuszwyomm61dIFCzrch88g2jAODCY8XeiVZ+uZMBMMZF1X 28C8fpv0EZnh/al+rSxiF0l0uZHN5U//tuhTMK28cuEWxNRsQ54aVcWsQV3O7n03gcGG t4zqFpt8r4DzKJg4IgbJ+vvKARa431qC4A2nW221KIGHoQVqbA3M3NgW9bZPPPd+b06/ 9B4lhXNF7nJEA+yeIQbLhq59zdV268Ah0KGtuDIt7O1tHoewRNFl9Nzs7ADpYfcvKEXK YCcw== 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=At25po1Wc0Z0LVVscrUsguBv2A3DKxx2gWOZDMIuiaM=; b=TZqWKvNbbqJzCRLN6M3f3TjrrZw7unksufw+bzfcaduJuGsh9ncT1CnKrOrz8nFV44 Y9pNwneW62U6mqkYrkrw/CBb2GLzKmgx64PaHL014epsBEXTK7KMJa3iauv9Kz9Zeh09 0u+c5SF8s5Va1l+prwDTEDx/JVfrTh8NOt34ek5/KRz0RPsjqwr0Vjlg3EhqLcUzH1Ce sXUqpfeOlGrqHTbRl/j9QG+u7gj5d8uvuN8eqQaL62K0pPhQ82osqRrf3J2QDSTmbZUE V6wT8Jz8R/mo+wYSsg3yojqR/aJk9cVZPBxDvTqhZgNvZijcqB+iMl4dldtTdtu9NMRm 6Hfw== X-Gm-Message-State: AJIora8af051C2MrYsf12HlCS+wPPuhk05LVTONmwnI8EvsxXKCnvHt3 hlq+IuxXgjaOsiTomUiH+j4Mrw== X-Received: by 2002:a5d:4b04:0:b0:21b:8640:273f with SMTP id v4-20020a5d4b04000000b0021b8640273fmr4644814wrq.195.1656528297564; Wed, 29 Jun 2022 11:44:57 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id u23-20020a7bcb17000000b0039aef592ca0sm3834371wmj.35.2022.06.29.11.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 11:44:57 -0700 (PDT) From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Liam Girdwood , Mark Brown , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Thomas Gleixner , Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , Jose Abreu , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 13/15] riscv: dts: canaan: fix bus {ranges,reg} warnings Date: Wed, 29 Jun 2022 19:43:42 +0100 Message-Id: <20220629184343.3438856-14-mail@conchuod.ie> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629184343.3438856-1-mail@conchuod.ie> References: <20220629184343.3438856-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 reg and ranges properties that naively cap the buses after the allocation of their last devices. Signed-off-by: Conor Dooley --- arch/riscv/boot/dts/canaan/k210.dtsi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/canaan/k210.dtsi index 948dc235e39d..6a34dc4f3e51 100644 --- a/arch/riscv/boot/dts/canaan/k210.dtsi +++ b/arch/riscv/boot/dts/canaan/k210.dtsi @@ -163,7 +163,8 @@ apb0: bus@50200000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-pm-bus"; - ranges; + regs = <0x50200000 0x200000>; + ranges = <0x50200000 0x50200000 0x200000>; clocks = <&sysclk K210_CLK_APB0>; gpio1: gpio@50200000 { @@ -382,7 +383,8 @@ apb1: bus@50400000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-pm-bus"; - ranges; + regs = <0x50400000 0x40100>; + ranges = <0x50400000 0x50400000 0x40100>; clocks = <&sysclk K210_CLK_APB1>; wdt0: watchdog@50400000 { @@ -437,7 +439,8 @@ apb2: bus@52000000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-pm-bus"; - ranges; + regs = <0x52000000 0x2000200>; + ranges = <0x52000000 0x52000000 0x2000200>; clocks = <&sysclk K210_CLK_APB2>; spi0: spi@52000000 { -- 2.36.1