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=-13.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 32B4EC433E2 for ; Thu, 10 Sep 2020 18:24:16 +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 B3E9D2076C for ; Thu, 10 Sep 2020 18:24:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Kq2sfJXQ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YpG/iiN0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3E9D2076C 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=J/lGr5M5Cwqf9k8NTTjC6gSuc5lQB+vzhO51RbvkbZ4=; b=Kq2sfJXQ5qiZ+xz2+EIArxNwCR ATUz0eUR64g/xP2fWZScPDbGLiSCMAO1Urk0QZaJBHQxbRL/bvNNKkahIYNyXORY+vet/9KdmRko6 EoqJYI95zRGsPk/0HiaWVYfcJwQqdhIghaXTPpp98OxYMqOe4A8H7KoPiF34yA3vVLI9Qf/bx9BBj zn6oRVPtuIXkX+RQnn2f9nLsztXEb9WNhadGEDLIpbNN/vA3orbDPXd3FGLqfLZCP/IOInNDoFUIk 6b+nYutK4ELdbtbnWPquGZdPR5KUPpricim2ivvs0i3A5jZHz/0nnI3tMXc0ZKQQABCs+88hfP+yn 2H858Flw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGRDv-0001sS-Pt; Thu, 10 Sep 2020 18:23:07 +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 1kGRDm-0001pX-UK for linux-arm-kernel@lists.infradead.org; Thu, 10 Sep 2020 18:23:00 +0000 Received: from localhost.localdomain (unknown [194.230.155.174]) (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 7FF6D21D81; Thu, 10 Sep 2020 18:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599762178; bh=0+4BtmXAZbE5k3p38TKuOUALJVc0fCCWYd18jiZfWcE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YpG/iiN0YrhNodZWuLQomcfhe0WK2mpRKuKKG1UXRtNAtAe2YTOT1HZvTNMki7L6q tkAdYyPTqZmuyaVeeikUH1LlljwAjgzJxkEVQSLjEjxPidCbFkh80NRWfnyUE1semH feazf3IZNc/VzUDKHyW76qrrQybozwqAq3l4pFa0= 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 v3 3/4] dt-bindings: i2c: imx: Add properties and use unevaluatedProperties Date: Thu, 10 Sep 2020 20:22:43 +0200 Message-Id: <20200910182244.5815-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910182244.5815-1-krzk@kernel.org> References: <20200910182244.5815-1-krzk@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_142259_088549_CB8830A6 X-CRM114-Status: GOOD ( 14.16 ) 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 v2: 1. None Changes since v1: 1. Add more properties and include /schemas/i2c/i2c-controller.yaml# --- Documentation/devicetree/bindings/i2c/i2c-imx.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml index 810536953177..19c9daba6e9f 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: @@ -38,6 +41,9 @@ properties: - fsl,imx8mp-i2c - const: fsl,imx21-i2c + '#address-cells': true + '#size-cells': true + reg: maxItems: 1 @@ -75,7 +81,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