Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp437594imm; Thu, 31 May 2018 03:20:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKszmnqt7x8tgsPLd8UlrxMJqcJAvbXYG2GbfkBzV8EHEcGEMvP+j2QcP7COtXxNXcU8hoH X-Received: by 2002:a63:41c4:: with SMTP id o187-v6mr4933879pga.7.1527762037295; Thu, 31 May 2018 03:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527762037; cv=none; d=google.com; s=arc-20160816; b=Eo9FwYNwjiqESXQVu5DlVGdAy4Z6xbUXzYWKMySNDX8DELJ78ocoXt832nzt3zOrYS 5yAEepRtmLy3wwOvqvKdvS/DefDj061iml3B0JxrrWNbx4Iz80QucgXmvxEJnFNKrmI9 n57dQGMYI87ad1SY7PyU4ZLnXt30AZzOCo0MhPxReNWETJNSanXVF9+nvUULBR4/0g8h xAnXTZVrne5k+pTyCJ2cLXjzhyDoIOiFRQtLfDjRayJnKbDcbSPd4+kXLfbOkS0fGIwR bwmcqlbMzlzp0Zl3H4CojV4b+98XLsjIclFKiAs3BHkiAdR8OZhnS/i4cXHjaa0IhjAG PvkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=1afhkgrdcOTvr/9amkyOZO6ojVB4EWCXT+um34oq13A=; b=BptQyqAXcdq8DwcJ2r12geYapktLgduVaqde2/tJAHTt1Esh4it3RctmOV6k48fOuj NCUyaSJewKe1Wr1DFP3QY7xdQU57ElXpTjQsCgFQF54LCMaWCOejzS3XVt8Z9f9TUiJg vKFKIe8e6cPJr1LNiV7XtT0CZ6g6JAuakWEi/vMISwZD0p2JPfGmcdqHTb1ED2gbh+27 5c9hrmP8kMUXhkCCG9uHJ0xDA5Ua6GEvGmEKmMShzIPpmyhX9gYqEw8OSCBWsWeBkO3v JUKHlpXVfVC0Sk6cWCdqi6QGw0B/QYl/G0gfsX9UxaYd56c46L7YcwtXZPKVU/jQDGdx 13jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NOj16ae6; 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 3-v6si38086375plu.564.2018.05.31.03.20.22; Thu, 31 May 2018 03:20:37 -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=NOj16ae6; 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 S1754371AbeEaKT6 (ORCPT + 99 others); Thu, 31 May 2018 06:19:58 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:44849 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754207AbeEaKT4 (ORCPT ); Thu, 31 May 2018 06:19:56 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4VAJX2J004477; Thu, 31 May 2018 05:19:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527761973; bh=1afhkgrdcOTvr/9amkyOZO6ojVB4EWCXT+um34oq13A=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=NOj16ae6IrelyvFrWd5rJAhvxXw6i9adBNy1367LLJisjakHVFTObK6L5XNXEfqJs qQRyDsu5vyolsNPPTlzXvHEieU335elXu25Wa8HZ5kC8A7BoM6qyLSAR7Mgd33v7hc 2LblnKdJ+cOxpmZbDw3MS5+P9IOoJ5jdCwYcdB7k= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4VAJXNj028049; Thu, 31 May 2018 05:19:33 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 31 May 2018 05:19:33 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE110.ent.ti.com (157.170.170.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, 31 May 2018 05:19:33 -0500 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4VAJTn2015184; Thu, 31 May 2018 05:19:30 -0500 Subject: Re: [PATCH v2 5/6] ARM: dts: Add generic interconnect target module node for MCAN To: Tony Lindgren CC: , , , , , , , , References: <20180530141133.3711-1-faiz_abbas@ti.com> <20180530141133.3711-6-faiz_abbas@ti.com> <20180530150402.GE5705@atomide.com> From: Faiz Abbas Message-ID: <2361da91-659d-1aaa-0ab8-d1473bc3a71a@ti.com> Date: Thu, 31 May 2018 15:51:04 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180530150402.GE5705@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Hi, On Wednesday 30 May 2018 08:34 PM, Tony Lindgren wrote: > * Faiz Abbas [180530 14:12]: >> The ti-sysc driver provides support for manipulating the idlemodes >> and interconnect level resets. > ... >> --- a/arch/arm/boot/dts/dra76x.dtsi >> +++ b/arch/arm/boot/dts/dra76x.dtsi >> @@ -11,6 +11,25 @@ >> / { >> compatible = "ti,dra762", "ti,dra7"; >> >> + ocp { >> + >> + target-module@0x42c00000 { >> + compatible = "ti,sysc-dra7-mcan"; >> + ranges = <0x0 0x42c00000 0x2000>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + reg = <0x42c01900 0x4>, >> + <0x42c01904 0x4>, >> + <0x42c01908 0x4>; >> + reg-names = "rev", "sysc", "syss"; >> + ti,sysc-mask = <(SYSC_OMAP4_SOFTRESET | >> + SYSC_DRA7_MCAN_ENAWAKEUP)>; >> + ti,syss-mask = <1>; >> + clocks = <&wkupaon_clkctrl DRA7_ADC_CLKCTRL 0>; >> + clock-names = "fck"; >> + }; >> + }; >> + >> }; > > Looks good to me except I think the reset won't do anything currently > with ti-sysc.c unless you specfify also "ti,hwmods" for the module? > > Can you please check? It might be worth adding the reset function to > ti-sysc.c for non "ti,hwmods" case and that just might remove the > need for any hwmod code for this module. > If I understand correctly, this involves adding a (*reset_module) in ti_sysc_platform_data and defining a ti_sysc_reset_module() in ti-sysc.c similar to ti_sysc_idle_module(). Right? Thanks, Faiz