Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp939548lqo; Wed, 8 May 2024 22:53:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7HE+pgc5nMFbRn/MG7QjO1rRq3h/EF5d7XkknwhPG7sK0AIBBWzF4AteGGsWhIK+sFx7cn099drTCVkfcQRPUwLbrciASuDa3QpRVlw== X-Google-Smtp-Source: AGHT+IEIvujYA6rAmk2MdDLMoHQ95XEMaT9hqINIf1xO8siSTvUM3/Rw3YzOflhZjbIvmKask1zT X-Received: by 2002:a05:6214:2242:b0:6a0:582c:119a with SMTP id 6a1803df08f44-6a1515193e8mr69378726d6.1.1715234037618; Wed, 08 May 2024 22:53:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715234037; cv=pass; d=google.com; s=arc-20160816; b=ruwpIWy1dlpj27mk+Q69s0F4ZiYhHe3MXPTCwdcBnv52FCjR57YEjkw6wsT3VNpna+ x79NOYNxZ7BATvcMOX/QKMJx2bUNQAHjfe0XhHTNYDwVQQr/wbvktXSP3lukhvBWnF6V dZmr+1z7E8kVT9rwQjg4vf6ggRHmfdZtJlwnNldPYSuuuCK1LZZG7CekdjlWclh23qW3 62K4Qh1EUqZ9jzLJIP2tgmOtsgYH73O/Jh0IBGbBfLj+DubkeZMJc2qpAM0PDSXMMZaM YCLkmAE6Re4SZQV1aMcpP/S/CJ2CP1qe2EydOx4oQBXIlXQIZ/YyjjjifmJPpg+CtE0R 4KYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=XxqvGVfX8nCjNVB1kV1LTsbt56ttNRRIQ90L4VJ2of8=; fh=tBFtbqBX/dDISyLHuajiGb67xH+ndO8l2IearXG4mqM=; b=cx+X9GCE8mZSqZnjp/E990tHQKWUbv563Kb20rb+CFqGxvz8tqkFTsCPQuHDv2jqek FpR37Xxs3kYiPLY44qEw4N8OnwyOA+JP2VpDCQ6ME62VTtdDfb1qZXsQuU0OvbBi0s9g cqD7xnad2LwWrAUzKafKWkqD30UVWjNfObQgdM7e8b+HxorIQ+HYsil5fpnJ8wmtvqMi F328M19ZuMZu9A2bo6OMoawzIrmU78sQS2OqSSrvwJthGFlNQcAuTrauyyP/YksPSGVc 4JfbU2t2A/N/9hdoK7ubHS6LnHb63Gy/xbQgwTiIoT8SeicGY1HSmsE9BkrXl7V3MHcl wB2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u65x0Dyr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29a30asi7377056d6.260.2024.05.08.22.53.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 22:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u65x0Dyr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 39AF01C2174D for ; Thu, 9 May 2024 05:53:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C9BE1494C0; Thu, 9 May 2024 05:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u65x0Dyr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91ED514900A; Thu, 9 May 2024 05:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715234030; cv=none; b=mlxU89exkhM1r6oU1q0YCFo5AN5H4kmFgt7v6eg5NU5lyrFoO9pGhw2UtHrf93bUD2zosOhE15qikQSWLe4DPALj+cKs2Tjq8EiJ9pMgY5S9jrQDscNpMiG4Vt2zldWVe4ip14xriW5WmVYKBQWO6VbV8K2DJzfXGn95p949Q8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715234030; c=relaxed/simple; bh=nUxDYR94Olupa1Zo0d7qXT5PpHsBib40UnrN6ICzzx0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MGkcvMzJRP+938ORcBNCaNN8yGYy6GGqYo6CbGJEhCF9A/8W4HPBDyhU8sB6ya7sGxR+Uw68j2ou5Pvj6aT6QCh3XTRZP+Q2fpQeCdEizJOmCwEoz+iZy2HJFLiHLciNyxMHMeBQmTR+CzktRHnOCqdSBB72rDHK+6HugT4MbGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u65x0Dyr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3E74C2BD11; Thu, 9 May 2024 05:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715234030; bh=nUxDYR94Olupa1Zo0d7qXT5PpHsBib40UnrN6ICzzx0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=u65x0Dyrpl3LrMYvbjuPFSCh3Ujw5TOu8wcotWnjrweAqHXG7+pIly002g8PAwYBs S8o6aaZ6cuZKk1YM7mFy89Vj9k0j4US8LxT48sP8U4SejCWB5vD+0D74/oTwzvOo1k PuUrE0dLifZUTxOvpevaNez5TCHQO/lRaZnx+9oq+b+tJTuQ18OymnMv+3m+uv5Mrw P9fBedwdgf6Xe8iUa3Myk1RhabMkabvPfLRRG6EYJlx2has9k+MSFHR8alS90wunJZ /g97J1OKvtX4ULJRDcbcn+3APk913M8eVThXM5aN8IlDhavhX9EhXKP5Ovri4f0E91 Edwe1V0Ax7b5w== Message-ID: <750f5388-20f9-45a3-a1e6-ceac4b91329f@kernel.org> Date: Thu, 9 May 2024 07:53:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] dt-bindings: firmware: secvio: Add device tree bindings To: Vabhav Sharma , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Franck LENORMAND , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Varun Sethi , Silvano Di Ninno , Pankaj Gupta , frank.li@nxp.com, daniel.baluta@nxp.com References: <20240509-secvio-v1-0-90fbe2baeda2@nxp.com> <20240509-secvio-v1-1-90fbe2baeda2@nxp.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWK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YyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240509-secvio-v1-1-90fbe2baeda2@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/05/2024 02:45, Vabhav Sharma wrote: > Document the secvio device tree bindings. > > The tampers are security feature available on i.MX products and > managed by SNVS block.The tamper goal is to detect the variation > of hardware or physical parameters, which can indicate an attack. > > The SNVS, which provides secure non-volatile storage, allows to > detect some hardware attacks against the SoC.They are connected > to the security-violation ports, which send an alert when an > out-of-range value is detected. > > The "imx-secvio-sc" module is designed to report security violations > and tamper triggering via SCU firmware to the user. > > Add the imx-scu secvio sub node and secvio sub node description. > > Signed-off-by: Franck LENORMAND > Signed-off-by: Vabhav Sharma > --- That's not v1, right? What changed? Why do we have to guess this? This is thoroughly documented in kernel process so read the documentation before posting. > .../bindings/arm/freescale/fsl,scu-secvio.yaml | 35 ++++++++++++++++++++++ > .../devicetree/bindings/firmware/fsl,scu.yaml | 10 +++++++ > 2 files changed, 45 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml b/Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml > new file mode 100644 > index 000000000000..30dc1e21f903 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/freescale/fsl,scu-secvio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP i.MX Security Violation driver Bindings are for hardware, not drivers. Describe hardware. > + > +maintainers: > + - Franck LENORMAND > + > +description: | Do not need '|' unless you need to preserve formatting. > + Receive security violation from the SNVS via the SCU firmware. Allow to > + register notifier for additional processing Notifier? That's a Linux thing, how does it relate to the hardware? > + > +properties: > + compatible: > + enum: > + - fsl,imx-sc-secvio Missing SoC compatibles. So no, that's just abuse of DT to instantiate driver. NAK. Drop the binding. Best regards, Krzysztof