From patchwork Fri Dec 4 09:38:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 11951233 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B3ABC433FE for ; Fri, 4 Dec 2020 09:40:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15924227BF for ; Fri, 4 Dec 2020 09:40:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15924227BF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dZO4De52f24nuydXvrNWaCVttzcJGqtYD8yhFmvzcgk=; b=I/1zA2oyETbFSfEqwIx5lOugp s9FBD17aBBTPQ6j8xc38jMwnwchK8CfAheeC4wdLhde2fYCorw3MxruExiZZazUThHgpiZRLDz0UO Tvn4ZM5G/d9/hcltO4RPYeUdSqgtUNBVsWBbzYNpHhIg0oGVkBO+ngvvTc7t7Gy6W7BnhbucNspDG jPXSeW8OPaVcJDNNyrQXQAkK0qhIimDsV7/9l4EUzmKvDopZ9Trbrx5iuqbpXfk5lKWnUolZySkXz 1s8NdlaoL1+lejSUCghMOUJ8MqUsc+3VgRMnIzIi6ysFLpKFYCJcbGo3cvoJQOtMRGb82UOe2tvWh B1QrnzMnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kl7Zo-000873-V6; Fri, 04 Dec 2020 09:40:32 +0000 Received: from szxga07-in.huawei.com ([45.249.212.35]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kl7ZM-0007mI-7z; Fri, 04 Dec 2020 09:40:06 +0000 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CnSMy1H6Jz77x8; Fri, 4 Dec 2020 17:39:26 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 17:39:44 +0800 From: Zhen Lei To: Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Karol Gugala , Mateusz Holenko , "Greg Kroah-Hartman" , Pawel Czarnecki , Stafford Horne , Matthias Brugger , Lee Jones , linux-media , linux-serial , linux-arm-kernel , linux-mediatek , devicetree , linux-kernel Subject: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties' Date: Fri, 4 Dec 2020 17:38:09 +0800 Message-ID: <20201204093813.1275-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201204093813.1275-1-thunder.leizhen@huawei.com> References: <20201204093813.1275-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.9] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201204_044005_712867_D096A9D0 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhen Lei Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org When I do dt_binding_check for any YAML file, below wanring is always reported: xxx/media/coda.yaml: 'additionalProperties' is a required property xxx/media/coda.yaml: ignoring, error in schema: warning: no schema found in file: xxx/media/coda.yaml There are three properties defined in allOf, they should be explicitly declared. Otherwise, "additionalProperties: false" will prohibit them. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/media/coda.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/media/coda.yaml b/Documentation/devicetree/bindings/media/coda.yaml index 7bac0057faf7319..199b0826cd01cb6 100644 --- a/Documentation/devicetree/bindings/media/coda.yaml +++ b/Documentation/devicetree/bindings/media/coda.yaml @@ -52,6 +52,10 @@ properties: description: phandle pointing to the SRAM device node maxItems: 1 + interrupts: true + interrupt-names: true + power-domains: true + required: - compatible - reg @@ -96,6 +100,8 @@ allOf: description: phandle pointing to the PU power domain maxItems: 1 +additionalProperties: false + examples: - | vpu: video-codec@63ff4000 {