Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4575063imm; Wed, 30 May 2018 08:05:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKTrHUgCbxxgYCovkstNXjcf8hFqmUyUUCjrU4dWKNXe9jL9pFPuE8YB6vR/yG2Jf1YO6dw X-Received: by 2002:a63:4281:: with SMTP id p123-v6mr2562054pga.144.1527692718841; Wed, 30 May 2018 08:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527692718; cv=none; d=google.com; s=arc-20160816; b=wHZjtFApn6CwPM84YV/Pe8/muy81M2pa874myhs37FMk5ujMgA8umiToygS7kGpcnj ekXbPkpxMPvt1SyPuJNFqMEk3WgUmK/9+In+21CC5Xe2qtglm4N0MbpLCFx5sdCyoOCI SAUaAm/qzXwYXVdbGgjaKg5FFnoow5TQ20zyU+ISQcZ/G0mmlWBWlCoij4kWLywtunIU gyjD2xB2Ky+W0JtxAqeoxYyu+qjT8j6isUzgf9XMlsSyyWCd85s3cBkO+C5Lh+GHPKGP 3/GaQzcGCyegH9MbL09o4cpc2qy/gMq5DgURivYOTR7DffiqfVTHh9iSz2uKqu2E+fX+ Yrww== 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=II01fXZP1fq+sGqR2/Z+qEit0ZzrlWIgpcN12obb4Lo=; b=Z+fUZlapIdL6pDXPP3qJItoTeGTmB+iKzlc3L1E4iwUwZMVatZgNUZM/2gjvBVMAYp 1ZWixh1/Q/f7bXvS4+awCcxE1e0JmbEVLgpn+gIY4KuOx6VjS/vsSxqQ7maNwl4tR1eD xU6H72lZT+b7OOMmpINfL3/4RCW5C0tlu65ukzssHWlRHwaQ589uTTGs0IwKGXVCtWax pSm2f5TW6us5PLv8y34zUfLr4n1o2kxn7pL1Tl/+076m5pnHUl3OLXmLSm7fKnaj03sJ F7wK8DpVo9H30aXZKOwJIbbz+iNIUNpSSP2VVjBnj7bvJ86gg6vC4FCAQS8IeXow9SE2 P42g== 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 z12-v6si27171814pgu.115.2018.05.30.08.04.52; Wed, 30 May 2018 08:05:18 -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 S1753563AbeE3PEI (ORCPT + 99 others); Wed, 30 May 2018 11:04:08 -0400 Received: from muru.com ([72.249.23.125]:45220 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbeE3PEG (ORCPT ); Wed, 30 May 2018 11:04:06 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 3326780CE; Wed, 30 May 2018 15:06:27 +0000 (UTC) Date: Wed, 30 May 2018 08:04:02 -0700 From: Tony Lindgren To: Faiz Abbas Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, robh+dt@kernel.org, bcousson@baylibre.com, paul@pwsan.com, t-kristo@ti.com Subject: Re: [PATCH v2 5/6] ARM: dts: Add generic interconnect target module node for MCAN Message-ID: <20180530150402.GE5705@atomide.com> References: <20180530141133.3711-1-faiz_abbas@ti.com> <20180530141133.3711-6-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180530141133.3711-6-faiz_abbas@ti.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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. Regards, Tony