Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4132819imm; Mon, 30 Jul 2018 09:10:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcmfcoFP9n1dMXWTcIp6/ommEMPjb76ixbwvWupp5lDWH/tmZ3n8Lg/RYBOAqEBeJnT4DIy X-Received: by 2002:a62:4494:: with SMTP id m20-v6mr18405151pfi.205.1532967058951; Mon, 30 Jul 2018 09:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532967058; cv=none; d=google.com; s=arc-20160816; b=t+TGWoJxh8gnqcDFlW9zn2GhJ35cfC3qs7jaYpRIqf/UNIO69TvzmZqrSJQ7239gOA NkwoOJGFQJ7/T4QK92uLcYcVgjHzFoZUULe0G155bChyv6sC6JDWNMSI9ZmhhoyDrjzl LQpbaZ7LM0la7E2QuzoY2XIhsrHV71Mb8lmbc/E57/88T5HUyrkTex/hVfQuw5F6/0u1 Nlyvl7LfpbsmaNA9dbNQ6tR+gBJM6V7IUI2i2LwbgaaVMT9PeVa5CiJSqbUG5hLWWfvn 9mNnjSyG2mM8M85cDHk4Y5i7yazAbSrQezb2gyNHnRxjBFUcvJoA7joF+DPNNkRgDtpm fNnw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=05e1J8Dbor5qR8v2eujXPipcvlb8HuTK3TitcT8sh90=; b=O1+ZfnxiLMNTjkSa10ork3kgh519D26RvQP0S6PGPQx8lXML+L7uFXsx2gGr+XHdoG TDibdpWRFbT4bHq2QoAy4xWglkxTRLg8sUYph3XsCasi084A7ozKYuvi8ZxTzewWJxy3 PQsOEE2I8M5myLvOHmqfbJGgqHo8vntDbjnkGy9/IfeFQjgWoZLQ0wLeCJcQjBAeYr9e +nbVafmTNFBSMl/xHRBPYgEFJyzpUKnWh34uGC3VSV04ocrdwKxu/JACn5CIn9sOSuRO T8HlomXYc9HaNcHP+20pe9ziqVK4Lwyp51RdPUWTssTMUImb5kJNQJNTFsX+NICGqsiQ v4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fj++ZVJ3; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18-v6si10386977pfn.158.2018.07.30.09.10.44; Mon, 30 Jul 2018 09:10: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=@linaro.org header.s=google header.b=fj++ZVJ3; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbeG3RpA (ORCPT + 99 others); Mon, 30 Jul 2018 13:45:00 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:41939 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbeG3Ro7 (ORCPT ); Mon, 30 Jul 2018 13:44:59 -0400 Received: by mail-pl0-f68.google.com with SMTP id w8-v6so5759889ply.8 for ; Mon, 30 Jul 2018 09:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=05e1J8Dbor5qR8v2eujXPipcvlb8HuTK3TitcT8sh90=; b=fj++ZVJ3YV0a1IGkc88y/JMiYtfhnEAPTGa1bsUzgpJKErCr8ipItZaqQbxQ74rEWW i768t4/02ZPNP/oVcGlm5/wZm4p76AhLaOGNYw9Ksl+3Ji/hSPFJnToqne1H6/ugfxk0 XxridjMwPfjIbl40RPHOSCafh2+zUWvs+Nmfk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=05e1J8Dbor5qR8v2eujXPipcvlb8HuTK3TitcT8sh90=; b=iiiwyYuRCA0d75PtNoK6mXjI3vbB7naq4HMG0N+un1SIvb/RvP2MuHrPERRPko4Emn tGVOrMC1AUJqT5aSr0WRNoaX9lKwAZD9cEMh/jtyEIESme1nShmoxortgmObBxlgTtTX QQMSXCHt8F9of8VPHqcy7fpObHeJNtJgoqRgvP5wP9U6dTsaWQ/mswQL0xk4czAbNzoU u/4hgsEKzVfT2NGhycVuxSzBoGHvrVIO5fybWGNi/pOcct8BVLwQ6rbGBuC8PCExnuP0 kqHTWlt1GfGVZzcfnMRCabP7lVLrITwa/Vladbx1+ANUy//inztpuBvBRUWWlWBa6OAp jM8w== X-Gm-Message-State: AOUpUlH8uEvft2I8y53apvbn8oOk0GqFn5NMTkqDr8WFo6m31kz5wOtz t/q9d/aX3bkQhL8RlGN7TdRr X-Received: by 2002:a17:902:d710:: with SMTP id w16-v6mr17050492ply.93.1532966959757; Mon, 30 Jul 2018 09:09:19 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2405:204:7249:4c1:2087:1b6f:e7df:5e1a]) by smtp.gmail.com with ESMTPSA id u2-v6sm18222485pfn.59.2018.07.30.09.09.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jul 2018 09:09:19 -0700 (PDT) Date: Mon, 30 Jul 2018 21:39:04 +0530 From: Manivannan Sadhasivam To: Philipp Zabel Cc: Andreas =?iso-8859-1?Q?F=E4rber?= , mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com Subject: Re: [PATCH 0/9] Add Reset Controller support for Actions Semi Owl SoCs Message-ID: <20180730160904.GA2511@Mani-XPS-13-9360> References: <20180727184527.13287-1-manivannan.sadhasivam@linaro.org> <20180730151131.GA28633@mani> <1532965111.3471.14.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1532965111.3471.14.camel@pengutronix.de> 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 Hi Philipp, On Mon, Jul 30, 2018 at 05:38:31PM +0200, Philipp Zabel wrote: > On Mon, 2018-07-30 at 20:41 +0530, Manivannan Sadhasivam wrote: > > Hi Andreas, > > > > On Mon, Jul 30, 2018 at 12:26:07PM +0200, Andreas F?rber wrote: > > > Hi Mani, > > > > > > Am 27.07.2018 um 20:45 schrieb Manivannan Sadhasivam: > > > > This patchset adds Reset Controller (RMU) support for Actions Semi > > > > Owl SoCs, S900 and S700. For the Owl SoCs, RMU has been integrated into > > > > the clock subsystem in hardware. Hence, in software we integrate RMU > > > > support into common clock driver inorder to maintain compatibility. > > > > > > Can this not be placed into drivers/reset/ by using mfd-simple with a > > > sub-node in DT? > > > > > > > Actually I was not sure where to place this reset controller driver. When I > > looked into other similar ones such as sunxi, they just integrated into the > > clk subsystem. So I just chose that path. But yeah, this is hacky! > > > > But this RMU is not MFD by any means. Since the CMU (Clock) and RMU (Reset) > > are two separate IPs inside SoC, we shouldn't describe it as a MFD driver. Since > > RMU has only 2 registers, the HW designers decided to use up the CMU memory > > map. So, maybe syscon would be best option I think. What is your opinion? > > Using syscon seems cleaner than stuffing the regmap into owl_clk_desc. > Okay. > > Even if we go for syscon, we should place the reset driver within clk > > framework as I can see other SoCs like Mediatek are doing the same. But again > > I'm not sure! > > Me neither. If the CMU and RMU are really separate and only share the > memory map, a syscon driver could live in drivers/reset without > problems. > It's only when there are interactions between clocks and resets that you > really want to have the reset driver integrated with clk. > Okay. Then I will add it as a syscon driver under drivers/reset. I hope that Andreas would also be happy with this. Thanks a lot for your response! Regards, Mani > regards > Philipp