From mboxrd@z Thu Jan 1 00:00:00 1970 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=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, 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 7CEB4C2BBD1 for ; Thu, 17 Sep 2020 19:15:07 +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 091D32085B for ; Thu, 17 Sep 2020 19:15:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JEjQwLvA"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="X1voo5Uy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 091D32085B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=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:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m3hOM0DRQ9T1PntpmU2EQUXH1mzvcP3RF5p5Lzgb/8U=; b=JEjQwLvAgzQnZGEYvtJUM9jir7 JBKmtW/lQtUHLl+/SvzKQcvmNb4mbYygX+5LUOwfeUmsXBfG7aRu0Bu7L6NvLn/0ToWdRAid7BeAb v5vPCzi9YC80tIqjS2gPVqo2JMK8Vi01SjYQriVO+6/FlE3CprIO+dlK2HkD7OwWQzm3KUX+q6Ze8 qiRhB0+pxCd3bq0iPTpslQDOP3UCJexWj/03VbUpiCVMtu2Tg5rygcdIgVGtOL7Pyg/W6r+gl10dT 42NLVk6UB/kt9sB6i6zzf9eiB7oXkXAYPmjDLz1xFDFQ+T2baxO/9L2un9CDkurus6yYhYIMC8A/2 CzF9XAKQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIzLh-0004tL-7B; Thu, 17 Sep 2020 19:13:41 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIzLc-0004sK-G0 for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 19:13:38 +0000 Received: from kozik-lap.mshome.net (unknown [194.230.155.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 62FDD20853; Thu, 17 Sep 2020 19:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600370015; bh=gcd7sEKUfLOWTqRsxROmRui6fiY5OolvkQO+RXTqltc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X1voo5UyLtHuTlypQysQHaRJ8QlLBNsMnv79JqESiOm9Tw8GBVclDMyvbkTUw4vKJ sEk0g/52paqP1qx8tIXMLFXkzWmTVW7W3Pr2lPfT1njUsvT+AjxsoMdlSuAr+IFzH1 0lvxdjgIbFDOGkS40vjJ93nmDheof/Hby1LEpgA8= From: Krzysztof Kozlowski To: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Krzysztof Kozlowski , Wolfram Sang , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/4] dt-bindings: i2c: imx: Add properties and use unevaluatedProperties Date: Thu, 17 Sep 2020 21:13:20 +0200 Message-Id: <20200917191321.28741-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200917191321.28741-1-krzk@kernel.org> References: <20200917191321.28741-1-krzk@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200917_151337_087294_44FE15AC X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Additional properties actually might appear (e.g. power-domains) so describe all typical properties, reference generic i2c schema and use unevaluatedProperties to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: i2c@30a20000: '#address-cells', '#size-cells', 'pmic@25' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. Drop address/size cells Changes since v2: 1. None Changes since v1: 1. Add more properties and include /schemas/i2c/i2c-controller.yaml# --- Documentation/devicetree/bindings/i2c/i2c-imx.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml index 810536953177..a0c87307ca07 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml @@ -9,6 +9,9 @@ title: Freescale Inter IC (I2C) and High Speed Inter IC (HS-I2C) for i.MX maintainers: - Wolfram Sang +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + properties: compatible: oneOf: @@ -75,7 +78,7 @@ required: - interrupts - clocks -additionalProperties: false +unevaluatedProperties: false examples: - | -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel