From patchwork Tue Feb 24 17:33:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 44957 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D6CA02029F for ; Tue, 24 Feb 2015 17:34:47 +0000 (UTC) Received: by wesq59 with SMTP id q59sf18304714wes.2 for ; Tue, 24 Feb 2015 09:34:47 -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=TSCaLVJAS0ah+UeszH7uVSuf40ruZC4F8zdiedWHi7g=; b=ftHY4IHBh16MLgtmYn4ZDm6TDjKxgPy1cBqcH6hThj/cv8ByH4LB4d7v2jtjWdwsI6 2YojHCi08CW3Sg23rRjytHb27gCsbhGEamXMJrwh5H0V93qo0plfQFpWh341q2TQeXhK EO806/HTYFO+6Ttuc1e/2rbD8KMLSuxMY5DvPdc2Qh24Dg/kAtnkZhJCSDXjj4RipsMU nJMzFrJrwTwGg/u8UFiM7NGRNMhoCwLUYrQGk6v+3KPC64Lzzeo/V8Y561tlQF2BeFLh vvDe9NVtHp6ZNjqWVezuKoKd1wivMvZH4yhGfDyZcMMzxB7cjZcBAPXMDGeZFOK8bz63 69gw== X-Gm-Message-State: ALoCoQm+pG8JKT5LzqxfCWtyezzn+YYXYgmFkASWLZDoAGY7pTe9VKAov81LSy6L77tBJbzDdyH9 X-Received: by 10.152.37.200 with SMTP id a8mr2330461lak.5.1424799287130; Tue, 24 Feb 2015 09:34:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.199 with SMTP id x7ls724460lae.0.gmail; Tue, 24 Feb 2015 09:34:46 -0800 (PST) X-Received: by 10.112.154.199 with SMTP id vq7mr14648171lbb.99.1424799286946; Tue, 24 Feb 2015 09:34:46 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id m6si27118589lbs.23.2015.02.24.09.34.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 09:34:46 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by labgm9 with SMTP id gm9so27509478lab.2 for ; Tue, 24 Feb 2015 09:34:46 -0800 (PST) X-Received: by 10.112.181.41 with SMTP id dt9mr4949421lbc.56.1424799286818; Tue, 24 Feb 2015 09:34:46 -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 h5csp2060256lbj; Tue, 24 Feb 2015 09:34:45 -0800 (PST) X-Received: by 10.70.91.49 with SMTP id cb17mr30831653pdb.35.1424799284919; Tue, 24 Feb 2015 09:34:44 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oj2si3967527pdb.83.2015.02.24.09.34.40; Tue, 24 Feb 2015 09:34:44 -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 S1753354AbbBXReg (ORCPT + 28 others); Tue, 24 Feb 2015 12:34:36 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:40880 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753312AbbBXRed (ORCPT ); Tue, 24 Feb 2015 12:34:33 -0500 Received: by wghl18 with SMTP id l18so6820814wgh.7 for ; Tue, 24 Feb 2015 09:34:32 -0800 (PST) X-Received: by 10.180.106.103 with SMTP id gt7mr32437418wib.59.1424799272655; Tue, 24 Feb 2015 09:34:32 -0800 (PST) Received: from localhost.localdomain (host86-177-159-74.range86-177.btcentralplus.com. [86.177.159.74]) by mx.google.com with ESMTPSA id ch6sm61135254wjc.3.2015.02.24.09.34.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Feb 2015 09:34:31 -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 v3 2/4] ARM: sti: stih407-family: Add platform interconnects to always-on clk domain Date: Tue, 24 Feb 2015 17:33:40 +0000 Message-Id: <1424799222-9301-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424799222-9301-1-git-send-email-lee.jones@linaro.org> References: <1424799222-9301-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.215.45 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: , Certain clocks should not be turned of by clk_disable_unused. Until now we have been using the kernel command-line of the same name to prevent common clk from turning off all clocks without a reference, as this would ensure hardware lockup. This patch lists each platform interconnect which needs to stay on to prevent the aforementioned issue from arising. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index c06a546..35c74c6 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -34,6 +34,21 @@ reg = <0x08761000 0x1000>, <0x08760100 0x100>; }; + /* + * ICNs are not visible/controllable in Linux, but references to their + * clocks must be obtained and retained or the platform will become + * irrecoverably unresponsive. + */ + icn { + compatible = "clk-always-on"; + clocks = <&clk_s_c0_flexgen CLK_ICN_SBC>, + <&clk_s_c0_flexgen CLK_ICN_CPU>, + <&clk_s_c0_flexgen CLK_ICN_LMI>, + <&clk_s_c0_flexgen CLK_TX_ICN_DMU>, + <&clk_s_a0_flexgen CLK_IC_LMI0>, + <&clk_s_c0_flexgen CLK_EXT2F_A9>; + }; + scu@08760000 { compatible = "arm,cortex-a9-scu"; reg = <0x08760000 0x1000>;