From patchwork Mon May 27 12:54:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13675192 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB4FEC25B7C for ; Mon, 27 May 2024 12:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iYxuaZy57YZsxJ0uzaDwS/XbS86Kj80BfVLIKzVLuEQ=; b=Sr3OaYqE4pt8QX Rh3nP3sZTRVv9KxW12LPuCCas3kvbK5R9wguZ71XIrEyzsuNNFaYalnRD0JBsjqL2/XBV2Ug60Adp qg8DpaNmd8VD6qwL/m7Gt9CHMMChONj0AqAC1ahufp3y3EP7q+USwwptFSYL+ON5vCPOmQGVDyubz Tg1Kdb0yQ28n5D5YYB/jzH8nQbPojMQGqnOE2otLGABeJ+Yrc3ef1VzrwhPQHw7oLD7AO4nlVP5TW CyZI0fpRatqlJWZTAWJ+e6TGVV1cS4bnk9uqnXIMDIpUX+lVr5iF/xJ1FUTjodc6GoTKWcpOrAfFr Ou+416FDbfroYMaIl9Yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBZuG-0000000ExcL-2fdN; Mon, 27 May 2024 12:56:52 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBZuC-0000000ExYl-1CmY for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2024 12:56:49 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-421124a0b37so6867485e9.1 for ; Mon, 27 May 2024 05:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1716814605; x=1717419405; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gSVtWnldnZQllmMbRum27BL7QtGmRA5VldXfXUSrfms=; b=XDJjR3kZUW16MZKS8Rfx6QI+E8fWyAOISi5RdgpODr0YHmBKRasoqwtfG78pfDa0cc h0nP3vMWuRbqsuWwvrTCWTnVZFqI4JXU+1Ibu9E/tzv5UZyL39m/32092Sj02T07F9Wg MY8uymOgDNNZ346bHWoSKNBW+Q8J/09yKveNCSB8BA2t/u1KAzK5i6svo8j0dA2/yhZb x/WhTdSgMXXJcZXy55+yoewFtUGra+b3NC1kCLHE0uy7XvOqQBkNKaJKzLuMacGQhI3J gY7ze7ntu1RyRH7x23ZyBsO1zkRjJOEbf/2IWW1ux2gBRAa7TK1Utmm8eE8VMJhUbq0X Ym5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716814605; x=1717419405; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gSVtWnldnZQllmMbRum27BL7QtGmRA5VldXfXUSrfms=; b=eaZ+g7iBEdDIKm5ytn4ax5IrJFWXImCDkacYfGuJlTgSfSt8HBXx/Pd5UGS5bUrDrt DzSgmcor19W+DZ+N/O+sWEp3CJylJH1tkYgJR9nz8nd2iajcYFLaDSq6NOEaaxRPAxpu kQI4yMO8Lg0xt9LXvi7r7P2HmhSo7/D+9DQAMOhHtHc5qEzVOIvqeY/JhULkdj/Jtceu xlJrHaOC96fGxc6wYY2B0Rza4LAzqbvD1KhgQpP5iUbNukhhuq+e04iHAeyBxEBdhRaB mcsEMvrjOgBJTX7z4JfordZt8YvnysDTRfQSmalgMdZFgU6hlJyyU4Q/7RdrrFdE8gBl jnFg== X-Forwarded-Encrypted: i=1; AJvYcCWKXt8wz2st6y/wMFrru0bZ2pbBuZL3Odo/84Az3OJMs42XITi5Q9SFHEKfomhUU90HSrb+aD44tVwJVDylqtekRb5p8eIcDffn/O7A6FXqNkfmR0s= X-Gm-Message-State: AOJu0YyP84jHqI+fe6Vqs1wmUhvIjIV2r5K/YC5FF3dpeMuzNypKMUIC llRD41Tv5DIQIZ4QN4OZUdwfqb9yGafm3no1VIb00xKTk2c/Gog+LcvhY3jnBLA= X-Google-Smtp-Source: AGHT+IE2BMX0ptrnaHXWfVKJZpzP9Mk2ADilIQ8OTVQeSpBoDDR7X9tWYL6FLYCjkwvu7KQgee4WLg== X-Received: by 2002:a05:600c:4f90:b0:41b:f979:e19b with SMTP id 5b1f17b1804b1-42108a18a20mr82816285e9.39.1716814605588; Mon, 27 May 2024 05:56:45 -0700 (PDT) Received: from [127.0.1.1] ([2a01:cb1d:75a:e000:c322:131e:ff9d:ef41]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42100f64f98sm138753635e9.24.2024.05.27.05.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:56:45 -0700 (PDT) From: Bartosz Golaszewski Date: Mon, 27 May 2024 14:54:51 +0200 Subject: [PATCH v10 01/15] dt-bindings: firmware: qcom,scm: add memory-region for sa8775p MIME-Version: 1.0 Message-Id: <20240527-shm-bridge-v10-1-ce7afaa58d3a@linaro.org> References: <20240527-shm-bridge-v10-0-ce7afaa58d3a@linaro.org> In-Reply-To: <20240527-shm-bridge-v10-0-ce7afaa58d3a@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Marko , Das Srinagesh , Bartosz Golaszewski , Maximilian Luz , Catalin Marinas , Will Deacon , Srini Kandagatla , Arnd Bergmann , Elliot Berman , Alex Elder Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@quicinc.com X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1335; i=bartosz.golaszewski@linaro.org; h=from:subject:message-id; bh=ImiNTKfKDCEq2Ei/PD7lBaqJ136fJAWHXhcyLN3vk+c=; b=owEBbQKS/ZANAwAKARGnLqAUcddyAcsmYgBmVIMHMxbQga0jenpeezcT1mcfHP3O2WFdrsXNk TEZx9DPVBSJAjMEAAEKAB0WIQQWnetsC8PEYBPSx58Rpy6gFHHXcgUCZlSDBwAKCRARpy6gFHHX clpRD/0aG7ylQh4jojsxziBkTqtk4v9MTFH/EBs6S4/0Gt7VqiXwXp7c4Ex8QSma6oUMTce68GH puCIl3MSyEhgTnJo3iso4WVwG+7BH8XKQ2rK8xF+iPo9jjgNpgaEMYywaw9C25BRpjDbYJqp9XM 5tJWQH19IlXgf2w41Rnd163qjS7k6+x186xEonSfeE/+Aob8+tDi3tIh/SeHp8Z6U/bg1kUqqiT KUar9IfUwX+fv+V09sWWKxAF6vRyUGslRXDg2zyYAhjIcYhLuAipMRiQ39L9LDLSE3sxBNNqRUA hq2JQGfTc6YxnIVP47k3yYj4zkETHRuyT43331yFSp7QAJRllvXTh7O5/iOAwpQzapzc2kYWAqR dBmVjrCBktferBQkVWMLlreNTIU/6xAW7N1QNrhbG4T5pkWQK6deAMJ9CF7Wg5cH5vPOmJdkKsd OWgk8piBvK1CYIz8/S0h3/fseUq+CF4q0nZhLGnAVT76VfjEmkDi3VqCiT2x30Cl4tNlvBOotIK pVFEK9AmQRHdpNqX6ehIxGQeY8yHvOF/Nz6lrfqQAuy9ooJLMjKbU3dM77bq59Cv3nwg+sIEwUK iTrVmHHfBGuU3AKGCZstJGCBkSL4TaIJHi0hWd9dbC/X/uYOtFQQpZvr0dDXqYh+HscKuIFh7Vf b9DX3Pi3DKzJ5gw== X-Developer-Key: i=bartosz.golaszewski@linaro.org; a=openpgp; fpr=169DEB6C0BC3C46013D2C79F11A72EA01471D772 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_055648_377728_626FBE2D X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski Document a new property (currently only for sa8775p) that describes the memory region reserved for communicating with the TrustZone. Signed-off-by: Bartosz Golaszewski Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index 47d3d2d52acd..2cc83771d8e7 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -93,6 +93,11 @@ properties: protocol to handle sleeping SCM calls. maxItems: 1 + memory-region: + description: + Phandle to the memory region reserved for the shared memory bridge to TZ. + maxItems: 1 + qcom,sdi-enabled: description: Indicates that the SDI (Secure Debug Image) has been enabled by TZ @@ -193,6 +198,16 @@ allOf: then: properties: interrupts: false + - if: + not: + properties: + compatible: + contains: + enum: + - qcom,scm-sa8775p + then: + properties: + memory-region: false required: - compatible