Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941318AbcJTOJp (ORCPT ); Thu, 20 Oct 2016 10:09:45 -0400 Received: from foss.arm.com ([217.140.101.70]:48480 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933337AbcJTOJn (ORCPT ); Thu, 20 Oct 2016 10:09:43 -0400 Date: Thu, 20 Oct 2016 15:09:11 +0100 From: Mark Rutland To: Imran Khan Cc: andy.gross@linaro.org, David Brown , Rob Herring , "open list:ARM/QUALCOMM SUPPORT" , "open list:ARM/QUALCOMM SUPPORT" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH] soc: qcom: Add SoC info driver Message-ID: <20161020140911.GH10234@leverpostej> References: <1476972386-28655-1-git-send-email-kimran@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476972386-28655-1-git-send-email-kimran@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1735 Lines: 50 On Thu, Oct 20, 2016 at 07:36:22PM +0530, Imran Khan wrote: > The SoC info driver provides information such as Chip ID, > Chip family, serial number and other such details about > Qualcomm SoCs. > > Signed-off-by: Imran Khan > --- > .../devicetree/bindings/soc/qcom/qcom,socinfo.txt | 18 + > drivers/soc/qcom/socinfo.c | 1173 ++++++++++++++++++++ > include/linux/soc/qcom/socinfo.h | 198 ++++ > 3 files changed, 1389 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,socinfo.txt > create mode 100644 drivers/soc/qcom/socinfo.c > create mode 100644 include/linux/soc/qcom/socinfo.h > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,socinfo.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,socinfo.txt > new file mode 100644 > index 0000000..1f26299 > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,socinfo.txt > @@ -0,0 +1,18 @@ > +Qualcomm SoC Information (socinfo) Driver binding > + > +This binding describes the Qualcomm SoC Information Driver, which provides > +information such as chip id, chip family, serial number and other such > +details about Qualcomm SoCs. > + > +- compatible: > + Usage: required > + Value type: > + Definition: must be "qcom,socinfo" > + > += EXAMPLE > + > +The following example represents a socinfo node. > + > + socinfo { > + compatible = "qcom,socinfo"; > + }; Binding should describe *hardware*, not *drivers*. This clearly does not describe a paerticular piece of hardware, and as such does not make sense. If this is trying to describe some paritcular hardware, please describe that in the binding explicitly. Thanks, Mark.