From patchwork Wed May 18 14:56:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9120041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4BA65BF29F for ; Wed, 18 May 2016 14:59:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 666662034E for ; Wed, 18 May 2016 14:59:06 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 809102035D for ; Wed, 18 May 2016 14:59:05 +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 1b32v2-000367-I3; Wed, 18 May 2016 14:57:52 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b32uO-0002em-O0; Wed, 18 May 2016 14:57:15 +0000 Received: by mail-wm0-x244.google.com with SMTP id n129so13620588wmn.1; Wed, 18 May 2016 07:56:52 -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=Ro2oLFRUdKaGls/rtWvKHVegLJvnQHsRiTuX+dfQKNk=; b=NPPkqpelChZDNlMTxzvZZ5bSbqvBsVFTxjDB0rJQDVAWz1UjZbkhsM5okh+a0VCG/0 RV9bzV1MgL/b1Hy/Vf32zyFGN48GBoJtlmEwpUDVkKUM38EJhRpVCKVpG2xrUIKGGavh +vN14raP1DZ3Zva2Q1gFqWEvbFCYWccL4jelbhlVX4/OG/bYtSFWwoqGf/kUQ97VA+cy TQRMcKDDmdEE7hGgbrrjEUkqgC24Pp/Nj/O0W/GmZbWEQk3OL1/MpB8L9dTeb7F4Bvlv FS/MHHHWPTZegGxonj2US6nPG6JfuJfJLW28iI6nP9Mzv0T7Arc+B3Twzav36bF22w/q q/ig== 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=Ro2oLFRUdKaGls/rtWvKHVegLJvnQHsRiTuX+dfQKNk=; b=dXm6oOhfAlv43hz1T3o/BO03rcCkFRXhtZcqBItL/5ckgUFfM7Bqo6uNubLKYtiDB7 4cFuPZ9C84Rvu0r5jhk2AJe2ktV6dM2rLC5Ua6LM+R9joZ3yObF8Z9eguG+8Au6kZAqm z1SYzg+Gj7hnsL2PV47K6Mn5sr8MRCjg2cmVz5rhYKnLnzrGDqVs2+rcNE7YDYhZZZPx PnThbJvcnYZ3C2ZifS3kikVVR9PJ3B+0TB2qlEmemntJomHinlrDQtIQGMgYgox8Dfcu lnmbh/sWjR3YLI+4lpZG2foNCn7ObyBgF8TlUF1F8/8RCrHhPfmHIZqRJjGmwv8gBz7x EnAw== X-Gm-Message-State: AOPr4FUf4MGiUFNU9xeP7LRnRWzJrF97cqk5uFHEOdNuiuZDPahgtvxtrwITxa/0MGyeQA== X-Received: by 10.28.27.142 with SMTP id b136mr30899201wmb.7.1463583406151; Wed, 18 May 2016 07:56:46 -0700 (PDT) Received: from localhost.localdomain (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by smtp.gmail.com with ESMTPSA id c16sm9588283wme.16.2016.05.18.07.56.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 May 2016 07:56:45 -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, afaerber@suse.de, arnd@arndb.de, jens.wiklander@linaro.org, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH v2 4/4] documentation: Add secure monitor binding documentation Date: Wed, 18 May 2016 16:56:22 +0200 Message-Id: <1463583382-15614-5-git-send-email-carlo@caione.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1463583382-15614-1-git-send-email-carlo@caione.org> References: <1463583382-15614-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160518_075712_957131_493898D0 X-CRM114-Status: GOOD ( 13.69 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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 --- .../devicetree/bindings/soc/meson/meson_sm.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/meson/meson_sm.txt diff --git a/Documentation/devicetree/bindings/soc/meson/meson_sm.txt b/Documentation/devicetree/bindings/soc/meson/meson_sm.txt new file mode 100644 index 0000000..f59c732 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/meson/meson_sm.txt @@ -0,0 +1,45 @@ +* 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-sm" +- amlogic,sm_cmd_input_base: SMC32 function identifier to read the physical + address of the input buffer +- amlogic,sm_cmd_output_base: SMC32 function identifier to read the physical + address of the output buffer + +Example: + + #include + + ... + + sm { + compatible = "amlogic,meson-sm"; + amlogic,sm_cmd_input_base = ; + amlogic,sm_cmd_output_base = ; + }; + +Node of a device using the secure monitor must have a custom property to +specify the SMC32 function the driver is going to use. The values of all the +SMC function identifiers are listed in a SoC-specific header file: + +"include/dt-bindings/soc/meson-gxbb-sm.h" - for the Meson GXBB secure monitor. + +Example of the node using the secure monitor: + + #include + + ... + + efuse: efuse { + compatible = "amlogic,meson-gxbb-efuse"; + amlogic,sm_cmd_read_efuse = ; + #address-cells = <1>; + #size-cells = <1>; + + ... + }; +