Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp695216imm; Thu, 5 Jul 2018 07:25:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfvu3qxiniBCQ6WyUz/0qpUA+y0IDI+0+wqbRIr8OC3Uok3yVp+c9XSbN4iXISmjS9U6Yyd X-Received: by 2002:a17:902:8604:: with SMTP id f4-v6mr6356081plo.4.1530800727784; Thu, 05 Jul 2018 07:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530800727; cv=none; d=google.com; s=arc-20160816; b=jRI9wd/oQAKUA5tK5ALcschkIAPxWkJ0bHp1kmQ5LsNTvF/qgZJs1JSmyI1nmXAtZI tux019lY8dnvWocCSlRP129BbLI5mrKfyYz9D74au69lkUHRQuMGEap1YhB4mkd1U+kY 9H3N6Kc6ySg0ObZns6dRHPXfegtDFVgFeewj3Y2D/rtF/aQRUITfeF0hiltilr5gVGgO YWKgpJ00s51uaCBZId76fpvj/ut9EGCTePYwxMEuZLul1afiE5Vnf0yAUWoK9ekpAyMo jVYwsKnQS3S7aLUA3DpYaOB3UtB2RxL27JHTC0vPmGgMwMPEQnckJDB3XsJK5fXqvV1T 8v/w== 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=MityGEz4FqtSrQAtMV9qZbvkEOYH8PpK7byApTRW9A713wBCCWzR+KjZGOII3K+ayf rZ6/E32OaYzlHITS2mJXRtILUWxvKO8BBRMY3BXNB3wQyBCtcED+IJmJCXwSuOXVjr+g BHYAyFAVNWmvLWq8vcp0qj0S6mwWzJi/ck8s1CpApnOMCO+B/LxB2nN0Exv9oA/3Wcdj 887oG+bOK9hSBYBdlJxtr0qQOqil3dB41BlfrdV7imt0KM2ZXeV6JvxsrBmH9l4BHbA6 //ZwlX20YIHFlwGBO8UtIwFaXLR2yNCeJcasN6SLw+33pieWyh9rEjzV/LDzqOFCC0p7 vN9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NTe+ZqPU; 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 1-v6si5943344plx.227.2018.07.05.07.24.45; Thu, 05 Jul 2018 07:25:27 -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=NTe+ZqPU; 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 S1753955AbeGEOV7 (ORCPT + 99 others); Thu, 5 Jul 2018 10:21:59 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:41742 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753525AbeGEOV5 (ORCPT ); Thu, 5 Jul 2018 10:21:57 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w65ELXjb122137; Thu, 5 Jul 2018 09:21:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530800493; bh=TrtCegeIR0JjCkmA+xteXb30NyR5h9Sc/YNtffGEHBY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NTe+ZqPUSRrYAGjKWPLEH6E5PLlogRCAnXuSz8M3N0ggovcamVWRKv7iOx2wFAspS k7RPsvPDECF7nk2PmCQu8XanGyJ8B/EKL5L0nINx9h7m0YRTe+pSgyYxD3OUGb7wnV llQRnywR/X/1eqvIwX9liGhIWluKWfdfvXCXb0IA= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w65ELXcR019504; Thu, 5 Jul 2018 09:21:33 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 5 Jul 2018 09:21:32 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 5 Jul 2018 09:21:32 -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 w65ELPxg020259; Thu, 5 Jul 2018 09:21:29 -0500 From: Faiz Abbas To: , , , , CC: , , , , , , Subject: [PATCH v4 1/6] ARM: dts: dra762: Add MCAN clock support Date: Thu, 5 Jul 2018 19:53:14 +0530 Message-ID: <20180705142319.19583-2-faiz_abbas@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180705142319.19583-1-faiz_abbas@ti.com> References: <20180705142319.19583-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