From patchwork Wed May 25 20:18:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9136159 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8977607D7 for ; Wed, 25 May 2016 20:19:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAE0A280A3 for ; Wed, 25 May 2016 20:19:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF66D282C0; Wed, 25 May 2016 20:19:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9971B280A3 for ; Wed, 25 May 2016 20:19:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b5fGv-0001AS-T3; Wed, 25 May 2016 20:19:17 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b5fGd-00016j-20; Wed, 25 May 2016 20:19:01 +0000 Received: by mail-wm0-x243.google.com with SMTP id a136so3348754wme.0; Wed, 25 May 2016 13:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=7sNo/9xtWVaHbM+juYXM6W7RbRZ6HijCvUdcwcIUKlM=; b=nMGRb0AIeZMplTKIy43ymRYwR/i/Z6FSFkDUBL+sJS0rYlCyhMRwbvM9+boJjd302S 1LF47vifl1Tf0b9eqeX/gzIKnf2fkTAsXF7n/pNyCWYD2b00fEeAOwuloWje/4Ivw1sz q9i4Rk/AP7VhClTm+QKp5Qsp1FK7XiT0/nx2aHQl4qVDfSELF6fwtQh0kdqsrSWBMH0N 8uIxXEJodfbXGiZYEuRif3vXOVzG2t/9JPSeLwhHr1Df5eWg0xNMS3sOf60NNoW/nol9 1AnIz7dVxU5pnkgEFFMGvHyil1/E67oyNuki2coFcyFhhzOXAuAV5SxagqYVuk2pvsRP 542w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=7sNo/9xtWVaHbM+juYXM6W7RbRZ6HijCvUdcwcIUKlM=; b=TNcomuv9ZPlKw1vcuPVebxoHJSA+oGUKRjXTbOKIbNCsfIYSKbYHqdVi4AU98ahFWa 8Zac1znpNH6H83+P+RMZxeJFPXRPpsJ8TVUcPON0OHWpXoDEYjo6qIn0372R9IZWBXaE QYaG+LLdFk56XyCX5GQ4P9rB3IUcf0q1otI29OfqXEKIVXjblg1kYLNebJAz5dSp9/wu lbh6xa0oLhORRF8OP9Gwt0ZOpZdVEDh24FpenIWEy14JGIP3hwu4NQaK0O8Rjr7AYMVG +TBOH4G72AW1F7VmKUZWpqgwf3hJryiB4bhIGgE3rBsd94IrusF93LmTFo8Z7lzXrrm8 2R/g== X-Gm-Message-State: ALyK8tJOvqzXRDMMOEhJuze5RmM6hjXsZjDY0ECPS1DGSE0N/F3xwOFEvpVau2sF3c5IUQ== X-Received: by 10.28.105.17 with SMTP id e17mr5641980wmc.75.1464207518323; Wed, 25 May 2016 13:18:38 -0700 (PDT) Received: from localhost.localdomain (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by smtp.gmail.com with ESMTPSA id az2sm10630522wjc.6.2016.05.25.13.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 May 2016 13:18:37 -0700 (PDT) From: Carlo Caione To: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux@endlessm.com, devicetree@vger.kernel.org, khilman@baylibre.com, mark.rutland@arm.com, robh+dt@kernel.org, matthias.bgg@gmail.com Subject: [PATCH v4 2/3] documentation: Add secure monitor binding documentation Date: Wed, 25 May 2016 22:18:30 +0200 Message-Id: <1464207511-11786-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464207511-11786-1-git-send-email-carlo@caione.org> References: <1464207511-11786-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160525_131859_279103_E836047E X-CRM114-Status: GOOD ( 12.93 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Carlo Caione Add the binding documentation for the Amlogic secure monitor driver. Signed-off-by: Carlo Caione --- .../bindings/firmware/meson/meson_sm.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/meson/meson_sm.txt diff --git a/Documentation/devicetree/bindings/firmware/meson/meson_sm.txt b/Documentation/devicetree/bindings/firmware/meson/meson_sm.txt new file mode 100644 index 0000000..896758d --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/meson/meson_sm.txt @@ -0,0 +1,42 @@ +* Amlogic Secure Monitor + +In the Amlogic SoCs the Secure Monitor code is used to provide access to the +NVMEM, enable JTAG, set USB boot, etc... + +Required properties for the secure monitor node: +- compatible: Should be "amlogic,meson-gxbb-sm" + +Example: + + #include + + ... + + firmware { + compatible = "simple-bus"; + + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + }; + }; + +Node of a device using the secure monitor must have a custom property to +specify the SMC32 function ID the driver is going to use. + +Example of the node using the secure monitor: + + #include + + ... + + efuse: efuse { + compatible = "amlogic,meson-gxbb-efuse"; + secure-monitor = <&sm>; + amlogic,sm-cmd-read-efuse = ; + amlogic,sm-cmd-max-efuse = ; + #address-cells = <1>; + #size-cells = <1>; + + ... + }; +