Received: by 10.223.185.116 with SMTP id b49csp794401wrg; Fri, 23 Feb 2018 06:58:27 -0800 (PST) X-Google-Smtp-Source: AH8x225nOA7a/9wHXDZCeU1sSp85F/WzmfUT9vq7x2p9GJxo4LaERGrAPtBOEfwl7hxm76GHnKek X-Received: by 2002:a17:902:595d:: with SMTP id e29-v6mr1983303plj.189.1519397907817; Fri, 23 Feb 2018 06:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519397907; cv=none; d=google.com; s=arc-20160816; b=KsB6t5okiZYru9shjlso8eWOufafyV8qAtWkBI5R2JUBHmSKa8IlNsx/ixt9HAI2pv Vqqu3Txs4xVgbbNb25Q8xIhQUxQuUdLHaFVinQj50A0co9O/Dz4zj6GCknTpCSPsF8VN FEco+fvXRVNoAhJzp7Vvoj3H8O0Ci5ORoIU2HYEu7NKVlOyjVh00l36AzvtubofGgtaA Z9+EuhZ07c8sJ5vu3BKnIU6UWiMjTKat6B8QOtlLmcD9m3j8ueeBjGQhNeH3ftLtVibB nd26IGXg9UCWXZJ1aT4TtUCYDkCNWzYKG40WZ0OY3EYaTklf5bN9HzQJUEz8oMnqwWea VM8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=BVhstpVvvGKP9SGdYothDdux0UoE3ibVEqxCmrc11gw=; b=rC68/47moEpE/HnQz3C7qHeriLiKdrKZtu+RfXr/Ap9+7RRzTRWgFuPzYhkUligtAX PTJG5IrBwdw95fgN4vJp98c6dMm+cnSZRGF3R3ETSA0/w4xTOfm6sX17OS6+LZQbrlgr 75y4py2dSknjF2ntWEo6EHTHCOmw8x6OYuc5/vt3NHXngajDUvn976DX/CZeyMd4EnE9 Yaq6fXSDTNngHTbh8gE6NLCj3/ta/O7BGO6ujLDfho3h1UoU5oje4NPfghKaVUZTjPS6 021z4zVcdPMwc8YQF5Vt9etaaePITWPbmR7JT5I5liy2DUGHuXKCJ2iiNuxvnCgvLjmi rX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport2 header.b=OJt3l3XF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si1870052plh.410.2018.02.23.06.58.12; Fri, 23 Feb 2018 06:58:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport2 header.b=OJt3l3XF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751645AbeBWO5V (ORCPT + 99 others); Fri, 23 Feb 2018 09:57:21 -0500 Received: from mail02.prevas.se ([62.95.78.10]:31611 "EHLO mail02.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751407AbeBWO5T (ORCPT ); Fri, 23 Feb 2018 09:57:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1348; q=dns/txt; s=ironport2; t=1519397839; x=1550933839; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=r49RBZWrpYoI1TNW/f9YguRuX6NONA+XR1hjCa/9PRQ=; b=OJt3l3XFO9iszQ95JLP92kkjHrsQRpaMhbSRfb6ROD4iF2ngb0oRD26O rfbHqWpvrzMQs+mbpLIv/8Ow0HaCrUD/BlVl3xqf8w3v8JLYnAe5yYEzN lXOychBnevA4WXosd4zg3E7BYSlvvwKqfD0i+y7H5Ib/niutJnAjzFXpR U=; X-IronPort-AV: E=Sophos;i="5.47,383,1515452400"; d="scan'208";a="3118959" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Feb 2018 15:57:18 +0100 Received: from [172.16.11.22] (172.16.8.31) by smtp.prevas.se (172.16.8.103) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 23 Feb 2018 15:57:17 +0100 Subject: Re: [RFC PATCH] ARM: dts: ls1021a: add size-cells and address-cells to scfg and dcfg nodes To: Shawn Guo , Rob Herring , Mark Rutland , Russell King CC: , , References: <20180223133114.7091-1-rasmus.villemoes@prevas.dk> From: Rasmus Villemoes Message-ID: Date: Fri, 23 Feb 2018 15:57:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180223133114.7091-1-rasmus.villemoes@prevas.dk> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.8.31] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-23 14:31, Rasmus Villemoes wrote: > A single u32 is sufficient to specify a register in the Device > Configuration Unit/Supplemental Configuration Unit. Moreover, they only > consist of 32 bit registers (for the DCFG we even have "These registers > only support 32-bit accesses." according to the reference manual), so no > size specification is needed. > > Signed-off-by: Rasmus Villemoes > --- > None of the in-tree .dts files using ls1021a.dtsi currently define a > subnode of either node. It is possible, though somewhat unlikely, that > some out-of-tree .dts file is built against the in-tree ls1021a.dtsi, > and I don't know if such files are treated the same as out-of-tree > modules (i.e., they get to fix the breakage). > > The reason I'm proposing to add these is that I'm about to add a subnode > of scfg with a reg property, and if possible I'd like to avoid the > somewhat clumsy > > reg = <0 0x1ac 0 4>; Ah, apparently I've misunderstood how address-cells/size-cells worked; I thought they would be taken from the nearest ancestor node specifying them, so that 2/2 would apply to scfg. But it seems they have to be present in the parent node itself, otherwise defaulting to 2/1. So the above should be <0 0x1ac 4>, which is still clumsier than needed. Rasmus