From patchwork Mon Jan 26 11:14:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 43733 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D57DA23FFF for ; Mon, 26 Jan 2015 11:14:43 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c13sf3879271eek.1 for ; Mon, 26 Jan 2015 03:14:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=6i/9c8UYeTEtptIAQ8j+qCukBVpESBq47bvLJP4jLyg=; b=gqa5AV6sYc/vrfHdbEWM5SjDjDbtgwd4Xf0SBn6g5DGV9pM1Vy+9ZlF6lSaAD1BBoJ bqGkMeGGZlMoOg7TCyCXc75Is1z3b94ySPi6vqiCO/uJyFHWH3zIyyO44W/fDxQmvF8T kc6AjOrxOu3MRrT6t/qZpMwDv3alPv/of50uchYXOv+8frtD9Y+sN+cipNdlq4e3Udcy B8KBME439NWRw5lOk3GjfhVmCuUb1ve66OqHnUuAVh3UbFKDQh4cWVyUOTBfpPLN8+r+ u+FLBFY3ngdFIfMfEyMvfpBRLKaUoEUGJd+te8n764mi7OCKL5Y4Bf9XcGi7orQKGXe6 ZOsQ== X-Gm-Message-State: ALoCoQldQLad8YDJa+3mrs6h5dSyFs6IvKnVNW9ol6dEKRPGMj2h1VUAmb294h82fS+XrqcqSb7I X-Received: by 10.180.108.197 with SMTP id hm5mr1753893wib.4.1422270882901; Mon, 26 Jan 2015 03:14:42 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.67 with SMTP id de3ls493499lac.60.gmail; Mon, 26 Jan 2015 03:14:42 -0800 (PST) X-Received: by 10.152.2.226 with SMTP id 2mr5194672lax.67.1422270882570; Mon, 26 Jan 2015 03:14:42 -0800 (PST) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id po1si8725832lbb.87.2015.01.26.03.14.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 03:14:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id 10so6950265lbg.10 for ; Mon, 26 Jan 2015 03:14:42 -0800 (PST) X-Received: by 10.112.170.36 with SMTP id aj4mr20415735lbc.3.1422270882420; Mon, 26 Jan 2015 03:14:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp744783lbj; Mon, 26 Jan 2015 03:14:41 -0800 (PST) X-Received: by 10.70.102.193 with SMTP id fq1mr33642670pdb.19.1422270875560; Mon, 26 Jan 2015 03:14:35 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bl1si11770700pbb.192.2015.01.26.03.14.34; Mon, 26 Jan 2015 03:14:35 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755315AbbAZLOZ (ORCPT + 28 others); Mon, 26 Jan 2015 06:14:25 -0500 Received: from mail-ig0-f175.google.com ([209.85.213.175]:57412 "EHLO mail-ig0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755175AbbAZLOT (ORCPT ); Mon, 26 Jan 2015 06:14:19 -0500 Received: by mail-ig0-f175.google.com with SMTP id hn18so7671098igb.2 for ; Mon, 26 Jan 2015 03:14:18 -0800 (PST) X-Received: by 10.50.67.100 with SMTP id m4mr15820754igt.22.1422270858424; Mon, 26 Jan 2015 03:14:18 -0800 (PST) Received: from localhost.localdomain (host86-129-140-127.range86-129.btcentralplus.com. [86.129.140.127]) by mx.google.com with ESMTPSA id r93sm5786253ioi.1.2015.01.26.03.14.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jan 2015 03:14:17 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, mturquette@linaro.org, sboyd@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH 4/4] clk: dt: st: Introduce clock domain documentation Date: Mon, 26 Jan 2015 11:14:00 +0000 Message-Id: <1422270840-3039-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422270840-3039-1-git-send-email-lee.jones@linaro.org> References: <1422270840-3039-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Lee Jones --- .../devicetree/bindings/clock/st/st,clk-domain.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/st/st,clk-domain.txt diff --git a/Documentation/devicetree/bindings/clock/st/st,clk-domain.txt b/Documentation/devicetree/bindings/clock/st/st,clk-domain.txt new file mode 100644 index 0000000..7309937 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/st/st,clk-domain.txt @@ -0,0 +1,34 @@ +STMicroelectronics Clock Domain + +ST hardware have a bunch of clocks which must not be turned off. +If drivers a) fail to obtain a reference to any of these or b) give +up a previously obtained reference during suspend, the common clk +framework will attempt to turn them off and the hardware will +subsequently die. The only way to recover from this failure is to +restart. + +To avoid either of these two scenarios from catastrophically +disabling the running system we have implemented a clock domain +where clocks are consumed and references are taken, thus preventing +them from being shut down by the framework. + +We use the generic clock bindings found in: + Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible : Must be "st,clk-domain" + +Example: + +clk-domain { + compatible = "st,clk-domain"; + clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>, + <&clk_s_c0_flexgen CLK_COMPO_DVP>, + <&clk_s_c0_flexgen CLK_MMC_1>, + <&clk_s_c0_flexgen CLK_ICN_SBC>, + <&clk_s_c0_flexgen CLK_ICN_LMI>, + <&clk_s_c0_flexgen CLK_ICN_CPU>, + <&clk_s_c0_flexgen CLK_TX_ICN_DMU>, + <&clk_s_a0_flexgen CLK_IC_LMI0>, + <&clk_m_a9>; +};