From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Gross Subject: Re: [PATCH v3 1/2] i2c: qup: Add device tree bindings information Date: Fri, 24 Jan 2014 01:18:41 -0600 Message-ID: <20140124071841.GA6113@qualcomm.com> References: <1389999819-10648-1-git-send-email-bjorn.andersson@sonymobile.com> <1389999819-10648-2-git-send-email-bjorn.andersson@sonymobile.com> <20140121024007.GE13785@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20140121024007.GE13785@codeaurora.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Stephen Boyd Cc: Mark Rutland , "linux-doc@vger.kernel.org" , "linux-i2c@vger.kernel.org" , Matt Porter , Wolfram Sang , Bjorn Andersson , Grant Likely , James Ralston , "devicetree@vger.kernel.org" , Rob Landley , Pawel Moll , Ian Campbell , linux-arm-msm , Rob Herring , Jean Delvare , Andy Shevchenko , "linux-arm-kernel@lists.infradead.org" , Bill Brown , Greg Kroah-Hartman , linux-kernel@vg List-Id: devicetree@vger.kernel.org On Mon, Jan 20, 2014 at 06:40:07PM -0800, Stephen Boyd wrote: > On 01/20, Rob Herring wrote: > > On Fri, Jan 17, 2014 at 5:03 PM, Bjorn Andersson > > wrote: > > > > > .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 41 ++++++++++++++++++++++ > > > 1 file changed, 41 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt > > > > > > diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt b/Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt > > > new file mode 100644 > > > index 0000000..a99711b > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt > > > @@ -0,0 +1,41 @@ > > > +Qualcomm Universal Peripheral (QUP) I2C controller > > > + > > > +Required properties: > > > + - compatible: Should be "qcom,i2c-qup". > > > > Seems a bit generic. All versions of the IP are exactly the same? > > "qcom,-i2c-qup" would be better. > > > > There are different versions of the IP in different SoCs. The > versions for platforms supported upstream are: > > 1.1.1 (MSM8660, MSM8960) > 2.2.1 (MSM8974v2) > > so how about one of "qcom,i2c-qup-v1.1.1" or > "qcom,i2c-qup-v2.2.1" should be specified as more specific > compatible strings in addition to "qcom,i2c-qup"? > This definitely needs two compatible tags. The v1.1.1 supports the FIFO, block, and data mover modes. The v2.2.1 supports FIFO, block, and BAM DMA. The BAM patches are currently in review and ideally BAM support can be added to the I2C. We'll need a way to differentiate so BAM can be used. Otherwise, the register interfaces are interchangeable except for BAM specific fields in the registers. > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation