Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752099AbcDRUE4 (ORCPT ); Mon, 18 Apr 2016 16:04:56 -0400 Received: from mail-vk0-f54.google.com ([209.85.213.54]:36817 "EHLO mail-vk0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbcDRUEz (ORCPT ); Mon, 18 Apr 2016 16:04:55 -0400 MIME-Version: 1.0 In-Reply-To: <20160418170009.GA15338@rob-hp-laptop> References: <1460510547-17611-1-git-send-email-ttnguyen@apm.com> <1460510547-17611-3-git-send-email-ttnguyen@apm.com> <20160418170009.GA15338@rob-hp-laptop> Date: Mon, 18 Apr 2016 13:04:53 -0700 Message-ID: Subject: Re: [PATCH v2 2/4] Documentation: Add documentation for APM X-Gene SoC PMU DTS binding From: Tai Tri Nguyen To: Rob Herring Cc: Mark Rutland , will.deacon@arm.com, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel , patches Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1190 Lines: 33 Hi Rob, [...] >> +Required properties for MCB subnode: >> +- compatible : Shall be "apm,xgene-pmu-mcb". >> +- reg : First resource shall be the MCB PMU resource. >> +- index : Instance number of the MCB PMU. >> + >> +Required properties for MC subnode: >> +- compatible : Shall be "apm,xgene-pmu-mc". >> +- reg : First resource shall be the MC PMU resource. >> +- index : Instance number of the MC PMU. > > Don't use indexes. You probably need phandles to the nodes these are > related to. > > How many variations of child nodes do you expect to have? 2, 10, 50? You > might want to just collapse all this down to a single node and put this > information in the driver if it is fixed for each SoC and there's only a > handful. > For each kind of PMU, for example memory controller PMU, I expect to have the number of instances up to 8. They are actually all independent PMU nodes and have their own CSR memory bases. The indexes are used for exposing the devices to perf user only. It doesn't have an impact on the programming model. Mark also had the same concern. Thanks, -- Tai