Received: by 10.213.65.68 with SMTP id h4csp1475049imn; Sun, 8 Apr 2018 04:32:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Q7Xyiu0/z4PTiXRnur1xwY6FoXBio46pFWqrtMTEGmvi/Lh6MG7sFIjQL1+UqbIr4uJQx X-Received: by 10.98.61.80 with SMTP id k77mr26171634pfa.2.1523187133580; Sun, 08 Apr 2018 04:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523187133; cv=none; d=google.com; s=arc-20160816; b=x0HMxvYKujn8IGnRvag170hX9BOplRCYhUEa4ME0WuoeixOxer4TQK+GDrm1ivbxiR kMZTYdMzzmd+EnlxCGkWVY99mgrZaXLjHRMRjZDOI0DDzp0CbJugXnEuVumsdy95I1M/ l5i8rBRXqIrBrvEPKoMN3EuHQ5ePtN+HC9NVu7pFAaYqT+OlJUWye8etzvUhBAFgv3WC W+RwduwyyxYuwsxlVeY7ZZCtvSxirrSJEOOcyHpmV5lzSxHZKVsy4iuwQ3PxboW8Mi3C ueOjdwyox876olH7xlpKp+ijjrt8kUlMqOoYNfqfQHvXmkSWUjoRat/3VTSo9MQbwefU LlDQ== 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=WRVDXRKrgW0J+PpOBuPN2jhsKss2Wsxd9Fh3sJVmBGc=; b=QkhSSkT+ksEH6jd7abPRndhBWMGUgAU/BZv5TbC0+zivK+tA00iflz3/7QMVEzoijI KFmgkblziLK9CYIzx+iBYC8XWNThtZz8IjmB+NxWg87vdhPe/UjIQHBBoXA836UPVhBO T58RMAY+F3CpSB45lw1/8b2jl7dHxccarlZ2EwuuhfC75tAeR2+fQUR3KGmmIVgufHgm 1L5AyeGMXsEzMUhoBG+yfA3Gk55lYFKvw7ngoG/Wdsa7QHMgalEzbx4QqDKOlTUtvSIM RzoUE7tBvHLFkqRr/GvfAZVAKRur+jPjzgEq8LLgODgB5KTlpDCB3xXfqda45IQ6iL16 In+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CEAaAPAM; 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=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 m23si9842083pgc.672.2018.04.08.04.31.36; Sun, 08 Apr 2018 04:32:13 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=CEAaAPAM; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926AbeDHJ6O (ORCPT + 99 others); Sun, 8 Apr 2018 05:58:14 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:49178 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbeDHJ6K (ORCPT ); Sun, 8 Apr 2018 05:58:10 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w389vptx001488; Sun, 8 Apr 2018 04:57:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523181471; bh=uWCwAEbjokThxFQnPC3zJx71XC+6U+ZEqILTSt0Ga9g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CEAaAPAMIqkqmkfmtWBaamnTnjRlKATQtvXvwE2+btCnNvJOr51nZecDC4YB8LFKZ IHWhbCWI/EKYBWkvlQE7g/hA5WS5ljvdnQvtAVFe6gSGoo5jLejTS20nX9t3nUDZE3 tSGZUQM/TlJ+9IxSr88An8yIXt+CFQXubjC3qnk4= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w389vpCH006689; Sun, 8 Apr 2018 04:57:51 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Sun, 8 Apr 2018 04:57:51 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Sun, 8 Apr 2018 04:57:51 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w389vfPm032344; Sun, 8 Apr 2018 04:57:48 -0500 From: Faiz Abbas To: , , CC: , , , , , , , Subject: [PATCH 2/3] ARM: dts: dra762: Add MCAN clock support Date: Sun, 8 Apr 2018 15:29:01 +0530 Message-ID: <1523181542-3770-3-git-send-email-faiz_abbas@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523181542-3770-1-git-send-email-faiz_abbas@ti.com> References: <1523181542-3770-1-git-send-email-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lokesh Vutla MCAN is clocked by H14 divider of DPLL_GMAC. Unlike other DPLL dividers this DPLL_GMAC H14 divider is controlled by control module. Adding support for these clocks. Signed-off-by: Lokesh Vutla Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/dra76x.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/dra76x.dtsi b/arch/arm/boot/dts/dra76x.dtsi index 1c88c58..bfc8263 100644 --- a/arch/arm/boot/dts/dra76x.dtsi +++ b/arch/arm/boot/dts/dra76x.dtsi @@ -17,3 +17,36 @@ &crossbar_mpu { ti,irqs-skip = <10 67 68 133 139 140>; }; + +&scm_conf_clocks { + dpll_gmac_h14x2_ctrl_ck: dpll_gmac_h14x2_ctrl_ck@3fc { + #clock-cells = <0>; + compatible = "ti,divider-clock"; + clocks = <&dpll_gmac_x2_ck>; + ti,max-div = <63>; + reg = <0x03fc>; + ti,bit-shift=<20>; + ti,latch-bit=<26>; + assigned-clocks = <&dpll_gmac_h14x2_ctrl_ck>; + assigned-clock-rates = <80000000>; + }; + + dpll_gmac_h14x2_ctrl_mux_ck: dpll_gmac_h14x2_ctrl_mux_ck@3fc { + #clock-cells = <0>; + compatible = "ti,mux-clock"; + clocks = <&dpll_gmac_ck>, <&dpll_gmac_h14x2_ctrl_ck>; + reg = <0x3fc>; + ti,bit-shift = <29>; + ti,latch-bit=<26>; + assigned-clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>; + assigned-clock-parents = <&dpll_gmac_h14x2_ctrl_ck>; + }; + + mcan_clk: mcan_clk@3fc { + #clock-cells = <0>; + compatible = "ti,gate-clock"; + clocks = <&dpll_gmac_h14x2_ctrl_mux_ck>; + ti,bit-shift = <27>; + reg = <0x3fc>; + }; +}; -- 2.7.4