Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp744099imm; Mon, 9 Jul 2018 09:49:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfhItkFFoWOqU0y0voQYpMmNBuxnVgLD73oAPoiy81+k7M4YUQZi+ORblsq4NKaWUNT3PkN X-Received: by 2002:a63:2505:: with SMTP id l5-v6mr20005964pgl.40.1531154998145; Mon, 09 Jul 2018 09:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531154998; cv=none; d=google.com; s=arc-20160816; b=KtXnooJi9Gx3xejL5t0xtuKFAAvcPryWIdBXaRj9b9ptTloAauGk49mxCTgcAiCHwd 98Y0jVfMdvAB8l5zlGINPxTabE+4kU0lFzpHGmR1XCJ50uOK/vA5RowpChxnk55WL1Ss o4fj5tMqoArK7I4fLPTZ7Ud3jatpO8l15AtgBaiDVt3E2Z8QeqOl+EDmylkyQNSA5AJK 2QnqqMFgAZ0E7sUo1wjpqli21tjVe2zq86neuLrqL5zGQ1zL0e3rjadAWt30oTIm/OpS bUdrq6SQZbpVpqDHYnaMzZCGzyJ9/moxOPuE546N7VRNrQ0IF0lozuXuFB28x9wU/a+K PZNQ== 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=kuJnUaKXwVrSuM49YW3pZU55LCTViPa+GKHm65y0LCEaIe/k7b9+Xp2G1R3npmA1aJ LJCJNWYVerjB0jgDF1AaQehyQAgE97UEKxenf2W6RR8grlNL5wdzkDZ/IyQBcD6UD5gn mDjEwwt326X0OAAnWJ8RY+lnOmNNnpxQkPSa/ozneSRYe0sFpXA9FwFp63//fde0XRBV 0flvyQeYT0dTtU9GD53wmEuDsHIH3XECVnc5JohCgwMco+AnJt9b7pLkrhcP1hz7Gzsl EC3+utVJWMGf7zusgN+ZnYKrgKfjfMNjUe4ZHEjczSb3v7ODL9swjGmZHSWwRCibCHyD 6/uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hQBIZVbH; 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 be9-v6si15078937plb.67.2018.07.09.09.49.43; Mon, 09 Jul 2018 09:49:58 -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=hQBIZVbH; 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 S933674AbeGIQr2 (ORCPT + 99 others); Mon, 9 Jul 2018 12:47:28 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:45072 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933207AbeGIQrV (ORCPT ); Mon, 9 Jul 2018 12:47:21 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w69Gl0gQ092162; Mon, 9 Jul 2018 11:47:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1531154820; bh=TrtCegeIR0JjCkmA+xteXb30NyR5h9Sc/YNtffGEHBY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hQBIZVbHT4/gmMdGXMrUZHw11+1pN5O4P3nc1fn7wtK8Mp4w/I1eL1lwPJClFYKG7 DknhxY0V2Bp7mar7ilOEVVeH6appxPflsFIrWLx6uHtybij3zliBGaaK/+VH9R7SM2 26sM/xlJM5UJ2S6PyKQzTa0uC15lp5xb3UmgubEw= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w69Gl0oI017315; Mon, 9 Jul 2018 11:47:00 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 9 Jul 2018 11:47:00 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 9 Jul 2018 11:46:59 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w69GkpWB001873; Mon, 9 Jul 2018 11:46:56 -0500 From: Faiz Abbas To: , , , , CC: , , , , , , , Subject: [PATCH v5 1/6] ARM: dts: dra762: Add MCAN clock support Date: Mon, 9 Jul 2018 22:18:36 +0530 Message-ID: <20180709164841.14182-2-faiz_abbas@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180709164841.14182-1-faiz_abbas@ti.com> References: <20180709164841.14182-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