Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp827230ybb; Fri, 10 Apr 2020 10:54:56 -0700 (PDT) X-Google-Smtp-Source: APiQypJgUb2vnkhq6KWpirwxPB884Dj7exoOtMFkTXamJwOAQ79x7ZW44LX99lk0LBuucibzJdMI X-Received: by 2002:a05:620a:6b0:: with SMTP id i16mr4858640qkh.385.1586541295917; Fri, 10 Apr 2020 10:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586541295; cv=none; d=google.com; s=arc-20160816; b=vs9BljkxEsMiZ7tcLquc/C4ef/xeTGtUiPq7LeHHr/o3l96xB/ylZPkYjskIUHDCeU Qy6ql1tBLRB/RN7nGMy+c73QJ607nMO+8lgBw+SZpVSmzuNX/f1ME4zfGUzVoibx2O/J WbCDwiM7nf3Yc3WSa2R+8pNOg1Z66JAKvqxP7vhd+pHbDLEwfmQ4IZsvqKagUFrFE0Po rzIOAkoFbsZ8yf7I4I1VOg8tEY2i5rhLGTxXoQddnmSpqwgxPqpaTWp8kLoSra6w4Fu3 DfMq2gn0FcXayCEAPDznmGAXX8ycLXSnBCWfmxJho6teCSMvC3+i2I0bN+Ff0QkXl5wS 9wuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Lrdln4dBvVFJR91vr9hlZjSH31XigTv0FjlsPXSoRUo=; b=nKaUJKtbTdC93rImRwZXluVbX0GBCPxVHVLbsoDInykN4vdtIrmIJkY7O2npKRy6SK 6uTkG44384PLRB9TQYFXO5YUz9yPFQBF+Gr0fazMKDGJdMOepH++rfmjnqgG0VlcGJf0 3XiFLaIZgxlXefgI6ZVB2sIMnNrPnS5Ps/2qBttlEo++khEtxKT6EKmPj1enwwx+5Fuz dpnrHEdvYXAy/tFJCW7hiGQghuu2H3zMcX8RDQI/4ecOVeRU4jAAaHkqSnBZG2M4JT7D hyK/Pz4cmpzR4ivJetBKQczz4ePaQyZt2rpMoRmdQJtzZMwQHU6NvKKOEyGQtBdvCp9C UWmA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si1418846qve.129.2020.04.10.10.54.40; Fri, 10 Apr 2020 10:54:55 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726692AbgDJRwd (ORCPT + 99 others); Fri, 10 Apr 2020 13:52:33 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39044 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgDJRwd (ORCPT ); Fri, 10 Apr 2020 13:52:33 -0400 Received: by mail-ot1-f66.google.com with SMTP id x11so2549647otp.6; Fri, 10 Apr 2020 10:52:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Lrdln4dBvVFJR91vr9hlZjSH31XigTv0FjlsPXSoRUo=; b=LYUmBAxqOn/A6GVstNklA+s8sLWlybiYvixCZrI3SftnppuP847ZIxc0wIlqfNBEFc ynbc4VvHP0SYnPRoDFJoKJtPgscu5vGIL1ITksPSVhPWN1Hvab/jX6ud86g+ANQHzi7D zsMUKs0boR3ji4VugPOF3kiRzMS61Q1a7VfQJ5ILBL6fYUHWVXq4gKjSzlUqHPNSmtPt Job0cqfOuP96dm1rTxekPd8Wp3Sldl1Qpe9Uy7bcB8UonzEhn0EYQ8uGG7YgEybG8l6z M1kPmj02zZBeuWgFSb1hDdsnD1IN3T0vamvFztNOI4WTmwF77Q5h8pyeHjFETZRT0X/t almQ== X-Gm-Message-State: AGi0PuYuKMptGaEAfJ4asyyc71Ax20sOTV6LGKn8hZWJc5fB4hA7Kt8x Rp7kRGxOAkKi2xUxCbS+BA== X-Received: by 2002:a9d:77cf:: with SMTP id w15mr5195937otl.158.1586541152824; Fri, 10 Apr 2020 10:52:32 -0700 (PDT) Received: from rob-hp-laptop (ip-173-126-55-226.ftwttx.spcsdns.net. [173.126.55.226]) by smtp.gmail.com with ESMTPSA id 26sm1698146oot.25.2020.04.10.10.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 10:52:32 -0700 (PDT) Received: (nullmailer pid 1070 invoked by uid 1000); Fri, 10 Apr 2020 17:52:30 -0000 Date: Fri, 10 Apr 2020 12:52:30 -0500 From: Rob Herring To: Johan Jonker Cc: heiko@sntech.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 2/2] ARM: dts: rockchip: fix yaml warnings for rk3288-pmu-sram compatible nodes Message-ID: <20200410175230.GA28412@bogus> References: <20200331121352.3825-1-jbx6244@gmail.com> <20200331121352.3825-2-jbx6244@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331121352.3825-2-jbx6244@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 02:13:52PM +0200, Johan Jonker wrote: > A test with the command below gives for example these warnings: > > arch/arm/boot/dts/rk3288-evb-act8846.dt.yaml: sram@ff720000: > '#address-cells' is a required property > arch/arm/boot/dts/rk3288-evb-act8846.dt.yaml: sram@ff720000: > '#size-cells' is a required property > arch/arm/boot/dts/rk3288-evb-act8846.dt.yaml: sram@ff720000: > 'ranges' is a required property > > Fix this error by adding '#address-cells', '#size-cells' and > 'ranges' to the 'rockchip,rk3288-pmu-sram' compatible node > in rk3288.dtsi. > > make ARCH=arm dtbs_check > DT_SCHEMA_FILES=Documentation/devicetree/bindings/sram/sram.yaml > > Signed-off-by: Johan Jonker > --- > Not tested with hardware. > > Changed v2: > Fix dtsi. > --- > arch/arm/boot/dts/rk3288.dtsi | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi > index 9c8741bb1..f102fec69 100644 > --- a/arch/arm/boot/dts/rk3288.dtsi > +++ b/arch/arm/boot/dts/rk3288.dtsi > @@ -730,6 +730,9 @@ > pmu_sram: sram@ff720000 { > compatible = "rockchip,rk3288-pmu-sram", "mmio-sram"; > reg = <0x0 0xff720000 0x0 0x1000>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0x0 0xff720000 0x1000>; I think we should make these optional instead if there's no child nodes. And if there are child nodes, then these will be required. Rob