Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752551AbcDOQb2 (ORCPT ); Fri, 15 Apr 2016 12:31:28 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:57468 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbcDOQb0 (ORCPT ); Fri, 15 Apr 2016 12:31:26 -0400 Subject: Re: [PATCH 5/7] soc/tegra: pmc: Register sub-devices of PMC To: Laxman Dewangan References: <1460473007-11535-1-git-send-email-ldewangan@nvidia.com> <1460473007-11535-6-git-send-email-ldewangan@nvidia.com> Cc: thierry.reding@gmail.com, linus.walleij@linaro.org, gnurou@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, jonathanh@nvidia.com, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org From: Stephen Warren Message-ID: <5711175B.8000701@wwwdotorg.org> Date: Fri, 15 Apr 2016 10:31:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1460473007-11535-6-git-send-email-ldewangan@nvidia.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 840 Lines: 21 On 04/12/2016 08:56 AM, Laxman Dewangan wrote: > Register sub devices of the PMC to support multiple functionalities > of PMC. > The sub devices are the subnode of PMC DT node with containing the > compatible string of sub devices as follows: > > pmc@0,7000e400 { > pmc-pad-control { > compatible = "nvidia,tegra210-io-pad"; > :: > }; > }; > > In this pmc-pad-control is the sub device of PMC and the device > compatibility is nvidia,tegra210-io-pad. Since I don't think anyone has mentioned this point on the public lists, I'll echo the earlier internal discussion on this patch. I think the PMC driver should handle this all entirely internally. The PMC HW module doesn't have well-defined sub-modules, and hence we shouldn't represent sub-modules in DT. DT should represent HW structure, not Linux SW structure.