Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4524758imm; Wed, 30 May 2018 07:14:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJSyouZXUdtf2uzSh/+bUEU2oQ+S6/f3J/8I83wnyF0l3+DGv61V/j81+/UcoBD77ARVwza X-Received: by 2002:a65:5a88:: with SMTP id c8-v6mr2324604pgt.287.1527689663746; Wed, 30 May 2018 07:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527689663; cv=none; d=google.com; s=arc-20160816; b=Y5MEbMS1rmA3AHHZGL63ZeDNKeeDK00AhuaVKtYSvPm6eFRUmsm3BcK5uNuv94Uyyi IK8OhJImy1/rLMFlfila3c5bZieIj3A6utFWHczWE/Fw8J3ext6iBY+Y+Wr20D7n3iJ9 YpmgDSx0Z95kA9xJkU/8m6uFx5o/6Mc7RhNYDNDGffTDy1HwjhTPhu0BHTEXhbl1IMW7 X0hLozNwxTv2jJti+pGn9Xdl+B5PIuFcQdbzxsvTwz63waQHt45kHBWr2021CLQ8RTTD HrSOxVn3hwXx8Siyq+wm2x5p7CHbpXoEFfAR/yJRv9xBGLwatx0QL4CNu8eXlKUyM5sm IF9A== 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=TrtCegeIR0JjCkmA+xteXb30NyR5h9Sc/YNtffGEHBY=; b=ulDPRtKsGs0RhBvntKcLM2jSTMgh7uDu9Xg7W4ff1HLiegFOK+As2W60EtdHCkYVqg HWoKkhAcOozD30ondP8mlOGYtsf1+lM8+ZkxZpVawy+AW1ptEmdXDN3OOh027odSUm3s 2P70Sk8XYFU27flDcj0K6Riy/4WzORRom+mlKHRqTzHwTsWIyc2o2ECSfS1lmwA3b/sI jXkI0JkpcSeyVg8Uwz657C2sZcE6FhY94jPk3Lj+0YDJSV02yDh7mSKh3/hKQlwDFdjw cVNjDIsIelt6OERqICJ0LCM9RBbZCJydSbpgv1kUeA9kBA6d1JLnfFf4k6d+zl7lIUx3 w1wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cSr/aVIN; 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 a4-v6si34944753plp.219.2018.05.30.07.14.09; Wed, 30 May 2018 07:14:23 -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=cSr/aVIN; 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 S1753654AbeE3OL6 (ORCPT + 99 others); Wed, 30 May 2018 10:11:58 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:59091 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753243AbeE3OKa (ORCPT ); Wed, 30 May 2018 10:10:30 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4UEA9AH015872; Wed, 30 May 2018 09:10:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527689409; bh=TrtCegeIR0JjCkmA+xteXb30NyR5h9Sc/YNtffGEHBY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cSr/aVINBhRvPuXIVIIjRJxzBqiRTaVlgX3GqFwLbOXYIFMi6xEZnO6pVack3b28D eV9LdzcJBuhOBBpggkWaqebzFydyLHyeTC0ImEklcdva/NmENGKhx32nfU/2iJ1PN2 TdSkVdCya4JxwQboLE1s8vadDzzTwhSUMMaHMKRo= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4UEA9In014334; Wed, 30 May 2018 09:10:09 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 30 May 2018 09:10:09 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 30 May 2018 09:10:09 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4UE9wvL001195; Wed, 30 May 2018 09:10:06 -0500 From: Faiz Abbas To: , , , , CC: , , , , , Subject: [PATCH v2 2/6] ARM: dts: dra762: Add MCAN clock support Date: Wed, 30 May 2018 19:41:29 +0530 Message-ID: <20180530141133.3711-3-faiz_abbas@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180530141133.3711-1-faiz_abbas@ti.com> References: <20180530141133.3711-1-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 1c88c581ff18..bfc82636999c 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.17.0