Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp10409imm; Tue, 7 Aug 2018 12:57:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd8ts6tiAZel2C/Xiq+L6QStDndeEk+oEJv9XMhxSkBnZb+WIpZMVRLy3oCPsgoF/i1mH2p X-Received: by 2002:a62:1e81:: with SMTP id e123-v6mr23570049pfe.24.1533671837291; Tue, 07 Aug 2018 12:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533671837; cv=none; d=google.com; s=arc-20160816; b=x+KwEH/37VMwPAavdv66FNOTrhVtDIQq9Un4spap+coBFOMbyNwtJun5/kzp87N8em O/yDVRw5jKHMcgOBzl/HkSYWoqKhJ/cf93VxnNQViXqn8Bu+VqLV6oOxy6s4yoG88t8f AEf4MYJ6iUdEceKSAteaoQyuZAT0RaAomSNQFcY1Qzla5huWhM8voUYivlNY6NhtTcgi 32tPjDqhIB6KUNzLZUbS+0+xLXK2NVaxYq86qVzSecMVS6W4HAiAcdo0UgOYHYfr9htJ YQ87Zv16fmgsSfPlOC6/mB82HG8YlGp5jdlPlLr+uADxH1qMs3tAmYHD1/HgEfk9yGrU 7WzQ== 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 :arc-authentication-results; bh=xGXocIj6SJLtAvqEUGfk5C+tPt0jU6xzWWou+HpBmes=; b=gU4mMwBqIaz9oh+OX1DcT7UZEZN6+34FHeg8p4YPJFWqR3cznRNrwS6EHtDqdtLkRN ltQ3knrRcsb63vm0JWZT+wm85qLuALorHdn4HpRuXiMSUreFIlTPArYHg8PBbiRdy1PP QJkNXmUOqCeC3OHAi+41IGicxn6v16z5WbE96FibVTa9Bfz7DZzwhkSkx7MXVv66wvY+ KzXqqXNhR6kiRG3RtL+kk4AqC3MZruCmpWWCxJ2uUBxOVbgawQWJYvzUgJmgmw7qtaGt xz2GWWiUWJETmSIkEztnK3ZpMjnZAdc6CT6xpqTs+lkZU7oauo/PRUp5jKQG2bFFK2Kh w0lw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66-v6si2306163pgt.181.2018.08.07.12.57.02; Tue, 07 Aug 2018 12:57:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389703AbeHGVCx (ORCPT + 99 others); Tue, 7 Aug 2018 17:02:53 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:46519 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732760AbeHGVCx (ORCPT ); Tue, 7 Aug 2018 17:02:53 -0400 Received: by mail-io0-f193.google.com with SMTP id i18-v6so14840629ioj.13; Tue, 07 Aug 2018 11:47:11 -0700 (PDT) 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=xGXocIj6SJLtAvqEUGfk5C+tPt0jU6xzWWou+HpBmes=; b=egPj/LiJ/6Z6Ty0UtM8etYsvicTPTtFUQNWFiX//Z4fhMlBfzLsvrpkcnXO3YYTDOV NP1SG5HQoZ6m/VG4UzcRW9xSKZvH6Z02wIU+c50W77+VVAAuQkTHEXJj92NasQGWs7yT 3blfmNfVQ52VKDOgC4y9kqr+dVy9TBCgq6lMM8JAGkumJz7QaCqsk39YYJ0NJ91SJeq8 xzpeiYT1PiNO5uavr9M9XxdzB+QkfD1PSO1oDgMM/fDonPY7a/tWiLkE2hEBamL2+rKQ +sw4qvV1Ts2jXntEX8woCxkQwzL3pXuIB2wMYbhkluhTjKqwFREWkOEGA3hrxa3dAgaa d6XQ== X-Gm-Message-State: AOUpUlElaMHKRNRdVbOfUaXYF3lN8iVhsRTOVjhTu85riSNAgZR2Aswt YHfSIMBcdny81ZIwS6rRlg== X-Received: by 2002:a6b:bd06:: with SMTP id n6-v6mr6038926iof.86.1533667631419; Tue, 07 Aug 2018 11:47:11 -0700 (PDT) Received: from localhost ([24.51.61.72]) by smtp.gmail.com with ESMTPSA id 137-v6sm1254599itl.39.2018.08.07.11.47.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Aug 2018 11:47:10 -0700 (PDT) Date: Tue, 7 Aug 2018 12:47:10 -0600 From: Rob Herring To: Manivannan Sadhasivam , Andreas =?iso-8859-1?Q?F=E4rber?= Cc: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@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: <20180807184710.GA26423@rob-hp-laptop> References: <20180727184527.13287-1-manivannan.sadhasivam@linaro.org> <20180730151131.GA28633@mani> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180730151131.GA28633@mani> 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 On Mon, Jul 30, 2018 at 08:41:31PM +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? That is exactly what I tell folks not to do. Design the DT based on h/w blocks, not current desired driver split for some OS. > 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? If there's nothing shared then it is not a syscon. If you can create separate address ranges, then 2 nodes is probably okay. If the registers are all mixed up, then 1 node. Rob