Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5598017pxb; Tue, 16 Feb 2021 02:42:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJ0LcAr9irkOH3lDPijwW8Zlyr3XSEeH2vxW8dDl2479ifMd06UeQLH4lqQlVCPg9WySP3 X-Received: by 2002:a17:906:cf84:: with SMTP id um4mr609596ejb.61.1613472134151; Tue, 16 Feb 2021 02:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613472134; cv=none; d=google.com; s=arc-20160816; b=UlDU83zRq1pBGnqO25tw8ALawbMkLMER6nexGUGSL40Us6NW7+f0P/I1BRxW095m/Q 3IzrsateVOMcMfQG7Q7coNvIa5sAbyZt3tlSqQqnisdunP1DjOkQ7vzkCe/cUtxnklTQ fSiDzckUvm/H+rxVBit2t8CfPpwmRy5tj8SWxw9GGUsalOBKbVpnHaANKamZprbkHmlA RhOrmClsVDBQmBG0y4xHj/o6HqRrDeLUKogxNYGZQRrv8e50bd1L7BSc4Dhwembpq0h/ /7rXNX2XfxS39MH+o7isvQeFDLWgzUCEWiXONmBo0jpXGf9kQMA3sGId2haFfFhzeG5S cdug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=C/UbC0p2B2OI8LGsLZ5ShRFwCgCZxw1TV90u+LaEK7g=; b=M+iot04ZFYXcrV5i+w1SoH56NVoeLA1K6FqNRihrvOMgD7OXKWs3qr71r5rP2gRUEZ 3UimyfHvLx74FPm/27G5YXoQ8ULpln3i6DL0NRI06E71Z98rr4xAbPi9oHduPHESeeOw 6luNMLba7xUoz+Zh7c9cCZqLG0SI7TOjDstInLXol5FZHNIsdO+OrblnawfLYoOUr7Nj bcbrtnbRnkdZazyR2JgdPiHfASOe8fw2Bew5T26Sfz6u4A85T3x71wKE6JM4ppEjSneI OZhEn9uw9iZYhRv9uW6FA9GlLSMbR26nEndptpIgalvDBYhfPLjIB5q2XheeqXZvWzsV k2rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JTUOJ6gu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si8408189edw.269.2021.02.16.02.41.51; Tue, 16 Feb 2021 02:42:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JTUOJ6gu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbhBPKkt (ORCPT + 99 others); Tue, 16 Feb 2021 05:40:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbhBPKkk (ORCPT ); Tue, 16 Feb 2021 05:40:40 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AA9DC06174A for ; Tue, 16 Feb 2021 02:40:00 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id o7so5981105pgl.1 for ; Tue, 16 Feb 2021 02:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C/UbC0p2B2OI8LGsLZ5ShRFwCgCZxw1TV90u+LaEK7g=; b=JTUOJ6gupAdS0Uv1yclSHe2rmXAoZsRRWj/Omhc2ModEO0vU1Jksz+ZVkZ7FUBKuXf QY+0aaMIc3YuYsjn2VgKxI/5oS2XF+ydjorVl2FiXl6vjoLHHIgY12ndG31LcErC6kIu PVPGgTJ7kXdCHSJyIO304DK1B2XJLK8UXk5Cd20rjOhskehs/hvQuvyrh7boVhK3wIZx M1+pkeP0NF3re8WFH9h3yELejoQImB6L6vp2qdMjyVU6c6gspt+9yk+Sl9ZpwcBtONqm jIMQdda2R0VGdimnjKpRzgIfNvpIRsLXBp9NFIouIHN/e8gofvB0z9uyRxOlmQgMcb4J SvGA== 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=C/UbC0p2B2OI8LGsLZ5ShRFwCgCZxw1TV90u+LaEK7g=; b=M8U414kUCHq/zZF8NQotPSwsULdcQoRqlVh9nr+u2lUqvU/WGMtS0sf7f7iJccX82t riLrrX1ZlA/mVN3UuhWcJRO+2PGyniP04Ng9JYW6N89kTyHlJ0oEh/9pMYf87Z9gynEy l/LC+G7spISvPqiFmcNI2zBZ3geiV1GccJ91bChtUBEqZ+Kn6fm6eQddYP6hjUPzcuqB kVkS20s1Lf0+6k+3TsaPjYQF8M/e4PAO6iwltv+WISWen0t9tccvyxeXOy6dUXX2bdY9 LTyDCFnsRaaSntT3DXVdrFjRWjWQsTS9d+FILBzODdoeQbcKjcX//EWHLsXhlBK2lzV1 FpSg== X-Gm-Message-State: AOAM530OBGnm814SgZrjxevfvQfNRiCUEQRWcjdOC/9y3qlS/8oaPAJ7 3dWPqf560U+Fp4Po5xfU9DtAyw== X-Received: by 2002:a63:5d59:: with SMTP id o25mr18241675pgm.322.1613471999788; Tue, 16 Feb 2021 02:39:59 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id l15sm2390356pjq.9.2021.02.16.02.39.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2021 02:39:59 -0800 (PST) Date: Tue, 16 Feb 2021 16:09:57 +0530 From: Viresh Kumar To: Rob Herring Cc: Frank Rowand , Pantelis Antoniou , Masahiro Yamada , Vincent Guittot , "linux-kernel@vger.kernel.org" , Anmar Oueja , Bill Mills , David Gibson , devicetree@vger.kernel.org, Michal Marek Subject: Re: [PATCH V7 6/6] of: unittest: Statically apply overlays using fdtoverlay Message-ID: <20210216103957.gwikizhtoxvb66le@vireshk-i7> References: <3683a542d4141cfcf9c2524a40a9ee75b657c1c2.1611904394.git.viresh.kumar@linaro.org> <20210204015409.GA3150757@robh.at.kernel.org> <20210208111813.oql6jmeaxuq3btz7@vireshk-i7> <20210209101058.kmqqjxfjz3alre55@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210209101058.kmqqjxfjz3alre55@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-02-21, 15:40, Viresh Kumar wrote: > And after decent amount of effort understanding how to do this, I > finally did it in a not so efficient way, I am sure you can help > improving it :) Ping! Also, where do we send patches for dt-schema ? Which list ? > Author: Viresh Kumar > Date: Tue Feb 9 12:19:50 2021 +0530 > > dt-validate: Skip "required property" checks for overlays > > The overlays may not carry the required properties and would depend on > the base dtb to carry those, there is no point raising those errors > here. > > Signed-off-by: Viresh Kumar > --- > tools/dt-validate | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/tools/dt-validate b/tools/dt-validate > index 410b0538ef47..c6117504f1d1 100755 > --- a/tools/dt-validate > +++ b/tools/dt-validate > @@ -80,6 +80,23 @@ show_unmatched = False > (filename, line, col, fullname, node['compatible']), file=sys.stderr) > continue > > + if nodename == '/': > + is_fragment = False > + for name in node.items(): > + if name[0] == 'fragment@0': > + is_fragment = True > + break; > + > + if is_fragment == True: > + if 'required property' in error.message: > + continue > + elif error.context: > + for e in error.context: > + if not 'required property' in e.message: > + break > + else: > + continue > + > print(dtschema.format_error(filename, error, nodename=nodename, verbose=verbose) + > '\n\tFrom schema: ' + schema['$filename'], > file=sys.stderr) -- viresh