Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp179475pxj; Wed, 16 Jun 2021 23:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIv/TX3VmtXepIM1PSjpfenSJU6/m0tuNlLcsB0hXozhweU2XZ9cw3uLdYGqKlc1vYUbwl X-Received: by 2002:a17:907:98fa:: with SMTP id ke26mr689973ejc.309.1623912466093; Wed, 16 Jun 2021 23:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623912466; cv=none; d=google.com; s=arc-20160816; b=Yge96gF5Z0056uj1q1jc0I0HF1qKzskgxqf2O8Gbk1V+NkM8wV2fp/YBQVi9Ox7yR0 b7R+Wy8lhbj1CDzdxuIAabWlm7m8Pkl7/KzmZONm1cpBSaOt3tm/66pCGm03YWKXmQMT D0wPGX0vLgn8MOf/gjR2QOYvENM5q8hpgjKHcWvIdIuzjQIih24+g21yzWSNflIPp0nt 2zrfLC1z2fFx9gBlnrNJOvUtjBTalzGPHrhFq/Dt8MTjoxwFIUv1tEBQALUTzIp93pc9 nio4q6uWz0kZTLFKwGVbYaRlB5lnYAHHIRxYI8FI1OkAMzZ/xQrRCb6kcfqXYDMllLgR QJxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3LNfs60VA3LWGoKvJHHA7RUoJIcB6us5WIZF6Y71+WE=; b=KGpgG/Qo+KkK7wV+yG/MCg79c+b+bBmhAtcUdX9M6SxjBi7dGV6ybXURGmHd/H2ERk /e7JgKbZlBHlfViEmx0iR8PNHHR13p+sfNsaly4pGmqr/qX2XTpWUvpzRDyA0Msx7YVL qC5kT4dS+SoDLqy4vP4MST9Gla0s+555tugHi5/c1ldPQBYMnZR6mPfRaqwLofp31QVN MTbiZ3SmlUNMe4PrM21plMLqlqKdQlAcYLRREaYbAm6LHXXvWEEBKURh0gYhl3Ul/R+d rs9/tmH2s3QZZCi16qZS8jqVnNICqZd0+4/3UWiAbBILSR5exZfJoYsTjw803sBTa8y3 6bKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="iX/QAqFu"; 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 de5si4590825edb.595.2021.06.16.23.47.23; Wed, 16 Jun 2021 23:47:46 -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=@denx.de header.s=phobos-20191101 header.b="iX/QAqFu"; 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 S229686AbhFQGsZ (ORCPT + 99 others); Thu, 17 Jun 2021 02:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbhFQGsY (ORCPT ); Thu, 17 Jun 2021 02:48:24 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52064C061574; Wed, 16 Jun 2021 23:46:16 -0700 (PDT) Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AAF3980488; Thu, 17 Jun 2021 08:46:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623912372; bh=3LNfs60VA3LWGoKvJHHA7RUoJIcB6us5WIZF6Y71+WE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iX/QAqFuWzws1E3uJHmDU8HiUsCiAZxrQizvt0BAf8wrzClAibk/h2Gtl4JLsau+R b0eG0v9xvyEWVNwgdKxDc6d23nFofOmx4n6UTX/LsPpm7c4ZyZ9nUqr2vXb/CBChFP PmPwgIZVWyLJFUJ9nPGY2fWX5b1SHLYxN9w2hSnykM+zIN42qoGrB/MOYAliN+MBOw Cz4AJsLTewLK5CtmYQNCmkPw/wFnYfpvUcJyOroNYtzdy5V4E7hX3OpOsbUwPkme1R NiOMXfVdUKLB3SxuIZmBZuZqcfUq1ID4CyCqzF57FdADP88lXqvz5pecOX47xXTdvl BD1ZEI8OPu2ng== Subject: Re: [RESEND PATCH v3 11/11] clk: stm32mp1: new compatible for secure RCC support To: gabriel.fernandez@foss.st.com, Michael Turquette , Stephen Boyd , Rob Herring , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Etienne Carriere Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210617051814.12018-1-gabriel.fernandez@foss.st.com> <20210617051814.12018-12-gabriel.fernandez@foss.st.com> From: Marek Vasut Message-ID: <14a81ad2-d646-30ca-46f0-d2078b09c4f2@denx.de> Date: Thu, 17 Jun 2021 08:46:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210617051814.12018-12-gabriel.fernandez@foss.st.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/17/21 7:18 AM, gabriel.fernandez@foss.st.com wrote: > From: Gabriel Fernandez > > Platform STM32MP1 can be used in configuration where some clock > resources cannot be accessed by Linux kernel when executing in non-secure > state of the CPU(s). > In such configuration, the RCC clock driver must not register clocks > it cannot access. > They are expected to be registered from another clock driver such > as the SCMI clock driver. > This change uses specific compatible string "st,stm32mp1-rcc-secure" > to specify RCC clock driver configuration where RCC is secure. Should this really be a new compatible string or rather a DT property ? I think the later, since this is the same clock IP, only operating in different "mode" , no ?