Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1375084pxv; Fri, 23 Jul 2021 06:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjBcpfqMgSeaQ18uf+Ek1zg3twdUNdzeRX+8WC7W3O8CwanX57MywA/NyWSfnt8blGgliY X-Received: by 2002:a92:1942:: with SMTP id e2mr3789854ilm.4.1627048650228; Fri, 23 Jul 2021 06:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627048650; cv=none; d=google.com; s=arc-20160816; b=GAqfT27Ka97FiQsDSMu4ctiXjYxGY18r0L2ouroo0oeJmXXz2J0VO493QKt6xZOcTA lCbWBMIFc/uUNd8KIvrPuh7q+tqCADcGDYoxuGFnWmUiUa4Z2SZQkUZcLf37Tk/UXvvz DEC6iCrxs4WLAjn+HfPOqx3eNKMFYuyS4PVSAn/syXSuy4BL/nCymuCoWntKOZkwcq/n iK40r67lK1LjylraaSwxWeaLnMQU0DcwsUmZM8vjYTBzyoUsO9VCzthygLB//Gw3rK8l s76HmuOHTnjWM73pXeriPi4+rdoUUQNWS4LvYYDijYMmacSWZTbx4ABV6p4LFtJUCYB4 60AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kMIIOQaWqZYz2k5FGDa2UZvy4Z3OaTFH6QnQgUZeJN8=; b=wtDFJ00z28rewMCygEXHSSytRPReEkUsdvTa9iFstKzQa6GF6Tx00+jEqjCxftFXyE 7LiufgiCFED+e0UKxfGEle4FHm8E4FilWnL5uX3Aja+F2GJtGEpkzIvzes1nEE254M23 02d5FvtQczJGJJjwlGKh+JPFow2dXNojHi3EVwwLY/0eoZIxBAr6TJFGJzxb6zn573CN WA78xYTH//moYuvFTTSbU+gXnIp5YYPGoLoQeYN6Tp6ABSe5FSXuDqEdl3F5k4eE/4gd KiV2DXabWENKNUGw8FGx7q85ZZg1Mg/0HN6V9P6/KWrYLsKqxZh4qv9nkOrBjX4xXkTY 4Z1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si34533440ioy.95.2021.07.23.06.57.12; Fri, 23 Jul 2021 06:57: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235351AbhGWNPa (ORCPT + 99 others); Fri, 23 Jul 2021 09:15:30 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:49029 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235324AbhGWNP0 (ORCPT ); Fri, 23 Jul 2021 09:15:26 -0400 Received: (Authenticated sender: clement.leger@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id D7B7D1BF211; Fri, 23 Jul 2021 13:55:57 +0000 (UTC) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Lee Jones , Rob Herring , Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" , Arnd Bergmann Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan , Sudeep Holla , Alexandre Belloni Subject: [PATCH 3/3] dt-bindings: mfd: add "syscon-smc" YAML description Date: Fri, 23 Jul 2021 15:52:39 +0200 Message-Id: <20210723135239.388325-4-clement.leger@bootlin.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210723135239.388325-1-clement.leger@bootlin.com> References: <20210723135239.388325-1-clement.leger@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds documentation for the "syscon-smc" compatible which describes a syscon using a SMC regmap instead of a MMIO one. This allows accessing system controllers that are set as secure by using SMC handled by the secure monitor. Signed-off-by: Clément Léger --- .../devicetree/bindings/mfd/syscon-smc.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/syscon-smc.yaml diff --git a/Documentation/devicetree/bindings/mfd/syscon-smc.yaml b/Documentation/devicetree/bindings/mfd/syscon-smc.yaml new file mode 100644 index 000000000000..6ce1392c5e7f --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/syscon-smc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/syscon-smc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: System Controller Registers R/W via SMC Device Tree Bindings + +description: | + System controller SMC node represents a register region containing a set + of miscellaneous registers accessed through a secure monitor. + The typical use-case is the same as the syscon one but when running with a + secure monitor. + +maintainers: + - Lee Jones + +properties: + compatible: + anyOf: + - items: + - enum: + - atmel,sama5d2-sfr + + - const: syscon-smc + + - contains: + const: syscon-smc + minItems: 2 + maxItems: 4 # Should be enough + + arm,smc-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The ATF smc function id used by the firmware. + + reg-io-width: + description: | + The size (in bytes) of the IO accesses that should be performed + on the device. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 4, 8] + +required: + - compatible + - arm,smc-id + +additionalProperties: false + +examples: + - | + sfr { + compatible = "atmel,sama5d2-sfr", "syscon-smc"; + arm,smc-id = <0x02000300>; + }; + +... -- 2.32.0