Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp420214imm; Tue, 5 Jun 2018 23:09:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIsTtI+Yf56nve1FrOtzR56u8s35iqD5ZBU/huA5mM7GlYaEUcpNMBPbXPuYBH8ROTXclqD X-Received: by 2002:a17:902:c3:: with SMTP id a61-v6mr1876923pla.149.1528265396722; Tue, 05 Jun 2018 23:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528265396; cv=none; d=google.com; s=arc-20160816; b=BIJoVeiJKDAu76p/QPA0r5kFChYXPhZmyjKGTuA9Q1WgZagCYz/wBnNfnfm0TCUefN 21Z5MaW6Osf5lg0Bzhw2o9r0w4uwZM6yaMTx0CIctNMv27OA7w/JY5HgFpZmZaSDoy0O V0JiLXRpbcJadh2IQTKSil+EgP3hRPeD3CukTad8x+HzcEibm2oWd3iaMvqSkfnyV6fj eLyn5kKapnd+NPXCaLh85zemA3hFYRwjkgowAyROyRiVo8qve2+O6lYUoPQHiemug7jO mGUe3b9itk/XyRGxYwVCH9fORN4ilDf2nRTaoeDLpNifkMgWOnddZfam4T5ldqr1Rwih LS5Q== 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=CkMtI/JD9oT24wB5mLlUAWJn1p3vcnl9Oqg52gVsmqISqlr5La6B2ZZAZv6k/fm56P bOJ238CGmzOrCSNktZaz98FA9dwTO0cRP11IKV6coVdvIp9MiC3MuA9LlBfnENCP8i7Q UXSKmS9grYptiGnABzqOk0wJfFnfErORhCPntqNFxGCIchjClo+u3UyX+7aFtNdJaouK 3TSyVzzFM3XATnLIs99y9/C6G7S60Dt32wc9R08I5KUQZJdoqCcOTfVYtCGywFaM4BCZ wKsiONIq8gJ9e6ViAOlcsj9pfiYRL+gnvMnpEVKfPB8cOF/e2neM3QumMAzierNZdLL8 8Q+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BP4/xn1n; 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 o16-v6si17891973pgv.240.2018.06.05.23.09.42; Tue, 05 Jun 2018 23:09:56 -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=BP4/xn1n; 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 S1752338AbeFFGHc (ORCPT + 99 others); Wed, 6 Jun 2018 02:07:32 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:35809 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbeFFGH2 (ORCPT ); Wed, 6 Jun 2018 02:07:28 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w566765x010270; Wed, 6 Jun 2018 01:07:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528265226; bh=TrtCegeIR0JjCkmA+xteXb30NyR5h9Sc/YNtffGEHBY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=BP4/xn1ngCjl5W62R1IqzEm3lPk/LK2os8gLSSpXxLkVoE8Gk7qpaS+GTRnyL5eNB sBUd8NqK7yPNdhbxaqoVZUVzIbWuZ1bQ1tv9rUnYg2XQB1GtSnbji+lXitRHOWh+iC VX4WHvNiQar3O0fn8/rOnjV50Eo/TTJMCph76xWA= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w566769p024842; Wed, 6 Jun 2018 01:07:06 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 6 Jun 2018 01:07:06 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 6 Jun 2018 01:07:06 -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 w5666wtU012358; Wed, 6 Jun 2018 01:07:03 -0500 From: Faiz Abbas To: , , , , CC: , , , , , , Subject: [PATCH v3 1/6] ARM: dts: dra762: Add MCAN clock support Date: Wed, 6 Jun 2018 11:38:21 +0530 Message-ID: <20180606060826.14671-2-faiz_abbas@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180606060826.14671-1-faiz_abbas@ti.com> References: <20180606060826.14671-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