Message ID | 20230308233822.31180-3-semen.protsenko@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp641298wrd; Wed, 8 Mar 2023 15:40:13 -0800 (PST) X-Google-Smtp-Source: AK7set/slswwFrtXpgpikSlU5zjLZaAX7rqd6GkZy4j0a1Vc1N5x6EXvc1KFaN3Ya1PG5EkkZqmc X-Received: by 2002:a05:6a20:a10c:b0:cb:f76c:ce49 with SMTP id q12-20020a056a20a10c00b000cbf76cce49mr21749228pzk.20.1678318812983; Wed, 08 Mar 2023 15:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678318812; cv=none; d=google.com; s=arc-20160816; b=RpZRCPfEC3Us2u+o5JVSa8lU3mLrYpa+e3LKgw2aa3iT2+Z8fEBdnRulNr7NXvZWJn D2mgHmwti37TbEfsFJDTDa/Svw9Ka2cjXjikcuPG2VczJm39bd+fwPayeT7pAGBeVjLo DUtWFsKKgJaIdUNXjrv5sHvXnw6/JTYTvq1Fzh9Tjl7TiZWYQQ2Cs5JlIpEg2ac7b4mu n16C0jkKS1iUJXBtoiiRb9CcHFOm1BB/P9Lw+cYd1rYi5XbqlmJNDzr/JmVs78PbbbEu 4Yi0lzjN0wbMsMH+Brw8gDLcR8fIhuEfnzh16D5lzqlOMYJT/xEsMptisis9xApWH3mn eQIA== 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 :dkim-signature; bh=c1aCfh++R75HCn6rV29gUz4FnrRGANFpdhcsqijAx/o=; b=bN0V85fK5TGAjKjYH+iDf35sjtkO3bagSKwF3tkTpiB7WPj6B7CF7ebWSKMeRSEXuk kVJavNasICy7g3t2H5qUdgd23XX8ctb5DvKijqxDoCjJFthwBdUbRnvISKsoBhuJDcbb 62eoXG7qiKIjyGjhrhPlZLtPEa4cwaeIMMF7jb+iKR607D0zTNi8jxi0TcODCagJCtCr 6GM9YCn/is7sQQSt3Y/hxdKPZYh9v89nzUUV2czm1lKqIKGpKc+nse0CGoF1Fd63tK52 EMg4tB0cAGqdYBHQb3v0EVx7BfD/Os4MYybvpCCHU/bNL4RRojx5PZIqTK0pJkWL8k1U V98g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wcTZjull; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a63f54f000000b00502f13f32c5si6461871pgk.862.2023.03.08.15.39.54; Wed, 08 Mar 2023 15:40:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wcTZjull; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230266AbjCHXij (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Wed, 8 Mar 2023 18:38:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjCHXi2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Mar 2023 18:38:28 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AC6557D09 for <linux-kernel@vger.kernel.org>; Wed, 8 Mar 2023 15:38:27 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id g73-20020a9d12cf000000b006943a7df072so123836otg.11 for <linux-kernel@vger.kernel.org>; Wed, 08 Mar 2023 15:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678318706; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c1aCfh++R75HCn6rV29gUz4FnrRGANFpdhcsqijAx/o=; b=wcTZjull7l8jDiPC59APixfrJy4MzvcItSe+rO/P7rkBtJoa3ywzaJv46Y/KgyTUax qzYWrVXLlM4b14dlgS2xci/lFbCiD3O7xwA/RRt7tvx435mRv1BaCLTUHVU1TcUX/ZxW R+0hLvOs3ntoFIeUr4YvifDPZgc5G85dLm8X6/d2EgtWB36YJMeJVLk4w1Prk0ZqeTPJ WwWxiiigVozkcncmyAsGCChDIrqkU3mxVRt+qJUI60lKGffD+G2RtdF+3FC4ugKsjo3S JeCn7mBRV3Jo4u0C8U4siURtbIU2otXgX1YVQzukY1zVr1ddwsQdTC6xa4PNIkRVlu4D 43TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678318706; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c1aCfh++R75HCn6rV29gUz4FnrRGANFpdhcsqijAx/o=; b=xVWb7Ewp8HYMNqJcTCOkMNVQdRFSl9X0VGuWlzkDAtYi5OIklIjoiAcBMIo6MxTqLj YBCR4sV+ONH9HCLYUbYTznyL0bTQfPCioEcICh3i4tvsolJmtqxQQoVgn6XNYxGVxMjg M7OZVajC69NsPgTEzUj39FYHHnf/0E76bfRaTi1X+fRyYEQSpm5OF8RCIy0YVfWe00iC cFZLY0es83kWVtSKAm6r2XwOn7y+EsI7d9pSdEwc2pcQ0ZnhVeBkrhLimKJlQEd375hZ IhNUmDy7HKkqpxs4EI5q/COMUqdBReefPEsJqN8a2Cgfjq2adOIogUyaB4wLY+uLVnJj POGQ== X-Gm-Message-State: AO0yUKW/97QN1W4rpYQl3YT7oblpe1skgLCrAzXgMjV54oxhv5BOzT2w svTn7Twbt6rEw6Kl5bXsUjOKyQ== X-Received: by 2002:a9d:3e03:0:b0:690:ee9d:f47 with SMTP id a3-20020a9d3e03000000b00690ee9d0f47mr8122115otd.1.1678318706541; Wed, 08 Mar 2023 15:38:26 -0800 (PST) Received: from localhost ([136.49.140.41]) by smtp.gmail.com with ESMTPSA id y12-20020a9d714c000000b006864b5f4650sm7159351otj.46.2023.03.08.15.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 15:38:26 -0800 (PST) From: Sam Protsenko <semen.protsenko@linaro.org> To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Rob Herring <robh+dt@kernel.org>, Sylwester Nawrocki <s.nawrocki@samsung.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Tomasz Figa <tomasz.figa@gmail.com>, Chanwoo Choi <cw00.choi@samsung.com>, Chanho Park <chanho61.park@samsung.com>, David Virag <virag.david003@gmail.com>, Alim Akhtar <alim.akhtar@samsung.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] dt-bindings: clock: exynos850: Add tzpc property Date: Wed, 8 Mar 2023 17:38:17 -0600 Message-Id: <20230308233822.31180-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230308233822.31180-1-semen.protsenko@linaro.org> References: <20230308233822.31180-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759844827516013569?= X-GMAIL-MSGID: =?utf-8?q?1759844827516013569?= |
Series |
clk: samsung: Enable PM in Exynos850 clk driver
|
|
Commit Message
Sam Protsenko
March 8, 2023, 11:38 p.m. UTC
Exynos850 requires extra TZPC handling to keep CMU registers non-secure
(accessible from the kernel) after PM resume. It's done using a specific
SMC call to the EL3 monitor.
Describe "samsung,tzpc" property for Exynos850 clock controller which
allows one to specify the SMC call address for PD capable CMUs.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
.../bindings/clock/samsung,exynos850-clock.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On 09/03/2023 00:38, Sam Protsenko wrote: > Exynos850 requires extra TZPC handling to keep CMU registers non-secure > (accessible from the kernel) after PM resume. It's done using a specific > SMC call to the EL3 monitor. > > Describe "samsung,tzpc" property for Exynos850 clock controller which > allows one to specify the SMC call address for PD capable CMUs. > > Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> > --- > .../bindings/clock/samsung,exynos850-clock.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml b/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml > index cc1e9173b272..5098dce5caf6 100644 > --- a/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml > +++ b/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml > @@ -60,6 +60,16 @@ properties: > reg: > maxItems: 1 > > + samsung,tzpc: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + The register address in corresponding Trust Zone Protection Control block > + for setting the CMU registers access to non-secure. If provided, it'll be > + used for issuing SMC calls to EL3 monitor during CMU's PM suspend and > + resume operations, ensuring CMU registers are unprotected after waking up. Do not store register addresses of MMIO in some fields. If this is part of clock MMIO, then it could be address space in reg. If it is not, you cannot store someone's else address space here. If this is someone's else address space, then you either need syscon or phandle to dedicated device (something like qcom,scm or other secure monitor channel). > + > + This property is optional. Drop, It's already optional if not required. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml b/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml index cc1e9173b272..5098dce5caf6 100644 --- a/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml +++ b/Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml @@ -60,6 +60,16 @@ properties: reg: maxItems: 1 + samsung,tzpc: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The register address in corresponding Trust Zone Protection Control block + for setting the CMU registers access to non-secure. If provided, it'll be + used for issuing SMC calls to EL3 monitor during CMU's PM suspend and + resume operations, ensuring CMU registers are unprotected after waking up. + + This property is optional. + allOf: - if: properties: