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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 406F8C54EBC for ; Tue, 10 Jan 2023 13:42:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3AAD385484; Tue, 10 Jan 2023 14:42:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="gFqdJJLg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9B5A685480; Tue, 10 Jan 2023 14:42:10 +0100 (CET) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4EB8285413 for ; Tue, 10 Jan 2023 14:42:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mkorpershoek@baylibre.com Received: by mail-wm1-x332.google.com with SMTP id ay12-20020a05600c1e0c00b003d9ea12bafcso6495265wmb.3 for ; Tue, 10 Jan 2023 05:42:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=mQtjEP/taWIm9R7efQ5kUkfaTC2q13uBQODds65NNr8=; b=gFqdJJLgITvRAQkmQU8TmNOFoHuGbBVAJta7keqnyJEK3iFRIMH1NNBFg3U7PYg/Fj 6GKOfvCgJtPqnPlGBOQWNIC7DomRz/CA3JBojOlVu3zMpZCpVu4GLmSKLX9Kdm/HdSEM 5lDVFnqXzeWJBDnmw/cfr1zHDIDIghH2QuUCAL2nEZHdYyHJt0ExvZc03MFCuBhvygtf wC7mJavCRaf+N9M/UkGDou5YQXN8abm71UlY8i91TFTVbICjk9moE2irlF2uBwrkdTvm wsiHyPmPHN+b03c9jXpG/RYTpNhBz9KHea79FoJrIHbLZIcYxBau1Lhqr14nM8HQscn4 5ksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mQtjEP/taWIm9R7efQ5kUkfaTC2q13uBQODds65NNr8=; b=ok9729D47snUZUSfn2AppcN0YYWf1Jv52l5bpHj8wzFOXxYd/dbA6aP0App5ILIa+d 8OEHZREOESDI8/TwLaQcmJDnnv8w0i//LiyFQyjuxxZLNmtRrRqqttRqoIZlEAVThUC3 uNvByeM7c38rWQobjBq4gaAJXIXJP3CVDL80gECXBc3CjCz+/4jety53kQGTmXFLtfy9 NTuxnLAOo1EEUVAT+a0bVuN7HV8UXyw0qoi5Ox00D2aLKgjFxw9yu4RotRb4xm+shUMm WcUixnsvbL2Bbqoz9uHJbRse5DyWqAsOO+5lMJRs0x0xA1J96BUCb/cQMSfgd6FFjd2A sqLw== X-Gm-Message-State: AFqh2kq+SMqXKggR358igbED7xyY13BUsXvCSulU/b0lsV8L4BjKMjMt thE6ChYXgTwSgQ/eh+tm0QfuCYFM1FQimcT7 X-Google-Smtp-Source: AMrXdXslmIKgYzjSLIB1aiWJUUNBzgEg/poeAZXZIRDvJMk6Q/s6+sgBc2Ilumjr/vr0E2wjmgCYeg== X-Received: by 2002:a05:600c:3b90:b0:3d1:f0f1:ceb4 with SMTP id n16-20020a05600c3b9000b003d1f0f1ceb4mr49226888wms.19.1673358126867; Tue, 10 Jan 2023 05:42:06 -0800 (PST) Received: from localhost ([2a01:cb19:85e6:1900:2bf7:7388:731d:c4e1]) by smtp.gmail.com with ESMTPSA id ay13-20020a05600c1e0d00b003d34faca949sm15139591wmb.39.2023.01.10.05.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 05:42:06 -0800 (PST) From: Mattijs Korpershoek To: Alexey Romanov , narmstrong@baylibre.com, trini@konsulko.com, sjg@chromium.org Cc: u-boot-amlogic@groups.io, u-boot@lists.denx.de, kernel@sberdevices.ru, Alexey Romanov Subject: Re: [PATCH v4 3/5] doc/usage: cmd: documentation for meson/sm command In-Reply-To: <20230110105650.54580-4-avromanov@sberdevices.ru> References: <20230110105650.54580-1-avromanov@sberdevices.ru> <20230110105650.54580-4-avromanov@sberdevices.ru> Date: Tue, 10 Jan 2023 14:42:05 +0100 Message-ID: <878ria8q1e.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Tue, Jan 10, 2023 at 13:56, Alexey Romanov wrote: > Added docs for Meson Security Monitor command. > > Signed-off-by: Alexey Romanov Reviewed-by: Mattijs Korpershoek > --- > doc/usage/cmd/sm.rst | 44 ++++++++++++++++++++++++++++++++++++++++++++ > doc/usage/index.rst | 1 + > 2 files changed, 45 insertions(+) > create mode 100644 doc/usage/cmd/sm.rst > > diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst > new file mode 100644 > index 00000000000..c41227f4b3b > --- /dev/null > +++ b/doc/usage/cmd/sm.rst > @@ -0,0 +1,44 @@ > +.. SPDX-License-Identifier: GPL-2.0+: > + > +sm command > +========== > + > +Synopis > +------- > + > +:: > + > + sm serial
> + sm reboot_reason [name] > + sm efuseread
> + sm efusewrite
> + sm efusedump > + > +Description > +----------- > + > +The sm command is used to request services from the secure monitor. User > +can call secure monitor to request special TEE function, for example chip > +serial number info, reboot reason, etc. > + > +sm serial > + Retrieve chip unique serial number from sm and write it to memory on > + appropriate address. > + > +sm reboot_reason > + Print reboot reason to the console, if parameter [name] isn't specified. > + If parameter specified, set reboot reason string to environment variable > + with this name. > + > +sm efuseread > + Read bytes starting from from efuse memory bank and write > + result to the address
. > + > +sm efusewrite > + Write into efuse memory bank, starting from , the bytes > + of data, located at address
. > + > +Configuration > +------------- > + > +To use the sm command you must specify CONFIG_CMD_MESON=y > diff --git a/doc/usage/index.rst b/doc/usage/index.rst > index 770418434ad..e34b98dae24 100644 > --- a/doc/usage/index.rst > +++ b/doc/usage/index.rst > @@ -61,6 +61,7 @@ Shell commands > cmd/true > cmd/ums > cmd/wdt > + cmd/sm > > Booting OS > ---------- > -- > 2.25.1