Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3145156pxa; Tue, 25 Aug 2020 12:41:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS3pQYtKMs4SdWhSCKeZ+iFnq+k96K8XFeadoYBNotALerhVpuGEXQevxlaVZ2Ftk7qqS5 X-Received: by 2002:a17:906:529a:: with SMTP id c26mr12662309ejm.252.1598384478564; Tue, 25 Aug 2020 12:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598384478; cv=none; d=google.com; s=arc-20160816; b=VqROt0DMTDQHuAXBJ6eiJudZoK3LIG2vlBbyHMy733giCFFdESwVfTyrIBPkF/jO0s zL2rsUqi/MlOFVZwLP6sN60n29xyEeEIZNs4QIy8IsO0abVSIF6+ISdniqk23ljMYvmq laZzgxszlAP/I7bsIxManx7Ux3R2ZciQPDWSxth6zvbDY1P9/+0JerRnLuyB7xPDujbJ maNRMtTWgsXAU76rG99gsFSO5T33TGLXEOZbWDBZSsnz2W0I1th3WkAzuplVnSY6cJdJ dYF/wINZ9X8x389x7FwC9grY/RMPLRSv5mUXGvBuEyj2Vrdf4IQnJywGUcn220AardHZ YIgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=/Zs1hNU42LaPBccVr1mvLdQMoCY8rGLFKLO3tA83Um8=; b=A/FVjgaIRgxwmRRIijQ/5Q8ZvhcRJDForDzakMVRgcIOH32uzoQlLO0IVkBDjDDHho uC8yyheIuKFZKX+5ur9PvnxkeDuaG1AcyAL/4iPmkaQ0UeDGfZYuGjSROjTSFo15fK6p hq0vXZ6OM71vbRuFw2OcPfVd36MTyBJpVqkZQdXgBvWUmOMZkXwO3/sdzmJaxFBK7yUK 3Zbp2xt7QdI+W64rse19VzBoGgikjNKXcnKemir/Y08oVQbGquri4phBnjKR7ZoRoDG+ +WT5L4HL7qiCZodzGQgygpjjLvCHB3n2Q/he6i+jhF4Gj8uF6WiQMH/FvjOu+ZEYQMRT DTlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KgxVhFe5; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si6628509edo.417.2020.08.25.12.40.55; Tue, 25 Aug 2020 12:41:18 -0700 (PDT) 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=@kernel.org header.s=default header.b=KgxVhFe5; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727095AbgHYThv (ORCPT + 99 others); Tue, 25 Aug 2020 15:37:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgHYTht (ORCPT ); Tue, 25 Aug 2020 15:37:49 -0400 Received: from localhost.localdomain (unknown [194.230.155.216]) (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 095A420782; Tue, 25 Aug 2020 19:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598384268; bh=OoQ624Ud80Jq3oGh656Du4RZ9GVBa/ezQWHcHZ54lfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KgxVhFe56sAR2ZQl+G0xYXx/WRHuIR47ojXVftzGlLI2EXBsC4NP8YxlZNMv261xd BXaSIIapZ2l3r7SlREhD4MXMzE3gTkNwWqIvESrqsakJievrfm+b3CpHrRBexLlxNM UkcaQJhiOaeoemQdXLac9N2ddgjrH7+WmsMWgwms= From: Krzysztof Kozlowski To: Rob Herring , Linus Walleij , Bartosz Golaszewski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Ulf Hansson , Miquel Raynal , Mark Rutland , Thierry Reding , Anson Huang , Li Yang , Han Xu , Frank Li , Fugang Duan , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pwm@vger.kernel.org, linux-serial@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 13/19] dt-bindings: nvmem: imx-ocotp: Update i.MX 8M compatibles Date: Tue, 25 Aug 2020 21:35:30 +0200 Message-Id: <20200825193536.7332-14-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200825193536.7332-1-krzk@kernel.org> References: <20200825193536.7332-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DTSes with new i.MX 8M SoCs use two compatibles so update the binding to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: efuse@30350000: compatible:1: 'syscon' was expected From schema: Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: efuse@30350000: compatible: ['fsl,imx8mn-ocotp', 'fsl,imx8mm-ocotp', 'syscon'] is too long arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: efuse@30350000: compatible: Additional items are not allowed ('syscon' was unexpected) Signed-off-by: Krzysztof Kozlowski --- Changes since v2: 1. Remove moved compatibles. --- .../devicetree/bindings/nvmem/imx-ocotp.yaml | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml index 1c9d7f05f173..5a7284737229 100644 --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml @@ -19,21 +19,29 @@ allOf: properties: compatible: - items: - - enum: - - fsl,imx6q-ocotp - - fsl,imx6sl-ocotp - - fsl,imx6sx-ocotp - - fsl,imx6ul-ocotp - - fsl,imx6ull-ocotp - - fsl,imx7d-ocotp - - fsl,imx6sll-ocotp - - fsl,imx7ulp-ocotp - - fsl,imx8mq-ocotp - - fsl,imx8mm-ocotp - - fsl,imx8mn-ocotp - - fsl,imx8mp-ocotp - - const: syscon + oneOf: + - items: + - enum: + - fsl,imx6q-ocotp + - fsl,imx6sl-ocotp + - fsl,imx6sx-ocotp + - fsl,imx6ul-ocotp + - fsl,imx6ull-ocotp + - fsl,imx7d-ocotp + - fsl,imx6sll-ocotp + - fsl,imx7ulp-ocotp + - fsl,imx8mq-ocotp + - fsl,imx8mm-ocotp + - const: syscon + - items: + - enum: + - fsl,imx8mn-ocotp + # i.MX8MP not really compatible with fsl,imx8mm-ocotp, however + # the code for getting SoC revision depends on fsl,imx8mm-ocotp + # compatible. + - fsl,imx8mp-ocotp + - const: fsl,imx8mm-ocotp + - const: syscon reg: maxItems: 1 -- 2.17.1