From patchwork Thu Mar 1 13:58:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10251495 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 4E11A60365 for ; Thu, 1 Mar 2018 13:59:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C09C20856 for ; Thu, 1 Mar 2018 13:59:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30BAF20950; Thu, 1 Mar 2018 13:59:14 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CA07320856 for ; Thu, 1 Mar 2018 13:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=qC0tJ7tBxgwavf/uRDghf/aEalSqb3VfwDDC7KzzNT4=; b=e8oNkhHhw5e5KjB+E0np2RQS01 b0cc/T95/sNjYcgS5z8ChHXtz4blUMedyETVV9eSONwJed1BdSDbh/KwinoJ7Mt/nLIjOIK4hAtCs jEMGACZDLVlzZP3UIkbqV7FrHuW4Hcqe9A6mayYMLgtQk+3oWCg4rj21ClZx/4A+gkODF2KU3YE3G nPZWPXckPh1BDx4K+lDzdLJ5NCtWvEpbfHtIz85rDfx8/TM8rMzBhBQ0WsbEofFai69owCU+ypQPA Wl+JY64jJIkvYbwO98Z0QNFlv6ACSuBuAEeTSiPX2dslzJUc/A9l4sM8Ly7qzSj7gigAFBthb5Fxb lMg7XYbg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erOje-0006pF-GC; Thu, 01 Mar 2018 13:59:02 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erOjE-0006X1-LL for linux-arm-kernel@lists.infradead.org; Thu, 01 Mar 2018 13:58:40 +0000 Received: by mail-wm0-x243.google.com with SMTP id h21so11892013wmd.1 for ; Thu, 01 Mar 2018 05:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nVrukGrRijRZWu+qMWPxMCwlS23q444xkQmkLHiDLo8=; b=cJolsdgNVtXMUCa3SjU9ychsLEUf8MVOW4m4rOxLjvWzb4n/FNzsumb9vTmU5iXBcP tGTth4VID4oivU+KhP+tb0o8P+4nIQ5aFFvQN6Y01gof0vAF09AYRB8ZuIAFfn5+2cUG s49h0RBLSJBJTAMHwsHxRpXGetpjvGoHYZto0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nVrukGrRijRZWu+qMWPxMCwlS23q444xkQmkLHiDLo8=; b=IIwfgB62Z/UZ0otWVmfjqW590F4123wCAf2ho6o+VGc/OSo20gQ7Cy/7qL8V81tvns 87TnbPrGwAgYLXQJeYta9TIGyUUtKZcpLWYPnOn0i0uxq0DTmt7PYrfBlpbHPtlFu0R3 2i78qP0KnxGVeGYwb/qExJCt4mpq8ZhaCcPT3gHxydxsmYdktNRZHdf0JFo3HGq0fG4f Xz3qILp8YgCeiRDbZdal+PSX2Ddnuij7nQ07+QQX/hbOpUV2+Hs7d8uPAzfEaEguz1hJ agmN71R8MDN6R3wEBdeYeZDMe81JhP7Z79/mVRKe8UllzNisFOOesYlV5lSXTXGrNCQb XtiA== X-Gm-Message-State: APf1xPA+M6sc8d78wCXS2Ee3Q2bTIJDMUz4jzOAupu3eO9FoDrd6Jy/S l19MtNbmKp8HCSbp3ZR8MFyItg== X-Google-Smtp-Source: AG47ELt7kDBwU9C+wkL+HIVIfxPLJ9sLfcP1t/7Ly1zOdiJRID5M8GrxBoLOwBXLEHwHXUPXyAPAdA== X-Received: by 10.28.124.5 with SMTP id x5mr1745968wmc.11.1519912704120; Thu, 01 Mar 2018 05:58:24 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.14.109]) by smtp.gmail.com with ESMTPSA id e6sm3826304wra.67.2018.03.01.05.58.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Mar 2018 05:58:23 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: robh+dt@kernel.org, mark.rutland@arm.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, robin.murphy@arm.com, arnd@arndb.de, loic.pallardy@st.com Subject: [PATCH v2 1/2] dt-bindings: stm32: Add bindings for Extended TrustZone Protection Date: Thu, 1 Mar 2018 14:58:05 +0100 Message-Id: <20180301135806.19982-2-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180301135806.19982-1-benjamin.gaignard@st.com> References: <20180301135806.19982-1-benjamin.gaignard@st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180301_055836_792546_A5424135 X-CRM114-Status: GOOD ( 14.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Extended TrustZone Protection driver is very basic and only needs to know where are the registers (no clock, no interrupt) Signed-off-by: Benjamin Gaignard --- .../bindings/arm/stm32/st,stm32mp1-etzpc.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt diff --git a/Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt b/Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt new file mode 100644 index 000000000000..9407e37f7d15 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt @@ -0,0 +1,25 @@ +STMicroelectronics STM32 Extended TrustZone Protection driver + +Required properties: + - compatible : value should be "st,stm32mp1-etzpc" + - reg : physical base address of the IP registers and length of memory + mapped region. + - protected-devices: list of phandle of devices protected by etzpc. + Because etzpc driver rely on the phandle index in + the list, holes must be filled with a disabled node. + +Example for stm32mp1: + +reserved: disabled_node { + status = "disabled"; +}; + +etzpc: etzpc@5c007000 { + compatible = "st,stm32mp1-etzpc"; + reg = <0x5c007000 0x400>; + protected-devices = <&usart1>, + <&spi6>, + <&i2c4>, + <&reserved>, + <&rng1>; +};