Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1520304ybz; Wed, 22 Apr 2020 23:53:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIjSuvql7H3hzGSnUN6BxNU7UFUiNnsCs1eIhmOVIGyd4cZLrw619VVhTd6+1Esv3jyn+EE X-Received: by 2002:adf:fa04:: with SMTP id m4mr3121509wrr.30.1587624810942; Wed, 22 Apr 2020 23:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587624810; cv=none; d=google.com; s=arc-20160816; b=kY4UHZOft8rYDOtB4hcHl6gO0h3EYllzZVBe604Ijq2dEgpxeMElEtX8f25xxhyCj1 ed/ruqu0DQVfD9eS6pw17d7FshCHqMD9Uuant+B5SATfnmhlxbcFScxj1hrP+8ctfFZ5 qsw4TQ1AFOG9VpW69hPQxSVs9JmYTYy4kdFR3PdcjHFyAh4zHlhLOdZBP56IWqj6tevp 5tUivV9GymLPIygLPfZj1Ad62imzEyZ6MBoOpriCjxyXAqWUPwu3eTiIB/r/M70Tc5rv +shLNmTv7SunZZXsNTXBBqZfCHe5/fdx+74Zy1m+HSRzwqhdSWvwpW/W2lq+Ozy4oN1e ieBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=kJtJQoG/JQbSqOU2YZRjYN1eoWDg7VtiOaXr4Sl/Q8U=; b=oBTUZgG/uVhlH5AoH1aWEjyxRlBAcnltD2t75Kvb3FuUdj9jO3dILi4qd4m83mLP/8 Tqf8+QmU7UwEDaV8ZSCNhfP3TFGjBfeXM2lsiIChiaLfP+Z0aoc9eYWaWOHeMDXzGPhy nWfBojN0oJ68l2c7HjGmRROm5I1i/Ek6fWsPdoGvBbcwVrDELwfqASnLUI8CeYu15LGY BQxdZl15V6/O++T4msr/NwC+rlC0Eg79L62HDnnmSAq/QZmQBPpTrRoHI0gpvaoHA/o3 kGsT4Pi1lKFrQzaziiV/bFsYbk/VpTtt9jotrl9Tj+tOaDYd3B8JKn71ytGSGznlOoe/ NvtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpbw26kl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si790546ejp.513.2020.04.22.23.53.07; Wed, 22 Apr 2020 23:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpbw26kl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726839AbgDWGtG (ORCPT + 99 others); Thu, 23 Apr 2020 02:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbgDWGtF (ORCPT ); Thu, 23 Apr 2020 02:49:05 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27B8EC08C5F2 for ; Wed, 22 Apr 2020 23:49:05 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id x17so4705039wrt.5 for ; Wed, 22 Apr 2020 23:49:05 -0700 (PDT) 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=kJtJQoG/JQbSqOU2YZRjYN1eoWDg7VtiOaXr4Sl/Q8U=; b=lpbw26kluPvvo4DG9FZ3dRRkOUcmUUdlire26yEgBfUb9aVOlpafUTIZ26UFwS32TV thVlGVhSFsf3w7GQGb7IUjZPkRltAFRy3DiYbZd9gXLuw6L3iQHIrmxw8R6/IbJp1i6T sWWEWgjwyZFvfmJ57jEPMwZoFAmOrV0JghVs7y8w/h/N9vuGeIE4q0vF9vLjXEok+EpQ JmG8qCeSopx+O/1RqjN8SLw4WdFbqE3TjGa0yEowO45taB8F8LZMen3G5uwis1pz1bD1 Ta0jub11B1dukk8bDF/xb4a+9QiM4Di74g/0TNWkCtTgRZKivHp3X7sGOPUn/XREZRPj kMyA== 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=kJtJQoG/JQbSqOU2YZRjYN1eoWDg7VtiOaXr4Sl/Q8U=; b=tcP/lTn+dw+ndQ02GYhWeyP9gFJM+Du2L2VGqc3M8bIPaS1lq/expNkVXC75NVjUW1 lkR2bnDqb4D7a2Hq4cvRnCLa0cRZkdcjG5HCAPd0od9UNT5+OJa4PUpFWBKanEKUM2UM wU7UQ1VWkZQgXMEfsjE/OKC1y6trwu3uNSga+vf2opSPqvYINInjbQwqdU2/cApCKhhK f5OPMkgA/DCqLB4cqOu8F1pyg/53pfpBzDj8g7qnk8P/7EJ+VR6Y+fAV/QFxh5+GsXO2 e8DesP5xRO6xt6GcpDN46mybHvnjo6YOufST9BOT7scxK9DU+hOnH/Aq3FpuN/56r9tz xGTg== X-Gm-Message-State: AGi0PuZifSWRcY8ffyBGqk6WqcVAjvFKPIahI2m7sDAMImlthhMw27E5 TDE2DuUaP7eIfwpUUhFeODHBp1fL+LDJER2a X-Received: by 2002:adf:f444:: with SMTP id f4mr2986877wrp.376.1587624543700; Wed, 22 Apr 2020 23:49:03 -0700 (PDT) Received: from lmecxl0524.lme.st.com (2a01cb058702ff004d8cf526990082b9.ipv6.abo.wanadoo.fr. [2a01:cb05:8702:ff00:4d8c:f526:9900:82b9]) by smtp.gmail.com with ESMTPSA id k17sm2254910wmi.10.2020.04.22.23.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 23:49:03 -0700 (PDT) From: Etienne Carriere To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, Etienne Carriere Subject: [RFC PATCH 2/2] dt-bindings: arm: Add secure-resets binding description Date: Thu, 23 Apr 2020 08:48:08 +0200 Message-Id: <20200423064808.10468-3-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200423064808.10468-1-etienne.carriere@linaro.org> References: <20200423064808.10468-1-etienne.carriere@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe how resets property can leverage secure- property prefix for reset controller assigned to secure or non-secure world. Signed-off-by: Etienne Carriere --- .../devicetree/bindings/arm/secure.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/secure.txt b/Documentation/devicetree/bindings/arm/secure.txt index 9bc94921f2a6..f0aa6a5fb436 100644 --- a/Documentation/devicetree/bindings/arm/secure.txt +++ b/Documentation/devicetree/bindings/arm/secure.txt @@ -72,6 +72,24 @@ Valid Secure world properties clocks = <&scmi_clk 2>; /* NS relies on SCMI resources */ secure-clocks= <&clk 5>; /* S accesses the SoC reset interfaces */ +- secure-resets : specifies the Phandle list secure world shall use + for the related reset controller(s) whereas property "resets" specifies + the reset controller Phandle list non-secure shall use. This + configuration can apply for example when a hardware reset controller can + only be accessed by secure world and this one opens a software service, + as a SCMI reset domain, for non-secure world to access the resource when + platform assigns the reset control to non-secure world, i.e.: + + resets = <&scmi_rst 0>, <&scmi_rst 1>; + secure-resets = <&rst 5>, <&rst 7>; + reset-names = "int", "ext"; + + Such device description relaxes constraints on device tree modifications + when one, a user or a bootloader, needs to assign a resource to secure + or non-secure worlds. Indeed, this allows only "status" and "secure-status" + to be set while the rest of the device description in the node remains + unchanged. + The secure-chosen node ---------------------- -- 2.17.1