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: "Leizhen (ThunderTown)" X-Patchwork-Id: 1410908 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4CnSQ25hngz9sWv for ; Fri, 4 Dec 2020 20:41:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387632AbgLDJki (ORCPT ); Fri, 4 Dec 2020 04:40:38 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9381 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgLDJkh (ORCPT ); Fri, 4 Dec 2020 04:40:37 -0500 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 CC: Zhen Lei 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 {