Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1255838imu; Mon, 5 Nov 2018 17:05:08 -0800 (PST) X-Google-Smtp-Source: AJdET5dHsy5DwXA+QMdiwX1MuniVdY7mPTZ5HDCrNY675aWXyodKdkwHZvgPk5pvopmZkCAb6efY X-Received: by 2002:a63:344e:: with SMTP id b75mr21413004pga.184.1541466308349; Mon, 05 Nov 2018 17:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541466308; cv=none; d=google.com; s=arc-20160816; b=YX9P4wW5GXIZOHQGmewPADKkDaFTu69w0gKIT35XcztTfii2QJK1v+kdy/dPiDk0Fo uZaaY7E3xQ/iXjL4dLkFVcIdfT/VXqIRzd9kI99EjTiOh4gGNdEWk4794S1cExP16qgc QMd/bIVfEe1FX3rOIz0d7mkcwK5BktKk07pYWAc3g7J6d7z04u834eEGOZn6++gOdSU8 QfmOAhsQirMUhre5wG8zWrL7QdXwPGgvrBP0mhwasUp0YlDDGeQBF/GSqQWmvbX4QdNo PoEtSpcE62ZkkIxUXNdz95JChyU6HbpHK6cjdd455wo0IBnM/1OqIYqPuAVBdr4n7WTl 9hiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=adLlZ16E015OBx2S4OK7jMb995AyuajGJK07XS0H89k=; b=UVyJFxWWQ9AgxVV3skCEquHE3yrnnbHP1xEwtvVc7Ki+h5oUSaFr9Pxyh5CVBQdiUm rFO1EhwNN6GqvYq+8d55e+lOSpM6tIQple+ogLVeAe/7pJO//3jO5NQL5v14oHl0KyJK 7X+V1fxjpAg27O31VQU/eyfJXWKzQ/iPObhoiKmnOGgOe4Q9UBb/1av6QUR0QySWDk88 cgWhHaYcDTtkBdw7yav65RPerUuKAlYnbmseQz5lVMVygxQbY3Nd7d0RbBkdxKan5xtM w0BbWHKu+UyDcfePmC3cdPTON9nBIlJRcxPzXS8SzaoFl482xXHDLo/gx2pqApeNoW3b q/ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BVvjCe/N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y5si7755815pgk.49.2018.11.05.17.04.50; Mon, 05 Nov 2018 17:05:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BVvjCe/N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727040AbeKFK1C (ORCPT + 99 others); Tue, 6 Nov 2018 05:27:02 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39955 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbeKFK1C (ORCPT ); Tue, 6 Nov 2018 05:27:02 -0500 Received: by mail-pl1-f194.google.com with SMTP id q19-v6so2316838pll.7 for ; Mon, 05 Nov 2018 17:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=adLlZ16E015OBx2S4OK7jMb995AyuajGJK07XS0H89k=; b=BVvjCe/NoYXYzyfYQn6ZBE41d2GWBpciycWhyVA5RUlWn8HsTREcre1aNtuer/tMh0 atxWyayHtcmj7gHZZFckQUfWd4MrjaW8n5/bRhEsgD+QscyhkhJM7i0qa1ZpPfyFCuHi CpXH1mE+TTnzR5Hz9jAnJk9/9TTTVZoFoZjW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=adLlZ16E015OBx2S4OK7jMb995AyuajGJK07XS0H89k=; b=OsGS6EKy6HpUKXy1vTKrtSwjNHb/e+8YMUevBmgq44IE+zTCQIcGot1XHmT3FgF6My mp0s6yclPZlqcXgKL9XT6VWiHAa0Jez1xFAYhy/rSkp6FwBs8wrktaXMamjvgfBUns4/ smSSwXdbNWfTVrvmA6zViayzMHWyjPmh9cBI/F/TMmRb7wliKuZDfiQC2EKskkNztFz1 9xKybO/WIm7fAobxuTmLD40rhdVCj+64f09GJvHkkqeqjQCD8aNpng6qLAO0GPXXUzjI caVusNUncBIlEVN6xwJvGeQP4uOpUWo6dAO5W8OWTmPTw/1+UObouk3ypNrZ5VG/1Ptk Qvdw== X-Gm-Message-State: AGRZ1gINPrt0f0RBGyXCR+TF1zgayCjApGsLCKWn3hQeGt6DL4jYuUew sP00ErLuAwGRnF3vXfOejqaOxw== X-Received: by 2002:a17:902:9a07:: with SMTP id v7-v6mr23590299plp.14.1541466269861; Mon, 05 Nov 2018 17:04:29 -0800 (PST) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id g17-v6sm63674073pfe.37.2018.11.05.17.04.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 17:04:29 -0800 (PST) Date: Mon, 5 Nov 2018 17:04:26 -0800 From: Bjorn Andersson To: Stephen Boyd Cc: Stephen Boyd , Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Taniya Das Subject: Re: [PATCH 1/2] dt-bindings: clk: Introduce 'protected-clocks' property Message-ID: <20181106010426.GX2523@minitux> References: <20181105194011.43770-1-swboyd@chromium.org> <20181105194011.43770-2-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181105194011.43770-2-swboyd@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 05 Nov 11:40 PST 2018, Stephen Boyd wrote: > Add a generic clk property for clks which are not intended to be used by > the OS due to security restrictions put in place by firmware. For > example, on some Qualcomm firmwares reading or writing certain clk > registers causes the entire system to reboot, but on other firmwares > reading and writing those same registers is required to make devices > like QSPI work. Rather than adding one-off properties each time a new > set of clks appears to be protected, let's add a generic clk property to > describe any set of clks that shouldn't be touched by the OS. This way > we never need to register the clks or use them in certain firmware > configurations. > > Cc: Rob Herring > Cc: Bjorn Andersson Reviewed-by: Bjorn Andersson Regards, Bjorn > Cc: Taniya Das > Signed-off-by: Stephen Boyd > --- > .../devicetree/bindings/clock/clock-bindings.txt | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/clock-bindings.txt b/Documentation/devicetree/bindings/clock/clock-bindings.txt > index 2ec489eebe72..b646bbcf7f92 100644 > --- a/Documentation/devicetree/bindings/clock/clock-bindings.txt > +++ b/Documentation/devicetree/bindings/clock/clock-bindings.txt > @@ -168,3 +168,19 @@ a shared clock is forbidden. > > Configuration of common clocks, which affect multiple consumer devices can > be similarly specified in the clock provider node. > + > +==Protected clocks== > + > +Some platforms or firmwares may not fully expose all the clocks to the OS, such > +as in situations where those clks are used by drivers running in ARM secure > +execution levels. Such a configuration can be specified in device tree with the > +protected-clocks property in the form of a clock specifier list. This property should > +only be specified in the node that is providing the clocks being protected: > + > + clock-controller@a000f000 { > + compatible = "vendor,clk95; > + reg = <0xa000f000 0x1000> > + #clocks-cells = <1>; > + ... > + protected-clocks = , ; > + }; > -- > Sent by a computer through tubes >