From: Mark Rutland <mark.rutland@arm.com>
To: "Ivan T. Ivanov" <iivanov@mm-sol.com>
Cc: "wsa@the-dreams.de" <wsa@the-dreams.de>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>,
Pawel Moll <Pawel.Moll@arm.com>,
"swarren@wwwdotorg.org" <swarren@wwwdotorg.org>,
"ian.campbell@citrix.com" <ian.campbell@citrix.com>,
"rob@landley.net" <rob@landley.net>,
"grant.likely@linaro.org" <grant.likely@linaro.org>,
"gavidov@codeaurora.org" <gavidov@codeaurora.org>,
"sdharia@codeaurora.org" <sdharia@codeaurora.org>,
"alokc@codeaurora.org" <alokc@codeaurora.org>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel" <linux-kernel@vger.kernel>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH 1/2] i2c: qup: Add device tree bindings information
Date: Thu, 12 Sep 2013 17:28:40 +0100 [thread overview]
Message-ID: <20130912162840.GE22013@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1377782873-31931-1-git-send-email-iivanov@mm-sol.com>
On Thu, Aug 29, 2013 at 02:27:52PM +0100, Ivan T. Ivanov wrote:
> From: "Ivan T. Ivanov" <iivanov@mm-sol.com>
>
> The Qualcomm Universal Peripherial (QUP) wraps I2C mini-core and
> provide input and output FIFO's for it. I2C controller can operate
> as master with supported bus speeds of 100Kbps and 400Kbps.
>
> Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
> ---
> Documentation/devicetree/bindings/i2c/i2c-qup.txt | 99 +++++++++++++++++++++
> 1 file changed, 99 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/i2c/i2c-qup.txt
>
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-qup.txt b/Documentation/devicetree/bindings/i2c/i2c-qup.txt
> new file mode 100644
> index 0000000..c682726
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/i2c-qup.txt
> @@ -0,0 +1,99 @@
> +Qualcomm Universal Periferial (QUP) I2C controller
> +
> +Required properties:
> + - compatible : should be "qcom,i2c-qup"
> + - reg : Offset and length of the register region for the device
> + - interrupts : core interrupt
How about the following:
- interrupts: interrupt-specifier for the core interrupt.
> +
> + - pinctrl-names: Should contain only one value - "default".
> + - pinctrl-0: Should specify pin control group used for this controller.
> +
> + - clocks : phandles to clock instances of the device tree nodes
Clocks aren't just phandles, they have a clock-specifier component. This
should probably be something like:
- clocks: a list of phandle + clock-specifier pairs for each entry in
clock-names
> + - clock-names :
> + "core" : Allow access to FIFO buffers and registers
Huh? That description doesn't seem to descripe the hardware.
> + "iface" : Clock used by QUP interface
Which interface? The slave interface the CPUs access, or the interface
to the I2C devices?
Are these the only clock inputs to the device?
Is there a regulator input that might need to be specified?
> +
> + - #address-cells : should be <1> Address cells for I2C device address
> + - #size-cells : should be <0> I2C addresses have no size component.
> +
> +Optional properties :
> + - Child nodes conforming to i2c bus binding
> + - clock-frequency : Desired I2C bus clock frequency in Hz. If
> + not set thedefault frequency is 100kHz
Why is this necessary?
> + - qcom,src-freq : Frequency of the source clocking this bus in Hz.
> + Divider value is set based on soruce-frequency and
> + desired I2C bus frequency. If this value is not
> + provided, the source clock is assumed to be running
> + at 19.2 MHz.
This looks like it should be a clock input.
Thanks,
Mark.
next prev parent reply other threads:[~2013-09-12 16:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 13:27 [PATCH 1/2] i2c: qup: Add device tree bindings information Ivan T. Ivanov
2013-08-29 13:27 ` [PATCH 2/2] i2c: New bus driver for the QUP I2C controller Ivan T. Ivanov
2013-09-10 13:46 ` Josh Cartwright
2013-09-10 15:10 ` Ivan T. Ivanov
[not found] ` <1378825856.960.47.camel-yvhxILDKWb8ylMT5ByZ5bDRGLm/uyL/D0E9HWUfgJXw@public.gmane.org>
2013-09-10 15:36 ` Josh Cartwright
2013-09-11 7:46 ` Ivan T. Ivanov
[not found] ` <3A0F4153-1C55-4008-8EB1-D6FA60D87CEA@codeaurora.org>
[not found] ` <3A0F4153-1C55-4008-8EB1-D6FA60D87CEA-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2013-08-29 17:26 ` [PATCH 1/2] i2c: qup: Add device tree bindings information Ivan T. Ivanov
[not found] ` <767E9FBB-2975-4795-9C7E-69E302511FF2@codeaurora.org>
[not found] ` <767E9FBB-2975-4795-9C7E-69E302511FF2-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2013-09-10 12:08 ` Ivan T. Ivanov
2013-09-10 13:59 ` Josh Cartwright
2013-09-10 14:43 ` Ivan T. Ivanov
[not found] ` <1378824205.960.41.camel-yvhxILDKWb8ylMT5ByZ5bDRGLm/uyL/D0E9HWUfgJXw@public.gmane.org>
2013-09-25 16:06 ` Wolfram Sang
2013-09-26 5:04 ` Ivan T. Ivanov
2013-09-12 16:28 ` Mark Rutland [this message]
[not found] ` <20130912162840.GE22013-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-09-13 9:13 ` Ivan T. Ivanov
[not found] ` <1379063595.16481.19.camel-yvhxILDKWb8ylMT5ByZ5bDRGLm/uyL/D0E9HWUfgJXw@public.gmane.org>
2013-09-16 13:32 ` Mark Rutland
[not found] ` <20130916133226.GD30650-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-09-17 14:50 ` Ivan T. Ivanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130912162840.GE22013@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=Pawel.Moll@arm.com \
--cc=alokc@codeaurora.org \
--cc=devicetree@vger.kernel.org \
--cc=gavidov@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=iivanov@mm-sol.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=sdharia@codeaurora.org \
--cc=swarren@wwwdotorg.org \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).