From patchwork Thu Feb 15 12:49:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 128418 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1711500ljc; Thu, 15 Feb 2018 04:50:50 -0800 (PST) X-Google-Smtp-Source: AH8x226WR0K02aXX3l0H021cooLKg9QqZHIimH5R+TrCVAN4JAEYlpu0l1KazK8Cx/OvabOKKWRG X-Received: by 2002:a17:902:208:: with SMTP id 8-v6mr2462437plc.359.1518699050720; Thu, 15 Feb 2018 04:50:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518699050; cv=none; d=google.com; s=arc-20160816; b=TZnthGSg3HlRQFwZINAUHm6EfNavQ2w7xSyqRH7rEUK5OLsrxLt4cGPabIg8SgT0vK II++ugOTmjNWAeMDBLTqDVy8H5MDztHPWbkUsXmDIpH2ZXgLCkG2fcX88kKzvkP7QyNT ARY4ALheHI2jLgHhODbfHdxIRvF9y4Hck1rYWNmxbfkoUVnWyDB6ZM6jm1E1ixiDSWLS iEAszjOlhJ8cnYs2b8miwWaK18YaK5cV0SLkZv3frIzXMW2Vgkwy5FSViPBZDppnbn0C WXe/webtWvGrEB0D7noGgRMa32IKbHKLHS0R82C/PSKT2O5DO/Z8jupQWQWuXdAcJWqy 2tqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ZxMsSkqScbYFsDrnJfoup1Xntb6MFJDF/f3JU+5GPMo=; b=o7bK8Tl9OzulodqSlci5MR+2lwc/CA2HCHCqzzI3xF10/Dgc6j/+pEHEzk1P4u1xJW U/t4rSANn4UK3RsawUHAIwe6hOqnnzdcfJ0v3V9vxSOfbaKFHhIYn+WsTpiUmIUd58Lg jfnd0rxnuRRdxJ+w7H0PXzGMO5oocZJbtielDO0qlJYXIjy2x39M1zVlCx13kt0AeNkF syts2gyP+SVsXW5gSCjFWK+vBxlmqb3F++lGOT2j4k5wsDFY2v/RYcXLkS15EaZ3Uaet DXlpEXUMybtjjH62QuixGU1G/L454FW7Rk67Bi7TRfcyoxybdlC0GC/vRaJ197ifvcTx V61g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Nu7+1lbP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si2502582pgs.605.2018.02.15.04.50.50; Thu, 15 Feb 2018 04:50:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Nu7+1lbP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030852AbeBOMus (ORCPT + 6 others); Thu, 15 Feb 2018 07:50:48 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:19497 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031323AbeBOMuq (ORCPT ); Thu, 15 Feb 2018 07:50:46 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1FCoQgv011073; Thu, 15 Feb 2018 06:50:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518699027; bh=AQUwByd32+h+qmRivffAHa5wE9h0APX85xne+oDniqE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Nu7+1lbPTwlcexll1RRG/kk2LkzW75nRT0Ke26k+zVtLGTIm5tXE1zjRsoJaGwbza 3J7D43T4bN6JE+orvRwqpInYxzwk/6emO7GDnYZkG5yoDCFf68QW9oihmWPet9I+Gx z+iaYu47Aetlu4+YyIiNtBj00U3Q3hFWYgiAHDug= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1FCoQTN012242; Thu, 15 Feb 2018 06:50:26 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 15 Feb 2018 06:50:26 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 15 Feb 2018 06:50:26 -0600 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1FCoKZD020487; Thu, 15 Feb 2018 06:50:24 -0600 From: Tero Kristo To: , , , , , CC: , , Subject: [PATCH 1/5] dt-bindings: clock: ti: add latching support to mux and divider clocks Date: Thu, 15 Feb 2018 14:49:47 +0200 Message-ID: <1518698991-10099-2-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518698991-10099-1-git-send-email-t-kristo@ti.com> References: <1518698991-10099-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Certain hardware configurations, like dra76x, have some of the clock registers partitioned in a funky manner that requires the clock control setup to be latched for PRCM to be notified of the change. This is accomplished with a separate control bit under the register. Add support for this clock latching support to divider and mux clocks. Signed-off-by: Tero Kristo --- Documentation/devicetree/bindings/clock/ti/divider.txt | 3 +++ Documentation/devicetree/bindings/clock/ti/mux.txt | 3 +++ 2 files changed, 6 insertions(+) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/clock/ti/divider.txt b/Documentation/devicetree/bindings/clock/ti/divider.txt index 35a6f5c..9b13b32 100644 --- a/Documentation/devicetree/bindings/clock/ti/divider.txt +++ b/Documentation/devicetree/bindings/clock/ti/divider.txt @@ -75,6 +75,9 @@ Optional properties: - ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0, see [2] - ti,set-rate-parent : clk_set_rate is propagated to parent +- ti,latch-bit : latch the divider value to HW, only needed if the register + access requires this. As an example dra76x DPLL_GMAC H14 divider implements + such behavior. Examples: dpll_usb_m2_ck: dpll_usb_m2_ck@4a008190 { diff --git a/Documentation/devicetree/bindings/clock/ti/mux.txt b/Documentation/devicetree/bindings/clock/ti/mux.txt index 2d0d170..eec8994 100644 --- a/Documentation/devicetree/bindings/clock/ti/mux.txt +++ b/Documentation/devicetree/bindings/clock/ti/mux.txt @@ -48,6 +48,9 @@ Optional properties: zero - ti,set-rate-parent : clk_set_rate is propagated to parent clock, not supported by the composite-mux-clock subtype +- ti,latch-bit : latch the mux value to HW, only needed if the register + access requires this. As an example, dra7x DPLL_GMAC H14 muxing + implements such behavior. Examples: