Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3752169imm; Thu, 17 May 2018 14:10:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrOOYBk8OTy//9WmOigc9xT2NwkOgTKp6nUMVs9S+CSx0SsEIFgTXVQPk241KBCpbnIO8Aj X-Received: by 2002:a17:902:294a:: with SMTP id g68-v6mr6750820plb.110.1526591408713; Thu, 17 May 2018 14:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526591408; cv=none; d=google.com; s=arc-20160816; b=yV6NHFkPXTwfTnHvRIm6KE2Cvc29d5A+jktnxOVYmReQSx0mfzC9DIVl3QXNh8Gjyq TExRnCJcm4QTP8HpN8+HUYUohOEzmTiCmoqtyuIruR721pkCYy5tOqcQ3EunwsHImw2Y j8LPlZjCFxcqknF03oIyTp6/cpLkxlKVusz/LkANInlL0K6/KzEOMD2ALROD8l8Sa/2R 6bYz6swSLk+Pt+SFzaa0ktrXuxHAnMwSN/X/1FzWYre1NahxrgPemvBXD46uEzfRIVmt ftDhLZVo4RC6BfkzU+IWcW0NDU6slvVLzqdjebQOr7bugWAj5L9k5FKgfMevmeKyXFsH ZjVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=EacFkzGnOvyNotbXbFSrncOLbRipns+N+1Vo82VHj0M=; b=cWsjrFd0t4VexDl7Ba041m4gKBkLKADuB2QmyJEZJxfek61mkMhpUnj5XJAuRRHXlH o9LljEta9IxzgaL49cq5524R/ZL+1onhd4C1bWp8t5oz6z6yzsu7WpNrOvy3wfdCQNJT UUnMptx4A+FFOfprKox8vZjZYbUwpB6F8q5fa1rNUGLld8ikRWfhVcfdQUNlyhbWPFQB YpJEEJOQt1U3HdRlr5qbpnH6aBRI8bQnK9DeOfsQOi9fW//py0+MqCfPm0cidZ8ttWJF ayh3o4rcAk92ZPEoNJaLID0a8T0PT2JB3HX+OX6Jb4aAWyncY2uI9Xz4LTyljFCstpQS XHoQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si5695957pld.218.2018.05.17.14.09.54; Thu, 17 May 2018 14:10:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320AbeEQVJi (ORCPT + 99 others); Thu, 17 May 2018 17:09:38 -0400 Received: from muru.com ([72.249.23.125]:42930 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752279AbeEQVJf (ORCPT ); Thu, 17 May 2018 17:09:35 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 697BD801E; Thu, 17 May 2018 21:11:43 +0000 (UTC) Date: Thu, 17 May 2018 14:09:31 -0700 From: Tony Lindgren To: Faiz Abbas Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, bcousson@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, paul@pwsan.com, lokeshvutla@ti.com, linux@armlinux.org.uk Subject: Re: [PATCH 1/3] ARM: dra762: hwmod: Add MCAN support Message-ID: <20180517210931.GQ98604@atomide.com> References: <1523181542-3770-1-git-send-email-faiz_abbas@ti.com> <1523181542-3770-2-git-send-email-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523181542-3770-2-git-send-email-faiz_abbas@ti.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Faiz Abbas [180408 09:59]: > From: Lokesh Vutla > > Add MCAN hwmod data and register it for dra762 silicons. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Faiz Abbas > --- > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 32 +++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > index 62352d1..a2cd7f8 100644 > --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > @@ -1356,6 +1356,29 @@ static struct omap_hwmod dra7xx_mailbox13_hwmod = { > }; > > /* > + * 'mcan' class > + * > + */ > +static struct omap_hwmod_class dra76x_mcan_hwmod_class = { > + .name = "mcan", > +}; > + > +/* mcan */ > +static struct omap_hwmod dra76x_mcan_hwmod = { > + .name = "mcan", > + .class = &dra76x_mcan_hwmod_class, > + .clkdm_name = "wkupaon_clkdm", > + .main_clk = "mcan_clk", > + .prcm = { > + .omap4 = { > + .clkctrl_offs = DRA7XX_CM_WKUPAON_ADC_CLKCTRL_OFFSET, > + .context_offs = DRA7XX_RM_WKUPAON_ADC_CONTEXT_OFFSET, > + .modulemode = MODULEMODE_SWCTRL, > + }, > + }, > +}; So based on the ti-sysc related dts comments, this patch should work except you should be able to just leave out the clocks here with the dts changes. > +/* > * 'mcspi' class > * > */ > @@ -3818,6 +3841,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = { > .user = OCP_USER_MPU, > }; > > +/* l3_main_1 -> mcan */ > +static struct omap_hwmod_ocp_if dra76x_l3_main_1__mcan = { > + .master = &dra7xx_l3_main_1_hwmod, > + .slave = &dra76x_mcan_hwmod, > + .clk = "l3_iclk_div", > + .user = OCP_USER_MPU | OCP_USER_SDMA, > +}; > + > static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { > &dra7xx_l3_main_1__dmm, > &dra7xx_l3_main_2__l3_instr, > @@ -3958,6 +3989,7 @@ static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = { > /* SoC variant specific hwmod links */ > static struct omap_hwmod_ocp_if *dra76x_hwmod_ocp_ifs[] __initdata = { > &dra7xx_l4_per3__usb_otg_ss4, > + &dra76x_l3_main_1__mcan, > NULL, > }; So the omap_hwmod_class, omap_hwmod_ocp_if and entry on the dra76x_hwmod_ocp_ifs list are still needed with ti-sysc for a while. Eventually that data will just come from the dts interconnect hierarchy. For struct omap_hwmod_class_sysconfig, ti-sysc will allocate and it based on the dts data. Regards, Tony